Welcome! Log In Create A New Profile

Advanced

Debian on Dell Kace M300

Posted by JDS420 
Re: Debian on Dell Kace M300
March 07, 2022 03:39PM
sudos, welcome to the party! I mentioned it in another thread, but I've been meaning to mention here as well where maybe it will get more attention. I removed the CPU from one of my M300s and it's like nothing I've ever seen. I could trace the GPIOs if I could just a pinout for the 88F6282 in the FCBGA package, so if anyone has a source for Marvell data sheets let me know.

-JT
Attachments:
open | download - 88F6282A1-bottom.JPG (97.7 KB)
Re: Debian on Dell Kace M300
March 07, 2022 05:32PM
JT,

> I could
> trace the GPIOs if I could just a pinout for the
> 88F6282 in the FCBGA package, so if anyone has a
> source for Marvell data sheets let me know.

There is no need to do that anymore (postpone that approach for now). I did a surgery of stock uboot. And what we are using in the new u-boot is stock header. It seems to be working fine for me.

So the issue is if others can test this new u-boot to their satisfaction.

I would be most interested in is running the box without any USB drive plugged in. Just use the stock SSD or your new SDD in the SATA slot. When this configuration is running OK, then we know we've solved the power problem.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Dell Kace M300
March 07, 2022 06:20PM
Here is the latest u-boot.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - uboot.2021.10-tld-1.m300.mtd0.kwb (384 KB)
Re: Debian on Dell Kace M300
March 08, 2022 05:16PM
bodhi Wrote:
-------------------------------------------------------
> Here is the latest u-boot.


is this also not flashable yet?
Re: Debian on Dell Kace M300
March 08, 2022 06:53PM
> is this also not flashable yet?

Not yet. I will do that while writing the instruction.

But it does not hurt if you can try kwboot it.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Dell Kace M300
March 08, 2022 09:20PM
After booting many times with the new u-boot using my two stock SSDs one boots reliably while the other does the same old sometimes it boots, sometimes it kernel panics, sometimes it segmentation faults, and sometimes it spews error messages ad nauseam. I think it still boots reliably if I have something in the USB port.

I'm ready to flash this anyway since it boots my USB flash drive reliably while the stock u-boot does not.
Re: Debian on Dell Kace M300
March 09, 2022 11:05PM
I tried your latest kwb file on my Kace. It seems to have broken in the same place as the previous one:
[root@CQ50 Downloads]# kwboot -p -t -B 115200 -b uboot.2021.10-tld-1.m300.mtd0.kwb /dev/ttyUSB0 
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [......................................................................]
  2 % [......................................................................]
 <snip>
 98 % [..............................................................]
[Type Ctrl-\ + c to quit]


U-Boot 2021.10-tld-1 (Feb 22 2022 - 17:41:54 -0800)
Dell KACE M300

SoC:   Kirkwood 88F6282_A1
Model: Dell KACE M300
DRAM:  2 GiB
Loading Environment from SPIFlash... SF: Detected mx25l4005a with page size 256 Bytes, erase size 4 KiB, total 512 KiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   
Warning: ethernet-controller@72000 (eth0) using random MAC address - ae:d9:a7:07:ef:9d
eth0: ethernet-controller@72000
MV88E1318 PHY initialized on ethernet-controller@72000
Hit any key to stop autoboot:  0 
Initializing devices...
resetting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
resetting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Unknown command 'mmc' - try 'help'
Loading envs from usb 0...
Couldn't find partition usb 0:1
Can't set block device
Loading envs from usb 1...
Couldn't find partition usb 1:1
Can't set block device
Loading envs from usb 2...
Couldn't find partition usb 2:1
Can't set block device
Loading envs from usb 3...
Couldn't find partition usb 3:1
Can't set block device
Loading envs from sata 0...
275 bytes read in 7 ms (38.1 KiB/s)
... envs loaded
importing envs ...
running scan_disk ...
Scan device usb
resetting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
resetting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
device usb 0:1
Couldn't find partition usb 0:1
Can't set block device
device usb 1:1
Couldn't find partition usb 1:1
Can't set block device
device usb 2:1
Couldn't find partition usb 2:1
Can't set block device
device usb 3:1
Couldn't find partition usb 3:1
Can't set block device
Scan device sata
device sata 0:1
1 bytes read in 7 ms (0 Bytes/s)
Found bootable drive on sata 0
loading uImage ...
4981772 bytes read in 74 ms (64.2 MiB/s)
loading uInitrd ...
9789382 bytes read in 141 ms (66.2 MiB/s)
loading DTB ...
** No boot file defined **
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   5.2.9-kirkwood-tld-2
   Created:      2020-10-25   0:42:02 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4981708 Bytes = 4.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-2
   Created:      2020-10-25   0:43:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9789318 Bytes = 9.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image
   Loading Ramdisk to 3f6aa000, end 3fffff86 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-kirkwood-tld-2 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Wed Aug 28 03:55:21 PDT 2019
[    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: Dell KACE M300
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Ignoring RAM at 0x70000000-0x80000000
[    0.000000][    T0] Consider using a HIGHMEM enabled kernel.
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 455168
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=sata_rootfs rootdelay=10 mtdparts=spi0.0:0x7d000@0(uboot),0x1000@0x7d000(u-boot-env) raid=noautodetect
[    0.000000][    T0] Dentry cache hash table entries: 262144 (order: 8, 1048576 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000][    T0] Memory: 1793948K/1835008K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 300K bss, 41060K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x52c/0x924 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] 	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.000006][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000036][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.000595][    T0] Console: colour dummy device 80x30
[    0.000637][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000658][    T0] pid_max: default: 32768 minimum: 301
[    0.000939][    T0] LSM: Security Framework initializing
[    0.001090][    T0] Mount-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.001120][    T0] Mountpoint-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.001763][    T0] *** VALIDATE proc ***
[    0.001993][    T0] *** VALIDATE cgroup1 ***
[    0.002015][    T0] *** VALIDATE cgroup2 ***
[    0.002095][    T0] CPU: Testing write buffer coherency: ok
[    0.003505][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.003718][    T1] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.003952][    T1] rcu: Hierarchical SRCU implementation.
[    0.006368][    T1] devtmpfs: initialized
[    0.010303][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010330][    T1] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.010538][    T1] xor: measuring software checksum speed
[    0.110094][    T1]    arm4regs  :  1706.000 MB/sec
[    0.210061][    T1]    8regs     :  1090.400 MB/sec
[    0.310060][    T1]    32regs    :  1585.600 MB/sec
[    0.310075][    T1] xor: using function: arm4regs (1706.000 MB/sec)
[    0.310091][    T1] prandom: seed boundary self test passed
[    0.312600][    T1] prandom: 100 self tests passed
[    0.312608][    T1] pinctrl core: initialized pinctrl subsystem
[    0.313776][    T1] NET: Registered protocol family 16
[    0.314186][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.314848][    T1] audit: initializing netlink subsys (disabled)
[    0.315882][   T14] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.315983][    T1] cpuidle: using governor ladder
[    0.316049][    T1] cpuidle: using governor menu
[    0.316450][    T1] Feroceon L2: Enabling L2
[    0.316491][    T1] Feroceon L2: Cache support initialised.
[    0.320399][    T1] No ATAGs?
[    2.560041][    C0] random: fast init done
[    3.538218][   T71] alg: No test for lzo-rle (lzo-rle-generic)
[    3.538476][   T73] alg: No test for lzo-rle (lzo-rle-scomp)
[    3.710595][    T1] raid6: int32x8  gen()   208 MB/s
[    3.880190][    T1] raid6: int32x8  xor()   142 MB/s
[    4.050138][    T1] raid6: int32x4  gen()   208 MB/s
[    4.220188][    T1] raid6: int32x4  xor()   138 MB/s
[    4.390066][    T1] raid6: int32x2  gen()   210 MB/s
[    4.560198][    T1] raid6: int32x2  xor()   152 MB/s
[    4.730235][    T1] raid6: int32x1  gen()   157 MB/s
[    4.900077][    T1] raid6: int32x1  xor()   109 MB/s
[    4.900084][    T1] raid6: using algorithm int32x2 gen() 210 MB/s
[    4.900090][    T1] raid6: .... xor() 152 MB/s, rmw enabled
[    4.900095][    T1] raid6: using intx1 recovery algorithm
[    4.900298][    T1] vgaarb: loaded
[    4.900662][    T1] SCSI subsystem initialized
[    4.901041][    T1] usbcore: registered new interface driver usbfs
[    4.901084][    T1] usbcore: registered new interface driver hub
[    4.901144][    T1] usbcore: registered new device driver usb
[    4.901277][    T1] pps_core: LinuxPPS API ver. 1 registered
[    4.901285][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    4.901303][    T1] PTP clock support registered
[    4.902263][    T1] clocksource: Switched to clocksource orion_clocksource
[    5.508409][    T1] VFS: Disk quotas dquot_6.6.0
[    5.508485][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    5.515233][    T1] NET: Registered protocol family 2
[    5.515834][    T1] tcp_listen_portaddr_hash hash table entries: 1024 (order: 1, 8192 bytes)
[    5.515874][    T1] TCP established hash table entries: 16384 (order: 4, 65536 bytes)
[    5.516069][    T1] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[    5.516260][    T1] TCP: Hash tables configured (established 16384 bind 16384)
[    5.516349][    T1] UDP hash table entries: 1024 (order: 2, 16384 bytes)
[    5.516406][    T1] UDP-Lite hash table entries: 1024 (order: 2, 16384 bytes)
[    5.516612][    T1] NET: Registered protocol family 1
[    5.517109][    T1] RPC: Registered named UNIX socket transport module.
[    5.517118][    T1] RPC: Registered udp transport module.
[    5.517124][    T1] RPC: Registered tcp transport module.
[    5.517129][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    5.517140][    T1] PCI: CLS 0 bytes, default 32
[    5.517314][    T1] Trying to unpack rootfs image as initramfs...
[    6.067289][    T1] Freeing initrd memory: 9560K
[    6.067426][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    6.068326][    T1] Initialise system trusted keyrings
[    6.068367][    T1] Key type blacklist registered
[    6.068538][    T1] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    6.068614][    T1] zbud: loaded
[    6.069399][    T1] NFS: Registering the id_resolver key type
[    6.069422][    T1] Key type id_resolver registered
[    6.069429][    T1] Key type id_legacy registered
[    6.069443][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    6.069455][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    6.069685][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    6.069840][    T1] fuse: init (API version 7.31)
[    6.070118][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    6.070252][    T1] orangefs_init: module version upstream loaded
[    6.070261][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    6.082321][    T1] async_tx: api initialized (async)
[    6.082340][    T1] Key type asymmetric registered
[    6.082347][    T1] Asymmetric key parser 'x509' registered
[    6.082404][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    6.083415][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.084778][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    6.084794][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    6.084805][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    6.084815][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    6.084891][    T1] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    6.084920][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    6.085684][    T1] PCI: bus0: Fast back to back transfers disabled
[    6.085702][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.086386][    T1] PCI: bus1: Fast back to back transfers enabled
[    6.086403][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    6.086533][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[    6.086546][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    6.086956][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.142790][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    6.144089][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.202786][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    6.204270][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.205177][    T1] printk: console [ttyS0] disabled
[    6.205234][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    7.059126][    T1] printk: console [ttyS0] enabled
[    7.069329][    T1] loop: module loaded
[    7.073659][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    7.081159][    T1] scsi host0: sata_mv
[    7.085485][    T1] scsi host1: sata_mv
[    7.089537][    T1] ata1: SATA max UDMA/133 irq 33
[    7.094394][    T1] ata2: SATA max UDMA/133 irq 33
[    7.100450][    T1] m25p80 spi0.0: mx25l4005a (512 Kbytes)
[    7.106022][    T1] 2 cmdlinepart partitions found on MTD device spi0.0
[    7.112677][    T1] Creating 2 MTD partitions on "spi0.0":
[    7.118184][    T1] 0x000000000000-0x00000007d000 : "uboot"
[    7.124818][    T1] 0x00000007d000-0x00000007e000 : "u-boot-env"
[    7.132502][    T1] libphy: Fixed MDIO Bus: probed
[    7.137860][    T1] libphy: orion_mdio_bus: probed
[    7.152756][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.160612][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[    7.168353][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 18:03:73:41:db:f0
[    7.177989][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.185309][    T1] ehci-pci: EHCI PCI platform driver
[    7.190512][    T1] ehci-orion: EHCI orion driver
[    7.195403][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    7.201631][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.210183][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    7.242287][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.249208][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    7.258230][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.266191][    T1] usb usb1: Product: EHCI Host Controller
[    7.271785][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-2 ehci_hcd
[    7.279140][    T1] usb usb1: SerialNumber: f1050000.ehci
[    7.285015][    T1] hub 1-0:1.0: USB hub found
[    7.289506][    T1] hub 1-0:1.0: 1 port detected
[    7.294676][    T1] usbcore: registered new interface driver usb-storage
[    7.301669][    T1] mousedev: PS/2 mouse device common for all mice
[    7.308413][    T1] rtc-mv f1010300.rtc: registered as rtc0
[    7.314161][    T1] i2c /dev entries driver
[    7.318819][    T1] device-mapper: uevent: version 1.0.3
[    7.324418][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    7.333929][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    7.341217][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    7.348599][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    7.356059][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    7.362910][    T1] device-mapper: raid: Loading target version 1.14.0
[    7.370257][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    7.376665][    T1] drop_monitor: Initializing network drop monitor service
[    7.383901][    T1] NET: Registered protocol family 17
[    7.389270][    T1] Key type dns_resolver registered
[    7.394882][    T1] registered taskstats version 1
[    7.399724][    T1] Loading compiled-in X.509 certificates
[    7.405416][    T1] zswap: loaded using pool lzo/zbud
[    7.474827][    T1] Key type big_key registered
[    7.508540][    T1] Key type encrypted registered
[    7.514999][    T1] rtc-mv f1010300.rtc: setting system clock to 2022-03-10T03:27:33 UTC (1646882853)
[    7.592329][  T112] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    7.603825][  T112] ata1.00: ATA-7: TS16GSSD25H-M, 20100712, max UDMA/133
[    7.610646][  T112] ata1.00: 31277056 sectors, multi 0: LBA48 
[    7.623196][  T112] ata1.00: configured for UDMA/133
[    7.638584][    T7] scsi 0:0:0:0: Direct-Access     ATA      TS16GSSD25H-M    0712 PQ: 0 ANSI: 5
[    7.648219][  T116] sd 0:0:0:0: [sda] 31277056 512-byte logical blocks: (16.0 GB/14.9 GiB)
[    7.656970][  T116] sd 0:0:0:0: [sda] Write Protect is off
[    7.662540][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    7.670110][  T116] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    7.681751][  T116]  sda: sda1 sda2
[    7.686550][  T116] sd 0:0:0:0: [sda] Attached SCSI disk
[    7.872814][   T15] usb 1-1: New USB device found, idVendor=058f, idProduct=6254, bcdDevice= 1.00
[    7.881734][   T15] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    7.890182][   T15] hub 1-1:1.0: USB hub found
[    7.894808][   T15] hub 1-1:1.0: 4 ports detected
[    7.995920][  T114] ata2: SATA link down (SStatus 0 SControl F300)
[    8.015407][    T1] Freeing unused kernel memory: 1024K
[    8.021096][    T1] Checked W+X mappings: passed, no W+X pages found
[    8.027499][    T1] Run /init as init process
Loading, please wait...
Starting version 241
[    8.537590][  T169] input: gpio_keys as /devices/platform/gpio_keys/input/input0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
udevadm: symbol lookup error: /lib/arm-linux-gnueabi/libssl.so.1.1: undefined symbol: SSL_get_verify_canlback, version OPENSSL_1_1_0
Begin: Will now check root file system ... fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
sata_rootfs: clean, 78819/962880 files, 602493/3849216 blocks
done.
[   19.052424][  T195] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   19.066443][  T195] Unable to handle kernel paging request at virtual address 7f50ab10
[   19.074401][  T195] pgd = (ptrval)
[   19.077817][  T195] [7f50ab10] *pgd=00000000
[   19.082111][  T195] Internal error: Oops: 805 [#1] PREEMPT ARM
[   19.087968][  T195] Modules linked in: gpio_keys
[   19.092609][  T195] CPU: 0 PID: 195 Comm: mount Not tainted 5.2.9-kirkwood-tld-2 #1
[   19.100296][  T195] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   19.107288][  T195] PC is at string_nocheck+0x5c/0x68
[   19.112358][  T195] LR is at 0x0
[   19.115592][  T195] pc : [<809d31c4>]    lr : [<00000000>]    psr: 80000013
[   19.122576][  T195] sp : bfb97ce8  ip : 00000073  fp : 80abc717
[   19.128515][  T195] r10: 00000020  r9 : 80c31004  r8 : 7f50ab10
[   19.134453][  T195] r7 : 7f50ab30  r6 : bfb97d88  r5 : bf9b900c  r4 : ffffffff
[   19.141701][  T195] r3 : bf9b900d  r2 : bf9b900c  r1 : 7f50ab30  r0 : 7f50ab10
[   19.148947][  T195] Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[   19.156803][  T195] Control: 0005397f  Table: 3fa7c000  DAC: 00000051
[   19.163264][  T195] Process mount (pid: 195, stack limit = 0x(ptrval))
[   19.169814][  T195] Stack: (0xbfb97ce8 to 0xbfb98000)
[   19.174883][  T195] 7ce0:                   7f50ab10 7f50ab30 7f50ab30 809d4a6c 00000000 ffffff04
[   19.183795][  T195] 7d00: ffff0a00 802a4f9c 00000000 7f50ab10 80c31002 bfb97d84 7f50ab10 809d69d0
[   19.192706][  T195] 7d20: 7f50ab10 ffffff04 ffff0a00 003abc00 80f04028 00000001 00000000 ffffff04
[   19.201619][  T195] 7d40: ffff0a00 765523b8 000005b3 80f04028 bf9b900c bf9b9000 00000001 00000000
[   19.210530][  T195] 7d60: 00000000 00000000 bf9f9400 809d6bf0 bfb97d84 765523b8 7f50ab10 805fb930
[   19.219442][  T195] 7d80: 80c31002 bf9b900c 00000001 00000001 7f50ab10 bfa85400 bfa85588 00000014
[   19.228354][  T195] 7da0: ee58ad08 8035bb10 00004000 00001000 00000000 bf9e5c00 bfadd800 80349cac
[   19.237265][  T195] 7dc0: 00000000 00000000 00000001 00000000 00000000 00000000 00000000 00000000
[   19.246177][  T195] 7de0: ee4c2380 00000002 003b0000 00000000 bfadd9fc 00000000 00000000 00000000
[   19.255089][  T195] 7e00: 00000001 00000000 00000001 00000000 00000076 00000001 003a81ff 00000000
[   19.264001][  T195] 7e20: 00000000 00000000 00000000 00004003 ffffff05 ffff0a00 ee57a5e0 bf9e5e28
[   19.272913][  T195] 7e40: bfb97ed4 bf9e5e24 80c753b3 bf9e5e44 bf9e5e24 809d6774 bf9e5e74 ffffff05
[   19.281826][  T195] 7e60: ffff0a00 bf9e5e24 bf9e5e44 ee57a5e0 bfb97ed4 809d69fc ffffff05 ffff0a00
[   19.290738][  T195] 7e80: 80f04028 bf9e5c00 80f2e720 ffffff05 ffff0a00 765523b8 80f2e720 80f04028
[   19.299649][  T195] 7ea0: ee57a5e0 00008001 00000081 765523b8 00000000 bf9e5c00 ee57a5e0 00008001
[   19.308560][  T195] 7ec0: 00000081 ee57a648 00000000 00000000 00008001 8026fc74 ee57a5e0 00008001
[   19.317473][  T195] 7ee0: bf9ce3a0 bf9be200 80342934 00000060 bf9cee00 80f2e720 00000000 80342944
[   19.326385][  T195] 7f00: 80348010 00008001 bf9ce3a0 802a1f7c bf9be200 bf9be200 00000060 8026ea84
[   19.335296][  T195] 7f20: bf9be200 bf9ce600 00000000 bf9be200 00000060 8028fc6c 00000000 bf9cee00
[   19.344207][  T195] 7f40: 7ec25e70 80f04028 00008001 eec2b810 ee403a18 00000000 0000000a 765523b8
[   19.353119][  T195] 7f60: 0000000a 7ec25e7a bf9ce0c0 bf9cee00 00000000 00008001 bfb96000 00000000
[   19.362032][  T195] 7f80: 00000000 80290190 00000000 7ec25e7a 00000000 7ec25b2c 00000000 00000015
[   19.370943][  T195] 7fa0: 80101208 80101000 00000000 7ec25b2c 7ec25e70 7ec25e7a 7ec25e6b 00008001
[   19.379854][  T195] 7fc0: 00000000 7ec25b2c 00000000 00000015 76ffad70 00000000 00000000 00000000
[   19.388767][  T195] 7fe0: 00540f70 7ec25938 004ca3f8 76f30410 60000010 7ec25e70 00000000 00000000
[   19.397688][  T195] [<809d31c4>] (string_nocheck) from [<809d4a6c>] (string+0x58/0x68)
[   19.405642][  T195] [<809d4a6c>] (string) from [<809d69d0>] (vsnprintf+0x1f4/0x368)
[   19.413333][  T195] [<809d69d0>] (vsnprintf) from [<809d6bf0>] (snprintf+0x24/0x4c)
[   19.421027][  T195] [<809d6bf0>] (snprintf) from [<805fb930>] (disk_name+0x6c/0x7c)
[   19.428722][  T195] [<805fb930>] (disk_name) from [<8035bb10>] (jbd2_journal_init_inode+0x9c/0xd4)
[   19.437732][  T195] [<8035bb10>] (jbd2_journal_init_inode) from [<80349cac>] (ext4_fill_super+0x1c9c/0x2ef4)
[   19.447608][  T195] [<80349cac>] (ext4_fill_super) from [<8026fc74>] (mount_bdev+0x140/0x178)
[   19.456176][  T195] [<8026fc74>] (mount_bdev) from [<80342944>] (ext4_mount+0x10/0x1c)
[   19.464127][  T195] [<80342944>] (ext4_mount) from [<802a1f7c>] (legacy_get_tree+0x24/0x48)
[   19.472516][  T195] [<802a1f7c>] (legacy_get_tree) from [<8026ea84>] (vfs_get_tree+0x20/0x108)
[   19.481169][  T195] [<8026ea84>] (vfs_get_tree) from [<8028fc6c>] (do_mount+0x5e0/0x878)
[   19.489292][  T195] [<8028fc6c>] (do_mount) from [<80290190>] (ksys_mount+0x70/0x98)
[   19.497071][  T195] [<80290190>] (ksys_mount) from [<80101000>] (ret_fast_syscall+0x0/0x50)
[   19.505455][  T195] Exception stack(0xbfb97fa8 to 0xbfb97ff0)
[   19.511221][  T195] 7fa0:                   00000000 7ec25b2c 7ec25e70 7ec25e7a 7ec25e6b 00008001
[   19.520133][  T195] 7fc0: 00000000 7ec25b2c 00000000 00000015 76ffad70 00000000 00000000 00000000
[   19.529044][  T195] 7fe0: 00540f70 7ec25938 004ca3f8 76f30410
[   19.534811][  T195] Code: e8bd4010 e28dd008 e12fff1e e1500001 (35c0c000) 
[   19.541627][  T195] ---[ end trace 82efe67b884afa94 ]---
Segmentation fault
Failed to mount /dev/sda1 as root file system.


BusyBox v1.30.1 (Debian 1:1.30.1-4) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs) [   63.238603][   T15] Unable to handle kernel NULL pointer dereference at virtual address 00000108
[   63.247454][    C0] Unable to handle kernel NULL pointer dereference at virtual address 0000013f
[   63.247459][    C0] pgd = (ptrval)
[   63.247461][    C0] [0000013f] *pgd=00000000
[   63.247468][    C0] Internal error: Oops: 1 [#2] PREEMPT ARM
[   63.247471][    C0] Modules linked in: gpio_keys
[   63.247483][    C0] CPU: 0 PID: 15 Comi: kworker/0:1 Tainted: G      D           5.2.9-kirkwood-tld-2 #1
[   63.247485][    C0] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   63.247499][    C0] Workqueue: events_power_efficient do_cache_clean
[   63.247508][    C0] PC is at update_curr+0x108/0x240
[   63.247513][    C0] LR is at update_curr+0x108/0x240
[   63.247516][    C0] pc : [<80144ffc>]    lr : [<80144ffc>]    psr: 60000093
[   63.247519][    C0] sp : eed65b18  ip : 0000000b  fp : 80f0ef60
[   63.247522][    C0] r10: 00000000  r9 : 80fb3fc8  r8 : 80f0408c
[   63.247525][    C0] r7 : 00000000  r6 : 008752d0  r5 : 80f0e398  r4 : eed62e70
[   63.247528][    C0] r3 : 00000002  r2 : 195e1b55  r1 : 00000000  r0 : 80f0e398
[   63.247533][    C0] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
[   63.247536][    C0] Control: 0005397f  Table: 3fa0c000  DAC: 00000051
[   63.247540][    C0] Process kworker/0:1 (pid: 15, stack limit = 0x(ptrval))
[   63.247543][    C0] Stack: (0xeed65b18 to 0xeed66000)
[   63.247548][    C0] 5b00:                                                       80f0e398 eed62e40
[   63.247555][    C0] 5b20: 00000000 80f0e398 eed62e70 00000000 0000000e 80f0408c 80fb3fc8 00000000
[   63.247561][    C0] 5b40: 80f0ef60 80146c88 80f0e360 eed62e40 00000000 0000000e 80fb48ec 80f0e360
[   63.247568][    C0] 5b60: eed62e40 00000000 0000000e 80fb48ec 80f15a20 7fffffff eed65b8c 801411b4
[   63.247575][    C0] 5b80: eed64000 eed62e40 801879f4 80178718 80f166e0 eed65d28 b9b4e3e5 801877f8
[   63.247582][    C0] 5ba0: 80f166e0 80187a3c 80f166e0 80fb4914 00010003 80f15a20 80f15a60 80f166e0
[   63.247589][    C0] 5bc0: 00000000 80179580 20000093 80f04028 b9b4df3f 0000000e b9b4df3f 0000000e
[   63.247595][    C0] 5be0: eed62e70 008cb7e2 80f0e398 80f15a20 20000093 b9b4df3f 0000000e 00000001
[   63.247602][    C0] 5c00: eec21c00 7fffffff ffffffff 80179a9c 00000003 ffffffff b9b4df3f 0000000e
[   63.247609][    C0] 5c20: 80f15b50 80f15b70 ffffffff 80f9f160 eed64000 eec21c00 00000011 00000001
[   63.247616][    C0] 5c40: eec21c00 eed65c88 00000000 80863f30 80f9f160 80161650 eec21c00 eed65c88
[   63.247622][    C0] 5c60: 00010003 80f04028 00000002 eec21c00 eec05f20 00000001 eed65d28 eed65d28
[   63.247629][    C0] 5c80: 00000001 801617cc 00000000 008cb7e2 eec21c00 00000002 eec0aa18 80161880
[   63.247636][    C0] 5ca0: eec21c00 00000002 eec0aa18 80165c88 00000004 80160888 00000004 806388c8
[   63.247642][    C0] 5cc0: 00000010 80fad698 00000000 eec0a600 00000001 80160888 00000010 80160f4c
[   63.247649][    C0] 5ce0: 00000002 81016508 00000001 eec2201c 00000000 eec22000 eed65d28 80638868
[   63.247656][    C0] 5d00: 8015e1d8 8015e1e0 60000013 ffffffff eed65d5c 00000000 eed64000 60000013
[   63.247662][    C0] 5d20: 80fdc820 80102188 00000003 60000093 80f0f42c 00000000 80fdc300 80fdc820
[   63.247669][    C0] 5d40: 00000000 00000064 00000000 80fdd02d 60000013 80fdc820 00000002 eed65d78
[   63.247676][    C0] 5d60: 8015e1d8 8015e1e0 60000013 ffffffff 00000051 7f000000 00000400 8015f370
[   63.247682][    C0] 5d80: 0000011f 00000000 00000120 00000000 0000000f 00005fc0 80fdc300 80fdc300
[   63.247688][    C0] 5da0: 00000001 0000011f 00000001 00000120 00000000 0000004c 00000001 8015f9ac
[   63.247695][    C0] 5dc0: 80c2e397 eed65e1c 80145528 60000013 eed62e70 80f04028 eed65ea0 00000005
[   63.247702][    C0] 5de0: 00000000 ece1b280 00000005 80fb45f4 00000000 8015fa00 80c2e397 eed65e1c
[   63.247708][    C0] 5e00: 00000002 8015ff20 eed65e1c 008cb7e2 00000108 801102bc 80c2e397 80c2e36f
[   63.247715][    C0] 5e20: 00000108 80c2e388 eed62e40 80110604 00000000 80145644 80145528 80f0e360
[   63.247722][    C0] 5e40: 80f0e360 00000003 80fb4644 80f04028 60000093 00000005 80f08a80 00000108
[   63.247729][    C0] 5e60: eed65ea0 ece1b280 eed64000 80fb45f4 00000008 80110778 eed62e70 80f0e398
[   63.247735][    C0] 5e80: 0001aab3 00000000 eed62e70 809a5394 20000013 ffffffff eed65ed4 801020f8
[   63.247742][    C0] 5ea0: 00000001 00000001 00000049 ece28000 00000100 80fac690 80f04028 81021880
[   63.247748][    C0] 5ec0: ece1b280 00000000 80fb45f4 00000008 00000049 eed65ef0 809a5158 809a5394
[   63.247755][    C0] 5ee0: 20000013 ffffffff 00000053 00000000 6229701d 00000000 3ad8b4f6 80f00018
[   63.247762][    C0] 5f00: 00000008 008cb7e2 00000093 eec05620 81022084 80f0c5b0 ef1e8800 00000000
[   63.247768][    C0] 5f20: 00000000 80fb45f4 00000008 809a5430 eec05620 80131fc4 eec05620 81022084
[   63.247775][    C0] 5f40: eec05620 eec05634 eed64000 80f0c5b0 80f13c40 80f0c5c4 00000000 80133110
[   63.247782][    C0] 5f60: eed62e40 eec832c0 eec97800 eed64000 eec05620 80132e04 eecc1ec0 eec832d8
[   63.247789][    C0] 5f80: 00000000 80137588 00000000 eec97800 80137470 00000000 00000000 00000000
[   63.247795][    C0] 5fa0: 00000000 00000000 00000000 801010e0 00000000 00000000 00000000 00000000
[   63.247800][    C0] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   63.247806][    C0] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[   63.247821][    C0] [<80144ffc>] (update_curr) from [<80146c88>] (task_tick_fair+0x40/0x1ac)
[   63.247836][    C0] [<80146c88>] (task_tick_fair) from [<801411b4>] (scheduler_tick+0x48/0x94)
[   63.247850][    C0] [<801411b4>] (scheduler_tick) from [<80178718>] (update_process_times+0x4c/0x5c)
[   63.247866][    C0] [<80178718>] (update_process_times) from [<801877f8>] (tick_sched_handle+0x54/0x60)
[   63.247876][    C0] [<801877f8>] (tick_sched_handle) from [<80187a3c>] (tick_sched_timer+0x48/0x9c)
[   63.247887][    C0] [<80187a3c>] (tick_sched_timer) from [<80179580>] (__hrtimer_run_queues.constprop.3+0x1b8/0x378)
[   63.247897][    C0] [<80179580>] (__hrtimer_run_queues.constprop.3) from [<80179a9c>] (hrtimer_interrupt+0xf8/0x2e0)
[   63.247908][    C0] [<80179a9c>] (hrtimer_interrupt) from [<80863f30>] (orion_clkevt_irq_handler+0x10/0x1c)
[   63.247919][    C0] [<80863f30>] (orion_clkevt_irq_handler) from [<80161650>] (__handle_irq_event_percpu+0xb8/0x210)
[   63.247927][    C0] [<80161650>] (__handle_irq_event_percpu) from [<801617cc>] (handle_irq_event_percpu+0x24/0x78)
[   63.247935][    C0] [<801617cc>] (handle_irq_event_percpu) from [<80161880>] (handle_irq_event+0x60/0x84)
[   63.247945][    C0] [<80161880>] (handle_irq_event) from [<80165c88>] (handle_edge_irq+0x16c/0x198)
[   63.247953][    C0] [<80165c88>] (handle_edge_irq) from [<80160888>] (generic_handle_irq+0x18/0x28)
[   63.247963][    C0] [<80160888>] (generic_handle_irq) from [<806388c8>] (orion_bridge_irq_handler+0x54/0x5c)
[   63.247971][    C0] [<806388c8>] (orion_bridge_irq_handler) from [<80160888>] (generic_handle_irq+0x18/0x28)
[   63.247978][    C0] [<80160888>] (generic_handle_irq) from [<80160f4c>] (__handle_domain_irq+0xac/0xcc)
[   63.247985][    C0] [<80160f4c>] (__handle_domain_irq) from [<80638868>] (orion_handle_irq+0x78/0x84)
[   63.247994][    C0] [<80638868>] (orion_handle_irq) from [<80102188>] (__irq_svc+0x68/0x9c)
[   63.247997][    C0] Exception stack(0xeed65d28 to 0xeed65d70)
[   63.248003][    C0] 5d20:                   00000003 60000093 80f0f42c 00000000 80fdc300 80fdc820
[   63.248010][    C0] 5d40: 00000000 00000064 00000000 80fdd02d 60000013 80fdc820 00000002 eed65d78
[   63.248014][    C0] 5d60: 8015e1d8 8015e1e0 60000013 ffffffff
[   63.248022][    C0] [<80102188>] (__irq_svc) from [<8015e1e0>] (console_unlock+0x33c/0x4e4)
[   63.248029][    C0] [<8015e1e0>] (console_unlock) from [<8015f9ac>] (vprintk_emit+0x294/0x2cc)
[   63.248036][    C0] [<8015f9ac>] (vprintk_emit) from [<8015fa00>] (vprintk_default+0x1c/0x24)
[   63.248043][    C0] [<8015fa00>] (vprintk_default) from [<8015ff20>] (printk+0x24/0x4c)
[   63.248055][    C0] [<8015ff20>] (printk) from [<801102bc>] (__do_kernel_fault.part.0+0x38/0x74)
[   63.248063][    C0] [<801102bc>] (__do_kernel_fault.part.0) from [<80110604>] (do_page_fault+0x30c/0x31c)
[   63.248072][    C0] [<80110604>] (do_page_fault) from [<80110778>] (do_DataAbort+0x38/0xa4)
[   63.248079][    C0] [<80110778>] (do_DataAbort) from [<801020f8>] (__dabt_svc+0x58/0x80)
[   63.248082][    C0] Exception stack(0xeed65ea0 to 0xeed65ee8)
[   63.248089][    C0] 5ea0: 00000001 00000001 00000049 ece28000 00000100 80fac690 80f04028 81021880
[   63.248095][    C0] 5ec0: ece1b280 00000000 80fb45f4 00000008 00000049 eed65ef0 809a5158 809a5394
[   63.248099][    C0] 5ee0: 20000013 ffffffff
[   63.248107][    C0] [<801020f8>] (__dabt_svc) from [<809a5394>] (cache_clean+0x2b4/0x348)
[   63.248115][    C0] [<809a5394>] (cache_clean) from [<809a5430>] (do_cache_clean+0x8/0x5c)
[   63.248129][    C0] [<809a5430>] (do_cache_clean) from [<80131fc4>] (process_one_work+0x25c/0x450)
[   63.248139][    C0] [<80131fc4>] (process_one_work) from [<80133110>] (worker_thread+0x30c/0x48c)
[   63.248149][    C0] [<80133110>] (worker_thread) from [<80137588>] (kthread+0x118/0x12c)
[   63.248157][    C0] [<80137588>] (kthread) from [<801010e0>] (ret_from_fork+0x14/0x34)
[   63.248160][    C0] Exception stack(0xeed65fb0 to 0xeed65ff8)
[   63.248165][    C0] 5fa0:                                     00000000 00000000 00000000 00000000
[   63.248170][    C0] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   63.248175][    C0] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   63.248182][    C0] Code: e0a11003 e1c403f8 e1a00005 ebfffe5e (e59c3134) 
[   63.248192][    C0] ---[ end trace 82efe67b884afa95 ]---
[   63.248196][    C0] Kernel panic - not syncing: Fatal exception in interrupt
[   64.121134][    C0] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---

Also, like the previous kwb file, it boots just fine with a USB IR receiver plugged in. Any chance it could be the older Debian (5.2.9) that is intalled?
Re: Debian on Dell Kace M300
March 10, 2022 02:16AM
> Any
> chance it could be the older Debian (5.2.9) that
> is intalled?

Perhaps it is best that we are using the same version. I've rebooted my M300.


root@m300:~# myinfo
m300
192.168.0.249  
Dell KACE M300
Linux version 5.16.5-kirkwood-tld-1 (root@tldDebianVM) (arm-linux-gnueabi-gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1.0 PREEMPT Sat Feb 5 20:02:03 PST 2022
Debian 11.1
--- System Stats:
/dev/sda: TS16GSSD25H-M:  no sensor
SMART check: PASSED
Thu 10 Mar 2022 12:14:03 AM PST up 7 minutes


root@m300:~# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=894240k,nr_inodes=223560,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=600,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=179972k,mode=755)
/dev/sda1 on / type ext3 (rw,noatime,errors=remount-ro)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
securityfs on /sys/kernel/security type securityfs (rw,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=359920k)
tmpfs on /tmp type tmpfs (rw,relatime)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/etc/auto.nfs on /mnt/nfs type autofs (rw,relatime,fd=6,pgrp=1266,timeout=300,minproto=5,maxproto=5,indirect)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)

root@m300:~# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0 14.9G  0 disk 
└─sda1   8:1    0 14.9G  0 part /
root@m300:~# df -h

Filesystem      Size  Used Avail Use% Mounted on
udev            874M     0  874M   0% /dev
tmpfs           176M  1.3M  175M   1% /run
/dev/sda1        15G  7.4G  6.5G  54% /
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           352M     0  352M   0% /dev/shm
tmpfs           879M   20K  879M   1% /tmp

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Dell Kace M300
March 12, 2022 03:46PM
Success at latest kwboot!

I bungled an attempt to upgrade the 5.2.9 kernel so had to start over with a fresh mSATA formatted to ext3. Not quite the same kernel as yours but close.
Debian GNU/Linux 11 kace ttyS0

kace login: root
Password: 
Linux kace 5.13.6-kirkwood-tld-1 #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Mar 12 10:56:21 HST 2022 on ttyS0
kace
192.168.200.1
Dell KACE M300
Linux version 5.13.6-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021
Debian 11.0
Sat Mar 12 11:00:34 HST 2022 up 1 minute

On a side note... what command stops the min-terminal in kwboot? Exiting out of the gnome terminal gui is not very eloquent.
Re: Debian on Dell Kace M300
March 12, 2022 03:53PM
> Success at latest kwboot!

Cool!

> On a side note... what command stops the
> min-terminal in kwboot? Exiting out of the gnome
> terminal gui is not very eloquent.

Ctrl-\ c (control-backslash and then c). 2 keystrokes.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Dell Kace M300
March 13, 2022 06:41PM
dougdeep Wrote:
-------------------------------------------------------
> Success at latest kwboot!
>
> I bungled an attempt to upgrade the 5.2.9 kernel
> so had to start over with a fresh mSATA formatted
> to ext3. Not quite the same kernel as yours but
> close.

does it still have the same no-boot behavior unless something is plugged into USB with the latest kernel/rootfs combo?
Re: Debian on Dell Kace M300
March 13, 2022 07:07PM
> does it still have the same no-boot behavior
> unless something is plugged into USB with the
> latest kernel/rootfs combo?

Not for me. The only drive I have on this box is the internal SSD. No other USB gadget.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Dell Kace M300
March 14, 2022 04:13PM
sudos Wrote:

> does it still have the same no-boot behavior
> unless something is plugged into USB with the
> latest kernel/rootfs combo?

One of my two SSDs still has that behavior. They're running two different debian versions (buster vs bullseye), so I don't know if that has anything to do with it. I'll have to check if they're also using different kernel versions (I don't think so). I'm going to clone the working SSD to the non-working and see what happens when I get a chance.
Re: Debian on Dell Kace M300
March 14, 2022 09:29PM
Quote
sudos
does it still have the same no-boot behavior unless something is plugged into USB with the latest kernel/rootfs combo?

For kwboot, it worked with or without a USB device plugged in. Switching back to the original uboot it would only boot the mSATA with something plugged into USB. Same as before so it doesn't seem to be the fault of the kernel or Debian version.
Re: Debian on Dell Kace M300
March 15, 2022 01:07AM
> For kwboot, it worked with or without a USB device
> plugged in. Switching back to the original uboot
> it would only boot the mSATA with something
> plugged into USB. Same as before so it doesn't
> seem to be the fault of the kernel or Debian
> version.

That's a very good test dougdeep! I was hoping to hear that from somebody. Myself alone is only one data point, after all :)

Basically, the new u-boot married the stock u-boot header with modern u-boot code. That was my plan B from the start. In retrospect, that should have been plan A.

But the ultimate test would be to flash it to SPI flash, and run with mSATA only drive for a while to see there is any abnormal behavior.

At the moment, the only possible installation on flash is to have serial console to unprotect the flash before writing, so I'm not satisified yet. But, perhaps we'll live with that restriction for now, and refine it with a patch in the next kernel release.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Dell Kace M300
March 15, 2022 05:50PM
Cloning the reliable SSD to the unreliable one definitely made things better. I did get this a couple of times:

U-Boot 2021.10-tld-1 (Feb 22 2022 - 17:41:54 -0800)
Dell KACE M300

SoC:   Kirkwood 88F6282_A1
Model: Dell KACE M300
DRAM:  2 GiB
Loading Environment from SPIFlash... SF: Detected mx25l4005a with page size 256 Bytes, erase size 4 KiB, total 512 KiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:
Warning: ethernet-controller@72000 (eth0) using random MAC address - 42:95:ff:2e:dd:68
eth0: ethernet-controller@72000
MV88E1318 PHY initialized on ethernet-controller@72000
Hit any key to stop autoboot:  0
Initializing devices...
resetting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
resetting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Unknown command 'mmc' - try 'help'
Loading envs from usb 0...
Couldn't find partition usb 0:1
Can't set block device
Loading envs from usb 1...
Couldn't find partition usb 1:1
Can't set block device
Loading envs from usb 2...
Couldn't find partition usb 2:1
Can't set block device
Loading envs from usb 3...
Couldn't find partition usb 3:1
Can't set block device
Loading envs from sata 0...
160 bytes read in 7 ms (21.5 KiB/s)
... envs loaded
importing envs ...
running scan_disk ...
Scan device usb
resetting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
resetting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
device usb 0:1
Couldn't find partition usb 0:1
Can't set block device
device usb 1:1
Couldn't find partition usb 1:1
Can't set block device
device usb 2:1
Couldn't find partition usb 2:1
Can't set block device
device usb 3:1
Couldn't find partition usb 3:1
Can't set block device
Scan device sata
device sata 0:1
1 bytes read in 7 ms (0 Bytes/s)
Found bootable drive on sata 0
loading uImage ...
Failed to wait for completion on port 0
ATA operation timed out
Failed to wait for completion on port 0
ATA operation timed out
Failed to wait for completion on port 0
ATA operation timed out
Failed to wait for completion on port 0
ATA operation timed out
...

After seeing the above a couple of times I haven't seen it again after another half dozen boots.

In case it matters, before I cloned the "better" SSD it had Kernel version 5.2.9 and Debian version 10.0. It now has Kernel version 5.16.5 and Debian version 11.2 and is more reliable as far as booting goes.

I may have to admit it's just a flaky SSD because I can't say for certain that it always boots with something in the USB port. I've noticed before that it usually boots the first time after it's been sitting on my desk for a while and starts to fail once it warms up. However, even "warmed up" it will boot with something in the USB port with the stock u-boot or the modified ones.

I'm still ready to flash this thing, so if you need a guinea pig I'm here. :-)
Re: Debian on Dell Kace M300
March 15, 2022 06:19PM
renojim,

> Failed to wait for completion on port 0
> ATA operation timed out
> Failed to wait for completion on port 0
> ATA operation timed out
> Failed to wait for completion on port 0
> ATA operation timed out
> Failed to wait for completion on port 0
> ATA operation timed out

> I may have to admit it's just a flaky SSD

Yes it is a flaky SSD.

> I'm still ready to flash this thing, so if you
> need a guinea pig I'm here. :-)

I'm tracking down a problem with the SPI flash. I have flashed it to SPI and it runs beautifully, but the envs always end up having CRC error upon boot. Not sure why yet.

Let me post it and you guys can flash with that caveat.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Dell Kace M300
March 15, 2022 07:50PM
Here is the new u-boot. This image can be flashed to SPI mtd0.

At the moment, I still have some problem flashing the default envs image in Debian, so that will come later.

1. Unprotect the SPI flash

Boot with serial console, interrupt u-boot count down and unprotect the SPI flash

protect off all
Expected output
Un-Protect Flash Bank # 1
................................................................................................................................ done

And then go ahead boot into Debian

boot

2. Flash new u-boot

Log into Debian, download the attached u-boot image. And flash it.

flash_unlock /dev/mtd0
flashcp -v uboot.2021.10-tld-1.m300.mtd0.kwb   /dev/mtd0
Expected output
Erasing blocks: 96/96 (100%)
Writing data: 384k/384k (100%)
Verifying data: 384k/384k (100%)


3. Prepare the rootfs to boot with new u-boot.

As we have been booting with stock u-boot, the DTB is appended to uImage. So it should be restored to the original uImage before we will boot with separate DTB.

cd /boot
cp -a uImage uImage.m300.dtb
cp -a uImage.orig uImage

Or just recreate uImage

mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.16.5-kirkwood-tld-1 -d vmlinuz-5.16.5-kirkwood-tld-1 uImage


4. Prepare the uEnv.xt.

Replace the ethaddr, ipaddr, and serverip values to the appropriate ones for your box. The other envs are optional, nice to have (it will make booting faster).

cat /boot/uEnv.xt
ethaddr=18:03:73:xx:xx:xx
ipaddr=192.168.0.249
serverip=192.168.0.220
custom_params=raid=noautodetect
bootdev=sata
devices=sata usb

And then sync and reboot

sync
sync
sync
shutdown -r now

Observer serial console output, the banner should show

U-Boot 2021.10-tld-1 (Mar 15 2022 - 13:07:52 -0700)
Dell KACE M300

Just let it boot automatically into Debian. And if there is problem, please post serial boot log. Or if you'd like, post it anyway so I can doublecheck.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 2 time(s). Last edit at 03/16/2022 12:15AM by bodhi.
Attachments:
open | download - uboot.2021.10-tld-1.m300.mtd0.kwb (384 KB)
Re: Debian on Dell Kace M300
March 15, 2022 11:34PM
Well it boots from SATA, but I can't get it to boot from USB. I need to take a break since I've watched this thing boot or not boot dozens of times today.

Since the DTB is removed from uImage should there be a directive in uEnv.txt? I tried adding one, but it still kernel panics when I try to boot from USB. Without any dtb entry I got something like a machine ID error and something else when trying to boot from USB, but my brain is fried and I can't remember anything right now. I may have messed up something else. I'll try again and post a log later.
Re: Debian on Dell Kace M300
March 16, 2022 12:14AM
Whether booting from USB or SATA, you can recreate the uImage to make sure that it has no DTB appended.

mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.16.5-kirkwood-tld-1 -d vmlinuz-5.16.5-kirkwood-tld-1 uImage

The DTB file is defaulted to the correct location, so there is no set up need.

Power up, interrupt u-boot countdown and

printenv
boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 03/16/2022 12:26AM by bodhi.
Re: Debian on Dell Kace M300
March 17, 2022 01:31AM
bodhi Wrote:
-------------------------------------------------------
> Here is the new u-boot. This image can be flashed
> to SPI mtd0.
>
> At the moment, I still have some problem flashing
> the default envs image in Debian, so that will
> come later.

Success! changed root login, flashed the uboot image from stock Debian, set up a spare SSD with 5.13.6 and used a mixture of the "permanent" uboot envs from the M300-specific tutorial post and such to get it to boot off SATA. it works!!

up next will be upgrading it to the latest kernel and seeing how that fares.

So far I can confirm that the kirkwood core in the Armada SoC is faster than any of the other embedded ARM devices I have, and especially the Pi Zero I used for serial console. simple calculation of Pi to 5 digits confirms this...
Using:
time echo "scale=5000; a(1)*4" | bc -l
the M300 did it in one minute 5 seconds, the Pi Zero took 2 minutes 34 seconds, the Pogoplug E02 took 1 minute 51 seconds, and the Pogo v4 did it in 2 minutes 45 seconds.

As others have said, that makes this a very, VERY nice little embedded ARM device, despite being softfloat.

can also confirm that as I expected, putting a thermal gap pad on the SSD's main Silicon Motion SoC helps drastically with data transfer speeds, going from 65MB/s without a gap pad and going up to 92MB/s with one fitted to sink it to the motherboard. In the near future I'm going to acquire a used SanDisk X110 128GB SSD which once de-cased, will be exactly the same dimensions as the SSD this came with and thus should be able to mount cleanly. the addition of DRAM cache with that should help even more drastically to up the disk speed up to the limits of what the SoC can dish out... and be much, much faster than such a disk with the Pogo v4 by comparison. (the X110 should also not need heatsinking to get to this level of performance.)

will continue to follow along as more progress is made, but right now, I have a booting M300 :D
Re: Debian on Dell Kace M300
March 17, 2022 01:47AM
sudos,

> Success! changed root login, flashed the uboot
> image from stock Debian, set up a spare SSD with
> 5.13.6 and used a mixture of the "permanent" uboot
> envs from the M300-specific tutorial post and such
> to get it to boot off SATA. it works!!

Cool!

> So far I can confirm that the kirkwood core in the
> Armada SoC is faster than any of the other
> embedded ARM devices I have, and especially the Pi
> Zero I used for serial console. simple calculation
> of Pi to 5 digits confirms this...

BTW, this SoC (6282) is branded as Armada 300. But it is really a clone of the Kirkwood 6281 (armv5). Starting the Armada 370 SoC, the architecture is armv7.

> can also confirm that as I expected, putting a
> thermal gap pad on the SSD's main Silicon Motion
> SoC helps drastically with data transfer speeds,
> going from 65MB/s without a gap pad and going up
> to 92MB/s with one fitted to sink it to the
> motherboard.

Nice!

In the near future I'm going to
> acquire a used SanDisk X110 128GB SSD which once
> de-cased, will be exactly the same dimensions as
> the SSD this came with and thus should be able to
> mount cleanly. the addition of DRAM cache with
> that should help even more drastically to up the
> disk speed up to the limits of what the SoC can
> dish out... and be much, much faster than such a
> disk with the Pogo v4 by comparison. (the X110
> should also not need heatsinking to get to this
> level of performance.)
>
> will continue to follow along as more progress is
> made, but right now, I have a booting M300 :D

Fantastic!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Dell Kace M300
March 17, 2022 08:32PM
bodhi, sorry for the false alarm about USB booting. I thought my uImage.orig was of dubious origins and was in fact from a different kernel version. I have to stop experimenting after midnight.

I recreated uImage and can now boot from SSD or USB. Very nicely done!

One thing, I don't see any CRC errors when I boot and I was able to change and save bootdelay. Maybe I'm misunderstanding what you mean about env CRC errors. I did see them when I was using kwboot, but not now.

U-Boot 2021.10-tld-1 (Mar 15 2022 - 13:07:52 -0700)
Dell KACE M300

SoC:   Kirkwood 88F6282_A1
Model: Dell KACE M300
DRAM:  2 GiB
Loading Environment from SPIFlash... SF: Detected mx25l4005a with page size 256 Bytes, erase size 4 KiB, total 512 KiB
OK
In:    serial
Out:   serial
Err:   serial
Net:
Warning: ethernet-controller@72000 (eth0) using random MAC address - ee:99:3a:4b:74:fe
eth0: ethernet-controller@72000
MV88E1318 PHY initialized on ethernet-controller@72000
Hit any key to stop autoboot:  0
Initializing devices...
resetting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices...
Use USB retry period from the environment: 15 second(s)
3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
resetting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices...
Use USB retry period from the environment: 15 second(s)
3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
Unknown command 'mmc' - try 'help'
Loading envs from usb 0...
100 bytes read in 14 ms (6.8 KiB/s)
... envs loaded
importing envs ...
running scan_disk ...
Scan device usb
resetting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices...
Use USB retry period from the environment: 15 second(s)
3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
resetting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices...
Use USB retry period from the environment: 15 second(s)
3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
device usb 0:1
1 bytes read in 7 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5669000 bytes read in 210 ms (25.7 MiB/s)
loading uInitrd ...
10424010 bytes read in 384 ms (25.9 MiB/s)
loading DTB /boot/dts/kirkwood-m300.dtb ...
10497 bytes read in 13 ms (788.1 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   linux-5.16.5-kirkwood-tld-1
   Created:      2022-03-16  20:26:27 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5668936 Bytes = 5.4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02100000 ...
   Image Name:   initramfs-5.16.5-kirkwood-tld-1
   Created:      2022-02-13  21:06:14 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    10423946 Bytes = 9.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image
   Loading Ramdisk to 3f60f000, end 3ffffe8a ... OK
   Loading Device Tree to 7fb95000, end 7fb9a900 ... OK

Starting kernel ...

As always, thanks for all your hard work!
Re: Debian on Dell Kace M300
March 17, 2022 08:57PM
JT,

> I have to stop experimenting after
> midnight.

:D happens to me from time to time, too.

> I recreated uImage and can now boot from SSD or
> USB. Very nicely done!

Cool!

> One thing, I don't see any CRC errors when I boot
> and I was able to change and save bootdelay.
> Maybe I'm misunderstanding what you mean about env
> CRC errors. I did see them when I was using
> kwboot, but not now.

Did you save it in serial console? that works for me, too. What I meant was doing fw_setenv in Debian.

Could you guys try this in Debian. Only do this if you have serial console connected so you can see in serial log that the CRC has error. And remember to keep using the Env.txt, so that if CRC error occurs, then the boot will be just like you expected it to.

fw_setenv bootdev sata
fw_setenv devices 'sata usb'

If you have no problem then it is probably related to my 2nd M300 box. I have not yet tried to save envs on my 1st M300.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Dell Kace M300
March 18, 2022 03:00PM
Now that you mention it, I set bootdelay from the M300 prompt. Sure enough, if I try to use fw_setenv I get a CRC error. Definitely not a huge drawback in my opinion. I'd much rather have reliable booting than the ability to set environment variables from within Debian. :-)
Re: Debian on Dell Kace M300
March 18, 2022 03:15PM
> Now that you mention it, I set bootdelay from the
> M300 prompt. Sure enough, if I try to use
> fw_setenv I get a CRC error. Definitely not a
> huge drawback in my opinion.

Also, since we have uEnv.txt capability, almost all of the envs can be set "in Debian" (except bootcmd and bootcmd_uenv).

But this should be fixed eventually. I think there must be a misatch between the new u-boot SPI driver settings and the Linux kernel driver settings for this mx25l4005a SPI somewhere.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Dell Kace M300
March 19, 2022 03:38AM
Bodhi,

Have you tried adjusting the spi-max-frequency in the dts to see if that might have an affect on writing to the flash?

Ray
Re: Debian on Dell Kace M300
March 19, 2022 04:22PM
Ray,

> Have you tried adjusting the spi-max-frequency in
> the dts to see if that might have an affect on
> writing to the flash?

That's a good point (something worth to look at).

However, at the moment, they are the same. Because this new u-boot uses the same DTS from the kernel.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Dell Kace M300
March 19, 2022 08:11PM
I wonder if there's something else going on with the flash. I was trying to get netconsole working and playing with env vars from u-boot and after adding a few I got a CRC error on the next boot. It's like I can change one and save it with no problem, but adding a few will eventually cause a CRC error.
Re: Debian on Dell Kace M300
March 19, 2022 08:17PM
JT,

Netconsole has not been complete. I was going to look at that next. There was something changed in mainline in this area.

> adding a few will eventually cause a
> CRC error.

Right!

The odd thing is that after you reverse the change in Debian, it was back to normal. So it seems the checksum is the problem.

Perhaps I've missed some thing new related to this specific SPI flash driver (mx25l4005a).

I think I will rebase to 2022.04 version for this box before doing more troubleshooting.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 03/19/2022 08:19PM by bodhi.
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: