Kernel 6.8.7: no mtd devices on my NAS326 May 18, 2024 07:18AM |
Registered: 13 years ago Posts: 43 |
root@nas326:~# dmesg | grep -i nand [ 0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=pxa3xx_nand-0:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2) earlyprintk=serial [ 2.612649] marvell-nfc f10d0000.flash: too many NAND chips: 7 (max = 4 CS) root@nas326:~# modprobe mtdblock root@nas326:~# fw_printenv Configuration file wrong or corrupted root@nas326:~# ls -la /dev/m* crw-r----- 1 root kmem 1, 1 May 18 05:04 /dev/mem /dev/mapper: total 0 drwxr-xr-x 2 root root 60 May 18 05:03 . drwxr-xr-x 13 root root 12880 May 18 05:04 .. crw------- 1 root root 10, 236 May 18 05:04 control root@nas326:~#
Re: Kernel 6.8.7: no mtd devices on my NAS326 May 18, 2024 02:03PM |
Admin Registered: 13 years ago Posts: 19,107 |
[Sat May 18 05:15:08 2024] marvell-nfc f10d0000.flash: too many NAND chips: 7 (max = 4 CS) [Sat May 18 05:15:08 2024] marvell-nfc: probe of f10d0000.flash failed with error -22
Re: Kernel 6.8.7: no mtd devices on my NAS326 May 18, 2024 02:23PM |
Admin Registered: 13 years ago Posts: 19,107 |
cat /proc/cmdline
Re: Kernel 6.8.7: no mtd devices on my NAS326 May 19, 2024 05:12AM |
Registered: 13 years ago Posts: 43 |
root@nas326:~# cat /proc/cmdline console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=pxa3xx_nand-0:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2) earlyprintk=serial root@nas326:~#
Activating swap:. [ 25.032611][ T1574] EXT4-fs (sda1): re-mounted 62189c02-7649-443b-9a7e-0d694bff0270 ro. Quota mode: none. Will now check root file system:[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 e2fsck 1.47.0 (5-Feb-2023) fsck.ext3: Device or resource busy while trying to open /dev/sda1 Filesystem mGive root password for maintenance
Re: Kernel 6.8.7: no mtd devices on my NAS326 May 19, 2024 03:08PM |
Admin Registered: 13 years ago Posts: 19,107 |
Quote
Since the box has an old U-Boot, I initially used the 4.9.0 rootfs to boot into Debian. In this 4.9.0 system, I created the 6.8.7 uImage and uInitrd using dpkg. Subsequently, I removed the 4.9.0 system, unpacked the 6.6.2 rootfs, and replaced the boot directory with the one I had generated in 4.9.0.
Re: Kernel 6.8.7: no mtd devices on my NAS326 May 19, 2024 03:55PM |
Registered: 13 years ago Posts: 43 |
Found 1 device(s). 5179584 bytes read in 170 ms (29.1 MiB/s) 5257173 bytes read in 169 ms (29.7 MiB/s) ## Booting kernel from Legacy Image at 02000000 ... Image Name: Linux-6.6.2-mvebu-tld-1 Created: 2023-12-12 22:01:11 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5179520 Bytes = 4.9 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 02900000 ... Image Name: initramfs-6.6.2-mvebu-tld-1 Created: 2023-12-12 22:03:52 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 5257109 Bytes = 5 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Error: invalid dtb and unrecognized/unsupported machine ID r1=0x00000210, r2=0x00000100 r2[]=05 00 00 00 01 00 41 54 00 00 00 00 00 00 00 00 Available machine support: ID (hex) NAME ffffffff Generic DT based system ffffffff Marvell MMP2 (Device Tree Support) ffffffff Marvell MMP3 ffffffff Marvell Armada 39x (Device Tree) ffffffff Marvell Armada 380/385 (Device Tree) ffffffff Marvell Armada 375 (Device Tree) ffffffff Marvell Armada 370/XP (Device Tree) ffffffff Marvell Dove Please check your kernel config and/or bootloader.
Re: Kernel 6.8.7: no mtd devices on my NAS326 May 19, 2024 04:27PM |
Admin Registered: 13 years ago Posts: 19,107 |
3. Create uImage with DTB appended. I am using the Zyxel NAS326 as an example here. Please replace armada-380-zyxel-nas326.dtb below with the appropriate DTB name for your box. cd /media/sdb1/boot cp -a uImage uImage.orig cp -a zImage-6.6.2-mvebu-tld-1 zImage.fdt cat dts/armada-380-zyxel-nas326.dtb >> zImage.fdt mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-6.6.2-mvebu-tld-1 -d zImage.fdt uImage
Re: Kernel 6.8.7: no mtd devices on my NAS326 May 20, 2024 03:30AM |
Registered: 13 years ago Posts: 43 |
fw_setenv /boot/dts/armada-380-zyxel-nas326.dtb
Re: Kernel 6.8.7: no mtd devices on my NAS326 May 20, 2024 02:08PM |
Admin Registered: 13 years ago Posts: 19,107 |
> fw_setenv /boot/dts/armada-380-zyxel-nas326.dtb >