1
0
forked from dan/liminix

rt3200 test install

This commit is contained in:
Daniel Barlow 2024-12-23 23:59:52 +00:00
parent 848214d104
commit bc20f4c6b7
2 changed files with 21 additions and 18 deletions

View File

@ -44,7 +44,9 @@
MT7622> tftpboot 0x42000000 openwrt-mediatek-mt7622-linksys_e8450-ubi-initramfs-recovery-installer.itb MT7622> tftpboot 0x42000000 openwrt-mediatek-mt7622-linksys_e8450-ubi-initramfs-recovery-installer.itb
MT7622> bootm 0x42000000 MT7622> bootm 0x42000000
Once it's finished booted into Linux you can safely reboot This will write the new flash layout and then boot into a
"recovery" OpenWrt installation. Once it's finished booting into
Linux you can safely reboot
Installing Liminix Installing Liminix
------------------ ------------------
@ -73,6 +75,7 @@
../../modules/arch/aarch64.nix ../../modules/arch/aarch64.nix
../../modules/outputs/tftpboot.nix ../../modules/outputs/tftpboot.nix
../../modules/outputs/ubifs.nix ../../modules/outputs/ubifs.nix
../../modules/outputs/ubimage.nix
]; ];
config = { config = {
kernel = { kernel = {
@ -203,7 +206,8 @@
in { in {
ubi = { ubi = {
minIOSize = "2048"; minIOSize = "2048";
eraseBlockSize = "126976"; logicalEraseBlockSize = "126976";
physicalEraseBlockSize = "131072";
maxLEBcount = "1024"; # guessing maxLEBcount = "1024"; # guessing
}; };

View File

@ -82,12 +82,11 @@ automatically, you can try booting it by hand to see if it works:
.. code-block:: console .. code-block:: console
uboot> ubifsmount ubi0:liminix uboot> ubifsmount ubi0:liminix
uboot> ubifsload ''${loadaddr} boot/uimage uboot> ubifsload ''${loadaddr} boot/fit
uboot> bootm ''${loadaddr} uboot> bootm ''${loadaddr}
Once you've done this and you're happy with it, reset the device to Once you've done this and you're happy with it, reset the device to
U-Boot. You don't need to recreate the volume but you do need to return to U-Boot.
repeat step 3.
5) Instructions for configuring autoboot are likely to be very 5) Instructions for configuring autoboot are likely to be very
device-dependent. On the Linksys E8450/Belkin RT3200, the environment device-dependent. On the Linksys E8450/Belkin RT3200, the environment
@ -96,7 +95,10 @@ you could do
.. code-block:: console .. code-block:: console
uboot> setenv boot_production 'led $bootled_pwr on ; ubifsmount ubi0:liminix; ubifsload ''${loadaddr} boot/uimage; bootm ''${loadaddr}' uboot> setenv orig_boot_production $boot_production
uboot> setenv boot_production 'led $bootled_pwr on ; ubifsmount ubi0:liminix && ubifsload ''${loadaddr} boot/fit && bootm ''${loadaddr}'
uboot> saveenv
uboot> reset
On other devices, some detective work may be needed. Try running On other devices, some detective work may be needed. Try running
`printenv` and look for likely commands, try looking at the existing `printenv` and look for likely commands, try looking at the existing
@ -111,9 +113,8 @@ boot process, maybe even try looking for documentation for that device.
}; };
}; };
config = mkIf (config.rootfsType == "ubifs") { config.system.outputs.ubimage =
system.outputs = { assert config.rootfsType == "ubifs";
ubimage =
let o = config.system.outputs; in let o = config.system.outputs; in
pkgs.runCommand "ubimage" {} '' pkgs.runCommand "ubimage" {} ''
mkdir $out mkdir $out
@ -121,6 +122,4 @@ boot process, maybe even try looking for documentation for that device.
ln -s ${o.rootfs} rootfs ln -s ${o.rootfs} rootfs
ln -s ${instructions} env.scr ln -s ${instructions} env.scr
''; '';
};
};
} }