Debian on Ionics Nimbus 100 October 04, 2024 06:09PM |
Registered: 2 months ago Posts: 60 |
[ 6.409884][ T8] usb 1-1: New USB device found, idVendor=05dc, idProduct=a701, bcdDevice=11.00 [ 6.418850][ T8] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 6.439428][ T8] usb 1-1: Product: JD FIREFLY [ 6.444099][ T8] usb 1-1: Manufacturer: LEXAR [ 6.448750][ T8] usb 1-1: SerialNumber: 1069A704000328051007 [ 6.470773][ T8] usb-storage 1-1:1.0: USB Mass Storage device detected [ 6.490204][ T8] scsi host0: usb-storage 1-1:1.0 [ 7.530971][ T32] scsi 0:0:0:0: Direct-Access LEXAR JD FIREFLY 1100 PQ: 0 ANSI: 0 CCS [ 7.554415][ T32] sd 0:0:0:0: [sda] 7864320 512-byte logical blocks: (4.03 GB/3.75 GiB) [ 7.570165][ T32] sd 0:0:0:0: [sda] Write Protect is off [ 7.579783][ T32] sd 0:0:0:0: [sda] No Caching mode page found [ 7.585872][ T32] sd 0:0:0:0: [sda] Assuming drive cache: write through [ 7.617530][ T32] sda: sda1 [ 7.621207][ T32] sd 0:0:0:0: [sda] Attached SCSI removable diskThat is very good news. Unfortunately, the Linux 6.10.11-kirkwood-tld-1 kernel was built with UBIFS=m, which causes the failure to mount the flash ubi0:rootfs shown at the end of this post. You will see there that the list of all bdev filesystems built into the kernel is missing ubifs:
[ 19.716242][ T1] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,253): error -19 [ 19.725257][ T1] Please append a correct "root=" boot option; here are the available partitions: [ 19.734421][ T1] List of all bdev filesystems: [ 19.739153][ T1] ext3 [ 19.739161][ T1] ext4 [ 19.741840][ T1] exfat [ 19.744482][ T1] fuseblk [ 19.747200][ T1] xfs
Marvell>> setenv bootcmd_ubi 'ubi part rootfs; ubifsmount rootfs; ubifsload 0x00800000 /boot/uImage' Marvell>> setenv ubi_boot 'init_ionics mode bootup; run bootcmd_ubi; run set_ubi_bootargs; bootm 0x00800000' Marvell>> setenv ubi_bootargs console=ttyS0,115200 cmdlinepart.$(mtdparts) Marvell>> setenv set_ubi_bootargs 'setenv bootargs $(ubi_bootargs) ubi.mtd=rootfs rootfstype=ubifs root=ubi0:rootfs rw rootdelay=10 noswap earlyprintk=serial' Marvell>> setenv ubi_bootcmd 'setenv bootcmd $(ubi_boot); saveenv' Marvell>> run ubi_bootcmd Saving Environment to NAND... Erasing Nand... Erasing at 0x60000 -- 100% complete. Writing to Nand... doneThe U-Boot boot of the Linux 6.10.11-kirkwood-tld-1 kernel from the UBI rootfs /boot/uImage, to the point where the booted Linux kernel cannot mount the ubi0:rootfs rootfs and panics:
Marvell>> reset resetting ... U-Boot 2011.03-rc1 (Jun 23 2011 - 14:26:27) IONICS-PlugComputer NIMBUS E0 SoC: Kirkwood 88F6281_A0 DRAM: 512 MiB NAND: 512 MiB In: serial Out: serial Err: serial Net: egiga0 88E1116 Initialized on egiga0 Hit any key to stop autoboot: 0 Creating 1 MTD partitions on "nand0": 0x000000a00000-0x000020000000 : "mtd=3" UBI: attaching mtd1 to ubi0 UBI: physical eraseblock size: 131072 bytes (128 KiB) UBI: logical eraseblock size: 129024 bytes UBI: smallest flash I/O unit: 2048 UBI: sub-page size: 512 UBI: VID header offset: 512 (aligned 512) UBI: data offset: 2048 UBI: attached mtd1 to ubi0 UBI: MTD device name: "mtd=3" UBI: MTD device size: 502 MiB UBI: number of good PEBs: 4015 UBI: number of bad PEBs: 1 UBI: max. allowed volumes: 128 UBI: wear-leveling threshold: 4096 UBI: number of internal volumes: 1 UBI: number of user volumes: 1 UBI: available PEBs: 39 UBI: total number of reserved PEBs: 3976 UBI: number of PEBs reserved for bad PEB handling: 40 UBI: max/mean erase counter: 29/20 UBIFS: mounted UBI device 0, volume 0, name "rootfs" UBIFS: mounted read-only UBIFS: file system size: 505257984 bytes (493416 KiB, 481 MiB, 3916 LEBs) UBIFS: journal size: 25288704 bytes (24696 KiB, 24 MiB, 196 LEBs) UBIFS: media format: w5/r0 (latest is w4/r0) UBIFS: default compressor: LZO UBIFS: reserved for root: 5182151 bytes (5060 KiB) Loading file '/boot/uImage' to addr 0x00800000 with size 6185336 (0x005e6178)... Done ## Booting kernel from Legacy Image at 00800000 ... Image Name: kernel 6.10.11-kirkwood-tld-1 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 6185272 Bytes = 5.9 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... [ 0.000000][ T0] Booting Linux on physical CPU 0x0 [ 0.000000][ T0] Linux version 6.10.11-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils f4 [ 0.000000][ T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000][ T0] CPU: VIVT data cache, VIVT instruction cache [ 0.000000][ T0] OF: fdt: Machine model: Globalscale Technologies SheevaPlug [ 0.000000][ T0] printk: legacy bootconsole [earlycon0] enabled <snip> [ 0.000000][ T0] Kernel command line: console=ttyS0,115200 cmdlinepart.mtdparts=orion_nand:1m@0m(u-boot),4m@1m(kernel),5m@5m(l [ 0.000000][ T0] Unknown kernel command line parameters "noswap", will be passed to user space. <snip> [ 4.954833][ T1] 4 cmdlinepart partitions found on MTD device orion_nand [ 4.961861][ T1] Creating 4 MTD partitions on "orion_nand": [ 4.967739][ T1] 0x000000000000-0x000000100000 : "u-boot" [ 4.974284][ T1] 0x000000100000-0x000000500000 : "kernel" [ 4.980842][ T1] 0x000000500000-0x000000a00000 : "pluginfo" [ 4.987568][ T1] 0x000000a00000-0x000020000000 : "rootfs" <snip> [ 8.649097][ T1] ubi0: attaching mtd3 [ 9.278672][ T1] ubi0: scanning is finished [ 9.302685][ T1] ubi0: attached mtd3 (name "rootfs", size 502 MiB) [ 9.309199][ T1] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes [ 9.316862][ T1] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512 [ 9.324325][ T1] ubi0: VID header offset: 512 (aligned 512), data offset: 2048 [ 9.331869][ T1] ubi0: good PEBs: 4015, bad PEBs: 1, corrupted PEBs: 0 [ 9.338704][ T1] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128 [ 9.346696][ T1] ubi0: max/mean erase counter: 29/20, WL threshold: 4096, image sequence number: 1245509428 [ 9.356775][ T1] ubi0: available PEBs: 0, total reserved PEBs: 4015, PEBs reserved for bad PEB handling: 79 [ 9.366870][ T129] ubi0: background thread "ubi_bgt0d" started, PID 129 <snip> [ 19.716242][ T1] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,253): error -19 [ 19.725257][ T1] Please append a correct "root=" boot option; here are the available partitions: [ 19.734421][ T1] List of all bdev filesystems: [ 19.739153][ T1] ext3 [ 19.739161][ T1] ext4 [ 19.741840][ T1] exfat [ 19.744482][ T1] fuseblk [ 19.747200][ T1] xfs [ 19.750148][ T1] [ 19.754895][ T1] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,253) [ 19.764077][ T1] CPU: 0 PID: 1 Comm: swapper Not tainted 6.10.11-kirkwood-tld-1 #1 211932710076a3f6d6304997ca04b9111b47c9c4 [ 19.775533][ T1] Hardware name: Marvell Kirkwood (Flattened Device Tree) [ 19.782537][ T1] Call trace: [ 19.782552][ T1] unwind_backtrace from show_stack+0x10/0x14 [ 19.791781][ T1] show_stack from panic+0xf0/0x334 [ 19.796882][ T1] panic from mount_root_generic+0x1d0/0x2a8 [ 19.802768][ T1] mount_root_generic from prepare_namespace+0x1b8/0x244 [ 19.809700][ T1] prepare_namespace from kernel_init_freeable+0x1bc/0x20c [ 19.816806][ T1] kernel_init_freeable from kernel_init+0x10/0x138 [ 19.823312][ T1] kernel_init from ret_from_fork+0x14/0x28 [ 19.829108][ T1] Exception stack(0xa0819fb0 to 0xa0819ff8) [ 19.834895][ T1] 9fa0: 00000000 00000000 00000000 00000000 [ 19.843817][ T1] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 19.852744][ T1] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 19.860099][ T1] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,253) ]---]http://www.linux-mtd.infradead.org/faq/ubifs.html[/url]:
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 04, 2024 07:42PM |
Admin Registered: 13 years ago Posts: 19,102 |
Quote
https://forum.doozan.com/read.php?2,12096
Updated 26 Jun 2024:
Kernel linux-6.9.6-kirkwood-tld-1 package has been uploaded. The following features were added/updated:
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 05, 2024 12:58AM |
Registered: 2 months ago Posts: 60 |
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 05, 2024 01:24AM |
Registered: 2 months ago Posts: 60 |
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 05, 2024 12:58PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 15, 2024 04:29PM |
Registered: 2 months ago Posts: 60 |
[ 6.159535][ T8] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 6.382035][ T8] usb 1-1: New USB device found, idVendor=05dc, idProduct=a701, bcdDevice=11.00 [ 6.399384][ T8] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 6.407270][ T8] usb 1-1: Product: JD FIREFLY [ 6.429394][ T8] usb 1-1: Manufacturer: LEXAR [ 6.434061][ T8] usb 1-1: SerialNumber: 1069A704000328051007 [ 6.450718][ T8] usb-storage 1-1:1.0: USB Mass Storage device detected [ 6.470156][ T8] scsi host0: usb-storage 1-1:1.0 [ 7.530997][ T20] scsi 0:0:0:0: Direct-Access LEXAR JD FIREFLY 1100 PQ: 0 ANSI: 0 CCS [ 7.554439][ T20] sd 0:0:0:0: [sda] 7864320 512-byte logical blocks: (4.03 GB/3.75 GiB) [ 7.570067][ T20] sd 0:0:0:0: [sda] Write Protect is off [ 7.579684][ T20] sd 0:0:0:0: [sda] No Caching mode page found [ 7.585767][ T20] sd 0:0:0:0: [sda] Assuming drive cache: write through [ 7.620052][ T20] sda: sda1 [ 7.623781][ T20] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 8.621843][ T8] usb 1-1: USB disconnect, device number 2The only kernel that works with a USB drive on my Nimbus is the Debian 11 5.10.0-32-marvell kernel. But I have to run that from a USB drive because it does not have UBIFS support built into the kernel, which is a requirement to boot a UBIFS rootfs (the zstd compressor cannot be initialized).
$ cd ~/armel-kernel/linux-6.10.11 $ ARCH=arm CROSS_COMPILE=arm-none-eabi- make mrproper $ cp ../bodhi/config-6.10.11-kirkwood-tld-1 .config $ ARCH=arm CROSS_COMPILE=arm-none-eabi- make menuconfig Make the following changes: General setup ---> (-kirkwood-UBIFS) Local version - append to kernel release [*] Automatically append version information to the version string [*] Enable loadable module support ---> Module compression mode (XZ) ---> Device Drivers ---> <*> Memory Technology Device (MTD) support ---> <*> Enable UBI - Unsorted block images ---> --- Enable UBI - Unsorted block images *** LEAVE OPTIONS AS-IS *** File systems ---> < > Second extended fs support (DEPRECATED) <=== WAS <M> < > Reiserfs support (deprecated) <=== WAS <M> [*] Miscellaneous filesystems ---> <*> UBIFS file system support <=== WAS <M> < Exit > $ echo "=== `date` ===" ; \ ARCH=arm CROSS_COMPILE=arm-none-eabi- make -j `nproc` ; \ echo "=== `date` ==="The module compression option made a huge difference: the uncompressed kernel modules occupy over 90MB, the compressed kernel modules occupy only about 30 MB! And, FYI, you can compress the installed modules yourself without having to rebuild them. I did that for your linux-6.10.11-kirkwood-tld-1 kernel modules.
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 15, 2024 07:00PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 16, 2024 04:03PM |
Registered: 2 months ago Posts: 60 |
# uname -a Linux comlogger 5.10.0-32-marvell #1 Debian 5.10.223-1 (2024-08-10) armv5tel GNU/LinuxI always pass the cmdlinepart.mtdparts needed to access the MTD partitions in the U-Boot kernel command line. Here's what the Debian 11 USB system sees:
# cat /proc/cmdline console=ttyS0,115200 cmdlinepart.mtdparts=orion_nand:1m@0m(u-boot),4m@1m(kernel),5m@5m(pluginfo),-(rootfs) # cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 00400000 00020000 "kernel" mtd2: 00500000 00020000 "pluginfo" mtd3: 1f600000 00020000 "rootfs"On the Debian 11 USB system, I can mount the internal flash UBIFS rootfs file system (on mtd3) to access it like any other file system:
# ubiattach /dev/ubi_ctrl -m 3 [13527.035886] ubi0: attaching mtd3 [13527.672791] ubi0: scanning is finished [13527.698014] ubi0: attached mtd3 (name "rootfs", size 502 MiB) [13527.703897] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes [13527.710849] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512 [13527.717607] ubi0: VID header offset: 512 (aligned 512), data offset: 2048 [13527.724452] ubi0: good PEBs: 4015, bad PEBs: 1, corrupted PEBs: 0 [13527.730591] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128 [13527.737872] ubi0: max/mean erase counter: 33/23, WL threshold: 4096, image sequence number: 1245509428 [13527.747235] ubi0: available PEBs: 0, total reserved PEBs: 4015, PEBs reserved for bad PEB handling: 79 [13527.758435] ubi0: background thread "ubi_bgt0d" started, PID 738 UBI device number 0, total 4015 LEBs (518031360 bytes, 494.0 MiB), available 0 LEBs (0 bytes), LEB size 129024 bytes (126.0 KiB) # mount -t ubifs ubi0:rootfs /mnt/ubi [13535.137146] UBIFS (ubi0:0): Mounting in unauthenticated mode [13535.172813] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 758 [13535.261591] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs" [13535.269074] UBIFS (ubi0:0): LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes [13535.279084] UBIFS (ubi0:0): FS size: 505257984 bytes (481 MiB, 3916 LEBs), journal size 25288704 bytes (24 MiB, 196 LEBs) [13535.290115] UBIFS (ubi0:0): reserved for root: 4952683 bytes (4836 KiB) [13535.296781] UBIFS (ubi0:0): media format: w5/r0 (latest is w5/r0), UUID 61DD0181-325A-4973-8CC9-B622774C16AE, small LPT modelI have collected or built (cross-compiled on a Linux x86_64 PC) several kernels and their modules:
# ls -lh ~/armel-kernels/boot total 88M -rw-r--r--. 1 root root 38K Nov 28 2021 bodhi-config-5.15.5-kirkwood-tld-1.xz -rw-r--r--. 1 root root 38K Jun 24 2022 bodhi-config-5.18.6-kirkwood-tld-1.xz -rw-r--r--. 1 root root 40K Jun 21 14:33 bodhi-config-6.9.6-kirkwood-tld-1.xz -rw-r--r--. 1 root root 783K Nov 28 2021 bodhi-System.map-5.15.5-kirkwood-tld-1.xz -rw-r--r--. 1 root root 773K Jun 24 2022 bodhi-System.map-5.18.6-kirkwood-tld-1.xz -rw-r--r--. 1 root root 748K Jun 21 14:33 bodhi-System.map-6.9.6-kirkwood-tld-1.xz -rw-r--r--. 1 root root 5.5M Oct 14 15:32 bodhi-uImage-5.15.5-kirkwood-tld-1 -rw-r--r--. 1 root root 5.5M Oct 14 14:54 bodhi-uImage-5.18.6-kirkwood-tld-1 -rw-r--r--. 1 root root 6.0M Oct 13 12:46 bodhi-uImage-6.9.6-kirkwood-tld-1 -rwxr-xr-x. 1 root root 5.4M Nov 28 2021 bodhi-zImage-5.15.5-kirkwood-tld-1 -rwxr-xr-x. 1 root root 5.5M Jun 24 2022 bodhi-zImage-5.18.6-kirkwood-tld-1 -rwxr-xr-x. 1 root root 6.0M Jun 21 16:48 bodhi-zImage-6.9.6-kirkwood-tld-1 -rw-r--r-- 1 root root 39K Oct 16 12:48 config-5.10.223-marvell-UBIFS.xz -rw-r--r-- 1 root root 39K Oct 16 12:48 config-5.10.223-marvell.xz -rw-rw-r--. 1 baker baker 40K Oct 9 22:25 config-6.10.11-kirkwood-tld-1.xz -rw-rw-r--. 1 baker baker 40K Oct 10 13:43 config-6.10.11-kirkwood-UBIFS-2.xz -rw-rw-r--. 1 baker baker 40K Oct 9 18:35 config-6.10.11-kirkwood-UBIFS.xz -rw-r--r-- 1 root root 412K Oct 16 12:48 System.map-5.10.223-marvell-UBIFS.xz -rw-r--r-- 1 root root 394K Oct 16 12:48 System.map-5.10.223-marvell.xz -rw-rw-r--. 1 baker baker 749K Oct 9 22:25 System.map-6.10.11-kirkwood-tld-1.xz -rw-rw-r--. 1 baker baker 734K Oct 10 13:43 System.map-6.10.11-kirkwood-UBIFS-2.xz -rw-rw-r--. 1 baker baker 754K Oct 9 18:35 System.map-6.10.11-kirkwood-UBIFS.xz -rw-r--r-- 1 root root 2.4M Oct 16 13:13 uImage-5.10.223-marvell -rw-r--r-- 1 root root 2.6M Oct 16 13:14 uImage-5.10.223-marvell-UBIFS -rw-r--r--. 1 root root 5.9M Oct 12 13:28 uImage-6.10.11-kirkwood-tld-1 -rw-r--r--. 1 root root 6.0M Oct 12 13:28 uImage-6.10.11-kirkwood-UBIFS -rw-r--r--. 1 root root 5.9M Oct 12 13:28 uImage-6.10.11-kirkwood-UBIFS-2 -rwxr-xr-x 1 root root 2.4M Oct 16 12:49 zImage-5.10.223-marvell -rwxr-xr-x 1 root root 2.6M Oct 16 12:49 zImage-5.10.223-marvell-UBIFS -rwxrwxr-x. 1 baker baker 5.9M Oct 9 22:25 zImage-6.10.11-kirkwood-tld-1 -rwxrwxr-x. 1 baker baker 6.0M Oct 9 18:35 zImage-6.10.11-kirkwood-UBIFS -rwxrwxr-x. 1 baker baker 5.9M Oct 10 13:43 zImage-6.10.11-kirkwood-UBIFS-2 -rwxr-xr-x 1 root root 2.6M Oct 16 13:14 zImage.fdt # du -sh ~/armel-kernels/lib/modules/* 111M /root/armel-kernels/lib/modules/5.10.223-marvell 109M /root/armel-kernels/lib/modules/5.10.223-marvell-UBIFS 87M /root/armel-kernels/lib/modules/5.15.5-kirkwood-tld-1 87M /root/armel-kernels/lib/modules/5.18.6-kirkwood-tld-1 33M /root/armel-kernels/lib/modules/6.10.11-kirkwood-tld-1 33M /root/armel-kernels/lib/modules/6.10.11-kirkwood-UBIFS 32M /root/armel-kernels/lib/modules/6.10.11-kirkwood-UBIFS-2 33M /root/armel-kernels/lib/modules/6.9.6-kirkwood-tld-1The kernels with the "bodhi-" prefix are yours. I cross-compiled the others. The 6.10.11 kernels are based on your 6.10.11-kirkwood-tld-1 release: the tld-1 suffix is unchanged from your configuration; the UBIFS suffix adds kernel UBIFS support, compresses the kernel modules, and removes two deprecated file systems; the UBIFS-2 suffix removes most of the DEBUG options from the UBIFS version. The 5.10.223 kernels are based on the Debian 11 5.10.223 Marvell ARM kernel.
# ls -lh /mnt/ubi/boot total 26M -rw-r--r-- 1 root root 5.5M Oct 14 15:37 bodhi-uImage-5.15.5-kirkwood-tld-1 -rw-r--r-- 1 root root 5.5M Oct 14 15:01 bodhi-uImage-5.18.6-kirkwood-tld-1 -rw-r--r-- 1 root root 11K Oct 13 03:00 kirkwood-sheevaplug.dtb lrwxrwxrwx 1 root root 31 Oct 15 16:13 uImage -> uImage-6.10.11-kirkwood-UBIFS-2 -rw-r--r-- 1 root root 2.6M Oct 16 13:21 uImage-5.10.223-marvell-UBIFS -rw-r--r-- 1 root root 5.9M Oct 13 02:56 uImage-6.10.11-kirkwood-UBIFS-2 -rw-r--r-- 1 root root 6.0M Oct 13 12:30 uImage-6.9.6-kirkwood-tld-1 # du -sh /mnt/ubi/lib/modules/* 105M /mnt/ubi/lib/modules/5.10.223-marvell-UBIFS 84M /mnt/ubi/lib/modules/5.15.5-kirkwood-tld-1 84M /mnt/ubi/lib/modules/5.18.6-kirkwood-tld-1 30M /mnt/ubi/lib/modules/6.10.11-kirkwood-UBIFS-2 30M /mnt/ubi/lib/modules/6.9.6-kirkwood-tld-1My little flash UBIFS rootfs is just about full!:
# df -h /mnt/ubi Filesystem Size Used Avail Use% Mounted on ubi0:rootfs 453M 372M 77M 83% /mnt/ubiU-Boot loads the kernel from /boot/uImage. All I have to do is soft link /boot/uImage to the kernel I want to boot.
# ( cd /mnt/ubi/boot ; rm -f uImage ; ln -s uImage-6.9.6-kirkwood-tld-1 uImage )And then I reboot and stop the USB boot by interrupting U-Boot:
# reboot <snip> [76073.736985] reboot: Restarting system U-Boot 2011.03-rc1 (Jun 23 2011 - 14:26:27) IONICS-PlugComputer NIMBUS E0 SoC: Kirkwood 88F6281_A0 DRAM: 512 MiB NAND: 512 MiB In: serial Out: serial Err: serial Net: egiga0 88E1116 Initialized on egiga0 Hit any key to stop autoboot: 0 Marvell>>Here's the Nimbus 100 U-Boot 2011.03-rc1 (Jun 23 2011 - 14:26:27) environment variables:
Marvell>> printenv baudrate=115200 bootargs=console=ttyS0,115200 cmdlinepart.mtdparts=orion_nand:1m@0m(u-boot),4m@1m(kernel),5m@5m(pluginfo),-(rootfs) bootargs_console=console=ttyS0,115200 cmdlinepart.mtdparts=orion_nand:1m@0m(u-boot),4m@1m(kernel),5m@5m(pluginfo),-(rootfs) bootcmd=init_ionics mode bootup; run bootcmd_usb; setenv bootargs $(bootargs_console); bootm 0x00800000 0x01100000 bootcmd_ubi=ubi part rootfs; ubifsmount rootfs; ubifsload 0x00800000 /boot/uImage bootcmd_usb=usb start; ext2load usb 0:1 0x00800000 /boot/uImage; ext2load usb 0:1 0x01100000 /boot/uInitrd bootdelay=3 ethact=egiga0 ethaddr=00:26:db:00:00:00 ionicsplug_board=xxxxxxxxxx ionicsplug_firmware=xxxxxxxxxx ionicsplug_model=xxxxxxxxxx ionicsplug_part=xxxxxxxxxx ionicsplug_serial=xxxxxxxxxx load_initrd_mfg=usb start; fatload usb 0 0x800000 uImage; fatload usb 0 0x1200000 initrd.mfg load_initrd_usr=usb start; fatload usb 0 0x800000 uImage; run ubi_initrd mtddevname=u-boot mtddevnum=0 mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1m@0m(u-boot),4m@1m(kernel),5m@5m(pluginfo),-(rootfs) nand_kernel=nand read 0x800000 0x100000 0x400000 partition=nand0,0 reflash_mfg=init_ionics mode flashing ; run load_initrd_mfg ; setenv bootargs console=ttyS0,115200 $(mtdparts); bootm 0x800000 0x120 reflash_usr=init_ionics mode flashing ; run load_initrd_usr ; setenv bootargs console=ttyS0,115200 $(mtdparts); bootm 0x800000 0x120 set_ubi_bootargs=setenv bootargs $(ubi_bootargs) ubi.mtd=rootfs rootfstype=ubifs root=ubi0:rootfs rw earlyprintk=serial stderr=serial stdin=serial stdout=serial ubi_boot=init_ionics mode bootup; run bootcmd_ubi; run set_ubi_bootargs; bootm 0x00800000 ubi_bootargs=console=ttyS0,115200 cmdlinepart.mtdparts=orion_nand:1m@0m(u-boot),4m@1m(kernel),5m@5m(pluginfo),-(rootfs) ubi_bootcmd=setenv bootcmd $(ubi_boot); saveenv ubi_initrd=ubi part pluginfo; ubifsmount pluginfo; ubifsload 0x1200000 initrd.usr usb_boot=init_ionics mode bootup; run bootcmd_usb; setenv bootargs $(bootargs_console); bootm 0x00800000 0x01100000 usb_bootcmd=setenv bootcmd $(usb_boot); saveenv Environment size: 2133/131068 bytesI built the flash UBIFS rootfs (using debootstrap) without an initramfs, so U-Boot loads only the kernel uImage, no uInitrd. Unlike booting Debian 11 from the USB rootfs, which has both a uImage and a uInitrd.
Marvell>> run ubi_boot Creating 1 MTD partitions on "nand0": 0x000000a00000-0x000020000000 : "mtd=3" UBI: attaching mtd1 to ubi0 UBI: physical eraseblock size: 131072 bytes (128 KiB) UBI: logical eraseblock size: 129024 bytes UBI: smallest flash I/O unit: 2048 UBI: sub-page size: 512 UBI: VID header offset: 512 (aligned 512) UBI: data offset: 2048 UBI: attached mtd1 to ubi0 UBI: MTD device name: "mtd=3" UBI: MTD device size: 502 MiB UBI: number of good PEBs: 4015 UBI: number of bad PEBs: 1 UBI: max. allowed volumes: 128 UBI: wear-leveling threshold: 4096 UBI: number of internal volumes: 1 UBI: number of user volumes: 1 UBI: available PEBs: 39 UBI: total number of reserved PEBs: 3976 UBI: number of PEBs reserved for bad PEB handling: 40 UBI: max/mean erase counter: 33/23 UBIFS: mounted UBI device 0, volume 0, name "rootfs" UBIFS: mounted read-only UBIFS: file system size: 505257984 bytes (493416 KiB, 481 MiB, 3916 LEBs) UBIFS: journal size: 25288704 bytes (24696 KiB, 24 MiB, 196 LEBs) UBIFS: media format: w5/r0 (latest is w4/r0) UBIFS: default compressor: LZO UBIFS: reserved for root: 5182151 bytes (5060 KiB) Loading file '/boot/uImage' to addr 0x00800000 with size 6126192 (0x005d7a70)... Done ## Booting kernel from Legacy Image at 00800000 ... Image Name: kernel 6.10.11-kirkwood-UBIFS-2 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 6126128 Bytes = 5.8 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ...When Linux comes up, lsusb usually does not show any USB drives:
root@comlogger:~# uname -a Linux comlogger 6.10.11-kirkwood-UBIFS-2 #1 PREEMPT Thu Oct 10 13:31:58 PDT 2024 armv5tel GNU/Linux root@comlogger:~# lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubI have not yet tried my cross-compiled Debian 11 5.10.223-marvell-UBIFS with UBIFS kernel support. I'll run through several kernel boots and attach the console output and kernel config files for you.
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 16, 2024 06:39PM |
Admin Registered: 13 years ago Posts: 19,102 |
Quote
bodhi
Please post the serial boot log for running one of the latest of my kernel releases (perferably linux-6.9.6-kirkwood-tld-1). When you post the serial boot log, I like to see the entire boot log (from the u-boot banner, until the command lsusb).
Quote
https://forum.doozan.com/read.php?2,12096
Updated 26 Jun 2024:
Kernel linux-6.9.6-kirkwood-tld-1 package has been uploaded. The following features were added/updated:
md.l 0xF1010000 8 md.l 0xF1010100 1 md.l 0xF1010140 1 usb start md.l 0xF1010100 1 md.l 0xF1010140 1 run ubi_bootLog in and do
lsusb
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 16, 2024 07:00PM |
Registered: 2 months ago Posts: 60 |
$ grep -A 2 -w lsusb *.log bodhi-6.9.6-kirkwood-tld-1-UBIFS-rootfs.log:root@comlogger:~# lsusb bodhi-6.9.6-kirkwood-tld-1-UBIFS-rootfs.log-Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub bodhi-6.9.6-kirkwood-tld-1-UBIFS-rootfs.log-root@comlogger:~# ls /dev/sd* -- debian-11-5.10.223-1-marvell-USB-rootfs.log:root@comlogger:~# lsusb debian-11-5.10.223-1-marvell-USB-rootfs.log-Bus 001 Device 002: ID 05dc:a701 Lexar Media, Inc. JumpDrive FireFly debian-11-5.10.223-1-marvell-USB-rootfs.log-Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub -- my-5.10.223-marvell-UBIFS-UBIFS-rootfs.log:root@comlogger:~# lsusb my-5.10.223-marvell-UBIFS-UBIFS-rootfs.log-Bus 001 Device 002: ID 05dc:a701 Lexar Media, Inc. JumpDrive FireFly my-5.10.223-marvell-UBIFS-UBIFS-rootfs.log-Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub -- my-6.10.11-kirkwood-UBIFS-2-UBIFS-rootfs.log:root@comlogger:~# lsusb my-6.10.11-kirkwood-UBIFS-2-UBIFS-rootfs.log-Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub my-6.10.11-kirkwood-UBIFS-2-UBIFS-rootfs.log-root@comlogger:~# ls /dev/sd*I am actually in pretty good shape now. I can run Debian 12 off a flash UBIFS rootfs using the Debian 11 kernel, modified to add UBIFS support. (The Debian 12 kernel suffers from the same failure to enumerate the USB drive, which is why I had to install Debian 11 on my USB drive in the first place.)
Re: Please add built-in kernel UBIFS support for Kirkwood boards October 16, 2024 07:01PM |
Registered: 2 months ago Posts: 60 |
Re: Please add built-in kernel UBIFS support for Kirkwood boards October 16, 2024 07:02PM |
Registered: 2 months ago Posts: 60 |
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 16, 2024 07:23PM |
Registered: 2 months ago Posts: 60 |
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 16, 2024 11:07PM |
Registered: 2 months ago Posts: 60 |
# mkdir -p /opt/nimbus/bullseye # cd /opt/nimbus/bullseye # wget http://ftp.debian.org/debian/dists/bullseye/main/installer-armel/current/images/kirkwood/netboot/marvell/sheevaplug/uImage # wget http://ftp.debian.org/debian/dists/bullseye/main/installer-armel/current/images/kirkwood/netboot/marvell/sheevaplug/uInitrdThose seem to me to indicate the Debian 11 kernel is not a stock kernel. It only comes with 87 DTB files, 77 named kirkwood-*.dtb and 10 named orion-*.dtb. I could compare the kernel config files to see what machine configs they used compared to yours. But, Debian 12 with a Linux 6.x kernel has the exact same problem, which is why I suspect a Linux bug. And, why I would like to give your Linux 5.10 kernel a try.
# mkdir -p ~/bodhi # cd ~/bodhi # wget -O linux-6.9.6-kirkwood-tld-1-bodhi.tar.bz2 https://bit.ly/3RIwpfo # chmod -w linux-6.9.6-kirkwood-tld-1-bodhi.tar.bz2 # md5sum linux-6.9.6-kirkwood-tld-1-bodhi.tar.bz2 32396c3dec0a0786587134980291072a linux-6.9.6-kirkwood-tld-1-bodhi.tar.bz2Extract zImage-6.9.6-kirkwood-tld-1 to ~/bodhi/boot:
# mkdir boot # cd boot # tar -xjf ../linux-6.9.6-kirkwood-tld-1-bodhi.tar.bz2 zImage-6.9.6-kirkwood-tld-1Extract dts/kirkwood-sheevaplug.dtb to ~/bodhi/boot:
# tar -O -xjf ../linux-6.9.6-kirkwood-tld-1-bodhi.tar.bz2 \ linux-dtb-6.9.6-kirkwood-tld-1.tar | tar -xf -Make uImage-6.9.6-kirkwood-tld-1 by appending the dtb file to the zImage:
# KERNEL=`ls zImage-* | tail -1 | sed -e "s/^zImage-//"` # echo $KERNEL 6.9.6-kirkwood-tld-1 # IMAGE="zImage-$KERNEL" # NAME="kernel $KERNEL" # rm -f zImage.fdt # cp $IMAGE zImage.fdt # cat dts/kirkwood-sheevaplug.dtb >> zImage.fdt # mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n "$NAME" -d zImage.fdt uImage-$KERNEL Image Name: kernel 6.9.6-kirkwood-tld-1 Created: Wed Oct 16 17:44:24 2024 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 6230456 Bytes = 6084.43 KiB = 5.94 MiB Load Address: 00008000 Entry Point: 00008000 # rm zImage.fdtExtract the kernel modules to ~/bodhi/lib/modules:
# cd ~/bodhi # mkdir lib # cd lib # tar -xjf ../linux-6.9.6-kirkwood-tld-1-bodhi.tar.bz2 \ linux-image-6.9.6-kirkwood-tld-1_1_armel.deb # ar -x linux-image-6.9.6-kirkwood-tld-1_1_armel.deb data.tar.xz # rm linux-image-6.9.6-kirkwood-tld-1_1_armel.deb # tar -xJf data.tar.xz --wildcards --anchored --strip-components=2 ./lib/modules/* # rm data.tar.xzMount the flash UBIFS rootfs:
# ubiattach /dev/ubi_ctrl -m 3 # mount -t ubifs ubi0:rootfs /mnt/ubiCopy uImage-6.9.6-kirkwood-tld-1 to /mnt/ubi/boot and make a uImage soft link to it:
# echo $KERNEL 6.9.6-kirkwood-tld-1 <=== MAKE SURE KERNEL IS DEFINED!!! # cd ~/bodhi # du -sh boot/*$KERNEL* lib/modules/$KERNEL boot/dts/kirkwood-sheevaplug.dtb 6.0M boot/uImage-6.9.6-kirkwood-tld-1 6.0M boot/zImage-6.9.6-kirkwood-tld-1 93M lib/modules/6.9.6-kirkwood-tld-1 12K boot/dts/kirkwood-sheevaplug.dtb # cp boot/uImage-$KERNEL /mnt/ubi/boot/ # ( cd /mnt/ubi/boot ; rm -f uImage ; ln -s uImage-$KERNEL uImage )Copy the kernel modules to /mnt/ubi/usr/lib/modules/6.9.6-kirkwood-tld-1:
# rm -rf /mnt/ubi/lib/modules/$KERNEL # ( cd lib ; tar -cf - modules/$KERNEL ) | ( cd /mnt/ubi/usr/lib ; tar -xf - )Copy the linux-6.9.6-kirkwood-tld-1-bodhi kirkwood-sheevaplug.dtb to /mnt/ubi/boot/dtbs/6.9.6-kirkwood-tld-1:
# mkdir -p /mnt/ubi/boot/dtbs/$KERNEL # cp boot/dts/kirkwood-sheevaplug.dtb /mnt/ubi/boot/dtbs/$KERNEL/ # ls -lh /mnt/ubi/boot total 26M -rw-r--r-- 1 root root 5.5M Oct 14 15:37 bodhi-uImage-5.15.5-kirkwood-tld-1 -rw-r--r-- 1 root root 5.5M Oct 14 15:01 bodhi-uImage-5.18.6-kirkwood-tld-1 drwxr-xr-x 3 root root 240 Oct 16 18:23 dtbs lrwxrwxrwx 1 root root 27 Oct 16 18:25 uImage -> uImage-6.9.6-kirkwood-tld-1 -rw-r--r-- 1 root root 2.6M Oct 16 13:21 uImage-5.10.223-marvell-UBIFS -rw-r--r-- 1 root root 5.9M Oct 13 02:56 uImage-6.10.11-kirkwood-UBIFS-2 -rw-r--r-- 1 root root 6.0M Oct 16 18:21 uImage-6.9.6-kirkwood-tld-1Boot the 6.9.6-kirkwood-tld-1 kernel on the flash UBIFS rootfs:
# reboot
Marvell>> run ubi_bootSee the results in the attached fresh-install-on-bodhi-6.9.6-kirkwood-tld-1-on-UBIFS-rootfs.log file.
# cd ~/bodhi/boot # KERNEL=`ls zImage-* | tail -1 | sed -e "s/^zImage-//"` # echo $KERNEL 6.9.6-kirkwood-tld-1 # IMAGE="zImage-$KERNEL" # NAME="kernel $KERNEL with Debian dtb" # rm -f zImage.fdt # cp $IMAGE zImage.fdt # cat /boot/dtb-5.10.0-32-marvell >> zImage.fdt # mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n "$NAME" -d zImage.fdt uImage-$KERNEL-with-debian-dtb Image Name: kernel 6.9.6-kirkwood-tld-1 with Created: Wed Oct 16 19:56:13 2024 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 6230240 Bytes = 6084.22 KiB = 5.94 MiB Load Address: 00008000 Entry Point: 00008000 # rm zImage.fdt # ubiattach /dev/ubi_ctrl -m 3 # mount -t ubifs ubi0:rootfs /mnt/ubi # cp uImage-$KERNEL-with-debian-dtb /mnt/ubi/boot/ # ( cd /mnt/ubi/boot ; rm -f uImage ; ln -s uImage-$KERNEL-with-debian-dtb uImage ) # ls -lh /mnt/ubi/boot total 32M -rw-r--r-- 1 root root 5.5M Oct 14 15:37 bodhi-uImage-5.15.5-kirkwood-tld-1 -rw-r--r-- 1 root root 5.5M Oct 14 15:01 bodhi-uImage-5.18.6-kirkwood-tld-1 drwxr-xr-x 3 root root 240 Oct 16 18:23 dtbs lrwxrwxrwx 1 root root 43 Oct 16 19:59 uImage -> uImage-6.9.6-kirkwood-tld-1-with-debian-dtb -rw-r--r-- 1 root root 2.6M Oct 16 13:21 uImage-5.10.223-marvell-UBIFS -rw-r--r-- 1 root root 5.9M Oct 13 02:56 uImage-6.10.11-kirkwood-UBIFS-2 -rw-r--r-- 1 root root 6.0M Oct 16 18:21 uImage-6.9.6-kirkwood-tld-1 -rw-r--r-- 1 root root 6.0M Oct 16 19:59 uImage-6.9.6-kirkwood-tld-1-with-debian-dtb
# reboot
Marvell>> run ubi_bootLinux boots fine, but the same thing occurs that prevents recognition of the USB drive:
[ 6.380104][ T8] usb 1-1: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11 [ 6.389063][ T8] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 6.419405][ T8] usb 1-1: Product: USB 2.0 Hub [ 6.425443][ T8] hub 1-1:1.0: USB hub found [ 6.439609][ T8] hub 1-1:1.0: 4 ports detected [ 6.869401][ T8] usb 1-1.4: new high-speed USB device number 3 using orion-ehci [ 7.141226][ T8] usb 1-1.4: New USB device found, idVendor=05dc, idProduct=a81d, bcdDevice=11.00 [ 7.159387][ T8] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 7.167445][ T8] usb 1-1.4: Product: USB Flash Drive [ 7.189390][ T8] usb 1-1.4: Manufacturer: Lexar [ 7.194214][ T8] usb 1-1.4: SerialNumber: AA3A00269M0I2I73 [ 7.210490][ T8] usb-storage 1-1.4:1.0: USB Mass Storage device detected [ 7.223080][ T8] scsi host0: usb-storage 1-1.4:1.0But later...
[ 10.873613][ T8] usb 1-1: USB disconnect, device number 2 [ 10.879454][ T8] usb 1-1.4: USB disconnect, device number 3
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 17, 2024 12:31AM |
Admin Registered: 13 years ago Posts: 19,102 |
Quote
> This box has a different u-boot. And stock kernel is also not Sheevaplug kernel.
I don't understand how either of these matter.
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 17, 2024 01:16AM |
Registered: 2 months ago Posts: 60 |
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 17, 2024 04:12PM |
Admin Registered: 13 years ago Posts: 19,102 |
Quote
Updated 17 Jan 2021:
Kernel linux-5.10.7-kirkwood-tld-1 package has been uploaded
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 18, 2024 01:08AM |
Registered: 2 months ago Posts: 60 |
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 18, 2024 02:32PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 18, 2024 03:06PM |
Admin Registered: 13 years ago Posts: 19,102 |
Quote
bodhi
> Yes. We know Kernel linux-5.15.5-kirkwood-tld-1
> does not work for the Nimbus USB. So it is rather
> quick to try 5.11.x to 5.14.x stable with my
> patch.
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 18, 2024 03:59PM |
Registered: 2 months ago Posts: 60 |
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 18, 2024 04:52PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 18, 2024 05:18PM |
Registered: 2 months ago Posts: 60 |
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 20, 2024 06:46PM |
Registered: 2 months ago Posts: 60 |
diff -Naur --no-dereference a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c --- a/drivers/net/dsa/mv88e6xxx/chip.c 2021-11-25 00:49:08.000000000 -0800 +++ b/drivers/net/dsa/mv88e6xxx/chip.c 2021-11-28 17:36:56.279842778 -0800 @@ -3763,7 +3763,6 @@ .port_set_ucast_flood = mv88e6352_port_set_ucast_flood, .port_set_mcast_flood = mv88e6352_port_set_mcast_flood, .port_set_ether_type = mv88e6351_port_set_ether_type, - .port_set_jumbo_size = mv88e6165_port_set_jumbo_size, .port_egress_rate_limiting = mv88e6097_port_egress_rate_limiting, .port_pause_limit = mv88e6097_port_pause_limit, .port_disable_learn_limit = mv88e6xxx_port_disable_learn_limit, @@ -3924,6 +3923,7 @@ .vtu_getnext = mv88e6352_g1_vtu_getnext, .vtu_loadpurge = mv88e6352_g1_vtu_loadpurge, .phylink_validate = mv88e6185_phylink_validate, + .set_max_frame_size = mv88e6185_g1_set_max_frame_size, };I found that hunk #1 in the patch applies to
static const struct mv88e6xxx_ops mv88e6141_ops = { /* MV88E6XXX_FAMILY_6341 */while hunk #2 applies to
static const struct mv88e6xxx_ops mv88e6171_ops = { /* MV88E6XXX_FAMILY_6351 */I assume you intended to patch only one of the "ops" tables.
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 20, 2024 08:42PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 20, 2024 08:48PM |
Registered: 2 months ago Posts: 60 |
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 21, 2024 04:02AM |
Registered: 2 months ago Posts: 60 |
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 21, 2024 02:51PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 21, 2024 03:01PM |
Registered: 2 months ago Posts: 60 |
Re: Please add built-in kernel UBIFS support for Kirkwood and any other boards with on-board eMMC flash October 22, 2024 12:41AM |
Registered: 2 months ago Posts: 60 |
[ 6.380104][ T8] usb 1-1: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11 [ 6.389063][ T8] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 6.419405][ T8] usb 1-1: Product: USB 2.0 Hub [ 6.425443][ T8] hub 1-1:1.0: USB hub found [ 6.439609][ T8] hub 1-1:1.0: 4 ports detected [ 6.869401][ T8] usb 1-1.4: new high-speed USB device number 3 using orion-ehci [ 7.141226][ T8] usb 1-1.4: New USB device found, idVendor=05dc, idProduct=a81d, bcdDevice=11.00 [ 7.159387][ T8] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 7.167445][ T8] usb 1-1.4: Product: USB Flash Drive [ 7.189390][ T8] usb 1-1.4: Manufacturer: Lexar [ 7.194214][ T8] usb 1-1.4: SerialNumber: AA3A00269M0I2I73 [ 7.210490][ T8] usb-storage 1-1.4:1.0: USB Mass Storage device detected [ 7.223080][ T8] scsi host0: usb-storage 1-1.4:1.0
[ 10.873613][ T8] usb 1-1: USB disconnect, device number 2 [ 10.879454][ T8] usb 1-1.4: USB disconnect, device number 3I think I've been wasting my time trying to fix a bug at the beginning of the v5.15.x kernels, which is only the start of the USB problems. I would be better off finding out why the disconnect is occurring in the v6.10.x and later kernels. That is the show stopper in the more recent kernels.