Need a help with upgrading nsa 325 v2 kernel March 26, 2025 09:26AM |
Registered: 9 years ago Posts: 44 |
Re: Need a help with upgrading nsa 325 v2 kernel March 26, 2025 12:38PM |
Admin Registered: 14 years ago Posts: 19,556 |
Quote
https://forum.doozan.com/read.php?2,135322
1. Change the default modules loading to dep.
Edit the file /etc/initramfs-tools/initramfs.conf
# MODULES: [ most | netboot | dep | list ]
# dep - Try and guess which modules to load.
MODULES=dep
2. Update initramfs
I'm using the kernel 6.3.5-kirkwood-tld-1 as an example here. Adjust this to the appropriate version number to the running kernel in your system (run uname -a to display current kernel version).
cd /boot
ls -lh initrd.img-6.3.5-kirkwood-tld-1
update-initramfs -u
ls -larth /boot
devices=usb ide
Re: Need a help with upgrading nsa 325 v2 kernel March 26, 2025 01:52PM |
Registered: 9 years ago Posts: 44 |
Re: Need a help with upgrading nsa 325 v2 kernel March 26, 2025 02:31PM |
Registered: 9 years ago Posts: 44 |
➜ /boot nano /etc/initramfs-tools/initramfs.conf ➜ /boot update-initramfs -u update-initramfs: Generating /boot/initrd.img-6.13.8-kirkwood-tld-1 ➜ /boot ls -lh /boot/uInitrd -rw-r--r-- 1 root root 13M Mar 26 15:02 /boot/uInitrd ➜ /boot ls -larth /boot total 158M -rwxr-xr-x 1 root root 4.8M Aug 18 2019 zImage-5.2.9-kirkwood-tld-1 -rw-r--r-- 1 root root 162K Aug 18 2019 config-5.2.9-kirkwood-tld-1 -rw------- 1 root root 4.8M Aug 18 2019 vmlinuz-5.2.9-kirkwood-tld-1 -rw------- 1 root root 3.0M Aug 18 2019 System.map-5.2.9-kirkwood-tld-1 -rw-r--r-- 1 root root 9.3M Aug 18 2019 linux-headers-5.2.9-kirkwood-tld-1_1.0_armel.deb -rw-r--r-- 1 root root 12M Mar 17 10:26 initrd.img-5.2.9-kirkwood-tld-1 -rwxr-xr-x 1 root root 5.8M Mar 24 20:59 vmlinuz-6.13.8-kirkwood-tld-1 -rw-r--r-- 1 root root 194K Mar 24 20:59 config-6.13.8-kirkwood-tld-1 -rw-r--r-- 1 root root 4.2M Mar 24 20:59 System.map-6.13.8-kirkwood-tld-1 -rwxr-xr-x 1 root root 5.8M Mar 24 22:34 zImage-6.13.8-kirkwood-tld-1 -rw-r--r-- 1 root root 8.2M Mar 24 22:43 linux-headers-6.13.8-kirkwood-tld-1_1_armel.deb -rw-r--r-- 1 root root 31M Mar 24 22:43 linux-image-6.13.8-kirkwood-tld-1_1_armel.deb drwxr-xr-x 2 root root 4.0K Mar 24 22:53 dts -rw-r--r-- 1 root root 1.5M Mar 24 22:54 linux-dtb-6.13.8-kirkwood-tld-1.tar -rw-r--r-- 1 root root 176K Mar 25 04:57 linux-6.13.8-kirkwood-tld-1.patch drwxr-xr-x 20 root root 4.0K Mar 26 14:46 .. -rw-r--r-- 1 root root 45M Mar 26 14:48 linux-6.13.8-kirkwood-tld-1-bodhi.tar.bz2 -rw-r--r-- 1 root root 5.8M Mar 26 15:00 uImage -rw-r--r-- 1 root root 13M Mar 26 15:02 uInitrd -rw-r--r-- 1 root root 105 Mar 26 15:15 uEnv.txt -rw-r--r-- 1 root root 6.4M Mar 26 20:26 initrd.img-6.13.8-kirkwood-tld-1 drwxr-xr-x 3 root root 4.0K Mar 26 20:26 .uInitrd is 13 MB
dtb_file=/boot/dts/kirkwood-nsa325.dtb devices= usb ide disks=0 1 2 3 4 5 6 7 load_dtb_addr=0x2c00000
Re: Need a help with upgrading nsa 325 v2 kernel March 26, 2025 02:32PM |
Admin Registered: 14 years ago Posts: 19,556 |
printenvPost the serial console log here. Don't boot until I can take a look.
fw_printenv cat /boot/uEnv.txt ls -larth /bootAnd post the log of the above commands here. Don't reboot until I can take a look.
Re: Need a help with upgrading nsa 325 v2 kernel March 26, 2025 02:36PM |
Admin Registered: 14 years ago Posts: 19,556 |
Quote
3. Recreate the boot file uInitrd
So now we have a new initrd.img-6.3.5-kirkwood-tld-1 file, we need to recreate uInitrd.
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-6.3.5-kirkwood-tld-1 -d initrd.img-6.3.5-kirkwood-tld-1 uInitrd
sync
Re: Need a help with upgrading nsa 325 v2 kernel March 26, 2025 02:42PM |
Registered: 9 years ago Posts: 44 |
➜ /boot dpkg -i linux-image-6.13.8-kirkwood-tld-1_1_armel.deb (Reading database ... 43407 files and directories currently installed.) Preparing to unpack linux-image-6.13.8-kirkwood-tld-1_1_armel.deb ... Unpacking linux-image-6.13.8-kirkwood-tld-1 (1) over (1) ... Setting up linux-image-6.13.8-kirkwood-tld-1 (1) ... update-initramfs: Generating /boot/initrd.img-6.13.8-kirkwood-tld-1 ➜ /boot mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-6.13.8-kirkwood-tld-1 -d initrd.img-6.13.8-kirkwood-tld-1 uInitrd Image Name: initramfs-6.13.8-kirkwood-tld-1 Created: Wed Mar 26 20:40:22 2025 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 6614977 Bytes = 6459.94 KiB = 6.31 MiB Load Address: 00000000 Entry Point: 00000000 ➜ /boot sync ➜ /boot ls -lh /boot/uInitrd -rw-r--r-- 1 root root 6.4M Mar 26 20:40 /boot/uInitrd
Re: Need a help with upgrading nsa 325 v2 kernel March 26, 2025 02:46PM |
Admin Registered: 14 years ago Posts: 19,556 |
Re: Need a help with upgrading nsa 325 v2 kernel March 26, 2025 02:49PM |
Registered: 9 years ago Posts: 44 |
Re: Need a help with upgrading nsa 325 v2 kernel March 26, 2025 03:38PM |
Admin Registered: 14 years ago Posts: 19,556 |
dtb_file=/boot/dts/kirkwood-nsa325.dtbYou can do
fw_printenvand it will list all u-boot envs, including that model name.
Re: Need a help with upgrading nsa 325 v2 kernel March 27, 2025 06:06AM |
Registered: 9 years ago Posts: 44 |