Welcome! Log In Create A New Profile

Advanced

Goflex Net with Kernel 5.15.55 and Debian 11.4 on USB

Posted by Fabio 
Preamble:
I created an emergency usb stick with debian 11.4 (via deboostrap) and the linux kernel 5.15.55 compiled by myself using the bodhi patches for the 5.15.x kernel. and the configuration he provided without changing anything.
Starting the USB key I have a repeated series of these messages after which the system freezes without any further message (monitoring takes place via netconsole)
 mtdblock: MTD device 'data' is NAND, please consider using UBI block devices instead.
[   54.289397][  T429] mtdblock: MTD device 'rootfs' is NAND, please consider using UBI block devices instead.
[   54.300685][  T429] mtdblock: MTD device 'uImage' is NAND, please consider using UBI block devices instead.
[   54.311948][  T429] mtdblock: MTD device 'u-boot' is NAND, please consider using UBI block devices instead.
[   54.338137][  T429] mtdblock: MTD device 'data' is NAND, please consider using UBI block devices instead.
[   54.349292][  T429] mtdblock: MTD device 'rootfs' is NAND, please consider using UBI block devices instead.
[   54.360583][  T429] mtdblock: MTD device 'uImage' is NAND, please consider using UBI block devices instead.
[   54.371845][  T429] mtdblock: MTD device 'u-boot' is NAND, please consider using UBI block devices instead.
[   54.397930][  T429] mtdblock: MTD device 'data' is NAND, please consider using UBI block devices instead.
[   54.409082][  T429] mtdblock: MTD device 'rootfs' is NAND, please consider using UBI block devices instead.
[   54.420377][  T429] mtdblock: MTD device 'uImage' is NAND, please consider using UBI block devices instead.
[   54.431633][  T429] mtdblock: MTD device 'u-boot' is NAND, please consider using UBI block devices instead.
[   54.457620][  T429] mtdblock: MTD device 'data' is NAND, please consider using UBI block devices instead.
[   54.468770][  T429] mtdblock: MTD device 'rootfs' is NAND, please consider using UBI block devices instead.
[   54.480100][  T429] mtdblock: MTD device 'uImage' is NAND, please consider using UBI block devices instead.
[   54.491368][  T429] mtdblock: MTD device 'u-boot' is NAND, please consider using UBI block devices instead.
[   55.634482][  T438] mtdblock: MTD device 'data' is NAND, please consider using UBI block devices instead.
[   55.650569][  T438] mtdblock: MTD device 'rootfs' is NAND, please consider using UBI block devices instead.
[   55.665972][  T438] mtdblock: MTD device 'uImage' is NAND, please consider using UBI block devices instead.
[   55.681274][  T438] mtdblock: MTD device 'u-boot' is NAND, please consider using UBI block devices instead.
[   55.691484][  T438] ecc_sw_hamming_correct: uncorrectable ECC error
[   55.697908][  T438] blk_update_request: I/O error, dev mtdblock0, sector 1920 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[   55.709582][  T438] ecc_sw_hamming_correct: uncorrectable ECC error

Booting via SATA (raid mirror for boot and root partitions) WITH THE SAME KERNEL the system boots correctly apart from these messages repeated two times.
[   14.714340][  T138] mtdblock: MTD device 'u-boot' is NAND, please consider using UBI block devices instead.
[   14.725934][  T139] mtdblock: MTD device 'uImage' is NAND, please consider using UBI block devices instead.
[   14.737298][  T145] mtdblock: MTD device 'rootfs' is NAND, please consider using UBI block devices instead.
[   14.748692][  T143] mtdblock: MTD device 'data' is NAND, please consider using UBI block devices instead.

I don't know how to fix this
... For more information, the USB memory is not really a USB stick but an M-SATA to USB adapter with a 32 GB M-SATA card inside
Re: Goflex Net with Kernel 5.15.55 and Debian 11.4 on USB
July 19, 2022 03:56PM
> [ 14.748692][ T143] mtdblock: MTD device 'data'
> is NAND, please consider using UBI block devices
> instead.
> [/code]
>
> I don't know how to fix this

There is no need to fix. It's an information message about mtd block device only, not an error.

I've removed this noisy log since kernel linux-5.16.5-kirkwood-tld-1.

-bodhi
===========================
Forum Wiki
bodhi's corner
The problem is that booting from sata this is only a noisy log, but booting from USB the log is flooded by these messages and the system hangs.
I prefer to stick with the long-term versions of the kernel and, thanks to your work, recompile the latest stable kernel version from time to time
Re: Goflex Net with Kernel 5.15.55 and Debian 11.4 on USB
July 19, 2022 04:19PM
> The problem is that booting from sata this is only
> a noisy log, but booting from USB the log is
> flooded by these messages and the system hangs.

The kernel behaves oddly with USB, vs SATA. But that should be a different issue. The bottom line is that it does not recognize that there is no ECC used on these old Kirkwood boxes.

-bodhi
===========================
Forum Wiki
bodhi's corner
So there is no possibility to create an emergency boot usb stick with the latest version of the 5.15.x series kernel?
Re: Goflex Net with Kernel 5.15.55 and Debian 11.4 on USB
July 19, 2022 04:26PM
Fabio,

> I prefer to stick with the long-term versions of
> the kernel and, thanks to your work, recompile the
> latest stable kernel version from time to time

I regconized that. You've chosen 5.15 because it is an LTS kernel.

So you need to do what I did since kernel linux-5.16.5-kirkwood-tld-1: move the MTD block out to loadable module.

root@HomeBackup:/boot# grep CONFIG_MTD_BLOCK config-5.15.5-kirkwood-tld-1 
CONFIG_MTD_BLOCK=y
# CONFIG_MTD_BLOCK2MTD is not set

root@HomeBackup:/boot# grep CONFIG_MTD_BLOCK config-5.16.5-kirkwood-tld-1 
CONFIG_MTD_BLOCK=m
# CONFIG_MTD_BLOCK_RO is not set
# CONFIG_MTD_BLOCK2MTD is not set

This way the kernel will not scan the NAND MTD devices during boot.

-bodhi
===========================
Forum Wiki
bodhi's corner
Thanks so much bodhi. Tomorrow I'll try to recompile the kernel with your suggested configuration and I'll let you know
P.S
remains the problem with auto negotiation of the ethernet interface discussed in another thread
Re: Goflex Net with Kernel 5.15.55 and Debian 11.4 on USB
July 19, 2022 04:45PM
> remains the problem with auto negotiation of the
> ethernet interface discussed in another thread

I think it might be a problem introduced in the later stable 5.15.x. I've verified that 5.15.5-kirkwood-tld-1 does not have this problem.

-bodhi
===========================
Forum Wiki
bodhi's corner
However, the curiosity remains to me to understand why starting from sata everything works (apart from the boring messages) while starting from USB the system crashes. I noticed that the initrd generated for USB is a bit bigger than the one generated for sata (?)
bodhi Wrote:
-------------------------------------------------------
> > remains the problem with auto negotiation of
> the
> > ethernet interface discussed in another thread
>
> I think it might be a problem introduced in the
> later stable 5.15.x. I've verified that
> 5.15.5-kirkwood-tld-1 does not have this problem.


In fact this problem started showing me intermittently with version 5.15.34. However, I don't compile all the versions of this series, so I don't know when the problem started. The fact remains that with version 5.15.55 the problem is persistent
In any case, these small, now dated but much loved machines have served me very well for many years: AFP (netatalk) and SMB (samba) sharing of all my multimedia libraries (thanks to the support of the port multiplier I was able to connect external esata cases with different slots), TimeMachine backup, Video streaming (tvheadend), dns server, dhcp server, directory server (OpenLdap), wi-fi access points, mpd server for bit perfetc audio playback etc. etc. etc.
At the moment the only modern alternative to these machines, also in terms of costs, seems to me to be the odroid hc4 ...
... In the face of those who say that certain solutions are not reliable or enterprise level. 10 years 24H/7 always on
Re: Goflex Net with Kernel 5.15.55 and Debian 11.4 on USB
July 19, 2022 05:51PM
> In fact this problem started showing me
> intermittently with version 5.15.34. However, I
> don't compile all the versions of this series, so
> I don't know when the problem started. The fact
> remains that with version 5.15.55 the problem is
> persistent

I would not try to solve this auto negotiation in 5.15.x. You can just log in again. Unless using this in a script, it should be a very minor annoyance, not worth spending time on.

-bodhi
===========================
Forum Wiki
bodhi's corner
No, I cannot log in again as the network is down and the only solution is to remove the power and reconnect it. Anyway the pre-up command in network interfaces resolve the problem disabling auto negotiation
I tried to recompile the kernel with the configuration "CONFIG_MTD_BLOCK = m" as suggested by bodhi. The kernel hangs before mounting the root partition. I'm probably doing something wrong in creating the USB image in Ubuntu.
This is the log until it stops:
Starting kernel ...
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.15.55-kirkwood-tld-1 (fabio@VBoxUbuntuMacBookFabio) (arm-linux-gnueabi-gcc (Ubuntu 11.2.0-17ubuntu1) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #1 PREEMPT Tue Jul 19 23:48:22 CEST 2022
[    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: Seagate GoFlex Net
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=/dev/disk/by-label/rootfs rootdelay=10 rootfstype=ext3 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) netconsole=6666@192.168.4.1/eth0,6666@192.168.4.111/
[    0.000000][    T0] Unknown kernel command line parameters "mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) netconsole=6666@192.168.4.1/eth0,6666@192.168.4.111/", will be passed to user space.
[    0.000000][    T0] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 98416K/131072K available (10240K kernel code, 1534K rwdata, 4528K rodata, 1024K init, 300K bss, 32656K reserved, 0K cma-reserved)
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] 	Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0] 	Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000002][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000060][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.001661][    T0] Console: colour dummy device 80x30
[    0.001737][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.001782][    T0] pid_max: default: 32768 minimum: 301
[    0.002564][    T0] LSM: Security Framework initializing
[    0.003000][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.003052][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.005137][    T0] CPU: Testing write buffer coherency: ok
[    0.008487][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.008817][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.009227][    T1] rcu: Hierarchical SRCU implementation.
[    0.010899][    T1] devtmpfs: initialized
[    0.018254][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.018311][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.054870][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.054917][    T1] prandom: seed boundary self test passed
[    0.059190][    T1] prandom: 100 self tests passed
[    0.059210][    T1] pinctrl core: initialized pinctrl subsystem
[    0.061882][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.062898][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.064259][    T1] audit: initializing netlink subsys (disabled)
[    0.065972][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.066411][   T16] audit: type=2000 audit(0.060:1): state=initialized audit_enabled=0 res=1
[    0.066578][    T1] cpuidle: using governor ladder
[    0.066681][    T1] cpuidle: using governor menu
[    0.067286][    T1] Feroceon L2: Enabling L2
[    0.067342][    T1] Feroceon L2: Cache support initialised.
[    0.077685][    T1] No ATAGs?
[    4.489323][   T39] "cryptomgr_test" (39) uses obsolete ecb(arc4) skcipher
[    4.720233][    T1] raid6: int32x8  gen()   108 MB/s
[    4.890189][    T1] raid6: int32x8  xor()    69 MB/s
[    5.060317][    T1] raid6: int32x4  gen()    96 MB/s
[    5.230234][    T1] raid6: int32x4  xor()    70 MB/s
[    5.400226][    T1] raid6: int32x2  gen()   137 MB/s
[    5.570135][    T1] raid6: int32x2  xor()    81 MB/s
[    5.740209][    T1] raid6: int32x1  gen()    96 MB/s
[    5.910174][    T1] raid6: int32x1  xor()    56 MB/s
[    5.910193][    T1] raid6: using algorithm int32x2 gen() 137 MB/s
[    5.910208][    T1] raid6: .... xor() 81 MB/s, rmw enabled
[    5.910220][    T1] raid6: using intx1 recovery algorithm
[    5.910549][    T1] vgaarb: loaded
[    5.911304][    T1] SCSI subsystem initialized
[    5.911920][    T1] usbcore: registered new interface driver usbfs
[    5.912033][    T1] usbcore: registered new interface driver hub
[    5.912099][    T1] usbcore: registered new device driver usb
[    5.912353][    T1] pps_core: LinuxPPS API ver. 1 registered
[    5.912371][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    5.912409][    T1] PTP clock support registered
[    5.914728][    T1] clocksource: Switched to clocksource orion_clocksource
[    6.036823][    T1] VFS: Disk quotas dquot_6.6.0
[    6.036952][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    6.061005][    T1] NET: Registered PF_INET protocol family
[    6.061314][    T1] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    6.075362][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    6.075624][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    6.075657][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    6.075692][    T1] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    6.075721][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[    6.076064][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    6.076195][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    6.076237][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    6.076544][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    6.077608][    T1] RPC: Registered named UNIX socket transport module.
[    6.077633][    T1] RPC: Registered udp transport module.
[    6.077646][    T1] RPC: Registered tcp transport module.
[    6.077658][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    6.077676][    T1] PCI: CLS 0 bytes, default 32
[    6.077925][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    6.078649][   T75] Trying to unpack rootfs image as initramfs...
[    8.497136][   T75] Freeing initrd memory: 13188K
[    8.837908][    T1] Initialise system trusted keyrings
[    8.838009][    T1] Key type blacklist registered
[    8.838393][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    8.838545][    T1] zbud: loaded
[    8.840621][    T1] NFS: Registering the id_resolver key type
[    8.840697][    T1] Key type id_resolver registered
[    8.840715][    T1] Key type id_legacy registered
[    8.840781][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    8.840809][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    8.840825][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    8.841216][    T1] fuse: init (API version 7.34)
[    8.841716][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    8.841996][    T1] orangefs_init: module version upstream loaded
[    8.842017][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    8.939909][    T1] xor: measuring software checksum speed
[    8.948881][    T1]    arm4regs        :  1112 MB/sec
[    8.963704][    T1]    8regs           :   667 MB/sec
[    8.973906][    T1]    32regs          :   971 MB/sec
[    8.973927][    T1] xor: using function: arm4regs (1112 MB/sec)
[    8.973949][    T1] async_tx: api initialized (async)
[    8.973971][    T1] Key type asymmetric registered
[    8.973985][    T1] Asymmetric key parser 'x509' registered
[    8.974165][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    8.974263][    T1] io scheduler bfq registered
[    9.151290][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    9.153934][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    9.215866][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    9.219643][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    9.275869][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    9.279969][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    9.281472][    T1] printk: console [ttyS0] disabled
[    9.281576][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[   10.144841][    T1] printk: console [ttyS0] enabled
[   10.160665][    T1] loop: module loaded
[   10.165496][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   10.175426][    T1] scsi host0: sata_mv
[   10.180146][    T1] scsi host1: sata_mv
[   10.184334][    T1] ata1: SATA max UDMA/133 irq 32
[   10.189225][    T1] ata2: SATA max UDMA/133 irq 32
[   10.194664][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   10.203305][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   10.234324][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   10.694771][   T94] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   10.702732][   T94] ata1.15: Port Multiplier 1.2, 0x197b:0x0325 r0, 5 ports, feat 0x5/0xf
[   10.716873][   T94] ata1.00: hard resetting link
[   10.965891][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:26:3f:6a
[   10.975764][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   10.983231][    T1] ehci-pci: EHCI PCI platform driver
[   10.988644][    T1] ehci-orion: EHCI orion driver
[   10.993597][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   11.000045][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   11.008808][    T1] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[   11.044758][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   11.052368][   T94] ata1.01: hard resetting link
[   11.057419][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[   11.067299][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   11.075560][    T1] usb usb1: Product: EHCI Host Controller
[   11.081169][    T1] usb usb1: Manufacturer: Linux 5.15.55-kirkwood-tld-1 ehci_hcd
[   11.088717][    T1] usb usb1: SerialNumber: f1050000.ehci
[   11.095059][    T1] hub 1-0:1.0: USB hub found
[   11.099614][    T1] hub 1-0:1.0: 1 port detected
[   11.105246][    T1] usbcore: registered new interface driver usb-storage
[   11.112426][    T1] mousedev: PS/2 mouse device common for all mice
[   11.384759][   T17] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   11.408719][   T94] ata1.02: hard resetting link
[   11.587188][   T17] usb 1-1: New USB device found, idVendor=174c, idProduct=55aa, bcdDevice= 1.00
[   11.596155][   T17] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[   11.604061][   T17] usb 1-1: Product: ASM1153E
[   11.608556][   T17] usb 1-1: Manufacturer: Inateck
[   11.613376][   T17] usb 1-1: SerialNumber: 123456789716
[   11.750450][   T94] ata1.03: hard resetting link
[   12.089903][   T94] ata1.04: hard resetting link
[   12.164764][    T1] rtc-mv f1010300.rtc: internal RTC not ticking
[   12.171087][    T1] i2c_dev: i2c /dev entries driver
[   12.176938][    T1] device-mapper: uevent: version 1.0.3
[   12.182630][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[   12.192406][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   12.199743][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   12.207132][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   12.214567][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   12.221420][    T1] device-mapper: raid: Loading target version 1.15.1
[   12.230953][    T1] hid: raw HID events driver (C) Jiri Kosina
[   12.237254][    T1] drop_monitor: Initializing network drop monitor service
[   12.244913][    T1] NET: Registered PF_INET6 protocol family
[   12.252559][    T1] Segment Routing with IPv6
[   12.257072][    T1] RPL Segment Routing with IPv6
[   12.261885][    T1] In-situ OAM (IOAM) with IPv6
[   12.266688][    T1] NET: Registered PF_PACKET protocol family
[   12.272800][    T1] Key type dns_resolver registered
[   12.278555][    T1] registered taskstats version 1
[   12.283391][    T1] Loading compiled-in X.509 certificates
[   12.289384][    T1] zswap: loaded using pool lzo/zbud
[   12.294982][    T1] Key type ._fscrypt registered
[   12.299719][    T1] Key type .fscrypt registered
[   12.304356][    T1] Key type fscrypt-provisioning registered
[   12.310299][    T1] Key type big_key registered
[   12.347020][    T1] Key type encrypted registered
[   13.194881][   T94] ata1.04: failed to resume link (SControl 0)
[   13.203844][   T94] ata1.00: ATA-7: WDC WD20EFRX-68AX9N0, 0957, max UDMA/133
[   13.210966][   T94] ata1.00: 3907029168 sectors, multi 1: LBA48 
[   13.219589][   T94] ata1.00: configured for UDMA/133
[   13.226986][   T94] ata1.01: ATA-7: WDC WD20EFRX-68AX9N0, 0957, max UDMA/133
[   13.234083][   T94] ata1.01: 3907029168 sectors, multi 1: LBA48 
[   13.242686][   T94] ata1.01: configured for UDMA/133
[   13.250104][   T94] ata1.02: ATA-7: WDC WD30EFRX-68AX9N0, 0957, max UDMA/133
[   13.257230][   T94] ata1.02: 5860533168 sectors, multi 1: LBA48 
[   13.265862][   T94] ata1.02: configured for UDMA/133
[   13.273264][   T94] ata1.03: ATA-7: WDC WD30EFRX-68AX9N0, 0957, max UDMA/133
[   13.280381][   T94] ata1.03: 5860533168 sectors, multi 1: LBA48 
[   13.288980][   T94] ata1.03: configured for UDMA/133
[   13.294268][   T94] ata1: EH complete
[   13.308521][    T8] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EFRX-68A 0957 PQ: 0 ANSI: 5
[   13.318823][   T98] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[   13.328135][    T8] scsi 0:1:0:0: Direct-Access     ATA      WDC WD20EFRX-68A 0957 PQ: 0 ANSI: 5
[   13.337135][   T98] sd 0:0:0:0: [sda] Write Protect is off
[   13.344299][    T8] scsi 0:2:0:0: Direct-Access     ATA      WDC WD30EFRX-68A 0957 PQ: 0 ANSI: 5
[   13.353932][   T81] sd 0:1:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[   13.362573][   T98] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   13.372557][   T81] sd 0:1:0:0: [sdb] Write Protect is off
[   13.379722][    T8] scsi 0:3:0:0: Direct-Access     ATA      WDC WD30EFRX-68A 0957 PQ: 0 ANSI: 5
[   13.389305][  T113] sd 0:2:0:0: [sdc] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[   13.400195][   T81] sd 0:1:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   13.410204][  T113] sd 0:2:0:0: [sdc] Write Protect is off
[   13.417818][    T8] sd 0:3:0:0: [sdd] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[   13.426599][  T113] sd 0:2:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   13.484544][    T8] sd 0:3:0:0: [sdd] Write Protect is off
[   13.514068][   T98]  sda: sda1 sda2 sda3 sda4
[   13.555765][    T8] sd 0:3:0:0: [sdd] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   13.567293][   T98] sd 0:0:0:0: [sda] Attached SCSI disk
[   13.623024][  T113]  sdc: sdc1
[   13.626468][   T81]  sdb: sdb1 sdb2 sdb3 sdb4
[   13.632277][  T113] sd 0:2:0:0: [sdc] Attached SCSI disk
[   13.639509][   T81] sd 0:1:0:0: [sdb] Attached SCSI disk
[   13.692550][    T8]  sdd: sdd1
[   13.696928][    T8] sd 0:3:0:0: [sdd] Attached SCSI disk
[   13.758095][   T96] ata2: SATA link down (SStatus 0 SControl F300)
[   13.777421][    T1] Freeing unused kernel image (initmem) memory: 1024K
[   13.784833][    T1] Checked W+X mappings: passed, no W+X pages found
[   13.791240][    T1] Run /init as init process
[   14.911891][  T138] scsi host2: uas
[   14.933286][   T75] scsi 2:0:0:0: Direct-Access     Inateck  ASM1153E         0    PQ: 0 ANSI: 6
[   14.942479][  T138] usbcore: registered new interface driver uas
[   14.959230][    T8] sd 2:0:0:0: [sde] 62533296 512-byte logical blocks: (32.0 GB/29.8 GiB)
[   14.975358][    T8] sd 2:0:0:0: [sde] Write Protect is off
[   14.990474][    T8] sd 2:0:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   15.009347][    T8] sd 2:0:0:0: [sde] Optimal transfer size 33553920 bytes
[   15.038163][    T8]  sde: sde1 sde2
[   15.049223][    T8] sd 2:0:0:0: [sde] Attached SCSI disk
[   15.890602][  T161] md/raid1:md1: active with 2 out of 2 mirrors
[   15.913908][  T162] md/raid1:md3: active with 2 out of 2 mirrors
[   15.920082][  T163] md/raid1:md4: active with 2 out of 2 mirrors
[   15.950127][  T161] md1: detected capacity change from 0 to 33537792
[   15.964373][  T163] md4: detected capacity change from 0 to 3871112960
[   15.985383][  T162] md3: detected capacity change from 0 to 1047936
[   15.991887][  T164] md/raid1:md0: active with 2 out of 2 mirrors
[   16.003136][  T165] md/raid1:md5: active with 2 out of 2 mirrors
[   16.017418][  T164] md0: detected capacity change from 0 to 1048448
[   16.036153][  T165] md5: detected capacity change from 0 to 5860268544
[   16.765131][    C0] random: crng init done
[   19.548529][  T213] netpoll: netconsole: local port 6666
[   19.553896][  T213] netpoll: netconsole: local IPv4 address 192.168.4.1
[   19.560750][  T213] netpoll: netconsole: interface 'eth0'
[   19.567486][  T213] netpoll: netconsole: remote port 6666
[   19.572921][  T213] netpoll: netconsole: remote IPv4 address 192.168.4.111
[   19.579863][  T213] netpoll: netconsole: remote ethernet address ff:ff:ff:ff:ff:ff
[   19.587497][  T213] netpoll: netconsole: device eth0 not up yet, forcing it
[   23.406804][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   23.417473][  T100] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   23.431986][  T213] printk: console [netcon0] enabled
[   23.437207][  T213] netconsole: network logging started
Re: Goflex Net with Kernel 5.15.55 and Debian 11.4 on USB
July 20, 2022 09:08PM
Quote

I tried to recompile the kernel with the configuration "CONFIG_MTD_BLOCK = m" as suggested by bodhi. The kernel hangs before mounting the root partition. I'm probably doing something wrong in creating the USB image in Ubuntu.

Yes,

Quote

[ 14.911891][ T138] scsi host2: uas
[ 14.933286][ T75] scsi 2:0:0:0: Direct-Access Inateck ASM1153E 0 PQ: 0 ANSI: 6
[ 14.942479][ T138] usbcore: registered new interface driver uas
[ 14.959230][ T8] sd 2:0:0:0: [sde] 62533296 512-byte logical blocks: (32.0 GB/29.8 GiB)
[ 14.975358][ T8] sd 2:0:0:0: [sde] Write Protect is off
[ 14.990474][ T8] sd 2:0:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 15.009347][ T8] sd 2:0:0:0: [sde] Optimal transfer size 33553920 bytes
[ 15.038163][ T8] sde: sde1 sde2
[ 15.049223][ T8] sd 2:0:0:0: [sde] Attached SCSI disk

I'd expect to see something like:

Quote

usb-storage 4-1:1.0: USB Mass Storage device detected

-bodhi
===========================
Forum Wiki
bodhi's corner
I recreated the USB stick on the Goflex Net itself: same problem and same log. The log is still identical (same kernel) even when booting from SATA, no sign of "USB Mass Storage device detected". Maybe the problem lies with the M-SATA USB adapter used? I'll try with another USB stick. Once booted from SATA, however, the adapter is correctly recognized with its partitions (/dev/sde1 and / dev/sde2 - root and swap partitions) and I can do anything (partition mounting, reading and writing to the device without errors)
Re: Goflex Net with Kernel 5.15.55 and Debian 11.4 on USB
July 21, 2022 01:10AM
> Maybe the problem lies with the M-SATA
> USB adapter used?

It seems so.

> Once booted from SATA, however, the adapter is
> correctly recognized with its partitions
> (/dev/sde1 and / dev/sde2 - root and swap
> partitions) and I can do anything (partition
> mounting, reading and writing to the device
> without errors)

Even more likely so. Once you booted with SATA rootfs, it is easier for the adapter to spin up. We've seen this behavior from time to time, with USB SD adapter card.

-bodhi
===========================
Forum Wiki
bodhi's corner
In any case uas seems be the correct module for my mSATA usb 3.0 (2.0 compatible) adapter and not usb-storage.
According to the log, this driver is loaded and the device (sde) correctly recognized. I still don't understand where the error is: It should still be in Initramfs (udev rules?), as the uas module is loaded from here.
I look forward to receiving a new USB pen drive to make comparisons.
Since it seems that the problem is in mounting the root partition, for convenience I also report the u-boot configuration variables related to booting via usb
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
usb_custom_params=netconsole=6666@192.168.xxx.xxx/eth0,6666@192.168.xxx.xxx
usb_init=run usb_scan
usb_rootdelay=10
usb_rootfstype=ext3
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done
usb_scan_1=usb=0:1 dev=disk/by-label/rootfs
usb_scan_2=usb=1:1 dev=disk/by-label/rootfs
usb_scan_3=usb=2:1 dev=disk/by-label/rootfs
usb_scan_4=usb=3:1 dev=disk/by-label/rootfs
usb_scan_list=1 2 3 4
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
Re: Goflex Net with Kernel 5.15.55 and Debian 11.4 on USB
July 21, 2022 04:20PM
Fabio,

Wow, your installed u-boot is very old. Must be circa 2012. Do in serial console:
ver
printenv

-bodhi
===========================
Forum Wiki
bodhi's corner
No bodhi, it's your u-boot. I prefer not to use uEnv.text and just rely on a set of environment variables that I have adjusted for each boot type. Also, I prefer to create the kernel images in legacy mode by adding fdt to zImage. I've always done it this way as I only have a few Goflex Net and it has always worked great
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:17:19 -0700)
Seagate GoFlex Net
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Re: Goflex Net with Kernel 5.15.55 and Debian 11.4 on USB
July 22, 2022 02:58AM
I see. The new set of envs are much more robust and not relying on boot type predefined. But if it works with old envs, no need to mess with it!

By the way this rootfstype is no longer necessary. It will be automatically figured out during booting. IOW, if you ever want to boot a rootfs in ext4 then it's best not to specify the fs type explicitly.
usb_rootfstype=ext3

-bodhi
===========================
Forum Wiki
bodhi's corner
This was the problem! How did I not see it before! Changed usb_rootfstype=ext3 to usb_rootfstype=ext4 and everything works perfectly! In fact, the root file system type is also set to ext4 even for root booting on the ext4 formatted sata raid mirror. In any case, as recommended by you, if the option is not needed I will remove it from the boot arguments.
Thank you so much bodhi.
Re: Goflex Net with Kernel 5.15.55 and Debian 11.4 on USB
July 22, 2022 02:39PM
Cool!

-bodhi
===========================
Forum Wiki
bodhi's corner
To think that, several years ago, I had installed your u-boot for the very specific reason that it supported the ext4 file system and gpt partitions! :)
Re: Goflex Net with Kernel 5.15.55 and Debian 11.4 on USB
July 22, 2022 04:01PM
:) If this env has always been that way, then the kernel had always been able to resolve it successfully.

-bodhi
===========================
Forum Wiki
bodhi's corner
Surely. As for sata, the environment variable has been for years
sataraid_rootfstype=ext4
.
The one related to usb boot is a legacy of an old usb stick that has stopped working for some time. Memory plays tricks on long times
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: