NSA 320 update to kernel 5.6.5 not booting April 28, 2020 10:13AM |
Registered: 6 years ago Posts: 29 |
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:46:11 -0700) ZyXEL NSA320 2-Bay Power Media Server SoC: Kirkwood 88F6281_A1 DRAM: 512 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 MV88E1318 PHY initialized on egiga0 Hit any key to stop autoboot: 0 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... Use USB retry period from the environment: 15 second(s) 1 Storage Device(s) found Reset IDE: Bus 0: OK Bus 1: OK Device 0: Model: WDC WD40EFRX-68WT0N0 Firm: 82.00A82 Ser#: WD-WCC4E6XEX0TT Type: Hard Disk Supports 48-bit addressing Capacity: 3815447.8 MB = 3726.0 GB (7814037168 x 512) Device 1: Model: WDC WD40EFRX-68N32N0 Firm: 82.00A82 Ser#: WD-WCC7K1JJ10NV Type: Hard Disk Supports 48-bit addressing Capacity: 3815447.8 MB = 3726.0 GB (7814037168 x 512) Unknown command 'mmc' - try 'help' Partition Map for USB device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 61339648 000b6a86-01 83 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 loading envs from usb 0 ... ** File not found /boot/uEnv.txt ** Partition Map for IDE device 0 -- Partition Type: EFI Part Start LBA End LBA Name Attributes Type GUID Partition GUID 1 0x00000800 0x1d1c0b7ff "" attrs: 0x0000000000000000 type: 0fc63daf-8483-4772-8e79-3d69d8477de4 type: linux guid: c379d15d-2159-4dcb-a46b-351ae6ae1d44 Partition Map for IDE device 1 -- Partition Type: EFI Part Start LBA End LBA Name Attributes Type GUID Partition GUID 1 0x00000800 0x1d1c0b7ff "" attrs: 0x0000000000000000 type: 0fc63daf-8483-4772-8e79-3d69d8477de4 type: linux guid: c7c07782-7ac8-48c3-8274-2ca7baa16f4a Unknown command 'mmc' - try 'help' running scan_disk ... Scan device usb device usb 0:1 1 bytes read in 692 ms (0 Bytes/s) Found bootable drive on usb 0 loading uImage ... 5409256 bytes read in 1003 ms (5.1 MiB/s) loading uInitrd ... 12944766 bytes read in 1149 ms (10.7 MiB/s) loading DTB /boot/dts/kirkwood-nsa320.dtb ... 13153 bytes read in 2675 ms (3.9 KiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-5.6.5-kirkwood-tld-1 Created: 2020-04-28 15:00:43 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5409192 Bytes = 5.2 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-5.6.5-kirkwood-tld-1 Created: 2020-04-28 15:01:11 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 12944702 Bytes = 12.3 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... Bad Data CRC Error occured, error code = 12 Ramdisk image is corrupt or invalid
Re: NSA 320 update to kernel 5.6.5 not booting April 28, 2020 04:25PM |
Admin Registered: 13 years ago Posts: 18,896 |
cp -a uInird.bak uInitrd
Re: NSA 320 update to kernel 5.6.5 not booting April 28, 2020 04:39PM |
Registered: 6 years ago Posts: 29 |
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.6.5-kirkwood-tld-1 -d initrd.img-5.6.5-kirkwood-tld-1 uInitrd
Re: NSA 320 update to kernel 5.6.5 not booting April 28, 2020 05:57PM |
Admin Registered: 13 years ago Posts: 18,896 |
Re: NSA 320 update to kernel 5.6.5 not booting April 28, 2020 06:01PM |
Registered: 6 years ago Posts: 29 |
Re: NSA 320 update to kernel 5.6.5 not booting April 28, 2020 06:08PM |
Admin Registered: 13 years ago Posts: 18,896 |
dpkg --purge linux-image-5.6.5-kirkwood-tld-1
Re: NSA 320 update to kernel 5.6.5 not booting April 28, 2020 09:13PM |
Registered: 6 years ago Posts: 29 |
root@NSA320:/boot# tar -xvf linux-5.6.5-kirkwood-tld-1-bodhi.tar.bz2 linux-image-5.6.5-kirkwood-tld-1_1.0_armel.deb linux-headers-5.6.5-kirkwood-tld-1_1.0_armel.deb config-5.6.5-kikrwood-tld-1 zImage-5.6.5-kikrwood-tld-1 linux-dtb-5.6.5-kirkwood-tld-1.tar linux-5.6.5-kirkwood-tld-1.patch root@NSA320:/boot# tar -xf linux-dtb-5.6.5-kirkwood-tld-1.tar root@NSA320:/boot# dpkg -i linux-image-5.6.5-kirkwood-tld-1_1.0_armel.deb Selecting previously unselected package linux-image-5.6.5-kirkwood-tld-1. (Reading database ... 40447 files and directories currently installed.) Preparing to unpack linux-image-5.6.5-kirkwood-tld-1_1.0_armel.deb ... Unpacking linux-image-5.6.5-kirkwood-tld-1 (1.0) ... Setting up linux-image-5.6.5-kirkwood-tld-1 (1.0) ... update-initramfs: Generating /boot/initrd.img-5.6.5-kirkwood-tld-1 root@NSA320:/boot# sync root@NSA320:/boot# cd /boot root@NSA320:/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.6.5-kirkwood-tld-1 -d vmlinuz-5.6.5-kirkwood-tld-1 uImage Image Name: Linux-5.6.5-kirkwood-tld-1 Created: Tue Apr 28 22:03:25 2020 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5409192 Bytes = 5282.41 KiB = 5.16 MiB Load Address: 00008000 Entry Point: 00008000 root@NSA320:/boot# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.6.5-kirkwood-tld-1 -d initrd.img-5.6.5-kirkwood-tld-1 uInitrd Image Name: initramfs-5.6.5-kirkwood-tld-1 Created: Tue Apr 28 22:03:42 2020 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 12944762 Bytes = 12641.37 KiB = 12.35 MiB Load Address: 00000000 Entry Point: 00000000
Re: NSA 320 update to kernel 5.6.5 not booting April 28, 2020 09:58PM |
Admin Registered: 13 years ago Posts: 18,896 |
root@NSA320:/boot# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.6.5-kirkwood-tld-1 -d initrd.img-5.6.5-kirkwood-tld-1 uInitrd Image Name: initramfs-5.6.5-kirkwood-tld-1 Created: Tue Apr 28 22:03:42 2020 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 12944762 Bytes = 12641.37 KiB = 12.35 MiB Load Address: 00000000 Entry Point: 00000000
-rw-r--r-- 1 root root 9.3M Apr 18 01:19 initrd.img-5.6.5-kirkwood-tld-1 -rw-r--r-- 1 root root 9.3M Apr 18 01:20 uInitrd
Re: NSA 320 update to kernel 5.6.5 not booting April 28, 2020 10:06PM |
Registered: 6 years ago Posts: 29 |
-rw-r--r-- 1 root root 13182617 Apr 28 11:12 initrd.img-5.5.1-kirkwood-tld-1 -rw-r--r-- 1 root root 12944762 Apr 28 22:02 initrd.img-5.6.5-kirkwood-tld-1
config-5.6.5-kikrwood-tld-1 zImage-5.6.5-kikrwood-tld-1
Re: NSA 320 update to kernel 5.6.5 not booting April 28, 2020 10:28PM |
Admin Registered: 13 years ago Posts: 18,896 |
> config-5.6.5-kikrwood-tld-1 > zImage-5.6.5-kikrwood-tld-1 >>
Re: NSA 320 update to kernel 5.6.5 not booting April 29, 2020 06:55PM |
Registered: 6 years ago Posts: 29 |
Re: NSA 320 update to kernel 5.6.5 not booting May 27, 2020 05:43PM |
Registered: 5 years ago Posts: 11 |
MODULES=dep BUSYBOX=nAfter that sizes of initrd and uInitrd files were reduced to about 7.7MB - and the system managed to boot smoothly.
Re: NSA 320 update to kernel 5.6.5 not booting May 27, 2020 11:48PM |
Admin Registered: 13 years ago Posts: 18,896 |
> MODULES=dep > BUSYBOX=n >> After that sizes of initrd and uInitrd files were
Re: NSA 320 update to kernel 5.6.5 not booting May 28, 2020 10:44AM |
Registered: 5 years ago Posts: 258 |
Re: NSA 320 update to kernel 5.6.5 not booting May 28, 2020 04:52PM |
Admin Registered: 13 years ago Posts: 18,896 |
Re: NSA 320 update to kernel 5.6.5 not booting May 28, 2020 05:30PM |
Registered: 5 years ago Posts: 258 |
Re: NSA 320 update to kernel 5.6.5 not booting May 29, 2020 06:04AM |
Admin Registered: 13 years ago Posts: 18,896 |
Re: NSA 320 update to kernel 5.6.5 not booting May 29, 2020 08:42AM |
Registered: 5 years ago Posts: 258 |
qemu-debootstrap --arch armel --include=flash-kernel,haveged,openssh-server,busybox,libpam-systemd,dbus,u-boot-tools buster "$target" http://deb.debian.org/debian/
Re: NSA 320 update to kernel 5.6.5 not booting May 29, 2020 05:33PM |
Admin Registered: 13 years ago Posts: 18,896 |
> qemu-debootstrap --arch armel > --include=flash-kernel,haveged,openssh-server,busybox,libpam-systemd,dbus,u-boot-tools > buster "$target" http://deb.debian.org/debian/ >
Re: NSA 320 update to kernel 5.6.5 not booting June 10, 2020 08:49AM |
Registered: 6 years ago Posts: 29 |
Re: NSA 320 update to kernel 5.6.5 not booting June 10, 2020 04:26PM |
Registered: 5 years ago Posts: 125 |
Re: NSA 320 update to kernel 5.6.5 not booting June 10, 2020 04:34PM |
Admin Registered: 13 years ago Posts: 18,896 |
Quote
4a. Boot with DTB file (standard way to boot FDT kernel). Recommended.
- Generate the uImage and uInitrd (the kernel files vmlinuz-5.6.5-kirkwood-tld-1 and initrd.img-5.6.5-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-5.6.5-kirkwood-tld-1 -d vmlinuz-5.6.5-kirkwood-tld-1 uImage mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.6.5-kirkwood-tld-1 -d initrd.img-5.6.5-kirkwood-tld-1 uInitrd
Marian
Re: NSA 320 update to kernel 5.6.5 not booting February 24, 2021 01:34PM |