NSA320 u-boot installation problem 1 June 27, 2018 04:31PM |
Registered: 9 years ago Posts: 16 |
NSA320 u-boot installation problem June 28, 2018 10:47AM |
Registered: 9 years ago Posts: 16 |
Re: NSA320 u-boot installation problem June 28, 2018 03:50PM |
Admin Registered: 13 years ago Posts: 18,495 |
Re: NSA320 u-boot installation problem June 28, 2018 03:58PM |
Admin Registered: 13 years ago Posts: 18,495 |
Quote
Is there some mismatch with tar on my NSA320 or tar on my laptop running Linux Mint Mate 18.3???
Re: NSA320 u-boot installation problem 1 June 29, 2018 05:45PM |
Registered: 9 years ago Posts: 16 |
Re: NSA320 u-boot installation problem 2 June 29, 2018 06:14PM |
Registered: 9 years ago Posts: 16 |
Re: NSA320 u-boot installation problem 2 June 29, 2018 06:32PM |
Admin Registered: 13 years ago Posts: 18,495 |
Quote
4a. Boot with DTB file (standard way to boot FDT kernel). Recommended.
- Generate the uImage and uInitrd (the kernel files vmlinuz-4.17.2-kirkwood-tld-1 and initramfs-4.17.2-kirkwood-tld-1 were generated by dpkg in Step 3):
cd /boot
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.17.2-kirkwood-tld-1 -d vmlinuz-4.17.2-kirkwood-tld-1 uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.17.2-kirkwood-tld-1 -d initrd.img-4.17.2-kirkwood-tld-1 uInitrd
- Set U-Boot envs for booting. The u-boot envs below are for 1st time upgrading, you don't need to do this step if you've installed the latest U-Boot for Kirkwood. Or you are upgrading from my previous released kernel. Just make sure the DTB file is the correct one for your box, replace kirkwood-goflexnet.dtb below with the correct DTB name for your box.
fw_setenv load_dtb 'ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-goflexnet.dtb'
fw_setenv load_initrd 'ext2load usb 0:1 0x1100000 /boot/uInitrd'
fw_setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
fw_setenv usb_boot 'run load_dtb; run load_uimage; if run load_initrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi'
4b. Boot with DTB file embedded in the kernel image (no U-Boot envs changes are needed if your system already booting on USB or HDD)
Again, please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box.
Generate the uImage and uInitrd (the kernel files vmlinuz-4.17.2-kirkwood-tld-1 and initramfs-4.17.2-kirkwood-tld-1 were generated by dpkg in Step 3):
cd /boot
mv uImage uImage.orig
cp -a zImage-4.17.2-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.17.2-kirkwood-tld-1 -d zImage.fdt uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.17.2-kirkwood-tld-1 -d initrd.img-4.17.2-kirkwood-tld-1 uInitrd
cp -a uImage.orig uImage
setenv dtb_file bootAfter it booted into Debian,
cd /boot cp -a uImage.orig uImage syncand reboot.