Commit graph

733 commits

Author SHA1 Message Date
Daniel Barlow
ab147abd9b less padding in firmware.bin
we only need to align to erase block size, which may be
less than the 128k previously hard-coded
2023-09-26 16:43:03 +01:00
Daniel Barlow
bca0c9b26b gl-mt300a use regular-sized flash erase blocks 2023-09-26 16:43:03 +01:00
Daniel Barlow
c59a228955 this is the dhcp6c service we want 2023-09-26 16:43:03 +01:00
Daniel Barlow
1673a71831 WIP third example 2023-09-24 23:11:28 +01:00
Daniel Barlow
94e51db649 tests: use run.sh instead of calling run-liminix-vm directly
this makes it easier to run tests on aarch64 where
qemu wants an Image file instead of a vmlinux
2023-09-24 00:24:48 +01:00
Daniel Barlow
3205a38ac9 mac80211 use correct arch 2023-09-24 00:17:32 +01:00
Daniel Barlow
119d6ad379 pkgconfig is now pkg-config 2023-09-21 12:25:35 +01:00
Daniel Barlow
8d356890b0 add aarch64 to CI 2023-09-21 00:00:21 +01:00
Daniel Barlow
be22fbbb0a bootable aarch64 liminux with qemu
I may have broken the run-liminix-vm command a bit for MIPS due to
necessary changes in how we pass the command line.  If CI isn't green
for this commit and youre trying the worked examples, I suggest
reverting to the commit before this one.
2023-09-20 22:55:51 +01:00
Daniel Barlow
9f87fd8625 import arch in qemu device config 2023-09-20 21:31:38 +01:00
Daniel Barlow
3a3ee8bbbd fix CI doc error 2023-09-20 21:31:38 +01:00
Daniel Barlow
381730d081 fix CI flashimage error 2023-09-20 21:31:38 +01:00
Daniel Barlow
57eb55de58 found another mips-vm to rename 2023-09-20 19:13:04 +01:00
Daniel Barlow
4389fa15f7 rename mips-vm as run-liminix-vm 2023-09-20 18:33:20 +01:00
Daniel Barlow
4f29bdd3ed detect arch in kernel and uimage
also move kernel builder to pkgs/

FIXME we need to straighten out the mess in calling
dtb.nix/uimage.nix
2023-09-20 18:26:33 +01:00
Daniel Barlow
f1c04c7979 extract mips kernel options to module 2023-09-20 17:50:21 +01:00
Daniel Barlow
f75995e895 introduce modules/arch/{mipsel,mipseb}.nix
for settings that are common to all mipse[lb] but would not be shared
with e.g. aarch64 or x86
2023-09-20 17:30:05 +01:00
Daniel Barlow
12b9feb8ee using openwrt mtd command, advide erase before writing 2023-09-18 10:59:55 +01:00
Daniel Barlow
b3a7a2246d tutorial: move the warning nearer to the decision point 2023-09-17 21:53:15 +01:00
Daniel Barlow
6674344021 don't end chapter with ellipsis 2023-09-17 21:47:09 +01:00
Daniel Barlow
c81ee62374 doc: proofread admin section, add link to TFTP 2023-09-17 21:44:32 +01:00
Daniel Barlow
dd0b1734c1 how to write a module 2023-09-17 21:32:22 +01:00
Daniel Barlow
0a2588013a include generated module options 2023-09-17 17:47:04 +01:00
Daniel Barlow
71b583a756 copy "how to flash" from the old docs 2023-09-17 17:36:02 +01:00
Daniel Barlow
98e7536e59 think 2023-09-17 17:03:56 +01:00
Daniel Barlow
e72d78ab64 restore intro 2023-09-17 17:03:56 +01:00
Daniel Barlow
17035ca3b7 outline of the missing doc sections 2023-09-17 17:03:56 +01:00
Daniel Barlow
dece70b336 link to ADR 2023-09-17 17:03:56 +01:00
Daniel Barlow
50ea144dec mention service dependencies 2023-09-17 17:03:56 +01:00
Daniel Barlow
fc84435985 improve syntax blah 2023-09-17 17:03:56 +01:00
Daniel Barlow
06b725cb77 document the module-based-services decision 2023-09-17 17:03:56 +01:00
Daniel Barlow
c74543c4ff doc: how to define an s6 service 2023-09-17 17:03:56 +01:00
Daniel Barlow
54526c1e11 start writing configuration guide 2023-09-17 17:03:56 +01:00
Daniel Barlow
f81aa54444 rename file 2023-09-17 17:03:56 +01:00
Daniel Barlow
56261f77b0 add example with real hardware 2023-09-17 17:03:56 +01:00
Daniel Barlow
8600dfc8cf proofread v2 2023-09-17 17:03:56 +01:00
Daniel Barlow
bb280c6d97 rename qemu example 2023-09-17 17:03:56 +01:00
Daniel Barlow
b7e805c97f connecting a client to hellonet 2023-09-17 17:03:56 +01:00
Daniel Barlow
9223fa7ec4 first proofreading pass 2023-09-17 17:03:56 +01:00
Daniel Barlow
0f31afee2b hellonet: set password for root
otherwise incoming ssh gets a bit fraught
2023-09-17 17:03:56 +01:00
Daniel Barlow
98c63e7498 hellonet: don't run ntp
it's a bit pointless when there's no connectivity to
any ntp server
2023-09-17 17:03:56 +01:00
Daniel Barlow
c6faf88dd1 doc WIP: build "hello net" example 2023-09-17 17:03:56 +01:00
Daniel Barlow
35c7f1643f change defaultOutput for hardware devices to flashimage
if you're using tftpboot you probably know what you're doing
2023-09-17 17:00:45 +01:00
Daniel Barlow
70fb9f86d3 mt300a vlan interface services depend on primary 2023-09-17 17:00:38 +01:00
Daniel Barlow
b36272f99e add outputs for vlan service 2023-09-17 17:00:31 +01:00
Daniel Barlow
0abe4f96a7 ssh ensure we create /run/dropbear
this is required if we don't have persistent store (jffs2)
2023-09-17 17:00:26 +01:00
Daniel Barlow
f7b30939b5 remove service-state when service exits 2023-09-13 22:49:00 +01:00
Daniel Barlow
4fd1b5f08b er, "input" != output" 2023-09-13 18:01:50 +01:00
Daniel Barlow
106a429b3d odhcp-script only write addresses if there are any 2023-09-13 17:51:07 +01:00
Daniel Barlow
b3e505abf4 anoia.system print command if it failed 2023-09-13 17:50:40 +01:00