Welcome! Log In Create A New Profile

Advanced

Debian on Dell Wyse 3020

Posted by Mischif 
Re: Debian on Dell Wyse 3020
February 10, 2024 03:31PM
All,

I'm refreshing my memory about this topic.

https://forum.doozan.com/read.php?2,134563,135517#msg-135517

Quote

Gravelrash Wrote:
-------------------------------------------------------
> bodhi Wrote:
> > I'm on travel currently, and will get back to
> this
> > subject when I can.
>
>
> "Bodhi Bond" - International man of
> computing and all round nice guy with a licence to
> defeat uboot problems

>
> xml code from above
>
> <imageType><sourceMethod><merlinImage><versionNumber>3.4.0</versionNumber></merlinImage></sourceMethod></imageType><commandSet><commandEnvelope><downloadARMImageFromServerEx><transferEncoding><type>lzma</type><encodedSize>934186</encodedSize></transferEncoding><source><location>bootLoader.img</location><checksum>c67d</checksum><size>1179648</size></source><destination><securityKey><masterKey>0101072D</masterKey><masterKeyMask>FFFFFFFF</masterKeyMask><supportedKeySet><supportedKey><key>0101072D</key><mask>FFFFFFFF</mask></supportedKey></supportedKeySet></securityKey><bootLoader/></destination></downloadARMImageFromServerEx></commandEnvelope><commandEnvelope><downloadARMImageFromServerEx><transferEncoding><type>lzma</type><encodedSize>430</encodedSize></transferEncoding><source><location>cmos.img</location><checksum></checksum><size>327680</size></source><destination><securityKey><masterKey>0101072D</masterKey><masterKeyMask>FFFFFFFF</masterKeyMask><supportedKeySet><supportedKey><key>0101072D</key><mask>FFFFFFFF</mask></supportedKey></supportedKeySet></securityKey><cmos/></destination></downloadARMImageFromServerEx></commandEnvelope><commandEnvelope><downloadARMImageFromServerEx><transferEncoding><type>lzma</type><encodedSize>56563502</encodedSize></transferEncoding><source><location>par1.img</location><checksum></checksum><size>3909091328</size></source><destination><securityKey><masterKey>0101072D</masterKey><masterKeyMask>FFFFFFFF</masterKeyMask><supportedKeySet><supportedKey><key>0101072D</key><mask>FFFFFFFF</mask></supportedKey></supportedKeySet></securityKey><ide><channel>0</channel><drive>0</drive><scope><drive/></scope></ide></destination></downloadARMImageFromServerEx></commandEnvelope></commandSet><commandSet><configuration><spiflash><vendor>PCT</vendor><size>4</size></spiflash><spiflash><vendor>MXIC</vendor><size>4</size></spiflash><spiflash><vendor>MXIC</vendor><size>8</size></spiflash><spiflash><vendor>WINBOND</vendor><size>4</size></spiflash><spiflash><vendor>WINBOND</vendor><size>8</size></spiflash><spiflash><vendor>MICRON</vendor><size>8</size></spiflash><spiflash><vendor>GENERIC_SPI</vendor><size>4</size></spiflash><spiflash><vendor>GENERIC_SPI</vendor><size>8</size></spiflash></configuration></commandSet>
> 

This was where we (Gravelrash and I) were last working on this device. So SPI is not ready.

Please post your boot log (or at least the dmesg part).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Dell Wyse 3020
February 10, 2024 03:36PM
kaze's boot log

https://forum.doozan.com/read.php?2,134563,135436#msg-135436

[    4.439326] spi-nor spi0.0: w25q32 (4096 Kbytes)
[    4.444682] i2c i2c-0:  PXA I2C adapter, slave address 1
[    4.444765] 1 cmdlinepart partitions found on MTD device spi0.0
[    4.451104]  (null): Enabling slave mode
[    4.464571] i2c i2c-1:  PXA I2C adapter, slave address 1
[    4.471155]  (null): Enabling slave mode
[    4.481697] Creating 1 MTD partitions on "spi0.0":
[    4.487184] 0x000000000000-0x000000400000 : "boot"

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
mmm
Re: Debian on Dell Wyse 3020
February 10, 2024 08:27PM
root@debian:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.5.7-mvebu-tld-1 (mmm@thinkpad) (arm-linux-gnueabihf-gcc (GCC) 13.0.0 20220903 (experimental) [master revision 504424f33771be0405454e7845219d5df1bb88bb], GNU ld (Linaro_Binutils-2022.09) 2.39.50.20220903) #1 SMP PREEMPT Sat Feb 10 23:40:25 CET 2024
[    0.000000] CPU: ARMv7 Processor [562f5842] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Dell Ariel
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fefffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fefffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fefffff]
[    0.000000] percpu: Embedded 14 pages/cpu s25364 r8192 d23788 u57344
[    0.000000] pcpu-alloc: s25364 r8192 d23788 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Kernel command line: rootdelay=5 root=LABEL=rootfs raid=noautodetect console=ttyS2,115200 mtdparts=spi0.0:4m(boot)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 522304
[    0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000] Memory: 2052728K/2096128K available (10240K kernel code, 870K rwdata, 3460K rodata, 1024K init, 464K bss, 43400K reserved, 0K cma-reserved, 1309696K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: platform modifies aux control register: 0x02060000 -> 0x32860000
[    0.000000] L2C: DT/platform modifies aux control register: 0x02060000 -> 0x32860000
[    0.000000] Tauros3 cache controller enabled, 8 ways, 512 kB
[    0.000000] Tauros3: CACHE_ID 0x880000ed, AUX_CTRL 0x32860000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000005] sched_clock: 32 bits at 26MHz, resolution 38ns, wraps every 82595524588ns
[    0.000065] clocksource: clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 73510017198 ns
[    0.000280] smp_twd: clock not found -2
[    0.000803] kfence: initialized - using 2097152 bytes for 255 objects at 0x(ptrval)-0x(ptrval)
[    0.001234] Console: colour dummy device 80x30
[    0.001277] Calibrating local timer... 2.16MHz.
[    0.060257] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.100283] CPU: Testing write buffer coherency: ok
[    0.100386] pid_max: default: 32768 minimum: 301
[    0.104621] LSM: initializing lsm=capability,integrity
[    0.105830] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.105850] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.111540] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.113577] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.113781] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.113995] Setting up static identity map for 0x100000 - 0x100060
[    0.114591] rcu: Hierarchical SRCU implementation.
[    0.114600] rcu:     Max phase no-delay instances is 1000.
[    0.116044] smp: Bringing up secondary CPUs ...
[    0.150288] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.151050] smp: Brought up 1 node, 2 CPUs
[    0.151069] SMP: Total of 2 processors activated (2382.23 BogoMIPS).
[    0.151082] CPU: All CPU(s) started in SVC mode.
[    0.152764] devtmpfs: initialized
[    0.164326] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.164874] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.164914] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.167855] prandom: seed boundary self test passed
[    0.170438] prandom: 100 self tests passed
[    0.170452] pinctrl core: initialized pinctrl subsystem
[    0.172868] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.173526] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.184329] audit: initializing netlink subsys (disabled)
[    0.184752] audit: type=2000 audit(0.190:1): state=initialized audit_enabled=0 res=1
[    0.185651] thermal_sys: Registered thermal governor 'step_wise'
[    0.185768] cpuidle: using governor ladder
[    0.185819] cpuidle: using governor menu
[    0.186032] hw-breakpoint: Debug register access (0xee003e17) caused undefined instruction on CPU 0
[    0.186047] hw-breakpoint: CPU 0 failed to disable vector catch
[    0.186100] hw-breakpoint: Debug register access (0xee003e17) caused undefined instruction on CPU 1
[    0.189649] platform soc: Fixed dependency cycle(s) with /soc/interrupt-controller@e0001000
[    0.370554] raid6: int32x8  gen()   220 MB/s
[    0.540664] raid6: int32x4  gen()   236 MB/s
[    0.710772] raid6: int32x2  gen()   327 MB/s
[    0.880882] raid6: int32x1  gen()   345 MB/s
[    0.880894] raid6: using algorithm int32x1 gen() 345 MB/s
[    1.050915] raid6: .... xor() 179 MB/s, rmw enabled
[    1.050926] raid6: using intx1 recovery algorithm
[    1.052933] SCSI subsystem initialized
[    1.053280] libata version 3.00 loaded.
[    1.053661] usbcore: registered new interface driver usbfs
[    1.053730] usbcore: registered new interface driver hub
[    1.053796] usbcore: registered new device driver usb
[    1.054275] pps_core: LinuxPPS API ver. 1 registered
[    1.054287] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.054359] PTP clock support registered
[    1.057374] vgaarb: loaded
[    1.058219] clocksource: Switched to clocksource clocksource
[    1.070328] VFS: Disk quotas dquot_6.6.0
[    1.070864] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.095840] NET: Registered PF_INET protocol family
[    1.096229] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    1.098987] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.099156] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.099203] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    1.099328] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    1.099471] TCP: Hash tables configured (established 8192 bind 8192)
[    1.100361] MPTCP token hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    1.100888] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.100929] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.101904] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.103182] RPC: Registered named UNIX socket transport module.
[    1.103196] RPC: Registered udp transport module.
[    1.103205] RPC: Registered tcp transport module.
[    1.103213] RPC: Registered tcp-with-tls transport module.
[    1.103221] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.103252] PCI: CLS 0 bytes, default 64
[    1.103782] Trying to unpack rootfs image as initramfs...
[    1.108997] Initialise system trusted keyrings
[    1.109214] Key type blacklist registered
[    1.111212] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[    1.111407] zbud: loaded
[    1.133590] NFS: Registering the id_resolver key type
[    1.133693] Key type id_resolver registered
[    1.133704] Key type id_legacy registered
[    1.134073] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.134100] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.247276] xor: measuring software checksum speed
[    1.255612]    arm4regs        :  1197 MB/sec
[    1.267127]    8regs           :   862 MB/sec
[    1.276228]    32regs          :  1092 MB/sec
[    1.276246] xor: using function: arm4regs (1197 MB/sec)
[    1.276280] async_tx: api initialized (async)
[    1.276304] Key type asymmetric registered
[    1.276319] Asymmetric key parser 'x509' registered
[    1.277044] bounce: pool size: 64 pages
[    1.278340] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.279339] io scheduler bfq registered
[    1.302308] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.427712] Freeing initrd memory: 5240K
[    1.575052] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.585783] printk: console [ttyS2] disabled
[    1.587569] d4018000.serial: ttyS2 at MMIO 0xd4018000 (irq = 381, base_baud = 1625000) is a XScale
[    1.587655] printk: console [ttyS2] enabled
[    2.504430] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    2.513003] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    2.534588] usbcore: registered new interface driver smsc75xx
[    2.543577] mv-ehci d4208000.usb: EHCI Host Controller
[    2.549579] mv-ehci d4208000.usb: new USB bus registered, assigned bus number 1
[    2.558920] mv-ehci d4208000.usb: irq 382, io mem 0xd4208000
[    2.588309] mv-ehci d4208000.usb: USB 2.0 started, EHCI 1.00
[    2.595125] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.05
[    2.604139] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.612090] usb usb1: Product: EHCI Host Controller
[    2.617626] usb usb1: Manufacturer: Linux 6.5.7-mvebu-tld-1 ehci_hcd
[    2.624698] usb usb1: SerialNumber: d4208000.usb
[    2.631315] hub 1-0:1.0: USB hub found
[    2.635800] hub 1-0:1.0: 1 port detected
[    2.641317] mv-ehci d4208000.usb: successful find EHCI device with regs 0x(ptrval) irq 382 working in Host mode
[    2.652491] usbcore: registered new interface driver usblp
[    2.658823] usbcore: registered new interface driver usb-storage
[    2.666296] mousedev: PS/2 mouse device common for all mice
[    2.673853] i2c_dev: i2c /dev entries driver
[    2.682022] device-mapper: uevent: version 1.0.3
[    2.688026] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[    2.697890] device-mapper: multipath round-robin: version 1.2.0 loaded
[    2.705131] device-mapper: multipath queue-length: version 0.2.0 loaded
[    2.712421] device-mapper: multipath service-time: version 0.3.0 loaded
[    2.719782] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    2.726765] sdhci: Secure Digital Host Controller Interface driver
[    2.733637] sdhci: Copyright(c) Pierre Ossman
[    2.738912] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.746511] hid: raw HID events driver (C) Jiri Kosina
[    2.753027] usbcore: registered new interface driver usbhid
[    2.759444] usbhid: USB HID core driver
[    2.767014] NET: Registered PF_INET6 protocol family
[    2.774874] Segment Routing with IPv6
[    2.778335] mmc0: SDHCI controller on d4281000.mmc [d4281000.mmc] using ADMA
[    2.779524] RPL Segment Routing with IPv6
[    2.792045] In-situ OAM (IOAM) with IPv6
[    2.796821] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.806517] NET: Registered PF_PACKET protocol family
[    2.812784] 8021q: 802.1Q VLAN Support v1.8
[    2.817826] Key type dns_resolver registered
[    2.823150] ThumbEE CPU extension supported.
[    2.828096] Registering SWP/SWPB emulation handler
[    2.833608] PJ4 iWMMXt v2 coprocessor enabled.
[    2.917685] registered taskstats version 1
[    2.927049] Loading compiled-in X.509 certificates
[    2.932670] usb 1-1: new high-speed USB device number 2 using mv-ehci
[    2.959212] Key type .fscrypt registered
[    2.963811] Key type fscrypt-provisioning registered
[    2.969837] Key type big_key registered
[    3.018644] Key type encrypted registered
[    3.043837] mv-ehci f0001000.usb: EHCI Host Controller
[    3.049901] mv-ehci f0001000.usb: new USB bus registered, assigned bus number 2
[    3.058109] mv-ehci f0001000.usb: irq 384, io mem 0xf0001000
[    3.128355] mv-ehci f0001000.usb: USB 2.0 started, EHCI 1.00
[    3.135100] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.05
[    3.144048] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.150095] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=77.63
[    3.151943] usb usb2: Product: EHCI Host Controller
[    3.160798] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    3.166278] usb usb2: Manufacturer: Linux 6.5.7-mvebu-tld-1 ehci_hcd
[    3.174151] usb 1-1: Product: USB2.0 Hub
[    3.181137] usb usb2: SerialNumber: f0001000.usb
[    3.192216] hub 1-1:1.0: USB hub found
[    3.192566] hub 2-0:1.0: USB hub found
[    3.197608] hub 1-1:1.0: 4 ports detected
[    3.202181] hub 2-0:1.0: 1 port detected
[    3.211223] mv-ehci f0001000.usb: successful find EHCI device with regs 0x(ptrval) irq 384 working in Host mode
[    3.223602] clk: Disabling unused clocks
[    3.231938] Freeing unused kernel image (initmem) memory: 1024K
[    3.310435] Checked W+X mappings: passed, no W+X pages found
[    3.316841] Run /init as init process
[    3.321304]   with arguments:
[    3.321322]     /init
[    3.321334]   with environment:
[    3.321345]     HOME=/
[    3.321355]     TERM=linux
[    3.398397] usb 2-1: new high-speed USB device number 2 using mv-ehci
[    3.528377] usb 1-1.1: new low-speed USB device number 3 using mv-ehci
[    3.599096] usb 2-1: New USB device found, idVendor=0424, idProduct=2640, bcdDevice= a.a0
[    3.607943] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.623414] hub 2-1:1.0: USB hub found
[    3.638386] hub 2-1:1.0: 3 ports detected
[    3.717599] usb 1-1.1: New USB device found, idVendor=04d9, idProduct=1503, bcdDevice= 3.10
[    3.726763] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.734848] usb 1-1.1: Product: USB Keyboard
[    3.739815] usb 1-1.1: Manufacturer:  
[    3.767848] input:   USB Keyboard as /devices/platform/soc/d4200000.axi/d4208000.usb/usb1/1-1/1-1.1/1-1.1:1.0/0003:04D9:1503.0001/input/input0
[    3.878529] mmc0: Card stuck being busy! __mmc_poll_for_busy
[    3.885400] hid-generic 0003:04D9:1503.0001: input,hidraw0: USB HID v1.10 Keyboard [  USB Keyboard] on usb-d4208000.usb-1.1/input0
[    3.924301] input:   USB Keyboard System Control as /devices/platform/soc/d4200000.axi/d4208000.usb/usb1/1-1/1-1.1/1-1.1:1.1/0003:04D9:1503.0002/input/input1
[    3.958394] usb 2-1.1: new high-speed USB device number 3 using mv-ehci
[    4.029361] input:   USB Keyboard Consumer Control as /devices/platform/soc/d4200000.axi/d4208000.usb/usb1/1-1/1-1.1/1-1.1:1.1/0003:04D9:1503.0002/input/input2
[    4.056069] hid-generic 0003:04D9:1503.0002: input,hidraw1: USB HID v1.10 Device [  USB Keyboard] on usb-d4208000.usb-1.1/input1
[    4.125108] usb 2-1.1: New USB device found, idVendor=0424, idProduct=4040, bcdDevice= 2.01
[    4.138835] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.158348] usb 2-1.1: Product: Ultra Fast Media Reader
[    4.178388] usb 1-1.2: new full-speed USB device number 4 using mv-ehci
[    4.178518] usb 2-1.1: Manufacturer: Generic
[    4.208343] usb 2-1.1: SerialNumber: 000000264001
[    4.229721] usb-storage 2-1.1:1.0: USB Mass Storage device detected
[    4.269003] scsi host0: usb-storage 2-1.1:1.0
[    4.304033] usbcore: registered new interface driver uas
[    4.350968] usb 1-1.2: New USB device found, idVendor=046d, idProduct=c52f, bcdDevice=30.00
[    4.368272] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.376225] usb 1-1.2: Product: USB Receiver
[    4.398294] usb 1-1.2: Manufacturer: Logitech
[    4.398350] usb 2-1.2: new high-speed USB device number 4 using mv-ehci
[    4.419114] input: Logitech USB Receiver as /devices/platform/soc/d4200000.axi/d4208000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:046D:C52F.0003/input/input3
[    4.435479] hid-generic 0003:046D:C52F.0003: input,hidraw2: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-d4208000.usb-1.2/input0
[    4.454901] input: Logitech USB Receiver Consumer Control as /devices/platform/soc/d4200000.axi/d4208000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:046D:C52F.0004/input/input4
[    4.541817] hid-generic 0003:046D:C52F.0004: input,hiddev0,hidraw3: USB HID v1.11 Device [Logitech USB Receiver] on usb-d4208000.usb-1.2/input1
[    4.569456] usb 2-1.2: New USB device found, idVendor=0424, idProduct=7500, bcdDevice= 1.00
[    4.580216] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.588568] usb 2-1.2: Product: LAN7500
[    4.598345] usb 2-1.2: Manufacturer: SMSC
[    4.603034] usb 2-1.2: SerialNumber: 000000003
[    4.623208] smsc75xx v1.0.0
[    4.662468] logitech-djreceiver 0003:046D:C52F.0003: hidraw2: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-d4208000.usb-1.2/input0
[    4.675546] usb 1-1.3: new high-speed USB device number 5 using mv-ehci
[    4.765501] smsc75xx 2-1.2:1.0 eth0: register 'smsc75xx' at usb-f0001000.usb-1.2, smsc75xx USB 2.0 Gigabit Ethernet, 00:80:64:f9:29:f2
[    4.827733] smsc75xx 2-1.2:1.0 enx008064f929f2: renamed from eth0
[    4.839979] usb 1-1.3: New USB device found, idVendor=1f75, idProduct=0917, bcdDevice= 0.01
[    4.852000] logitech-djreceiver 0003:046D:C52F.0004: hiddev0,hidraw3: USB HID v1.11 Device [Logitech USB Receiver] on usb-d4208000.usb-1.2/input1
[    4.868640] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.877012] usb 1-1.3: Product: GOODRAM 8GB
[    4.881947] usb 1-1.3: Manufacturer: Wilk
[    4.897833] usb 1-1.3: SerialNumber: 17033103003018
[    4.919071] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    4.940615] logitech-djreceiver 0003:046D:C52F.0004: device of type eQUAD step 4 DJ (0x04) connected on slot 1
[    4.955526] scsi host1: usb-storage 1-1.3:1.0
[    4.979845] input: Logitech Wireless Mouse PID:4008 Mouse as /devices/platform/soc/d4200000.axi/d4208000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:046D:C52F.0004/0003:046D:4008.0005/input/input7
[    5.028810] mmc0: Card stuck being busy! __mmc_poll_for_busy
[    5.105423] input: Logitech Wireless Mouse PID:4008 Consumer Control as /devices/platform/soc/d4200000.axi/d4208000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:046D:C52F.0004/0003:046D:4008.0005/input/input8
[    5.158818] hid-generic 0003:046D:4008.0005: input,hidraw4: USB HID v1.11 Mouse [Logitech Wireless Mouse PID:4008] on usb-d4208000.usb-1.2/input1:1
[    5.360000] scsi 0:0:0:0: Direct-Access     Generic  Ultra HS-COMBO   2.01 PQ: 0 ANSI: 0
[    5.371678] input: Logitech M185 as /devices/platform/soc/d4200000.axi/d4208000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:046D:C52F.0004/0003:046D:4008.0005/input/input12
[    5.389496] sd 0:0:0:0: [sda] Media removed, stopped polling
[    5.394079] logitech-hidpp-device 0003:046D:4008.0005: input,hidraw4: USB HID v1.11 Mouse [Logitech M185] on usb-d4208000.usb-1.2/input1:1
[    5.410407] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    5.501022]  (null): Enabling slave mode
[    5.508691] rtc-ds1307 0-0068: registered as rtc0
[    5.514658] pxa2xx-spi d4035000.spi: no DMA channels available, using PIO
[    5.522349] rtc-ds1307 0-0068: setting system clock to 2024-02-11T02:22:15 UTC (1707618135)
[    5.535067] i2c i2c-0:  PXA I2C adapter, slave address 1
[    5.575071]  (null): Enabling slave mode
[    5.576446] spi-nor spi0.0: w25q32 (4096 Kbytes)
[    5.611916] i2c i2c-1:  PXA I2C adapter, slave address 1
[    5.624758] 1 cmdlinepart partitions found on MTD device spi0.0
[    5.654805]  (null): Enabling slave mode
[    5.662955] Creating 1 MTD partitions on "spi0.0":
[    5.676916] 0x000000000000-0x000000400000 : "boot"
[    5.751462] i2c i2c-2:  PXA I2C adapter, slave address 1
[    6.010182] scsi 1:0:0:0: Direct-Access     Wilk     GOODRAM 8GB      1.00 PQ: 0 ANSI: 6
[    6.024300] sd 1:0:0:0: [sdb] 15257600 512-byte logical blocks: (7.81 GB/7.28 GiB)
[    6.035929] sd 1:0:0:0: [sdb] Write Protect is off
[    6.045930] sd 1:0:0:0: [sdb] Mode Sense: 23 00 00 00
[    6.046572] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
[    6.086221]  sdb: sdb1 sdb2
[    6.091141] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[    6.188727] mmc0: Card stuck being busy! __mmc_poll_for_busy
[    6.618834] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    6.625149] sd 1:0:0:0: Attached scsi generic sg1 type 0
[    7.316328] mmc0: Card stuck being busy! __mmc_poll_for_busy
[    7.324078] mmc0: Failed to initialize a non-removable card
[   12.570173] EXT4-fs (sdb2): mounting ext3 file system using the ext4 subsystem
[   12.639281] EXT4-fs (sdb2): mounted filesystem 7bec79fd-5a2a-4cbe-9a73-4d1c145af380 ro with ordered data mode. Quota mode: none.
[   16.838349] random: crng init done
[   18.638478] EXT4-fs (sdb2): re-mounted 7bec79fd-5a2a-4cbe-9a73-4d1c145af380 r/w. Quota mode: none.
[   20.873422] smsc75xx 2-1.2:1.0 eth0: renamed from enx008064f929f2
[   28.871742] smsc75xx 2-1.2:1.0 eth0: link up, 1000Mbps, full-duplex, lpa 0xCDE1
root@debian:~# mtd_debug info /dev/mtd0
mtd.type = MTD_NORFLASH
mtd.flags = MTD_CAP_NORFLASH
mtd.size = 4194304 (4M)
mtd.erasesize = 4096 (4K)
mtd.writesize = 1 
mtd.oobsize = 0 
regions = 0

root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00400000 00001000 "boot"
root@debian:~# mtdinfo 
Count of MTD devices:           1
Present MTD devices:            mtd0
Sysfs interface supported:      yes
Re: Debian on Dell Wyse 3020
February 10, 2024 10:22PM
Thanks mmm! SPI looks normal.

Also, this is interesting, I guess this is your eMMC problem.

[    2.778335] mmc0: SDHCI controller on d4281000.mmc [d4281000.mmc] using ADMA
[    5.028810] mmc0: Card stuck being busy! __mmc_poll_for_busy
[    6.188727] mmc0: Card stuck being busy! __mmc_poll_for_busy
[    7.316328] mmc0: Card stuck being busy! __mmc_poll_for_busy
[    7.324078] mmc0: Failed to initialize a non-removable card

So you are running your kernel build, not the one I released.

Quote

[ 0.000000] Linux version 6.5.7-mvebu-tld-1 (mmm@thinkpad) (arm-linux-gnueabihf-gcc (GCC) 13.0.0 20220903 (experimental) [master revision 504424f33771be0405454e7845219d5df1bb88bb], GNU ld (Linaro_Binutils-2022.09) 2.39.50.20220903) #1 SMP PREEMPT Sat Feb 10 23:40:25 CET 2024

I need to see ksuszka's boot log.

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



Edited 2 time(s). Last edit at 02/10/2024 10:35PM by bodhi.
Re: Debian on Dell Wyse 3020
February 11, 2024 05:32AM
I've attached two files. The first one is from my first terminal, It's a bit longer as I already switched to systemd and configured it as wireguard gateway there. The second one is from my second terminal which I convered to debian yesterday, it is rootfs 6.6.2 with kernel 6.5.7 (both downloaded from this forum) with /etc/initramfs-tools/modules updated and initrd regenerated.

Both terminals show the same behaviour when reading mtd - every second read is correct. However there is some difference in the firmware content on both terminals. As far as I can tell, most of it is the same, there is one block of a few kb of compressed data which differs and a second block with a few bytes which are different. The second block looks like the current value of WLoader settings.

EDIT: And just for fun I've connected cheap CH341A based chinese programmer and read the firmware directly from the chip and it is identical to the file I got after second read from /dev/mtd0. So at least we know that every second run it reads the proper content.

@mmm this is probably an alternate route you could take to switch to openfirmware, those programmers cost $8 delivered. One downside is that they come with really crappy chip clip so it's PITA to make them work with a chip soldered onto the board.



Edited 3 time(s). Last edit at 02/11/2024 08:19AM by ksuszka.
Attachments:
open | download - dmesg_boot_with_mtdparts_systemd_machine1.txt (22.5 KB)
open | download - dmesg_boot_with_mtdparts_machine2.txt (17.1 KB)
mmm
Re: Debian on Dell Wyse 3020
February 11, 2024 06:01AM
Quote
bodhi
> Thanks mmm! SPI looks normal.
>
> Also, this is interesting, I guess this is your
> eMMC problem.
>
> 
> [    2.778335] mmc0: SDHCI controller on
> d4281000.mmc [d4281000.mmc] using ADMA
> [    5.028810] mmc0: Card stuck being busy!
> __mmc_poll_for_busy
> [    6.188727] mmc0: Card stuck being busy!
> __mmc_poll_for_busy
> [    7.316328] mmc0: Card stuck being busy!
> __mmc_poll_for_busy
> [    7.324078] mmc0: Failed to initialize a
> non-removable card
> 

Yes, the wloader seems to "jam" the eMMC when not explicitly selecting booting from USB on boot.

Quote
bodhi
> So you are running your kernel build, not the one
> I released.

Sorry I forgot, I wanted to experiment with the DTB, I'm attaching the dmesg for the stock kernel, stock DTB + stock initrd.
Attachments:
open | download - dmesg.log (19.1 KB)
mmm
Re: Debian on Dell Wyse 3020
February 11, 2024 06:11AM
Quote
bodhi
> Thanks mmm! SPI looks normal.
Well it does appear to work correctly, but like @ksuszka already mentioned there's definitely something weird going on:

root@debian:/tmp# dd if=/dev/mtd0 | xxd | head -n 64
00000000: 0004 0300 484d 4954 0000 0000 c0aa 6c00  ....HMIT......l.
00000010: 1f00 0000 ffff ffff ffff ffff ffff ffff  ................
00000020: ffff ffff ffff ffff 0a49 5053 0400 0000  .........IPS....
00000030: 0000 0000 2408 0000 484d 4954 494d 5457  ....$...HMITIMTW
00000040: 0000 0000 0000 02d1 dc09 0000 0000 0000  ................
00000050: 1400 0000 0000 0000 0000 0000 0000 0000  ................
00000060: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000070: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000080: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000090: 0000 0000 0000 0000 494d 5457 494d 424f  ........IMTWIMBO
000000a0: 000c 0000 0000 00d1 04fa 0100 0000 0000  ................
000000b0: 1400 0000 0000 0000 0000 0000 0000 0000  ................
000000c0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000000d0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000000e0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000000f0: 0000 0000 0000 0000 494d 424f 4f4c 534f  ........IMBOOLSO
00000100: 000c 0200 0000 0000 1007 0100 0000 0000  ................
00000110: 1400 0000 0000 0000 0000 0000 0000 0000  ................
00000120: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000130: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000140: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000150: 0000 0000 0000 0000 4f4c 534f ffff ffff  ........OLSO....
00000160: 0014 0300 0000 1000 0000 0200 0000 0000  ................
00000170: 1400 0000 0000 0000 0000 0000 0000 0000  ................
00000180: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000190: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000001a0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000001b0: 0000 0000 0000 0000 4854 504f 0700 0000  ........HTPO....
000001c0: 5852 4254 1800 0000 0040 02d1 0100 0000  XRBT.....@......
000001d0: 484d 4954 0020 02d1 434d 4f4e 0800 0000  HMIT. ..CMON....
000001e0: 4552 4f43 0c00 0000 0000 0000 5452 4155  EROC........TRAU
000001f0: 1000 0000 4646 0000 0100 0000 5044 4943  ....FF......PDIC
00000200: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000210: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000220: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000230: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000240: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000250: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000260: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000270: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000280: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000290: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000002a0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000002b0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000002c0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000002d0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000002e0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000002f0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000300: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000310: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000320: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000330: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000340: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000350: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000360: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000370: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000380: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000390: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000003a0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000003b0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000003c0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000003d0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000003e0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000003f0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
root@debian:/tmp# dd if=/dev/mtd0 | xxd | head -n 64
00000000: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000010: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000020: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000030: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000040: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000050: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000060: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000070: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000080: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000090: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000000a0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000000b0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000000c0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000000d0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000000e0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000000f0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000100: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000110: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000120: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000130: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000140: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000150: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000160: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000170: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000180: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000190: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000001a0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000001b0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000001c0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000001d0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000001e0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
000001f0: ffff ffff ffff ffff ffff ffff ffff ffff  ................
00000200: 0004 0300 484d 4954 0000 0000 c0aa 6c00  ....HMIT......l.
00000210: 1f00 0000 ffff ffff ffff ffff ffff ffff  ................
00000220: ffff ffff ffff ffff 0a49 5053 0400 0000  .........IPS....
00000230: 0000 0000 2408 0000 484d 4954 494d 5457  ....$...HMITIMTW
00000240: 0000 0000 0000 02d1 dc09 0000 0000 0000  ................
00000250: 1400 0000 0000 0000 0000 0000 0000 0000  ................
00000260: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000270: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000280: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000290: 0000 0000 0000 0000 494d 5457 494d 424f  ........IMTWIMBO
000002a0: 000c 0000 0000 00d1 04fa 0100 0000 0000  ................
000002b0: 1400 0000 0000 0000 0000 0000 0000 0000  ................
000002c0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000002d0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000002e0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000002f0: 0000 0000 0000 0000 494d 424f 4f4c 534f  ........IMBOOLSO
00000300: 000c 0200 0000 0000 1007 0100 0000 0000  ................
00000310: 1400 0000 0000 0000 0000 0000 0000 0000  ................
00000320: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000330: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000340: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000350: 0000 0000 0000 0000 4f4c 534f ffff ffff  ........OLSO....
00000360: 0014 0300 0000 1000 0000 0200 0000 0000  ................
00000370: 1400 0000 0000 0000 0000 0000 0000 0000  ................
00000380: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000390: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000003a0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000003b0: 0000 0000 0000 0000 4854 504f 0700 0000  ........HTPO....
000003c0: 5852 4254 1800 0000 0040 02d1 0100 0000  XRBT.....@......
000003d0: 484d 4954 0020 02d1 434d 4f4e 0800 0000  HMIT. ..CMON....
000003e0: 4552 4f43 0c00 0000 0000 0000 5452 4155  EROC........TRAU
000003f0: 1000 0000 4646 0000 0100 0000 5044 4943  ....FF......PDIC
root@debian:/tmp#



Edited 1 time(s). Last edit at 02/11/2024 06:31AM by mmm.
mmm
Re: Debian on Dell Wyse 3020
February 11, 2024 09:59AM
@bodhi I wanted to investigate why the power button wasn't working, so I added some printk's into the ariel-pwrbutton and leds-ariel drivers.

After booting into this kernel, I noticed that I didn't find "ariel_pwrbutton_probe" in dmesg, is this expected? I don't really know what I'm doing but I just wanted to ask :)

root@debian:~# dmesg | grep ariel
[    5.639009] ariel_led_probe
[    5.640693] ariel_led_set
[    5.690810] ariel_led_set
root@debian:~# ls -l /sys/bus/spi/devices
total 0
drwxr-xr-x 2 root root 0 Feb 11 07:20 .
drwxr-xr-x 4 root root 0 Feb 11 07:16 ..
lrwxrwxrwx 1 root root 0 Feb 11 07:20 spi0.0 -> ../../../devices/platform/soc/d4000000.apb/d4035000.spi/spi_master/spi0/spi0.0
root@debian:~# ls -l /sys/bus/spi/drivers
total 0
drwxr-xr-x 5 root root 0 Feb 11 07:16 .
drwxr-xr-x 4 root root 0 Feb 11 07:16 ..
drwxr-xr-x 2 root root 0 Feb 11 07:16 74x164
drwxr-xr-x 2 root root 0 Feb 11 07:16 dell-wyse-ariel-ec-input
drwxr-xr-x 2 root root 0 Feb 11 07:16 spi-nor
root@debian:~#

- mmm
Attachments:
open | download - printk.patch (1.7 KB)
Re: Debian on Dell Wyse 3020
February 11, 2024 12:47PM
ksuszka,

> Both terminals show the same behaviour when
> reading mtd - every second read is correct.
> However there is some difference in the firmware
> content on both terminals. As far as I can tell,
> most of it is the same, there is one block of a
> few kb of compressed data which differs and a
> second block with a few bytes which are different.
> The second block looks like the current value of
> WLoader settings.
>
> EDIT: And just for fun I've connected cheap CH341A
> based chinese programmer and read the firmware
> directly from the chip and it is identical to the
> file I got after second read from /dev/mtd0. So at
> least we know that every second run it reads the
> proper content.

Could you try
flash_unlock /dev/mtd0
and then dump mtd0.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Dell Wyse 3020
February 11, 2024 12:50PM
mmm,

> Yes, the wloader seems to "jam" the eMMC when not
> explicitly selecting booting from USB on boot.

So if you boot with USB only, then you can access the eMMC drive in Debian?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Dell Wyse 3020
February 11, 2024 01:41PM
root@debian:~# flash_unlock /dev/mtd0
flash_unlock: error!: could not unlock device: /dev/mtd0

              error 95 (Operation not supported)
Re: Debian on Dell Wyse 3020
February 11, 2024 01:55PM
>
> root@debian:~# flash_unlock /dev/mtd0
> flash_unlock: error!: could not unlock device:
> /dev/mtd0
> 
>               error 95 (Operation not supported)
>

OK. I did not think it would have made a difference either, but worth a try! I'll take a look at this driver to see if there is anything strange.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
mmm
Re: Debian on Dell Wyse 3020
February 11, 2024 01:56PM
Quote
bodhi
> mmm,
>
> > Yes, the wloader seems to "jam" the eMMC when
> not
> > explicitly selecting booting from USB on boot.
>
> So if you boot with USB only, then you can access
> the eMMC drive in Debian?

Yes I can boot with USB, but only when I enter the boot selection menu by pressing "P" repeatedly, and then selecting "USB".

If I don't interrupt the bootloader, then it reads the eMMC, fails to find any "URL" (viable boot partition as @ksuszka observed), and then it boots from USB after that failed eMMC booting attempt. When that happens, I get "Card stuck being busy! __mmc_poll_for_busy" and no mmclbk device.
Re: Debian on Dell Wyse 3020
February 11, 2024 02:07PM
> > So if you boot with USB only, then you can
> access
> > the eMMC drive in Debian?
> [/quote]
>
> Yes I can boot with USB, but only when I enter the
> boot selection menu by pressing "P" repeatedly,
> and then selecting "USB".

I meant if you did the above (ignore eMMC completely), then later in Debian, can you see the eMMC drive being initialized by the kernel?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
mmm
Re: Debian on Dell Wyse 3020
February 11, 2024 02:16PM
Quote
bodhi
> I meant if you did the above (ignore eMMC
> completely), then later in Debian, can you see the
> eMMC drive being initialized by the kernel?

Oh I see, yes, here's how that looks in dmesg:
root@debian:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.5.7-mvebu-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Wed Oct 18 19:13:54 PDT 2023
[    0.000000] CPU: ARMv7 Processor [562f5842] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Dell Ariel
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fefffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fefffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fefffff]
[    0.000000] percpu: Embedded 14 pages/cpu s25364 r8192 d23788 u57344
[    0.000000] pcpu-alloc: s25364 r8192 d23788 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Kernel command line: rootdelay=5 root=LABEL=rootfs raid=noautodetect console=ttyS2,115200 debug log_buf_len=1M  mtdparts=spi0.0:4m(boot)
[    0.000000] printk: log_buf_len: 1048576 bytes
[    0.000000] printk: early log buf free: 129976(99%)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 522304
[    0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000] Memory: 2048508K/2096128K available (10240K kernel code, 870K rwdata, 3460K rodata, 1024K init, 464K bss, 47620K reserved, 0K cma-reserved, 1309696K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: platform modifies aux control register: 0x02060000 -> 0x32860000
[    0.000000] L2C: DT/platform modifies aux control register: 0x02060000 -> 0x32860000
[    0.000000] Tauros3 cache controller enabled, 8 ways, 512 kB
[    0.000000] Tauros3: CACHE_ID 0x880000ed, AUX_CTRL 0x32860000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000006] sched_clock: 32 bits at 26MHz, resolution 38ns, wraps every 82595524588ns
[    0.000068] clocksource: clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 73510017198 ns
[    0.000285] smp_twd: clock not found -2
[    0.000804] kfence: initialized - using 2097152 bytes for 255 objects at 0x(ptrval)-0x(ptrval)
[    0.001237] Console: colour dummy device 80x30
[    0.001283] Calibrating local timer... 2.16MHz.
[    0.060257] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.100282] CPU: Testing write buffer coherency: ok
[    0.100382] pid_max: default: 32768 minimum: 301
[    0.104596] LSM: initializing lsm=capability,integrity
[    0.105798] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.105818] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.111488] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.113527] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.113731] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.113941] Setting up static identity map for 0x100000 - 0x100060
[    0.114540] rcu: Hierarchical SRCU implementation.
[    0.114549] rcu:     Max phase no-delay instances is 1000.
[    0.115986] smp: Bringing up secondary CPUs ...
[    0.150286] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.151055] smp: Brought up 1 node, 2 CPUs
[    0.151073] SMP: Total of 2 processors activated (2382.23 BogoMIPS).
[    0.151086] CPU: All CPU(s) started in SVC mode.
[    0.152767] devtmpfs: initialized
[    0.164219] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.164760] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.164802] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.167739] prandom: seed boundary self test passed
[    0.170271] prandom: 100 self tests passed
[    0.170283] pinctrl core: initialized pinctrl subsystem
[    0.172726] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.173439] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.184089] audit: initializing netlink subsys (disabled)
[    0.184515] audit: type=2000 audit(0.190:1): state=initialized audit_enabled=0 res=1
[    0.185399] thermal_sys: Registered thermal governor 'step_wise'
[    0.185518] cpuidle: using governor ladder
[    0.185570] cpuidle: using governor menu
[    0.185843] hw-breakpoint: Debug register access (0xee003e17) caused undefined instruction on CPU 0
[    0.185858] hw-breakpoint: CPU 0 failed to disable vector catch
[    0.185914] hw-breakpoint: Debug register access (0xee003e17) caused undefined instruction on CPU 1
[    0.189493] platform soc: Fixed dependency cycle(s) with /soc/interrupt-controller@e0001000
[    0.370551] raid6: int32x8  gen()   222 MB/s
[    0.540625] raid6: int32x4  gen()   238 MB/s
[    0.710700] raid6: int32x2  gen()   367 MB/s
[    0.880786] raid6: int32x1  gen()   364 MB/s
[    0.880798] raid6: using algorithm int32x2 gen() 367 MB/s
[    1.050899] raid6: .... xor() 219 MB/s, rmw enabled
[    1.050910] raid6: using intx1 recovery algorithm
[    1.052888] SCSI subsystem initialized
[    1.053240] libata version 3.00 loaded.
[    1.053616] usbcore: registered new interface driver usbfs
[    1.053685] usbcore: registered new interface driver hub
[    1.053751] usbcore: registered new device driver usb
[    1.054212] pps_core: LinuxPPS API ver. 1 registered
[    1.054224] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.054276] PTP clock support registered
[    1.057295] vgaarb: loaded
[    1.058202] clocksource: Switched to clocksource clocksource
[    1.070306] VFS: Disk quotas dquot_6.6.0
[    1.070844] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.095329] NET: Registered PF_INET protocol family
[    1.095715] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    1.098449] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.098618] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.098667] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    1.098791] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    1.098933] TCP: Hash tables configured (established 8192 bind 8192)
[    1.099817] MPTCP token hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    1.100348] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.100388] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.101367] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.102667] RPC: Registered named UNIX socket transport module.
[    1.102682] RPC: Registered udp transport module.
[    1.102690] RPC: Registered tcp transport module.
[    1.102698] RPC: Registered tcp-with-tls transport module.
[    1.102706] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.102737] PCI: CLS 0 bytes, default 64
[    1.103261] Trying to unpack rootfs image as initramfs...
[    1.108517] Initialise system trusted keyrings
[    1.108735] Key type blacklist registered
[    1.110749] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[    1.110945] zbud: loaded
[    1.133115] NFS: Registering the id_resolver key type
[    1.133187] Key type id_resolver registered
[    1.133197] Key type id_legacy registered
[    1.133604] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.133633] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.248989] xor: measuring software checksum speed
[    1.257230]    arm4regs        :  1198 MB/sec
[    1.268954]    8regs           :   854 MB/sec
[    1.278063]    32regs          :  1083 MB/sec
[    1.278073] xor: using function: arm4regs (1198 MB/sec)
[    1.278106] async_tx: api initialized (async)
[    1.278130] Key type asymmetric registered
[    1.278143] Asymmetric key parser 'x509' registered
[    1.278976] bounce: pool size: 64 pages
[    1.280145] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.281143] io scheduler bfq registered
[    1.304015] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.447708] Freeing initrd memory: 5240K
[    1.578105] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.587973] printk: console [ttyS2] disabled
[    1.590004] d4018000.serial: ttyS2 at MMIO 0xd4018000 (irq = 381, base_baud = 1625000) is a XScale
[    1.590091] printk: console [ttyS2] enabled
[    2.526708] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    2.535265] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    2.550917] usbcore: registered new interface driver smsc75xx
[    2.564700] mv-ehci d4208000.usb: EHCI Host Controller
[    2.570626] mv-ehci d4208000.usb: new USB bus registered, assigned bus number 1
[    2.579882] mv-ehci d4208000.usb: irq 382, io mem 0xd4208000
[    2.618701] mv-ehci d4208000.usb: USB 2.0 started, EHCI 1.00
[    2.625449] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.05
[    2.634416] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.642313] usb usb1: Product: EHCI Host Controller
[    2.647844] usb usb1: Manufacturer: Linux 6.5.7-mvebu-tld-1 ehci_hcd
[    2.654870] usb usb1: SerialNumber: d4208000.usb
[    2.661500] hub 1-0:1.0: USB hub found
[    2.665987] hub 1-0:1.0: 1 port detected
[    2.671451] mv-ehci d4208000.usb: successful find EHCI device with regs 0x(ptrval) irq 382 working in Host mode
[    2.682572] usbcore: registered new interface driver usblp
[    2.688893] usbcore: registered new interface driver usb-storage
[    2.696249] mousedev: PS/2 mouse device common for all mice
[    2.703815] i2c_dev: i2c /dev entries driver
[    2.711672] device-mapper: uevent: version 1.0.3
[    2.717652] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[    2.727458] device-mapper: multipath round-robin: version 1.2.0 loaded
[    2.734693] device-mapper: multipath queue-length: version 0.2.0 loaded
[    2.741995] device-mapper: multipath service-time: version 0.3.0 loaded
[    2.749405] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    2.756401] sdhci: Secure Digital Host Controller Interface driver
[    2.763273] sdhci: Copyright(c) Pierre Ossman
[    2.768556] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.776133] hid: raw HID events driver (C) Jiri Kosina
[    2.782575] usbcore: registered new interface driver usbhid
[    2.788918] usbhid: USB HID core driver
[    2.796913] NET: Registered PF_INET6 protocol family
[    2.804875] Segment Routing with IPv6
[    2.808069] mmc0: SDHCI controller on d4281000.mmc [d4281000.mmc] using ADMA
[    2.809721] RPL Segment Routing with IPv6
[    2.822100] In-situ OAM (IOAM) with IPv6
[    2.826803] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.835805] NET: Registered PF_PACKET protocol family
[    2.841976] 8021q: 802.1Q VLAN Support v1.8
[    2.846997] Key type dns_resolver registered
[    2.852396] ThumbEE CPU extension supported.
[    2.857341] Registering SWP/SWPB emulation handler
[    2.862851] PJ4 iWMMXt v2 coprocessor enabled.
[    2.951083] registered taskstats version 1
[    2.955994] Loading compiled-in X.509 certificates
[    2.961580] usb 1-1: new high-speed USB device number 2 using mv-ehci
[    2.987758] Key type .fscrypt registered
[    2.992698] Key type fscrypt-provisioning registered
[    2.998809] Key type big_key registered
[    3.047308] Key type encrypted registered
[    3.072887] mv-ehci f0001000.usb: EHCI Host Controller
[    3.078947] mv-ehci f0001000.usb: new USB bus registered, assigned bus number 2
[    3.087279] mv-ehci f0001000.usb: irq 384, io mem 0xf0001000
[    3.168399] mv-ehci f0001000.usb: USB 2.0 started, EHCI 1.00
[    3.175266] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.05
[    3.184366] mmc0: new HS200 MMC card at address 0001
[    3.188273] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.197907] usb usb2: Product: EHCI Host Controller
[    3.203568] usb usb2: Manufacturer: Linux 6.5.7-mvebu-tld-1 ehci_hcd
[    3.210669] usb usb2: SerialNumber: f0001000.usb
[    3.215979] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=77.63
[    3.225081] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    3.225874] hub 2-0:1.0: USB hub found
[    3.232943] usb 1-1: Product: USB2.0 Hub
[    3.237727] hub 1-1:1.0: USB hub found
[    3.242111] hub 2-0:1.0: 1 port detected
[    3.251437] hub 1-1:1.0: 4 ports detected
[    3.252019] mv-ehci f0001000.usb: successful find EHCI device with regs 0x(ptrval) irq 384 working in Host mode
[    3.268873] clk: Disabling unused clocks
[    3.277668] Freeing unused kernel image (initmem) memory: 1024K
[    3.320593] Checked W+X mappings: passed, no W+X pages found
[    3.326924] Run /init as init process
[    3.331309]   with arguments:
[    3.334969]     /init
[    3.337919]   with environment:
[    3.341799]     HOME=/
[    3.344837]     TERM=linux
[    3.428349] usb 2-1: new high-speed USB device number 2 using mv-ehci
[    3.588359] usb 1-1.1: new high-speed USB device number 3 using mv-ehci
[    3.638979] usb 2-1: New USB device found, idVendor=0424, idProduct=2640, bcdDevice= a.a0
[    3.647895] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.657322] hub 2-1:1.0: USB hub found
[    3.672337] hub 2-1:1.0: 3 ports detected
[    3.739942] usb 1-1.1: New USB device found, idVendor=1f75, idProduct=0917, bcdDevice= 0.01
[    3.758274] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.766266] usb 1-1.1: Product: GOODRAM 8GB
[    3.771618] usb 1-1.1: Manufacturer: Wilk
[    3.776296] usb 1-1.1: SerialNumber: 17033103003018
[    3.784867] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[    3.795134] scsi host0: usb-storage 1-1.1:1.0
[    3.825200] usbcore: registered new interface driver uas
[    3.898298] usb 1-1.3: new low-speed USB device number 4 using mv-ehci
[    3.998431] usb 2-1.1: new high-speed USB device number 3 using mv-ehci
[    4.087839] usb 1-1.3: New USB device found, idVendor=04d9, idProduct=1503, bcdDevice= 3.10
[    4.108904] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.116883] usb 1-1.3: Product: USB Keyboard
[    4.128286] usb 1-1.3: Manufacturer:  
[    4.161926] input:   USB Keyboard as /devices/platform/soc/d4200000.axi/d4208000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:04D9:1503.0001/input/input0
[    4.164975] usb 2-1.1: New USB device found, idVendor=0424, idProduct=4040, bcdDevice= 2.01
[    4.198496] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.206540] usb 2-1.1: Product: Ultra Fast Media Reader
[    4.213174] usb 2-1.1: Manufacturer: Generic
[    4.218112] usb 2-1.1: SerialNumber: 000000264001
[    4.232920] usb-storage 2-1.1:1.0: USB Mass Storage device detected
[    4.247566] scsi host1: usb-storage 2-1.1:1.0
[    4.265149] hid-generic 0003:04D9:1503.0001: input,hidraw0: USB HID v1.10 Keyboard [  USB Keyboard] on usb-d4208000.usb-1.3/input0
[    4.305836] input:   USB Keyboard System Control as /devices/platform/soc/d4200000.axi/d4208000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:04D9:1503.0002/input/input1
[    4.358345] usb 2-1.2: new high-speed USB device number 4 using mv-ehci
[    4.409132] input:   USB Keyboard Consumer Control as /devices/platform/soc/d4200000.axi/d4208000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:04D9:1503.0002/input/input2
[    4.439169] hid-generic 0003:04D9:1503.0002: input,hidraw1: USB HID v1.10 Device [  USB Keyboard] on usb-d4208000.usb-1.3/input1
[    4.519465] usb 2-1.2: New USB device found, idVendor=0424, idProduct=7500, bcdDevice= 1.00
[    4.533223] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.558330] usb 2-1.2: Product: LAN7500
[    4.562857] usb 2-1.2: Manufacturer: SMSC
[    4.567525] usb 2-1.2: SerialNumber: 000000003
[    4.579193] smsc75xx v1.0.0
[    4.730181] smsc75xx 2-1.2:1.0 eth0: register 'smsc75xx' at usb-f0001000.usb-1.2, smsc75xx USB 2.0 Gigabit Ethernet, 00:80:64:f9:29:f2
[    4.784279] smsc75xx 2-1.2:1.0 enx008064f929f2: renamed from eth0
[    4.879982] scsi 0:0:0:0: Direct-Access     Wilk     GOODRAM 8GB      1.00 PQ: 0 ANSI: 6
[    4.892508] sd 0:0:0:0: [sda] 15257600 512-byte logical blocks: (7.81 GB/7.28 GiB)
[    4.904669] sd 0:0:0:0: [sda] Write Protect is off
[    4.910367] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[    4.916604] sd 0:0:0:0: [sda] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
[    4.934162]  sda: sda1 sda2
[    4.948460] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    5.279714] scsi 1:0:0:0: Direct-Access     Generic  Ultra HS-COMBO   2.01 PQ: 0 ANSI: 0
[    5.294622] sd 1:0:0:0: [sdb] Media removed, stopped polling
[    5.305383] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[    5.362979]  (null): Enabling slave mode
[    5.391914] mmcblk0: mmc0:0001 H4G2a\x11 3.64 GiB
[    5.391978] pxa2xx-spi d4035000.spi: no DMA channels available, using PIO
[    5.471818] rtc-ds1307 0-0068: registered as rtc0
[    5.501162] spi-nor spi0.0: w25q32 (4096 Kbytes)
[    5.506563] 1 cmdlinepart partitions found on MTD device spi0.0
[    5.507281] rtc-ds1307 0-0068: setting system clock to 2024-02-11T20:10:58 UTC (1707682258)
[    5.526770]  mmcblk0: p1 p2 p3 p4
[    5.555711] mmcblk0boot0: mmc0:0001 H4G2a\x11 4.00 MiB
[    5.602934] mmcblk0boot1: mmc0:0001 H4G2a\x11 4.00 MiB
[    5.635706] Creating 1 MTD partitions on "spi0.0":
[    5.673722] i2c i2c-0:  PXA I2C adapter, slave address 1
[    5.683572] 0x000000000000-0x000000400000 : "boot"
[    5.690798] mmcblk0rpmb: mmc0:0001 H4G2a\x11 4.00 MiB, chardev (242:0)
[    5.693365]  (null): Enabling slave mode
[    5.730421] i2c i2c-1:  PXA I2C adapter, slave address 1
[    5.742184]  (null): Enabling slave mode
[    5.816461] i2c i2c-2:  PXA I2C adapter, slave address 1
[    6.738538] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    6.777797] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   12.344489] EXT4-fs (sda2): mounting ext3 file system using the ext4 subsystem
[   12.424599] EXT4-fs (sda2): mounted filesystem 7bec79fd-5a2a-4cbe-9a73-4d1c145af380 ro with ordered data mode. Quota mode: none.
[   16.728360] random: crng init done
[   18.552625] EXT4-fs (sda2): re-mounted 7bec79fd-5a2a-4cbe-9a73-4d1c145af380 r/w. Quota mode: none.
[   20.034923] FAT-fs (sda1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[   20.100604] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   20.900749] smsc75xx 2-1.2:1.0 eth0: renamed from enx008064f929f2
[   25.132754] smsc75xx 2-1.2:1.0 eth0: link up, 1000Mbps, full-duplex, lpa 0xCDE1
The result is this:
root@debian:~# lsblk 
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda            8:0    1   7.3G  0 disk 
|-sda1         8:1    1    64M  0 part /BOOTFS
`-sda2         8:2    1   7.2G  0 part /
sdb            8:16   1     0B  0 disk 
mtdblock0     31:0    0     4M  0 disk 
mmcblk0      179:0    0   3.6G  0 disk 
|-mmcblk0p1  179:1    0 943.9M  0 part 
|-mmcblk0p2  179:2    0   944M  0 part 
|-mmcblk0p3  179:3    0   944M  0 part 
`-mmcblk0p4  179:4    0   896M  0 part 
mmcblk0boot0 179:8    0     4M  1 disk 
mmcblk0boot1 179:16   0     4M  1 disk

@ksuszka was able to partition it and install Debian there, and can boot straight from eMMC, my version of the firmware or some other software/hardware however configuration doesn't allow that.
Re: Debian on Dell Wyse 3020
February 11, 2024 02:18PM
Just for reference I took photos of both Winbond chips visible after taking off the top cover. The first one is located near the main heatsink and this is the one I read with an external programmer and confirmed the content to be the same as read from /dev/mtd0. The second one is located far from the heatsink and unfortunately I wasn't able to make my programmer work with it (probably crappy chip clip I have is to be blamed).
Attachments:
open | download - dell_wyse_3020_flash_1.jpg (208.9 KB)
open | download - dell_wyse_3020_flash_2.jpg (148.2 KB)
open | download - dell_wyse_3020_inner_view.jpg (317.1 KB)
mmm
Re: Debian on Dell Wyse 3020
February 11, 2024 02:35PM
Quote
ksuszka
> Just for reference I took photos of both Winbond
> chips visible after taking off the top cover. The
> first one is located near the main heatsink and
> this is the one I read with an external programmer
> and confirmed the content to be the same as read
> from /dev/mtd0. The second one is located far from
> the heatsink and unfortunately I wasn't able to
> make my programmer work with it (probably crappy
> chip clip I have is to be blamed).

Yes I tried reading them as well with a TL866-II, and the one closer to the heatsink is definitely the one with the contents of /mtd0. I didn't have much luck reading it completely with a clip though, so if all else fails I'll just desolder it and flash with the programmer.

- mmm
Re: Debian on Dell Wyse 3020
February 11, 2024 05:58PM
It has been a while since I made the WikiDevi entry for this device. However, if I recall correctly the 1MB Serial Flash contains the configuration for the USB4640 IC which is a USB 2.0 Flash Media Controller with Hi-Speed USB Hub.

If you look at the DTS for this device you see the following:

&hsic0 {
	status = "okay";

	usb1@1 {
		compatible = "usb424,2640";
		reg = <0x01>;
		#address-cells = <0x01>;
		#size-cells = <0x00>;

		mass-storage@1 {
			compatible = "usb424,4040";
			reg = <0x01>;
			status = "disabled";
		};
	};
};

Which shows that access to the emmc is through the USB bus via the previously mentioned USB Flash Media Controller.

Perhaps there was a revision of the firmware on that 1MB Flash at some point that is exhibiting the difference you are seeing with how the emmc is behaving?
mmm
Re: Debian on Dell Wyse 3020
February 12, 2024 12:59AM
Quote
rayknight
> Perhaps there was a revision of the firmware on
> that 1MB Flash at some point that is exhibiting
> the difference you are seeing with how the emmc is
> behaving?

I suppose that is possible, but that flash doesn't seem to be available for reading/writing (at least with the current dts), so checking my exact firmware revision/flashing new firmware would probably require desoldering the chip. If flashing OpenFirmware doesn't work out for me, this could definitely be the next step.

- mmm
Re: Debian on Dell Wyse 3020
February 12, 2024 01:55PM
> OK. I did not think it would have made a
> difference either, but worth a try! I'll take a
> look at this driver to see if there is anything
> strange.

I've looked at the Winbond SPI driver and did not see anything peculiar.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
mmm
Re: Debian on Dell Wyse 3020
February 12, 2024 02:08PM
Quote
bodhi
> > OK. I did not think it would have made a
> > difference either, but worth a try! I'll take a
> > look at this driver to see if there is anything
> > strange.
>
> I've looked at the Winbond SPI driver and did not
> see anything peculiar.

Thank you, it seems like I'm off to desolder the SPI after all...

On a sidenote, I found this extremely promising repository from the creator of linux-mmp, Lubomir Rintel. It seems like he even got the DRM drivers working, and his DTS is much more complete.

I cloned his linux-mmp repository, checked-out to lr/ariel, and built it using this config that i found on his lr/ariel-for-ivan branch.

To my surprise, this kernel even boots (sort-off):
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.11.0+ (mmm@server) (arm-none-eabi-gcc (15:10.3-2021.07-4) 10.3.1 20210621 (release), GNU ld (2.38-3ubuntu1+15build1) 2.38) #1 SMP PREEMPT Mon Feb 12 12:27:45 UTC 2024
[    0.000000] CPU: ARMv7 Processor [562f5842] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Dell Ariel
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 16 MiB at 0x7ec00000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fefffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007bffffff]
[    0.000000]   node   0: [mem 0x000000007e000000-0x000000007fefffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fefffff]
[    0.000000] percpu: Embedded 19 pages/cpu s48588 r8192 d21044 u77824
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 514304
[    0.000000] Kernel command line: console=tty0 earlyprintk=ttyS2,115200 console=ttyS2,115200 root=LABEL=rootfs fbcon=nodefer rootwait lockless_register_fb no_console_suspend
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 2005516K/2063360K available (11264K kernel code, 1732K rwdata, 3208K rodata, 1024K init, 929K bss, 41460K reserved, 16384K cma-reserved, 1260544K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: platform modifies aux control register: 0x02060000 -> 0x32860000
[    0.000000] L2C: DT/platform modifies aux control register: 0x02060000 -> 0x32860000
[    0.000000] Tauros3 cache controller enabled, 8 ways, 512 kB
[    0.000000] Tauros3: CACHE_ID 0x880000ed, AUX_CTRL 0x32860000
[    0.000000] random: get_random_bytes called from start_kernel+0x680/0x828 with crng_init=0
[    0.000004] sched_clock: 32 bits at 26MHz, resolution 38ns, wraps every 82595524588ns
[    0.015997] clocksource: clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 73510017198 ns
[    0.025692] smp_twd: clock not found -2
[    0.029626] Console: colour dummy device 80x30
[    0.034502] printk: console [tty0] enabled
[    0.038633] Calibrating local timer... 2.16MHz.
[    0.103187] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.149515] pid_max: default: 32768 minimum: 301
[    0.154322] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.161594] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.169919] CPU: Testing write buffer coherency: ok
[    0.175049] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.181665] Setting up static identity map for 0x100000 - 0x100060
[    0.188016] rcu: Hierarchical SRCU implementation.
[    0.193683] smp: Bringing up secondary CPUs ...
[    0.233252] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.233657] smp: Brought up 1 node, 2 CPUs
[    0.243415] SMP: Total of 2 processors activated (2382.23 BogoMIPS).
[    0.249729] CPU: All CPU(s) started in SVC mode.
[    0.255228] devtmpfs: initialized
[    0.267383] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.281463] DMA-API: preallocated 65536 debug entries
[    0.286535] DMA-API: debugging enabled by kernel config
[    0.291730] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.301520] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.309408] pinctrl core: initialized pinctrl subsystem
[    0.315527] NET: Registered protocol family 16
[    0.321714] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.333367] thermal_sys: Registered thermal governor 'step_wise'
[    0.333741] No ATAGs?
[    0.342008] hw-breakpoint: Debug register access (0xee003e17) caused undefined instruction on CPU 0
[    0.350998] hw-breakpoint: CPU 0 failed to disable vector catch
[    0.356975] hw-breakpoint: Debug register access (0xee003e17) caused undefined instruction on CPU 1
[    0.390739] SCSI subsystem initialized
[    0.394922] usbcore: registered new interface driver usbfs
[    0.400420] usbcore: registered new interface driver hub
[    0.405756] usbcore: registered new device driver usb
[    0.411529] i2c i2c-0:  PXA I2C adapter
[    0.415497] mc: Linux media interface: v0.10
[    0.419774] videodev: Linux video capture interface: v2.00
[    0.425295] pps_core: LinuxPPS API ver. 1 registered
[    0.430228] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.439328] PTP clock support registered
[    0.443411] Advanced Linux Sound Architecture Driver Initialized.
[    0.450485] clocksource: Switched to clocksource clocksource
[    0.520903] VFS: Disk quotas dquot_6.6.0
[    0.524892] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.539097] NET: Registered protocol family 2
[    0.544243] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.552675] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.560415] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.567596] TCP: Hash tables configured (established 8192 bind 8192)
[    0.574076] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.580757] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.587939] NET: Registered protocol family 1
[    0.592828] RPC: Registered named UNIX socket transport module.
[    0.598714] RPC: Registered udp transport module.
[    0.603471] RPC: Registered tcp transport module.
[    0.608144] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.615450] Trying to unpack rootfs image as initramfs...
[    0.835876] Freeing initrd memory: 5240K
[    0.842778] Initialise system trusted keyrings
[    0.847467] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.860915] NFS: Registering the id_resolver key type
[    0.865983] Key type id_resolver registered
[    0.870136] Key type id_legacy registered
[    0.874296] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.954674] NET: Registered protocol family 38
[    0.959098] Key type asymmetric registered
[    0.963238] Asymmetric key parser 'x509' registered
[    0.968128] bounce: pool size: 64 pages
[    0.972071] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.979423] io scheduler mq-deadline registered
[    0.983963] io scheduler kyber registered
[    0.988066] io scheduler bfq registered
[    0.993409] pinctrl-single d401e000.pinctrl: 177 pins, size 708
[    1.008670] mmp-tdma c0ffd800.dma-controller: initialized
[    1.058695] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.066196] pinctrl-single d401e000.pinctrl: Invalid number of rows: -2
[    1.072808] pinctrl-single d401e000.pinctrl: no pins entries for uart3-pins
[    1.079736] of_serial: probe of d4018000.serial failed with error -22
[    1.086872] mmp2-rng d4292c00.rng: MMP2 Random Number Generator
[    1.096816] etnaviv etnaviv: bound d420d000.gpu (ops 0xc0c5effc)
[    1.103118] etnaviv etnaviv: bound d420f000.gpu (ops 0xc0c5effc)
[    1.109094] etnaviv-gpu d420d000.gpu: model: GC2000, revision: 5026
[    1.115649] etnaviv-gpu d420f000.gpu: model: GC300, revision: 4634
[    1.122473] [drm] Initialized etnaviv 1.3.0 20151214 for etnaviv on minor 0
[    1.138274] brd: module loaded
[    1.150297] loop: module loaded
[    1.155384] libphy: Fixed MDIO Bus: probed
[    1.159651] usbcore: registered new interface driver ath9k_htc
[    1.165617] usbcore: registered new interface driver usb8xxx
[    1.171285] libertas_sdio: Libertas SDIO driver
[    1.175785] libertas_sdio: Copyright Pierre Ossman
[    1.180605] libertas_spi: Libertas SPI driver
[    1.184982] usbcore: registered new interface driver mt7601u
[    1.190675] usbcore: registered new interface driver rt2800usb
[    1.196711] usbcore: registered new interface driver zd1211rw
[    1.202507] usbcore: registered new interface driver zd1201
[    1.208082] usbcore: registered new interface driver asix
[    1.213521] usbcore: registered new interface driver ax88179_178a
[    1.219604] usbcore: registered new interface driver cdc_ether
[    1.225456] usbcore: registered new interface driver dm9601
[    1.231065] usbcore: registered new interface driver smsc75xx
[    1.236813] usbcore: registered new interface driver net1080
[    1.242499] usbcore: registered new interface driver cdc_subset
[    1.248411] usbcore: registered new interface driver zaurus
[    1.254009] usbcore: registered new interface driver ipheth
[    1.259589] usbcore: registered new interface driver cdc_ncm
[    1.265268] usbcore: registered new interface driver r8153_ecm
[    1.271374] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.278187] mv-ehci d4208000.usb: EHCI Host Controller
[    1.283543] mv-ehci d4208000.usb: new USB bus registered, assigned bus number 1
[    1.292321] mv-ehci d4208000.usb: irq 214, io mem 0xd4208000
[    1.320529] mv-ehci d4208000.usb: USB 2.0 started, EHCI 1.00
[    1.326442] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.11
[    1.334696] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.341959] usb usb1: Product: EHCI Host Controller
[    1.346804] usb usb1: Manufacturer: Linux 5.11.0+ ehci_hcd
[    1.352331] usb usb1: SerialNumber: d4208000.usb
[    1.357528] hub 1-0:1.0: USB hub found
[    1.361349] hub 1-0:1.0: 1 port detected
[    1.365659] mv-ehci d4208000.usb: successful find EHCI device with regs 0x(ptrval) irq 214 working in Host mode
[    1.376069] mv-ehci f0001000.usb: EHCI Host Controller
[    1.381430] mv-ehci f0001000.usb: new USB bus registered, assigned bus number 2
[    1.388945] mv-ehci f0001000.usb: irq 215, io mem 0xf0001000
[    1.420529] mv-ehci f0001000.usb: USB 2.0 started, EHCI 1.00
[    1.426400] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.11
[    1.434651] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.441848] usb usb2: Product: EHCI Host Controller
[    1.446688] usb usb2: Manufacturer: Linux 5.11.0+ ehci_hcd
[    1.452156] usb usb2: SerialNumber: f0001000.usb
[    1.457252] hub 2-0:1.0: USB hub found
[    1.461057] hub 2-0:1.0: 1 port detected
[    1.465327] mv-ehci f0001000.usb: successful find EHCI device with regs 0x(ptrval) irq 215 working in Host mode
[    1.475919] usbcore: registered new interface driver usb-storage
[    1.482005] usbcore: registered new interface driver mdc800
[    1.487544] mdc800: v0.7.5 (30/10/2000):USB Driver for Mustek MDC800 Digital Camera
[    1.495319] usbcore: registered new interface driver usbserial_generic
[    1.501865] usbserial: USB Serial support registered for generic
[    1.507875] usbcore: registered new interface driver cp210x
[    1.513491] usbserial: USB Serial support registered for cp210x
[    1.519688] mousedev: PS/2 mouse device common for all mice
[    1.525512] i2c /dev entries driver
[    1.529181] usbcore: registered new interface driver i2c-tiny-usb
[    1.536079] sdhci: Secure Digital Host Controller Interface driver
[    1.542261] sdhci: Copyright(c) Pierre Ossman
[    1.546682] pinctrl-single d401e000.pinctrl: Invalid number of rows: -2
[    1.546727] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.553312] pinctrl-single d401e000.pinctrl: no pins entries for mmc3-pins
[    1.561003] usbcore: registered new interface driver usbhid
[    1.565908] sdhci-pxav3: probe of d4281000.mmc failed with error -22
[    1.572064] usbhid: USB HID core driver
[    1.582050] usbcore: registered new interface driver snd-usb-audio
[    1.589936] Initializing XFRM netlink socket
[    1.594866] NET: Registered protocol family 10
[    1.600245] Segment Routing with IPv6
[    1.604046] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.610584] NET: Registered protocol family 17
[    1.615063] lib80211: common routines for IEEE802.11 drivers
[    1.620810] Key type dns_resolver registered
[    1.625181] ThumbEE CPU extension supported.
[    1.629431] Registering SWP/SWPB emulation handler
[    1.634228] PJ4 iWMMXt v2 coprocessor enabled.
[    1.638817] Loading compiled-in X.509 certificates
[    1.656122] pinctrl-single d401e000.pinctrl: Invalid number of rows: -2
[    1.662946] pinctrl-single d401e000.pinctrl: no pins entries for ssp1-pins
[    1.669805] pxa2xx-spi: probe of d4035000.spi failed with error -22
[    1.676327] pinctrl-single d401e000.pinctrl: Invalid number of rows: -2
[    1.682933] pinctrl-single d401e000.pinctrl: no pins entries for ssp2-pins
[    1.689772] pxa2xx-spi: probe of d4036000.spi failed with error -22
[    1.696193] pinctrl-single d401e000.pinctrl: Invalid number of rows: -2
[    1.702796] pinctrl-single d401e000.pinctrl: no pins entries for twsi1-pins
[    1.709717] pxa2xx-i2c: probe of d4011000.i2c failed with error -22
[    1.716123] pinctrl-single d401e000.pinctrl: Invalid number of rows: -2
[    1.722758] usb 2-1: new high-speed USB device number 2 using mv-ehci
[    1.729271] pinctrl-single d401e000.pinctrl: no pins entries for twsi3-pins
[    1.736288] usb 1-1: new high-speed USB device number 2 using mv-ehci
[    1.742764] pxa2xx-i2c: probe of d4032000.i2c failed with error -22
[    1.749168] pinctrl-single d401e000.pinctrl: Invalid number of rows: -2
[    1.755846] pinctrl-single d401e000.pinctrl: no pins entries for twsi4-pins
[    1.762859] pxa2xx-i2c: probe of d4033000.i2c failed with error -22
[    1.769257] pinctrl-single d401e000.pinctrl: Invalid number of rows: -2
[    1.775873] pinctrl-single d401e000.pinctrl: no pins entries for twsi6-pins
[    1.782834] pxa2xx-i2c: probe of d4034000.i2c failed with error -22
[    1.792959] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.835725] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.842686] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.851301] cfg802

But then it cuts off with just "cfg802", and doesn't seem to progress much further. Do you know what I could try doing? this issue seems pretty weird, especially how the console cuts off mid-print.
Re: Debian on Dell Wyse 3020
February 12, 2024 06:39PM
Quote

On a sidenote, I found this extremely promising repository from the creator of linux-mmp, Lubomir Rintel. It seems like he even got the DRM drivers working, and his DTS is much more complete.

It looks like this repo's kernel is a work-in-progress. Even the latest DTS seems to be a working version.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
mmm
Re: Debian on Dell Wyse 3020
February 13, 2024 11:52AM
Found a way to flash the firmware from software after all :)
  1. Compiled this kernel from the mmp-armada-drm-5 branch
  2. Built uImage for the kernel
  3. Successfully booted into Debian
  4. There were two spi devices, spi0.0 and spi1.0
  5. Followed this guide to bind the spidev driver to spi1.0.
  6. Saved original firmware with
    flashrom -p linux_spi:dev=/dev/spidev1.0 -r original.rom
  7. Tried flashing with
      flashrom -p linux_spi:dev=/dev/spidev1.0 -w q7c07.rom
    but there was a size mismatch.
  8. I padded the rom with 0xFF using this: dd
      if=/dev/zero bs=1 count=$((4194304 - $(stat -c %s q7c07.rom))) | tr '\000' '\377' >> q7c07.rom  
  9. Firmware was written successfully
flashrom unknown on Linux 5.11.0-rc4+ (armv7l)
flashrom is free software, get the source code at https://flashrom.org

Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
Using default 2000kHz clock. Use 'spispeed' parameter to override.
Found Winbond flash chip "W25Q32.V" (4096 kB, SPI) on linux_spi.
===
This flash part has status UNTESTED for operations: WP
The test status of this chip may have been updated in the latest development
version of flashrom. If you are running the latest development version,
please email a report to flashrom@flashrom.org if any of the above operations
work correctly for you with this flash chip. Please include the flashrom log
file for all operations you tested (see the man page for details), and mention
which mainboard or programmer you tested in the subject line.
Thanks for your help!
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... VERIFIED.

It doesn't seem like the machine is able to boot now, which is quite disappointing. Tried a MVEBU Debian release, as well as a Fedora ARM installation that the author of the instructions himself recommended. Seems like there isn't any way to make this work, so I'll just have to flash the chip with the original firmware and live with having to boot from USB.
Re: Debian on Dell Wyse 3020
February 13, 2024 12:40PM
> Found a way to flash the firmware from software
> after all :)

Cool!

> [*] Followed
> this
> guide
to bind the spidev driver to spi1.0.

So I missed that fact! spi1 is the device.

Quote

Compiled this kernel from the mmp-armada-drm-5 branch
Built uImage for the kernel
Successfully booted into Debian

Do you have a boot log for this run? that could be very helpful. If we can see how to enumerate the SPI flash correctly, then flashing a new Wloader is possible.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
mmm
Re: Debian on Dell Wyse 3020
February 13, 2024 02:33PM
Quote
bodhi
> Do you have a boot log for this run? that could be
> very helpful. If we can see how to enumerate the
> SPI flash correctly, then flashing a new Wloader
> is possible.

I don't have that specific attempt, but here's one i did just now that works:

root@debian:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.11.0-rc4+ (mmm@server) (arm-none-eabi-gcc (15:10.3-2021.07-4) 10.3.1 20210621 (release), GNU ld (2.38-3ubuntu1+15build1) 2.38) #3 SMP PREEMPT Tue Feb 13 16:19:08 UTC 2024
[    0.000000] CPU: ARMv7 Processor [562f5842] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Dell Ariel
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 16 MiB at 0x7ec00000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fefffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007bffffff]
[    0.000000]   node   0: [mem 0x000000007e000000-0x000000007fefffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fefffff]
[    0.000000] On node 0 totalpages: 515840
[    0.000000]   Normal zone: 1536 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 196608 pages, LIFO batch:63
[    0.000000]   HighMem zone: 319232 pages, LIFO batch:63
[    0.000000] percpu: Embedded 19 pages/cpu s48588 r8192 d21044 u77824
[    0.000000] pcpu-alloc: s48588 r8192 d21044 u77824 alloc=19*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 514304
[    0.000000] Kernel command line: rootdelay=5 root=LABEL=rootfs raid=noautodetect console=ttyS2,115200 mtdparts=spi0.0:4m(boot)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 2005540K/2063360K available (11264K kernel code, 1731K rwdata, 3208K rodata, 1024K init, 926K bss, 41436K reserved, 16384K cma-reserved, 1260544K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: platform modifies aux control register: 0x02060000 -> 0x32860000
[    0.000000] L2C: DT/platform modifies aux control register: 0x02060000 -> 0x32860000
[    0.000000] Tauros3 cache controller enabled, 8 ways, 512 kB
[    0.000000] Tauros3: CACHE_ID 0x880000ed, AUX_CTRL 0x32860000
[    0.000000] random: get_random_bytes called from start_kernel+0x680/0x828 with crng_init=0
[    0.000005] sched_clock: 32 bits at 26MHz, resolution 38ns, wraps every 82595524588ns
[    0.000068] clocksource: clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 73510017198 ns
[    0.000185] smp_twd: clock not found -2
[    0.000332] Console: colour dummy device 80x30
[    0.000370] Calibrating local timer... 2.16MHz.
[    0.060225] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.100255] pid_max: default: 32768 minimum: 301
[    0.100483] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.100505] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.101122] CPU: Testing write buffer coherency: ok
[    0.101405] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.102395] Setting up static identity map for 0x100000 - 0x100060
[    0.102555] rcu: Hierarchical SRCU implementation.
[    0.103467] smp: Bringing up secondary CPUs ...
[    0.140256] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.140639] smp: Brought up 1 node, 2 CPUs
[    0.140664] SMP: Total of 2 processors activated (2382.23 BogoMIPS).
[    0.140679] CPU: All CPU(s) started in SVC mode.
[    0.141596] devtmpfs: initialized
[    0.148737] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.155300] DMA-API: preallocated 65536 debug entries
[    0.155321] DMA-API: debugging enabled by kernel config
[    0.155335] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.155362] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.156511] pinctrl core: initialized pinctrl subsystem
[    0.157411] NET: Registered protocol family 16
[    0.159160] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.163527] thermal_sys: Registered thermal governor 'step_wise'
[    0.163710] No ATAGs?
[    0.163781] hw-breakpoint: Debug register access (0xee003e17) caused undefined instruction on CPU 0
[    0.163801] hw-breakpoint: CPU 0 failed to disable vector catch
[    0.163856] hw-breakpoint: Debug register access (0xee003e17) caused undefined instruction on CPU 1
[    0.185399] SCSI subsystem initialized
[    0.185679] pxa2xx-spi d4035000.spi: no DMA channels available, using PIO
[    0.185764] pxa2xx-spi d4035000.spi: device already free
[    0.186037] usbcore: registered new interface driver usbfs
[    0.186093] usbcore: registered new interface driver hub
[    0.186140] usbcore: registered new device driver usb
[    0.186873] i2c i2c-0:  PXA I2C adapter
[    0.187345] i2c i2c-1:  PXA I2C adapter
[    0.187864] i2c i2c-2:  PXA I2C adapter
[    0.188314] i2c i2c-3:  PXA I2C adapter
[    0.188693] i2c i2c-4:  PXA I2C adapter
[    0.188785] mc: Linux media interface: v0.10
[    0.188833] videodev: Linux video capture interface: v2.00
[    0.188881] pps_core: LinuxPPS API ver. 1 registered
[    0.188894] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.188918] PTP clock support registered
[    0.189098] Advanced Linux Sound Architecture Driver Initialized.
[    0.190122] clocksource: Switched to clocksource clocksource
[    0.260513] VFS: Disk quotas dquot_6.6.0
[    0.260610] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.267807] NET: Registered protocol family 2
[    0.268637] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.268675] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.268736] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.268810] TCP: Hash tables configured (established 8192 bind 8192)
[    0.268927] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.268976] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.269152] NET: Registered protocol family 1
[    0.269730] RPC: Registered named UNIX socket transport module.
[    0.269750] RPC: Registered udp transport module.
[    0.269760] RPC: Registered tcp transport module.
[    0.269770] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.280398] Trying to unpack rootfs image as initramfs...
[    0.495662] Freeing initrd memory: 5240K
[    0.498321] Initialise system trusted keyrings
[    0.498623] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.504951] NFS: Registering the id_resolver key type
[    0.505000] Key type id_resolver registered
[    0.505012] Key type id_legacy registered
[    0.505134] jffs2: version 2.2. (NAND) \xc2\xa9 2001-2006 Red Hat, Inc.
[    0.578843] NET: Registered protocol family 38
[    0.578866] Key type asymmetric registered
[    0.578879] Asymmetric key parser 'x509' registered
[    0.578946] bounce: pool size: 64 pages
[    0.579002] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.579017] io scheduler mq-deadline registered
[    0.579028] io scheduler kyber registered
[    0.579176] io scheduler bfq registered
[    0.632742] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.634627] printk: console [ttyS2] disabled
[    0.634710] d4018000.serial: ttyS2 at MMIO 0xd4018000 (irq = 192, base_baud = 1625000) is a XScale
[    1.320607] printk: console [ttyS2] enabled
[    1.329984] etnaviv etnaviv: bound d420d000.gpu (ops 0xc0c5f5d4)
[    1.336269] etnaviv etnaviv: bound d420f000.gpu (ops 0xc0c5f5d4)
[    1.342326] etnaviv-gpu d420d000.gpu: model: GC2000, revision: 5026
[    1.348772] etnaviv-gpu d420f000.gpu: model: GC300, revision: 4634
[    1.355579] [drm] Initialized etnaviv 1.3.0 20151214 for etnaviv on minor 0
[    1.371990] brd: module loaded
[    1.384105] loop: module loaded
[    1.391568] libphy: Fixed MDIO Bus: probed
[    1.395818] usbcore: registered new interface driver ath9k_htc
[    1.401791] usbcore: registered new interface driver usb8xxx
[    1.407404] libertas_sdio: Libertas SDIO driver
[    1.411918] libertas_sdio: Copyright Pierre Ossman
[    1.416700] libertas_spi: Libertas SPI driver
[    1.421134] usbcore: registered new interface driver mt7601u
[    1.426794] usbcore: registered new interface driver rt2800usb
[    1.432795] usbcore: registered new interface driver zd1211rw
[    1.438542] usbcore: registered new interface driver zd1201
[    1.444141] usbcore: registered new interface driver asix
[    1.449534] usbcore: registered new interface driver ax88179_178a
[    1.455639] usbcore: registered new interface driver cdc_ether
[    1.461477] usbcore: registered new interface driver dm9601
[    1.467045] usbcore: registered new interface driver smsc75xx
[    1.472805] usbcore: registered new interface driver net1080
[    1.478454] usbcore: registered new interface driver cdc_subset
[    1.484389] usbcore: registered new interface driver zaurus
[    1.489945] usbcore: registered new interface driver ipheth
[    1.495550] usbcore: registered new interface driver cdc_ncm
[    1.501225] usbcore: registered new interface driver r8153_ecm
[    1.507285] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.514074] mv-ehci d4208000.usb: EHCI Host Controller
[    1.519367] mv-ehci d4208000.usb: new USB bus registered, assigned bus number 1
[    1.528121] mv-ehci d4208000.usb: irq 189, io mem 0xd4208000
[    1.570224] mv-ehci d4208000.usb: USB 2.0 started, EHCI 1.00
[    1.576149] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.11
[    1.584421] etnaviv-gpu d420f000.gpu: GPU not yet idle, mask: 0x00000000
[    1.591108] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.598278] usb usb1: Product: EHCI Host Controller
[    1.603160] usb usb1: Manufacturer: Linux 5.11.0-rc4+ ehci_hcd
[    1.608943] usb usb1: SerialNumber: d4208000.usb
[    1.614140] hub 1-0:1.0: USB hub found
[    1.617908] hub 1-0:1.0: 1 port detected
[    1.622299] mv-ehci d4208000.usb: successful find EHCI device with regs 0x(ptrval) irq 189 working in Host mode
[    1.632704] mv-ehci f0001000.usb: EHCI Host Controller
[    1.637997] mv-ehci f0001000.usb: new USB bus registered, assigned bus number 2
[    1.645565] mv-ehci f0001000.usb: irq 190, io mem 0xf0001000
[    1.680185] mv-ehci f0001000.usb: USB 2.0 started, EHCI 1.00
[    1.686040] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.11
[    1.694277] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.701470] usb usb2: Product: EHCI Host Controller
[    1.706306] usb usb2: Manufacturer: Linux 5.11.0-rc4+ ehci_hcd
[    1.712118] usb usb2: SerialNumber: f0001000.usb
[    1.717206] hub 2-0:1.0: USB hub found
[    1.721059] hub 2-0:1.0: 1 port detected
[    1.725346] mv-ehci f0001000.usb: successful find EHCI device with regs 0x(ptrval) irq 190 working in Host mode
[    1.735918] usbcore: registered new interface driver usb-storage
[    1.742023] usbcore: registered new interface driver mdc800
[    1.747555] mdc800: v0.7.5 (30/10/2000):USB Driver for Mustek MDC800 Digital Camera
[    1.755315] usbcore: registered new interface driver usbserial_generic
[    1.761855] usbserial: USB Serial support registered for generic
[    1.767849] usbcore: registered new interface driver cp210x
[    1.773457] usbserial: USB Serial support registered for cp210x
[    1.779634] mousedev: PS/2 mouse device common for all mice
[    1.785654] input: Power Button as /devices/platform/spi/spi_master/spi0/spi0.0/input/input0
[    1.796127] rtc-ds1307 0-0068: registered as rtc0
[    1.801474] rtc-ds1307 0-0068: hctosys: unable to read the hardware clock
[    1.808437] i2c /dev entries driver
[    1.812641] usbcore: registered new interface driver i2c-tiny-usb
[    1.819450] sdhci: Secure Digital Host Controller Interface driver
[    1.825621] sdhci: Copyright(c) Pierre Ossman
[    1.830064] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.836454] usbcore: registered new interface driver usbhid
[    1.842068] usbhid: USB HID core driver
[    1.846459] usbcore: registered new interface driver snd-usb-audio
[    1.853545] Initializing XFRM netlink socket
[    1.858422] NET: Registered protocol family 10
[    1.860190] mmc0: SDHCI controller on d4281000.mmc [d4281000.mmc] using ADMA
[    1.863938] Segment Routing with IPv6
[    1.873718] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.880255] NET: Registered protocol family 17
[    1.884721] lib80211: common routines for IEEE802.11 drivers
[    1.890414] lib80211_crypt: registered algorithm 'NULL'
[    1.890454] Key type dns_resolver registered
[    1.894800] ThumbEE CPU extension supported.
[    1.899040] Registering SWP/SWPB emulation handler
[    1.903855] PJ4 iWMMXt v2 coprocessor enabled.
[    1.908420] Loading compiled-in X.509 certificates
[    1.925166] pxa2xx-spi d4035000.spi: no DMA channels available, using PIO
[    1.933075] spi-nor spi1.0: w25q32 (4096 Kbytes)
[    1.940481] ch7033 1-0076: Chrontel CH7033 Video Encoder
[    1.946375] armada-drm armada-drm: bound d420b000.lcdc (ops 0xc0c5db3c)
[    1.953356] armada-drm armada-drm: [drm] Cannot find any crtc or sizes
[    1.960548] [drm] Initialized armada-drm 1.0.0 20120730 for armada-drm on minor 1
[    1.968576] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.980249] usb 2-1: new high-speed USB device number 2 using mv-ehci
[    1.990304] usb 1-1: new high-speed USB device number 2 using mv-ehci
[    2.024512] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    2.031224] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    2.038699] ALSA device list:
[    2.039774] cfg80211: failed to load regulatory.db
[    2.042786]   No soundcards found.
[    2.053332] Freeing unused kernel memory: 1024K
[    2.101601] Run /init as init process
[    2.105242]   with arguments:
[    2.105251]     /init
[    2.105260]   with environment:
[    2.105269]     HOME=/
[    2.105277]     TERM=linux
[    2.105285]     raid=noautodetect
[    2.200984] usb 2-1: New USB device found, idVendor=0424, idProduct=2640, bcdDevice= a.a0
[    2.210315] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=77.63
[    2.218453] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.225661] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.233445] usb 1-1: Product: USB2.0 Hub
[    2.237699] hub 2-1:1.0: USB hub found
[    2.241876] hub 2-1:1.0: 3 ports detected
[    2.246714] hub 1-1:1.0: USB hub found
[    2.251231] hub 1-1:1.0: 4 ports detected
[    2.570253] usb 1-1.2: new high-speed USB device number 3 using mv-ehci
[    2.576956] usb 2-1.1: new high-speed USB device number 3 using mv-ehci
[    2.620386] random: fast init done
[    2.751934] usb 1-1.2: New USB device found, idVendor=1f75, idProduct=0917, bcdDevice= 0.01
[    2.760388] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.767703] usb 1-1.2: Product: GOODRAM 8GB
[    2.771962] usb 1-1.2: Manufacturer: Wilk
[    2.776005] usb 1-1.2: SerialNumber: 17033103003018
[    2.780907] usb 2-1.1: New USB device found, idVendor=0424, idProduct=4040, bcdDevice= 2.01
[    2.789200] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.800497] usb 2-1.1: Product: Ultra Fast Media Reader
[    2.809026] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    2.818526] usb 2-1.1: Manufacturer: Generic
[    2.823134] usb 2-1.1: SerialNumber: 000000264001
[    2.828586] usb 2-1.1: skipping disabled interface 0
[    2.850360] scsi host0: usb-storage 1-1.2:1.0
[    2.950206] usb 1-1.3: new low-speed USB device number 4 using mv-ehci
[    2.956817] usb 2-1.2: new high-speed USB device number 4 using mv-ehci
[    2.963719] armada-drm armada-drm: [drm] Cannot find any crtc or sizes
[    3.131436] usb 2-1.2: New USB device found, idVendor=0424, idProduct=7500, bcdDevice= 1.00
[    3.144214] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.157023] usb 2-1.2: Product: LAN7500
[    3.160918] usb 1-1.3: New USB device found, idVendor=04d9, idProduct=1503, bcdDevice= 3.10
[    3.169217] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.180316] usb 2-1.2: Manufacturer: SMSC
[    3.184322] usb 2-1.2: SerialNumber: 000000003
[    3.197766] usb 1-1.3: Product: USB Keyboard
[    3.203014] smsc75xx v1.0.0
[    3.207870] usb 1-1.3: Manufacturer:  
[    3.229029] input:   USB Keyboard as /devices/platform/soc/d4200000.axi/d4208000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:04D9:1503.0001/input/input1
[    3.320733] hid-generic 0003:04D9:1503.0001: input: USB HID v1.10 Keyboard [  USB Keyboard] on usb-d4208000.usb-1.3/input0
[    3.355115] input:   USB Keyboard System Control as /devices/platform/soc/d4200000.axi/d4208000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:04D9:1503.0002/input/input2
[    3.373269] smsc75xx 2-1.2:1.0 eth0: register 'smsc75xx' at usb-f0001000.usb-1.2, smsc75xx USB 2.0 Gigabit Ethernet, 00:80:64:f9:29:f2
[    3.460850] input:   USB Keyboard Consumer Control as /devices/platform/soc/d4200000.axi/d4208000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:04D9:1503.0002/input/input3
[    3.478823] hid-generic 0003:04D9:1503.0002: input: USB HID v1.10 Device [  USB Keyboard] on usb-d4208000.usb-1.3/input1
[    3.810092] smsc75xx 2-1.2:1.0 enx008064f929f2: renamed from eth0
[    3.921429] scsi 0:0:0:0: Direct-Access     Wilk     GOODRAM 8GB      1.00 PQ: 0 ANSI: 6
[    3.934638] sd 0:0:0:0: [sda] 15257600 512-byte logical blocks: (7.81 GB/7.28 GiB)
[    3.943612] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    3.950505] sd 0:0:0:0: [sda] Write Protect is off
[    3.955621] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[    3.956362] sd 0:0:0:0: [sda] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
[    4.003634]  sda: sda1 sda2
[    4.009975] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    9.474110] EXT4-fs (sda2): mounting ext3 file system using the ext4 subsystem
[    9.539275] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[   14.116352] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro. Quota mode: none.
[   15.119708] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   15.463261] random: crng init done
[   15.701093] smsc75xx 2-1.2:1.0 eth0: renamed from enx008064f929f2
[   19.624122] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   19.631935] smsc75xx 2-1.2:1.0 eth0: link up, 1000Mbps, full-duplex, lpa 0xCDE1
root@debian:~# ls -lah /sys/bus/spi/devices
total 0
drwxr-xr-x 2 root root 0 Dec 31 16:02 .
drwxr-xr-x 4 root root 0 Dec 31 16:02 ..
lrwxrwxrwx 1 root root 0 Dec 31 16:02 spi0.0 -> ../../../devices/platform/spi/spi_master/spi0/spi0.0
lrwxrwxrwx 1 root root 0 Dec 31 16:02 spi1.0 -> ../../../devices/platform/soc/d4000000.apb/d4035000.spi/spi_master/spi1/spi1.0
root@debian:~# ls -lah /sys/bus/spi/devices/spi0.0
lrwxrwxrwx 1 root root 0 Dec 31 16:02 /sys/bus/spi/devices/spi0.0 -> ../../../devices/platform/spi/spi_master/spi0/spi0.0
root@debian:~# ls -lah /sys/bus/spi/devices/spi1.0
lrwxrwxrwx 1 root root 0 Dec 31 16:02 /sys/bus/spi/devices/spi1.0 -> ../../../devices/platform/soc/d4000000.apb/d4035000.spi/spi_master/spi1/spi1.0
root@debian:~# ls -lah /sys/bus/spi/drivers/      
total 0
drwxr-xr-x 7 root root 0 Dec 31 16:02 .
drwxr-xr-x 4 root root 0 Dec 31 16:02 ..
drwxr-xr-x 2 root root 0 Dec 31 16:03 dell-wyse-ariel-ec-input
drwxr-xr-x 2 root root 0 Dec 31 16:03 libertas_spi
drwxr-xr-x 2 root root 0 Dec 31 16:03 olpc-xo175-ec
drwxr-xr-x 2 root root 0 Dec 31 16:03 spi-nor
drwxr-xr-x 2 root root 0 Dec 31 16:03 spidev

Edit:
dtsi: https://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp.git/tree/arch/arm/boot/dts/mmp3.dtsi?h=lr/mmp-armada-drm-5
dts: https://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp.git/tree/arch/arm/boot/dts/mmp3-dell-ariel.dts?h=lr/mmp-armada-drm-5



Edited 1 time(s). Last edit at 02/13/2024 02:36PM by mmm.
Re: Debian on Dell Wyse 3020
February 13, 2024 03:40PM
Ok so it was my mistake. The DTS clearly/badly stated spi1 but I overlooked (BTW, the non-standard naming convention used by the author here).

ssp1: spi@d4035000 {
                                compatible = "marvell,mmp2-ssp";
                                reg = <0xd4035000 0x1000>;
                                clocks = <&soc_clocks MMP2_CLK_SSP0>;
                                interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
                                #address-cells = <1>;
                                #size-cells = <0>;
                                status = "disabled";
                        };

&ssp1 {
        status = "okay";
        cs-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;

        firmware-flash@0 {
                compatible = "winbond,w25q32", "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <104000000>;
                m25p,fast-read;
        };
};

Please try this with my released kernel 6.5.7-mvebu-tld-1.

Modify the wloader.cfg

<TX0D_START>
kernel=uImage
initrd=uInitrd
param="rootdelay=5 root=LABEL=rootfs raid=noautodetect console=ttyS2,115200 mtdparts=spi1.0:4m(boot)"
<TX0D_END>

Now when you boot the box, the SPI device should show spi1.0, and then doublecheck the mtds
dmesg | grep -i5 spi
cat /proc/mtd

Try dumping mtd0 again, see if it works for the 1st dump.

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



Edited 1 time(s). Last edit at 02/13/2024 03:41PM by bodhi.
Re: Debian on Dell Wyse 3020
February 13, 2024 04:04PM
@mmm If you want to give it a try here are firmware dumps from two my machines: https://www.dropbox.com/scl/fo/lbdc11bdq0829jzz5gv8y/h?rlkey=21omkr7q1unsb2bqfmd6m87ww&dl=0
Re: Debian on Dell Wyse 3020
February 13, 2024 04:23PM
@bodhi I'm not sure if I understood correctly. Should we test it with released kernel 6.5.7 and only modified kernel boot params or something else should be changed?

If it is the first case then I attach two logs, from two boots which differ only in kernel boot param. In both cases the behaviour of dumping mtd is the same - every second dump works.

EDIT: But I've just remembered, I use kernel 6.5.7 but dtb from kernel 6.6.2 (I unpacked kernel 6.5.7 archive to /boot folder on rootfs but I didn't go further and unpack kernel 6.5.7 dtbs as it started to boot).

EDIT2: But it seems that mmp3-dell-ariel.dtb is the same in 6.5.7 and 6.6.2 so it shouldn't make a difference.



Edited 4 time(s). Last edit at 02/13/2024 04:32PM by ksuszka.
Attachments:
open | download - boot_mtd_spi0.0.txt (17.5 KB)
open | download - boot_mtd_spi1.0.txt (17.3 KB)
Re: Debian on Dell Wyse 3020
February 13, 2024 08:39PM
ksuszka,

> @bodhi I'm not sure if I understood correctly.
> Should we test it with released kernel 6.5.7 and
> only modified kernel boot params or something else
> should be changed?
>
> If it is the first case then I attach two logs,
> from two boots which differ only in kernel boot
> param. In both cases the behaviour of dumping mtd
> is the same - every second dump works.
>
> EDIT: But I've just remembered, I use kernel 6.5.7
> but dtb from kernel 6.6.2 (I unpacked kernel 6.5.7
> archive to /boot folder on rootfs but I didn't go
> further and unpack kernel 6.5.7 dtbs as it started
> to boot).
>
> EDIT2: But it seems that mmp3-dell-ariel.dtb is
> the same in 6.5.7 and 6.6.2 so it shouldn't make a
> difference.

Right! the DTB is the same in these 2 versions so it's OK.

It does not look like SPI1 is selectable (boot_mtd_spi1.0.txt). So either we need to modify the DTS, or look at what mmm did above

Quote
https://forum.doozan.com/read.php?2,134563,136748#msg-136748

Found a way to flash the firmware from software after all :)
Compiled this kernel from the mmp-armada-drm-5 branch
Built uImage for the kernel
Successfully booted into Debian
There were two spi devices, spi0.0 and spi1.0
Followed this guide to bind the spidev driver to spi1.0

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
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: