From 07896ee61dba47bc57c4c3b3b819033dc0324a1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 8 Aug 2022 08:27:06 +0200 Subject: Turris Omnia cross build now should work --- README.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 1fb1e55..dee5f38 100644 --- a/README.md +++ b/README.md @@ -43,13 +43,10 @@ you should do to get the correct layout: ``` ~# parted /dev/mmcblk1 (parted) mktable gpt -(parted) mkpart NixTurris 0% -4G +(parted) mkpart NixTurris 0% 100% (parted) set 1 boot on -(parted) mkpart NixTurrisSwap -4G 100% -(parted) set 2 swap on (parted) quit ~# mkfs.btrfs /dev/mmcblk1p1 -~# mkswap /dev/mmcblk1p2 ``` Next we need the initial system tarball to unpack to the SD card. For this you @@ -76,3 +73,16 @@ The last step is to unpack the tarball to the SD card. ``` Now you can take this micro SD card and insert it to your Mox. + +### System fails to boot due to invalid initrd + +The issue is caused by initrd start being overwritten by kernel image's tail. + +The kernel image in NixOS can be pretty large and default Mox's configuration +expects kernel of maximum size 48MB. To increase this to 64MB you have to use +serial console and run: + +``` +setenv ramdisk_addr_r 0x9000000 +saveenv +``` -- cgit v1.2.3