Welcome! Log In Create A New Profile

Advanced

Mainline Linux on GlobalScale D2Plug

Posted by rayknight 
Mainline Linux on GlobalScale D2Plug
December 19, 2022 11:49PM
I am trying to get the MVEBU kernel and Debian root file to work with a GlobalScale D2Plug. I was successful in modifying the u-boot environment to boot the MVEBU and Debian root from USB. The first issue I am trying to resolve is getting the MAC address set properly using the set_persistent_mac_address script. The problem I have is creating a correct /etc/fw_env.config file. The stock environments set the mtdparts as follows:
mtdparts=mtdparts=spi0.0:768k(u-boot)ro,128k(uboot_env),-(kernel)

And I have maintained that, but it is apparently incorrect as shown below:
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
root@debian:~#

Do I need to modify the mainline DTS to add the partitions for the SPI Flash?

Ray
Re: Mainline Linux on GlobalScale D2Plug
December 20, 2022 12:20AM
Following up on this it appears that the correct mac address is already set by the mainline linux kernel and the set_persistent_mac_address script is not needed for this device.
root@debian:~# dmesg | grep eth0
[    5.570953] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address
 f0:ad:4e:XX:XX:XX
[  152.888169] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, ful
l duplex, flow control disabled
[  152.898741] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

Commenting out the set_persistent_mac_address script results in the correct persistent mac address.

I would still however like to have access to the u-boot environment from the command line, so still need to determine what is missing there.

Another issue is that booting from USB is very slow as the USB start command appears to have issues with the built in GL836 Flash Card Controller when there is not an SD Card present. Since this device has 8GB of eMMC flash @ sdio1 I'll move debian there after I've solved some of the remaining issues.
Re: Mainline Linux on GlobalScale D2Plug
December 20, 2022 01:18AM
Ray,

Boot with serial console and

printenv

And with whatever envs you use to boot into Debian rootfs. Let it boot, log in and

cat /proc/mtd
cat /etc/fw_enc.config

And post the entire serial console log here (from u-boot banner until the last output in the terminal).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Mainline Linux on GlobalScale D2Plug
December 20, 2022 03:42AM

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2009.08-dirty (Aug 22 2011 - 22:36:00) Marvell version: 5.4.4 NQ

BootROM:
       Version on chip: 2.33
       Status: OK
       Retries #: 0
Board: RD-88AP510-D2PLUG
SoC:   88AP510 (A1)
CPU:   Marvell Sheeva (Rev 5)
       CPU @ 800Mhz, L2 @ 400Mhz
       DDR3 @ 400Mhz, TClock @ 166Mhz
PEX 0: interface detected no Link.
PEX 1: interface detected no Link.
Write Leveling Results:
       CS0, Lane: 0, value: 12
       CS0, Lane: 1, value: 7
       CS0, Lane: 2, value: 6
       CS0, Lane: 3, value: 7
DRAM:   1 GB
       CS 0: base 0x00000000 size  1 GB
       Addresses 12M - 0M are saved for the U-Boot usage.
SF: Detected MX25L3205D with page size 256, total 4194304 bytes

Streaming enabled 
L2 Cache Prefetch disabled
L2 Cache ECC disabled
USB 0: Host Mode
USB 1: Host Mode
Setting VPU power OFF.
Setting GPU power OFF.
MMC:   MV_SDHCI: 0, MV_SDHCI: 1
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>> printenv
baudrate=115200
loads_echo=0
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
console=console=ttyS0,115200 useNandHal=single
mtdparts=mtdparts=spi0.0:768k(u-boot)ro,128k(uboot_env),-(kernel)
arcNumber=3245
CASset=min
MALLOC_len=5
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::dove:eth0:none
image_name=uImage
tftpbootcmd=tftpboot 0x2000000 ${image_name}; setenv bootargs ${console} ${mtdparts} ${bootargs_root} nfsroot=${serverip}:${rootpath}  ip=${ipaddr}:${serverip}${bootargs_end} usb0Mode=${usb0Mode} usb1Mode=${usb1Mode}  video=dovefb:lcd0:${lcd0_params},lcd1:${lcd1_params} clcd.lcd0_enable=${lcd0_enable} clcd.lcd1_enable=${lcd1_enable};  bootm 0x2000000; 
standalone=fsload 0x2000000 ${image_name};setenv bootargs ${console} ${mtdparts} root=/dev/mtdblock0 rw ip=${ipaddr}:${serverip}${bootargs_end} usb0Mode=${usb0Mode} usb1Mode=${usb1Mode} video=dovefb:lcd0:${lcd0_params},lcd1:${lcd1_params} clcd.lcd0_enable=${lcd0_enable} clcd.lcd1_enable=${lcd1_enable}; bootm 0x2000000;
bootsd=sflash read a0000 0x2000000 0x300000;setenv bootargs ${console} ${mtdparts} rootdelay=5 root=/dev/mmcblk0 rw usb0Mode=${usb0Mode} usb1Mode=${usb1Mode} video=dovefb:lcd0:${lcd0_params},lcd1:${lcd1_params} clcd.lcd0_enable=${lcd0_enable} clcd.lcd1_enable=${lcd1_enable}; bootm 0x2000000;
bootusb=sflash read a0000 0x2000000 0x300000;setenv bootargs ${console} ${mtdparts} rootdelay=5 root=/dev/sda rw usb0Mode=${usb0Mode} usb1Mode=${usb1Mode} video=dovefb:lcd0:${lcd0_params},lcd1:${lcd1_params} clcd.lcd0_enable=${lcd0_enable} clcd.lcd1_enable=${lcd1_enable}; bootm 0x2000000;
bootnand=sflash read a0000 0x2000000 0x300000;setenv bootargs ${console} ${mtdparts} ubi.mtd=0 root=ubi0:rootfs rootfstype=ubifs rw usb0Mode=${usb0Mode} usb1Mode=${usb1Mode} video=dovefb:lcd0:${lcd0_params},lcd1:${lcd1_params} clcd.lcd0_enable=${lcd0_enable} clcd.lcd1_enable=${lcd1_enable}; bootm 0x2000000;
disaMvPnp=no
usb0Mode=host
usb1Mode=host
yuk_ethaddr=00:00:00:EE:51:81
lcd0_enable=0
lcd1_enable=1
lcd0_params=1280x768-24@60
lcd1_params=640x480-16@60
ethact=egiga0
interface=ide
device=1
prefix=/boot/
fs=ext2
partition=1
serial_num=D2P-1153-000332
ethaddr=F0:AD:4E:01:00:BB
run_diag=no
boot_stock=mmcinfo; fatload mmc 0:1 0x2000000 uImage; bootm 0x2000000
bootargs_debian=setenv bootargs ${console} root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial
load_initrd_addr=0x2900000
load_image_addr=0x02000000
load_image=ext2load usb 2:1 $load_image_addr /boot/uImage
load_initrd=ext2load usb 2:1 $load_initrd_addr /boot/uInitrd
boot_debian=bootm $load_image_addr $load_initrd_addr
filesize=4FD6A6
bootargs=console=ttyS0,115200 useNandHal=single root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:768k(u-boot)ro,128k(uboot_env),-(kernel) earlyprintk=serial
bootcmd_debian=echo Booting from USB ...; usb start; run load_image; run load_initrd; run bootargs_debian; run boot_debian;
bootcmd=run bootcmd_debian; run boot_stock;
stdin=serial
stdout=serial
stderr=serial
passDramInitTag=yes
mainlineLinux=yes
enaMonExt=no
pexMode=RC
disL2Cache=no
disL2Ecc=no
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
enaL2ExtraFeatures=yes
enaCpuStream=yes
enaVpuPower=no
enaGpuPower=no

Environment size: 3211/65532 bytes
Marvell>> run bootcmd
Booting from USB ...
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 4 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
       scanning bus for storage devices... Device NOT ready
   Request Sense returned 03 30 00
Device NOT ready
   Request Sense returned 02 3A 00
3 Storage Device(s) found
Loading file "/boot/uImage" from usb device 2:1 (usbdc1)
5232294 bytes read
Loading file "/boot/uInitrd" from usb device 2:1 (usbdc1)
9649885 bytes read
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.13.8-mvebu-tld-1
   Created:      2022-12-19   7:26:58 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5232230 Bytes =  5 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-5.13.8-mvebu-tld-1
   Created:      2021-09-24   7:54:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9649821 Bytes =  9.2 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.13.8-mvebu-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 SMP PREEMPT Sat Aug 7 14:58:41 PDT 2021
[    0.000000][    T0] CPU: ARMv7 Processor [560f5815] revision 5 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Globalscale D2Plug
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000][    T0]   HighMem  [mem 0x0000000030000000-0x000000003fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] CPU: All CPU(s) started in SVC mode.
[    0.000000][    T0] percpu: Embedded 21 pages/cpu s54668 r8192 d23156 u86016
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 useNandHal=single root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:768k(u-boot)ro,128k(uboot_env),-(kernel) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 1011800K/1048576K available (11264K kernel code, 1483K rwdata, 3112K rodata, 1024K init, 325K bss, 36776K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x404/0x78c with crng_init=0
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000002][    T0] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.008535][    T0] Switching to timer-based delay loop, resolution 6ns
[    0.016244][    T0] Console: colour dummy device 80x30
[    0.021475][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.032699][    T0] pid_max: default: 32768 minimum: 301
[    0.038263][    T0] LSM: Security Framework initializing
[    0.043728][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.051765][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192
 bytes, linear)
[    0.061740][    T0] CPU: Testing write buffer coherency: ok
[    0.067722][    T1] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.075700][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.083584][    T1] rcu: Hierarchical SRCU implementation.
[    0.090643][    T1] smp: Bringing up secondary CPUs ...
[    0.095870][    T1] smp: Brought up 1 node, 1 CPU
[    0.100694][    T1] SMP: Total of 1 processors activated (333.33 BogoMIPS).
[    0.107645][    T1] CPU: All CPU(s) started in SVC mode.
[    0.113897][    T1] devtmpfs: initialized
[    0.124987][    T1] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 5
[    0.134192][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.145065][   T19] wait_for_initramfs() called before rootfs_initcalls
[    0.152303][    T1] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.197913][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.205151][    T1] prandom: seed boundary self test passed
[    0.214613][    T1] prandom: 100 self tests passed
[    0.219483][    T1] pinctrl core: initialized pinctrl subsystem
[    0.229494][    T1] NET: Registered protocol family 16
[    0.235891][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.248362][    T1] audit: initializing netlink subsys (disabled)
[    0.257096][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.258911][    T1] cpuidle: using governor ladder
[    0.271060][   T30] audit: type=2000 audit(0.240:1): state=initialized audit_enabled=0 res=1
[    0.287458][    T1] cpuidle: using governor menu
[    0.292540][    T1] Dove 88AP510 SoC
[    0.296131][    T1] Tauros2: Disabling L2 prefetch.
[    0.301181][    T1] Tauros2: Disabling burst8 line fill.
[    0.306485][    T1] Tauros2: Enabling L2 cache.
[    0.311438][    T1] Tauros2: L2 cache support initialised in ARMv7 mode.
[    0.318850][    T1] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.679467][    T1] raid6: int32x8  gen()   127 MB/s
[    0.848871][    T1] raid6: int32x8  xor()    78 MB/s
[    1.018761][    T1] raid6: int32x4  gen()   138 MB/s
[    1.188665][    T1] raid6: int32x4  xor()    84 MB/s
[    1.358626][    T1] raid6: int32x2  gen()   226 MB/s
[    1.528615][    T1] raid6: int32x2  xor()   147 MB/s
[    1.698601][    T1] raid6: int32x1  gen()   243 MB/s
[    1.868598][    T1] raid6: int32x1  xor()   140 MB/s
[    1.873547][    T1] raid6: using algorithm int32x1 gen() 243 MB/s
[    1.879629][    T1] raid6: .... xor() 140 MB/s, rmw enabled
[    1.885177][    T1] raid6: using intx1 recovery algorithm
[    1.891952][    T1] vgaarb: loaded
[    1.898899][    T1] SCSI subsystem initialized
[    1.905673][    T1] usbcore: registered new interface driver usbfs
[    1.914684][    T1] usbcore: registered new interface driver hub
[    1.921381][    T1] usbcore: registered new device driver usb
[    1.929025][    T1] mc: Linux media interface: v0.10
[    1.936371][    T1] videodev: Linux video capture interface: v2.00
[    1.943317][    T1] pps_core: LinuxPPS API ver. 1 registered
[    1.950584][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.960577][    T1] PTP clock support registered
[    1.970611][    T1] clocksource: Switched to clocksource orion_clocksource
[    2.061376][    T1] VFS: Disk quotas dquot_6.6.0
[    2.066094][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.147248][    T1] NET: Registered protocol family 2
[    2.161190][    T1] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    2.181170][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    2.190242][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    2.220771][    T1] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    2.228675][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    2.250961][    T1] MPTCP token hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    2.259111][    T1] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    2.280665][    T1] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    2.300831][    T1] NET: Registered protocol family 1
[    2.306663][    T1] RPC: Registered named UNIX socket transport module.
[    2.320626][    T1] RPC: Registered udp transport module.
[    2.326007][    T1] RPC: Registered tcp transport module.
[    2.340621][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.347734][    T1] PCI: CLS 0 bytes, default 64
[    2.371341][   T18] Trying to unpack rootfs image as initramfs...
[    2.380689][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    2.550623][    C0] random: fast init done
[    3.898779][   T18] Freeing initrd memory: 9424K
[    4.554214][    T1] Initialise system trusted keyrings
[    4.559393][    T1] Key type blacklist registered
[    4.566375][    T1] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    4.573760][    T1] zbud: loaded
[    4.578852][    T1] NFS: Registering the id_resolver key type
[    4.585090][    T1] Key type id_resolver registered
[    4.589955][    T1] Key type id_legacy registered
[    4.594934][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    4.602417][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    4.610475][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    4.763352][    T1] xor: measuring software checksum speed
[    4.777605][    T1]    arm4regs        :  1132 MB/sec
[    4.800586][    T1]    8regs           :   551 MB/sec
[    4.815902][    T1]    32regs          :   963 MB/sec
[    4.820973][    T1] xor: using function: arm4regs (1132 MB/sec)
[    4.826881][    T1] async_tx: api initialized (async)
[    4.831973][    T1] Key type asymmetric registered
[    4.836749][    T1] Asymmetric key parser 'x509' registered
[    4.842669][    T1] bounce: pool size: 64 pages
[    4.847411][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    4.855938][    T1] io scheduler bfq registered
[    4.863466][    T1] dove-pinctrl f10d0200.pin-ctrl: falling back to hardcoded PMU resource
[    4.875481][    T1] dove-pinctrl f10d0200.pin-ctrl: [Firmware Bug]: Missing pinctrl regs in DTB. Please update your firmware.
[    4.887770][    T1] dove-pinctrl f10d0200.pin-ctrl: registered pinctrl driver
[    4.908228][    T1] mv_xor f1060800.dma-engine: Marvell shared XOR driver
[    4.982126][    T1] mv_xor f1060800.dma-engine: Marvell XOR (Registers Mode): ( xor cpy intr )
[    4.995616][    T1] mv_xor f1060900.dma-engine: Marvell shared XOR driver
[    5.062087][    T1] mv_xor f1060900.dma-engine: Marvell XOR (Registers Mode): ( xor cpy intr )
[    5.383373][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    5.396128][    T1] printk: console [ttyS0] disabled
[    5.405867][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 21, base_baud = 10416666) is a 16550A
[    5.415799][    T1] printk: console [ttyS0] enabled
[    5.415799][    T1] printk: console [ttyS0] enabled
[    5.425743][    T1] printk: bootconsole [earlycon0] disabled
[    5.425743][    T1] printk: bootconsole [earlycon0] disabled
[    5.440051][    T1] sata_mv f10a0000.sata-host: slots 32 ports 1
[    5.453200][    T1] scsi host0: sata_mv
[    5.458309][    T1] ata1: SATA max UDMA/133 irq 32
[    5.470516][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    5.480548][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    5.494644][    T1] libphy: Fixed MDIO Bus: probed
[    5.516749][    T1] libphy: orion_mdio_bus: probed
[    5.521974][    T1] mdio_bus f1072004.mdio-bus-mii: ethernet-phy has invalid 
PHY address
[    5.530045][    T1] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 0
[    5.538524][    T1] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 1
[    5.567554][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    5.580228][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address f0:ad:4e:01:00:bb
[    5.592361][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.599595][    T1] ehci-pci: EHCI PCI platform driver
[    5.606895][    T1] ehci-orion: EHCI orion driver
[    5.612256][    T1] orion-ehci f1050000.usb-host: EHCI Host Controller
[    5.618792][    T1] orion-ehci f1050000.usb-host: new USB bus registered, assigned bus number 1
[    5.627845][    T1] orion-ehci f1050000.usb-host: irq 25, io mem 0xf1050000
[    5.660635][    T1] orion-ehci f1050000.usb-host: USB 2.0 started, EHCI 1.00
[    5.668027][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    5.676997][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.684952][    T1] usb usb1: Product: EHCI Host Controller
[    5.690549][    T1] usb usb1: Manufacturer: Linux 5.13.8-mvebu-tld-1 ehci_hcd
[    5.697703][    T1] usb usb1: SerialNumber: f1050000.usb-host
[    5.704516][    T1] hub 1-0:1.0: USB hub found
[    5.709890][    T1] hub 1-0:1.0: 1 port detected
[    5.715747][    T1] orion-ehci f1051000.usb-host: EHCI Host Controller
[    5.723592][    T1] orion-ehci f1051000.usb-host: new USB bus registered, assigned bus number 2
[    5.732638][    T1] orion-ehci f1051000.usb-host: irq 26, io mem 0xf1051000
[    5.760651][    T1] orion-ehci f1051000.usb-host: USB 2.0 started, EHCI 1.00
[    5.768063][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    5.777078][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.785037][    T1] usb usb2: Product: EHCI Host Controller
[    5.790652][ T1206] ata1: SATA link down (SStatus 0 SControl F300)
[    5.796880][    T1] usb usb2: Manufacturer: Linux 5.13.8-mvebu-tld-1 ehci_hcd
[    5.804037][    T1] usb usb2: SerialNumber: f1051000.usb-host
[    5.810903][    T1] hub 2-0:1.0: USB hub found
[    5.816217][    T1] hub 2-0:1.0: 1 port detected
[    5.822869][    T1] usbcore: registered new interface driver usblp
[    5.832030][    T1] usbcore: registered new interface driver usb-storage
[    5.839505][    T1] mousedev: PS/2 mouse device common for all mice
[    5.849685][    T1] rtc-mv f10d8500.real-time-clock: registered as rtc0
[    5.861694][    T1] rtc-mv f10d8500.real-time-clock: setting system clock to 
2022-12-20T09:09:56 UTC (1671527396)
[    5.872648][    T1] i2c /dev entries driver
[    5.878748][    T1] mv64xxx_i2c f1011000.i2c: can't get pinctrl, bus recovery not supported
[    5.890783][    T1] orion_wdt: Initial timeout 25 sec
[    5.900948][    T1] device-mapper: uevent: version 1.0.3
[    5.907283][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    5.917498][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    5.924799][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    5.932389][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    5.939726][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    5.946562][    T1] device-mapper: raid: Loading target version 1.15.1
[    5.961119][    T1] marvell-cesa f1030000.crypto-engine: CESA device successfully registered
[    5.970876][    T1] hid: raw HID events driver (C) Jiri Kosina
[    5.978484][    T1] usbcore: registered new interface driver usbhid
[    5.986292][    T1] usbhid: USB HID core driver
[    5.991681][    T1] drop_monitor: Initializing network drop monitor service
[    5.999202][    T1] NET: Registered protocol family 10
[    6.004430][   T20] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    6.014616][    T1] Segment Routing with IPv6
[    6.018970][    T1] RPL Segment Routing with IPv6
[    6.023933][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    6.033132][    T1] NET: Registered protocol family 17
[    6.040480][    T1] 8021q: 802.1Q VLAN Support v1.8
[    6.045630][    T1] Key type dns_resolver registered
[    6.051109][    T1] ThumbEE CPU extension supported.
[    6.056069][    T1] Registering SWP/SWPB emulation handler
[    6.061617][    T1] PJ4 iWMMXt v2 coprocessor enabled.
[    6.067364][    T1] registered taskstats version 1
[    6.072641][    T1] Loading compiled-in X.509 certificates
[    6.078755][    T1] zswap: loaded using pool lzo/zbud
[    6.084309][    T1] Key type ._fscrypt registered
[    6.089006][    T1] Key type .fscrypt registered
[    6.093987][    T1] Key type fscrypt-provisioning registered
[    6.103254][    T1] Key type big_key registered
[    6.139552][    T1] Key type encrypted registered
[    6.153794][    T1] Freeing unused kernel memory: 1024K
[    6.173563][    T1] Checked W+X mappings: passed, no W+X pages found
[    6.179941][    T1] Run /init as init process
[    6.211591][   T20] usb 1-1: New USB device found, idVendor=1a40, idProduct=0
101, bcdDevice= 1.11
[    6.220477][   T20] usb 1-1: New USB device strings: Mfr=0, Product=1, Serial
Number=0
[    6.233083][   T20] usb 1-1: Product: USB 2.0 Hub
[    6.246340][   T20] hub 1-1:1.0: USB hub found
[    6.259381][   T20] hub 1-1:1.0: 4 ports detected
Loading, please wait...
Starting version 247.3-6
[    6.690715][   T20] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[    6.952971][   T20] usb 1-1.1: New USB device found, idVendor=05e3, idProduct=0726, bcdDevice=99.10
[    6.978350][   T20] usb 1-1.1: New USB device strings: Mfr=0, Product=1, SerialNumber=2
[    7.004641][   T20] usb 1-1.1: Product: USB Storage
[    7.009522][   T20] usb 1-1.1: SerialNumber: 000000009910
[    7.038001][   T20] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[    7.066582][   T20] scsi host1: usb-storage 1-1.1:1.0
[    7.270714][   T20] usb 1-1.2: new high-speed USB device number 4 using orion-ehci
[    7.346749][ T1420] usbcore: registered new interface driver uas
[    7.531836][   T20] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5571, bcdDevice= 1.00
[    7.550695][   T20] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.558689][   T20] usb 1-1.2: Product: Cruzer Fit
[    7.580830][   T20] usb 1-1.2: Manufacturer: SanDisk'
[    7.585878][   T20] usb 1-1.2: SerialNumber: 02003925122620133515
[    7.609124][   T20] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    7.640910][   T20] scsi host2: usb-storage 1-1.2:1.0
[    7.829635][ T1422] i2c i2c-0: Added multiplexed i2c bus 1
[    7.910877][ T1422] i2c i2c-0: Added multiplexed i2c bus 2
[    7.970800][ T1422] i2c i2c-0: Added multiplexed i2c bus 3
[    8.133826][ T1419] sdhci: Secure Digital Host Controller Interface driver
[    8.165607][   T18] scsi 1:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9910 PQ: 0 ANSI: 0
[    8.194076][   T18] scsi 1:0:0:1: Direct-Access     Generic  STORAGE DEVICE   9910 PQ: 0 ANSI: 0
[    8.224515][   T46] sd 1:0:0:0: [sda] Unit Not Ready
[    8.229511][   T46] sd 1:0:0:0: [sda] Sense Key : Medium Error [current] 
[    8.239002][    T7] sd 1:0:0:1: [sdb] Attached SCSI removable disk
[    8.269226][   T46] sd 1:0:0:0: [sda] Add. Sense: Incompatible medium installed
[    8.276623][ T1419] sdhci: Copyright(c) Pierre Ossman
[    8.294146][   T46] sd 1:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[    8.323163][   T46] sd 1:0:0:0: [sda] Sense Key : Medium Error [current] 
[    8.330007][   T46] sd 1:0:0:0: [sda] Add. Sense: Incompatible medium install
ed
[    8.348056][ T1421] sdhci-pltfm: SDHCI platform and OF driver helper
[    8.354651][   T46] sd 1:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B)
[    8.368795][   T46] sd 1:0:0:0: [sda] 0-byte physical blocks
[    8.392032][   T46] sd 1:0:0:0: [sda] Test WP failed, assume Write Enabled
[    8.402328][    T7] mmc0 bounce up to 128 segments into one, max segment size 65536 bytes
[    8.411498][   T18] mmc1 bounce up to 128 segments into one, max segment size 65536 bytes
[    8.430670][   T46] sd 1:0:0:0: [sda] Asking for cache data failed
[    8.436889][   T46] sd 1:0:0:0: [sda] Assuming drive cache: write through
[    8.470994][   T46] sd 1:0:0:0: [sda] Unit Not Ready
[    8.476020][   T18] mmc1: SDHCI controller on f1092000.sdio-host [f1092000.sdio-host] using DMA
[    8.484774][    T7] mmc0: SDHCI controller on f1090000.sdio-host [f1090000.sdio-host] using DMA
[    8.504336][   T46] sd 1:0:0:0: [sda] Sense Key : Medium Error [current] 
[    8.526888][   T46] sd 1:0:0:0: [sda] Add. Sense: Incompatible medium installed
[    8.548635][   T46] sd 1:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[    8.577610][   T46] sd 1:0:0:0: [sda] Sense Key : Medium Error [current] 
[    8.592929][   T46] sd 1:0:0:0: [sda] Add. Sense: Incompatible medium installed
[    8.621938][   T46] sd 1:0:0:0: [sda] Attached SCSI removable disk
[    8.641970][   T20] mmc0: new high speed SDIO card at address 0001
[    8.661548][ T1316] mmc1: new high speed MMC card at address 0001
[    8.740586][   T46] scsi 2:0:0:0: Direct-Access     SanDisk' Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    8.759021][ T1437] sd 2:0:0:0: [sdc] 30031872 512-byte logical blocks: (15.4 GB/14.3 GiB)
[    8.785406][ T1437] sd 2:0:0:0: [sdc] Write Protect is off
[    8.801523][ T1437] sd 2:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.839914][ T1437]  sdc: sdc1
[    8.856140][ T1437] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[   10.095635][ T1419] sd 1:0:0:0: ioctl_internal_command return code = 8000002
[   10.121230][ T1421] mmcblk1: mmc1:0001 M8G2FA 7.45 GiB 
[   10.127163][ T1421] mmcblk1boot0: mmc1:0001 M8G2FA 512 KiB 
[   10.134523][ T1419] sd 1:0:0:0: Sense Key : Medium Error [current] 
[   10.165825][ T1419] sd 1:0:0:0: Add. Sense: Incompatible medium installed
[   10.181736][ T1421] mmcblk1boot1: mmc1:0001 M8G2FA 512 KiB 
[   10.207939][ T1421] mmcblk1rpmb: mmc1:0001 M8G2FA 128 KiB, chardev (242:0)
[   10.233619][ T1421]  mmcblk1: p1 p2
[   10.256970][ T1419] sd 1:0:0:0: ioctl_internal_command return code = 8000002
[   10.293543][ T1419] sd 1:0:0:0: Sense Key : Medium Error [current] 
[   10.301036][ T1419] sd 1:0:0:0: Add. Sense: Incompatible medium installed
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.36.1
[/sbin/fsck.ext3 (1) -- /dev/sdc1] fsck.ext3 -a -C0 /dev/sdc1 
rootfs: clean, 56961/940240 files, 714263/3753728 blocks
done.
[   20.957679][ T1459] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem
[   21.042101][ T1459] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[   22.087074][    T1] systemd[1]: systemd 247.3-7+deb11u1 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
[   22.112783][    T1] systemd[1]: Detected architecture arm.

Welcome to ESC[1mDebian GNU/Linux 11 (bullseye)ESC[0m!

[   22.142869][    T1] systemd[1]: Set hostname to <D2Plug>.
[   23.953383][    T1] systemd[1]: Queued start job for default target Graphical Interface.
[   23.964007][    T1] random: systemd: uninitialized urandom read (16 bytes read)
[   23.971788][    T1] systemd[1]: system-getty.slice: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
[   23.984907][    T1] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
[   23.996497][    T1] systemd[1]: Created slice system-getty.slice.
[ESC[0;32m  OK  ESC[0m] Created slice ESC[0;1;39msystem-getty.sliceESC[0m.
[   24.030942][    T1] random: systemd: uninitialized urandom read (16 bytes read)
[   24.039616][    T1] systemd[1]: Created slice system-modprobe.slice.
[ESC[0;32m  OK  ESC[0m] Created slice ESC[0;1;39msystem-modprobe.sliceESC[0m.
[   24.080868][    T1] random: systemd: uninitialized urandom read (16 bytes read)
[   24.089440][    T1] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ESC[0;32m  OK  ESC[0m] Created slice ESC[0;1;39msystem-serial\x2dgetty.sliceESC[0m.
[   24.131923][    T1] systemd[1]: Created slice User and Session Slice.
[ESC[0;32m  OK  ESC[0m] Created slice ESC[0;1;39mUser and Session SliceESC[0m.
[   24.171409][    T1] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mDispatch Password …ts to Console Dire
ctory WatchESC[0m.
[   24.211332][    T1] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mForward Password R…uests to Wall Directory WatchESC[0m.
[   24.252265][    T1] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ESC[0;32m  OK  ESC[0m] Set up automount ESC[0;1;39mArbitrary…s File System Automount PointESC[0m.
[   24.291253][    T1] systemd[1]: Reached target Local Encrypted Volumes.
[ESC[0;32m  OK  ESC[0m] Reached target ESC[0;1;39mLocal Encrypted VolumesESC[0m.
[   24.331598][    T1] systemd[1]: Reached target Paths.
[ESC[0;32m  OK  ESC[0m] Reached target ESC[0;1;39mPathsESC[0m.
[   24.371261][    T1] systemd[1]: Reached target Slices.
[ESC[0;32m  OK  ESC[0m] Reached target ESC[0;1;39mSlicesESC[0m.
[   24.412403][    T1] systemd[1]: Listening on RPCbind Server Activation Socket.
[ESC[0;32m  OK  ESC[0m] Listening on ESC[0;1;39mRPCbind Server Activation SocketESC[0m.
[   24.451642][    T1] systemd[1]: Listening on fsck to fsckd communication Socket.
[ESC[0;32m  OK  ESC[0m] Listening on ESC[0;1;39mfsck to fsckd communication SocketESC[0m.
[   24.491371][    T1] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ESC[0;32m  OK  ESC[0m] Listening on ESC[0;1;39minitctl Compatibility Named PipeESC[0m.
[   24.532284][    T1] systemd[1]: Listening on Journal Audit Socket.
[ESC[0;32m  OK  ESC[0m] Listening on ESC[0;1;39mJournal Audit SocketESC[0m.
[   24.571760][    T1] systemd[1]: Listening on Journal Socket (/dev/log).
[ESC[0;32m  OK  ESC[0m] Listening on ESC[0;1;39mJournal Socket (/dev/log)ESC[0m.
[   24.611907][    T1] systemd[1]: Listening on Journal Socket.
[ESC[0;32m  OK  ESC[0m] Listening on ESC[0;1;39mJournal SocketESC[0m.
[   24.651922][    T1] systemd[1]: Listening on udev Control Socket.
[ESC[0;32m  OK  ESC[0m] Listening on ESC[0;1;39mudev Control SocketESC[0m.
[   24.691604][    T1] systemd[1]: Listening on udev Kernel Socket.
[ESC[0;32m  OK  ESC[0m] Listening on ESC[0;1;39mudev Kernel SocketESC[0m.
[   24.732543][    T1] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[   24.747367][    T1] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting ESC[0;1;39mPOSIX Message Queue File SystemESC[0m...
[   24.776279][    T1] systemd[1]: Mounting NFSD configuration filesystem...
         Mounting ESC[0;1;39mNFSD configuration filesystemESC[0m...
[   24.830085][    T1] systemd[1]: Mounting RPC Pipe File System...
         Mounting ESC[0;1;39mRPC Pipe File SystemESC[0m...
[   24.883689][    T1] systemd[1]: Mounting Kernel Debug File System...
         Mounting ESC[0;1;39mKernel Debug File SystemESC[0m...
[   24.946914][    T1] systemd[1]: Mounting Kernel Trace File System...
         Mounting ESC[0;1;39mKernel Trace File SystemESC[0m...
[   24.991410][    T1] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[   25.009575][    T1] systemd[1]: Starting Create list of static device nodes for the current kernel...
         Starting ESC[0;1;39mCreate list of st…odes for the current kernelESC[0m...
[   25.067596][    T1] systemd[1]: Starting Load Kernel Module configfs...
         Starting ESC[0;1;39mLoad Kernel Module configfsESC[0m...
[   25.117604][    T1] systemd[1]: Starting Load Kernel Module drm...
         Starting ESC[0;1;39mLoad Kernel Module drmESC[0m...
[   25.178402][    T1] systemd[1]: Starting Load Kernel Module fuse...
         Starting ESC[0;1;39mLoad Kernel Module fuseESC[0m...
[   25.256628][    T1] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[   25.281166][    T1] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
[   25.306545][    T1] systemd[1]: Starting Journal Service...
[   25.320540][ T1495] fuse: init (API version 7.34)
         Startin[   25.338061][    C0] random: crng init done
g ESC[0;1;39mJourn[   25.342700][    C0] random: 7 urandom warning(s) missed due to ratelimiting
al ServiceESC[0m...
[   25.416803][    T1] systemd[1]: Starting Load Kernel Modules...
         Starting ESC[0;1;39mLoad Kernel ModulesESC[0m...
[   25.487134][    T1] systemd[1]: Starting Remount Root and Kernel File Systems...
         Starting ESC[0;1;39mRemount Root and Kernel File SystemsESC[0m...
[   25.577055][    T1] systemd[1]: Starting Coldplug All udev Devices...
         Starting ESC[0;1;39mColdplug All udev DevicesESC[0m...
[   25.696764][    T1] systemd[1]: Mounted POSIX Message Queue File System.
[ESC[0;32m  OK  ESC[0m] Mounted ESC[0;1;39mPOSIX Message Queue File SystemESC[0m.
[   25.772764][    T1] systemd[1]: Mounted NFSD configuration filesystem.
[ESC[0;32m  OK  ESC[0m] Mounted ESC[0;1;39mNFSD configuration filesystemESC[0m.
[   25.821682][    T1] systemd[1]: Mounted RPC Pipe File System.
[ESC[0;32m  OK  ESC[0m] Mounted ESC[0;1;39mRPC Pipe File SystemESC[0m.
[   25.861693][    T1] systemd[1]: Mounted Kernel Debug File System.
[ESC[0;32m  OK  ESC[0m] Mounted ESC[0;1;39mKernel Debug File SystemESC[0m.
[   25.890758][ T1500] EXT4-fs (sdc1): re-mounted. Opts: errors=remount-ro. Quota mode: none.
[   25.909595][    T1] systemd[1]: Mounted Kernel Trace File System.
[ESC[0;32m  OK  ESC[0m] Mounted ESC[0;1;39mKernel Trace File SystemESC[0m.
[   26.003620][    T1] systemd[1]: Finished Create list of static device nodes f
or the current kernel.
[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mCreate list of st… nodes for the current kernelESC[0m.
[   26.073453][    T1] systemd[1]: modprobe@configfs.service: Succeeded.
[   26.101851][    T1] systemd[1]: Finished Load Kernel Module configfs.
[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mLoad Kernel Module configfsESC[0m.
[   26.123166][    T1] systemd[1]: modprobe@drm.service: Succeeded.
[   26.151091][    T1] systemd[1]: Finished Load Kernel Module drm.
[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mLoad Kernel Module drmESC[0m.
[   26.183121][    T1] systemd[1]: modprobe@fuse.service: Succeeded.
[   26.211163][    T1] systemd[1]: Finished Load Kernel Module fuse.
[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mLoad Kernel Module fuseESC[0m.
[   26.253725][    T1] systemd[1]: Finished Load Kernel Modules.
[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mLoad Kernel ModulesESC[0m.
[   26.273172][    T1] systemd[1]: Finished Remount Root and Kernel File Systems.
[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mRemount Root and Kernel File SystemsESC[0m.
[   26.321788][    T1] systemd[1]: Started Journal Service.
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mJournal ServiceESC[0m.
         Activating swap ESC[0;1;39m/swapfileESC[0m...
         Mounting ESC[0;1;39mFUSE Control File SystemESC[0m...
         Mounting ESC[0;1;39mKernel Configuration File SystemESC[0m...
         Starting ESC[0;1;39mpNFS block layout mapping daemonESC[0m...
         Starting ESC[0;1;39mFlush Journal to Persistent StorageESC[0m...
         Starting ESC[0;1;39mLoad/Save Random SeedESC[0m...
         Starting ESC[0;1;39mApply Kernel VariablesESC[0m...
         Starting ESC[0;1;39mCreate System UsersESC[0m...
[ESC[0;32m  OK  ESC[0m] Mounted ESC[0;1;39mFUSE Control File SystemESC[0[   27.078511][ T1496] systemd-journald[1496]: Received client request to flush runtime journal.
m.
[ESC[0;32m  OK  ESC[0m] Mounted ESC[0;1;39mKernel Configuration File SystemESC[0m.
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mpNFS block layout mapping daemonESC[0m.
[   27.260925][ T1502] Adding 1048572k swap on /swapfile.  Priority:-2 extents:37 across:8854192k FS
[ESC[0;32m  OK  ESC[0m] Activated swap ESC[0;1;39m/swapfileESC[0m.
[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mApply Kernel VariablesESC[0m.
[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mLoad/Save Random SeedESC[0m.
[ESC[0;32m  OK  ESC[0m] Reached target ESC[0;1;39mSwapESC[0m.
[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mCreate System UsersESC[0m.
         Starting ESC[0;1;39mCreate Static Device Nodes in /devESC[0m...
[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mCreate Static Device Nodes in /dev
ESC[0m.
[ESC[0;32m  OK  ESC[0m] Reached target ESC[0;1;39mLocal File Systems (Pre)ESC[0m
.
         Mounting ESC[0;1;39m/tmpESC[0m...
         Starting ESC[0;1;39mRule-based Manage…for Device Events and FilesESC[0m...
[ESC[0;32m  OK  ESC[0m] Mounted ESC[0;1;39m/tmpESC[0m.
[ESC[0;32m  OK  ESC[0m] Reached target ESC[0;1;39mLocal File SystemsESC[0m.
         Starting ESC[0;1;39mPreprocess NFS configurationESC[0m...
[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mFlush Journal to Persistent Storage
ESC[0m.
         Starting ESC[0;1;39mCreate Volatile Files and DirectoriesESC[0m...
[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mPreprocess NFS configurationESC[0m.
         Starting ESC[0;1;39mNFSv4 ID-name mapping serviceESC[0m...
[ESC[0;32m  OK  ESC[0m] Reached target ESC[0;1;39mNFS client servicesESC[0m.
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mNFSv4 ID-name mapping serviceESC[0m.
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mRule-based Manager for Device Events and FilesESC[0m.
[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mColdplug All udev DevicesESC[0m.
         Starting ESC[0;1;39mHelper to synchronize boot up for ifupdownESC[0m...
[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mCreate Volatile Files and DirectoriesESC[0m.
         Starting ESC[0;1;39mRPC bind portmap serviceESC[0m...
         Starting ESC[0;1;39mUpdate UTMP about System Boot/ShutdownESC[0m...
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mRPC bind portmap serviceESC[0m.
[ESC[0;32m  OK  ESC[0m] Reached target ESC[0;1;39mRPC Port MapperESC[0m.
[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mUpdate UTMP about System Boot/ShutdownESC[0m.
[ESC[0;32m  OK  ESC[0m] Reached target ESC[0;1;39mSystem InitializationESC[0m.
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mDaily apt download activitiesESC[0m.
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mDaily apt upgrade and clean activitiesESC[0m.
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mPeriodic ext4 Onli…ata Check for All FilesystemsESC[0m.
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mDaily rotation of log filesESC[0m.
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mDaily man-db regenerationESC[0m.
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mDaily Cleanup of Temporary DirectoriesESC[0m.
[ESC[0;32m  OK  ESC[0m] Reached target ESC[0;1;39mTimersESC[0m.
[ESC[0;32m  OK  ESC[0m] Listening on ESC[0;1;39mAvahi mDNS/DNS-SD Stack Activation SocketESC[0m.
[ESC[0;32m  OK  ESC[0m] Listening on ESC[0;1;39mD-Bus System Message Bus Socket
ESC[0m.
[ESC[0;32m  OK  ESC[0m] Reached target ESC[0;1;39mSocketsESC[0m.
[ESC[0;32m  OK  ESC[0m] Reached target ESC[0;1;39mBasic SystemESC[0m.
         Starting ESC[0;1;39mAvahi mDNS/DNS-SD StackESC[0m...
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mD-Bus System Message BusESC[0m.
         Starting ESC[0;1;39mRemove Stale Onli…t4 Metadata Check SnapshotsESC[0m...
         Starting ESC[0;1;39mInitialize hardware monitoring sensorsESC[0m...
         Starting ESC[0;1;39mUser Login ManagementESC[0m...
         Starting ESC[0;1;39mWebmin server daemonESC[0m...
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mAvahi mDNS/DNS-SD StackESC[0m.
[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mInitialize hardware monitoring sensorsESC[0m.
[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mRemove Stale Onli…ext4 Metadata Check SnapshotsESC[0m.
[ESC[0;32m  OK  ESC[0m] Found device ESC[0;1;39m/dev/ttyS0ESC[0m.
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mUser Login ManagementESC[0m.
[   32.601552][ T1526] Bluetooth: Core ver 2.22
[   32.823304][ T1526] NET: Registered protocol family 31
[   32.934949][ T1526] Bluetooth: HCI device and connection manager initialized
[   33.119680][ T1526] Bluetooth: HCI socket layer initialized
[   33.176057][ T1530] sd 1:0:0:0: Attached scsi generic sg0 type 0
[   33.213615][ T1522] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   33.230844][ T1526] Bluetooth: L2CAP socket layer initialized
[   33.236634][ T1526] Bluetooth: SCO socket layer initialized
[   33.265128][ T1530] sd 1:0:0:1: Attached scsi generic sg1 type 0
[   33.371086][ T1530] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   33.421636][ T1523] sd 1:0:0:0: ioctl_internal_command return code = 8000002
[   33.551246][ T1522] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   33.558709][ T1316] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ESC[0mESC[0;31m*   [   33.579211][ T1316] cfg80211: failed to load regulatory.db
  ESC[0m] (1 of 2) A start job is running for Webmin server daemon (9s / 21s)
[   33.606930][ T1520] Bluetooth: vendor=0x2df, device=0x911a, class=255, fn=2
[   33.641390][ T1523] sd 1:0:0:0: Sense Key : Medium Error [current] 
[   33.810671][ T1523] sd 1:0:0:0: Add. Sense: Incompatible medium installed
[   33.930869][ T1520] btmrvl_sdio mmc0:0001:2: Direct firmware load for mrvl/sd8787_uapsta.bin failed with error -2
ESCM^MESC[K[ESC[0;1;31m*ESC[0mESC[0;31m*    ESC[0m] (1 of 2) A start job is running for Webmin server daemon (10s / 21s)
[   34.130758][ T1520] Bluetooth: request_firmware(firmware) failed, error code = -2
[   34.300739][ T1520] Bluetooth: Failed to download firmware!
[   34.487452][ T1348] mwifiex_sdio mmc0:0001:1: Direct firmware load for mrvl/sd8787_uapsta.bin failed with error -2
[   34.527397][ T1523] sd 1:0:0:0: ioctl_internal_command return code = 8000002
[   34.540695][ T1348] mwifiex_sdio mmc0:0001:1: Failed to get firmware mrvl/sd8787_uapsta.bin
[   34.549029][ T1348] mwifiex_sdio mmc0:0001:1: info: _mwifiex_fw_dpc: unregister device
[   34.580717][ T1520] Bluetooth: Downloading firmware failed!
ESCM^MESC[K[ESC[0;31m*ESC[0;1;31m*ESC[0mESC[0;31m*   ESC[0m] (1 of 2) A start job is running for Webmin server daemon (10s / 21s)
[   34.680069][ T1520] Bluetooth: vendor=0x2df, device=0x911b, class=255, fn=3
[   34.687334][ T1523] sd 1:0:0:0: Sense Key : Medium Error [current] 
[   34.807401][ T1523] sd 1:0:0:0: Add. Sense: Incompatible medium installed
[   34.970917][ T1520] btmrvl_sdio mmc0:0001:3: Direct firmware load for mrvl/sd8787_uapsta.bin failed with error -2
[   35.065585][ T1520] Bluetooth: request_firmware(firmware) failed, error code = -2
ESCM^MESC[K[ ESC[0;31m*ESC[0;1;31m*ESC[0mESC[0;31m*  ESC[0m] (2 of 2) A start job is running for…ot up for if[   35.269603][ T1520] Bluetooth: Failed to download firmware!
updown (11s / 3min 4s)
[   35.473564][ T1520] Bluetooth: Downloading firmware failed!
ESCM^MESC[K[  ESC[0;31m*ESC[0;1;31m*ESC[0mESC[0;31m* ESC[0m] (2 of 2) A start job is running for…ot up for ifupdown (11s / 3min 4s)
ESCM^MESC[K[   ESC[0;31m*ESC[0;1;31m*ESC[0mESC[0;31m*ESC[0m] (2 of 2) A start job is running for…ot up for ifupdown (12s / 3min 4s)
ESCM^MESC[K[    ESC[0;31m*ESC[0;1;31m*ESC[0m] (1 of 2) A start job is running for Webmin server daemon (12s / 21s)
ESCM^MESC[K[     ESC[0;31m*ESC[0m] (1 of 2) A start job is running for Webmin server daemon (13s / 21s)
ESCM^MESC[K[    ESC[0;31m*ESC[0;1;31m*ESC[0m] (1 of 2) A start job is running for Webmin server daemon (13s / 21s)
ESCM^MESC[K[   ESC[0;31m*ESC[0;1;31m*ESC[0mESC[0;31m*ESC[0m] (2 of 2) A start job is running for…ot up for ifupdown (14s / 3min 4s)
ESCM^MESC[K[  ESC[0;31m*ESC[0;1;31m*ESC[0mESC[0;31m* ESC[0m] (2 of 2) A start job is running for…ot up for ifupdown (14s / 3min 4s)
ESCM^MESC[K[ ESC[0;31m*ESC[0;1;31m*ESC[0mESC[0;31m*  ESC[0m] (2 of 2) A start job is running for…ot up for ifupdown (14s / 3min 4s)
ESCM^MESC[K[ESC[0;31m*ESC[0;1;31m*ESC[0mESC[0;31m*   ESC[0m] (1 of 2) A start job is running for Webmin server daemon (15s / 21s)
ESCM^MESC[K[ESC[0;1;31m*ESC[0mESC[0;31m*    ESC[0m] (1 of 2) A start job is running for Webmin server daemon (15s / 21s)
ESCM^MESC[K[ESC[0mESC[0;31m*     ESC[0m] (1 of 2) A start job is running for Webmin server daemon (15s / 21s)
ESCM^MESC[K[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mHelper to synchronize boot up for ifupdownESC[0m.
ESC[K[ESC[0;1;31m*ESC[0mESC[0;31m*    ESC[0m] A start job is running for Webmin server daemon (18s / 21s)
ESCM^MESC[K[ESC[0;31m*ESC[0;1;31m*ESC[0mESC[0;31m*   ESC[0m] A start job is running for Webmin server daemon (18s / 21s)
ESCM^MESC[K[ ESC[0;31m*ESC[0;1;31m*ESC[0mESC[0;31m*  ESC[0m] A start job is running for Webmin server daemon (18s / 21s)
ESCM^MESC[K[  ESC[0;31m*ESC[0;1;31m*ESC[0mESC[0;31m* ESC[0m] A start job is running for Webmin server daemon (19s / 21s)
ESCM^MESC[K[   ESC[0;31m*ESC[0;1;31m*ESC[0mESC[0;31m*ESC[0m] A start job is running for Webmin server daemon (19s / 21s)
ESCM^MESC[K[ESC[0;32m  OK  ESC[0m] Listening on ESC[0;1;39mLoad/Save RF …itch Status /dev/rfkill WatchESC[0m.
ESC[K         Starting ESC[0;1;39mRaise network interfacesESC[0m...
[ESC[0;1;31mFAILEDESC[0m] Failed to start ESC[0;1;39mWebmin server daemonESC[0m.
See 'systemctl status webmin.service' for details.
[   47.388204][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   47.398780][ T1348] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    ESC[0;31m*ESC[0;1;31m*ESC[0m] A start job is running for Raise network interfaces (23s / 5min 19s)
ESCM^MESC[K[ESC[0;32m  OK  ESC[0m] Stopped ESC[0;1;39mWebmin server daemonESC[0m.
ESC[K         Starting ESC[0;1;39mWebmin server daemonESC[0m...
[     ESC[0;31m*ESC[0m] (2 of 2) A start job is running for…etwork interfaces (25s / 5min 19s)
ESCM^MESC[K[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mRaise network interfaces
ESC[0m.
ESC[K[ESC[0;32m  OK  ESC[0m] Reached target ESC[0;1;39mNetworkESC[0m.
         Starting ESC[0;1;39mNFS Mount DaemonESC[0m...
         Starting ESC[0;1;39mNetwork Time ServiceESC[0m...
         Starting ESC[0;1;39m/etc/rc.local CompatibilityESC[0m...
         Starting ESC[0;1;39mOpenBSD Secure Shell serverESC[0m...
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mNFS Mount DaemonESC[0m.
         Starting ESC[0;1;39mNFS server and servicesESC[0m...
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mNetwork Time ServiceESC[0m.
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39m/etc/rc.local CompatibilityESC[0m.
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mOpenBSD Secure Shell serverESC[0m.
[   52.143605][ T1662] NFSD: Using UMH upcall client tracking operations.
[   52.150179][ T1662] NFSD: starting 90-second grace period (net f0000029)
[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mNFS server and servicesESC[0m.
[ESC[0;32m  OK  ESC[0m] Reached target ESC[0;1;39mRemote File Systems (Pre)ESC[0m.
[ESC[0;32m  OK  ESC[0m] Reached target ESC[0;1;39mRemote File SystemsESC[0m.
         Starting ESC[0;1;39mLSB: Starts syslogdESC[0m...
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mRegular background program processing daemonESC[0m.
         Starting ESC[0;1;39mLSB: RPi-Monitor daemonESC[0m...
         Starting ESC[0;1;39mPermit User SessionsESC[0m...
[ESC[0;32m  OK  ESC[0m] Finished ESC[0;1;39mPermit User SessionsESC[0m.
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mGetty on tty1ESC[0m.
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mSerial Getty on ttyS0ESC[0m.
[ESC[0;32m  OK  ESC[0m] Reached target ESC[0;1;39mLogin PromptsESC[0m.
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mLSB: Starts syslogdESC[0m.
         Starting ESC[0;1;39mLSB: Starts klogdESC[0m...
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mLSB: Starts klogdESC[0m.
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mLSB: RPi-Monitor daemonESC[0m.
[ESC[0;32m  OK  ESC[0m] Started ESC[0;1;39mWebmin server daemonESC[0m.
[   57.874280][ T1688] fbcon: Taking over console

Debian GNU/Linux 11 D2Plug ttyS0

D2Plug login: [   62.519800][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
[   62.526527][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
root
Password: 

Linux D2Plug 5.13.8-mvebu-tld-1 #1.0 SMP PREEMPT Sat Aug 7 14:58:41 PDT 2021 armv7l

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

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Dec 20 01:06:26 PST 2022 from 192.168.116.30 on pts/0
D2Plug
192.168.116.4
Globalscale D2Plug
Linux version 5.13.8-mvebu-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 SMP PREEMPT Sat Aug 7 14:58:41 PDT 2021
Debian 11.6
Tue Dec 20 01:11:22 PST 2022 up 1 minute
root@D2Plug:~# cat /proc/mtd
dev:    size   erasesize  name
root@D2Plug:~# cat /etc/fw_env.config 
# MTD device name       Device offset   Env. size       Flash sector size      Number of sectors

/dev/mtd1               0x0000          0x80000         0x20000                4
root@D2Plug:~# 

Re: Mainline Linux on GlobalScale D2Plug
December 20, 2022 02:53PM
Hi Ray,

Quote

Do I need to modify the mainline DTS to add the partitions for the SPI Flash?

No, you don't need to do that. The bootargs is all we need to use to specify the mtdparts. And you did that correctly.

Quote

[ 0.000000][ T0] Kernel command line: console=ttyS0,115200 useNandHal=single root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:768k(u-boot)ro,128k(uboot_env),-(kernel) earlyprintk=serial

However, the SPI flash was not detected by the kernel. Let me take a close look.

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



Edited 1 time(s). Last edit at 12/20/2022 03:33PM by bodhi.
Re: Mainline Linux on GlobalScale D2Plug
December 20, 2022 03:25PM
Ray,

Try this new DTB. And please post dmesg and cat /proc/mtd output.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - dove-d2plug.dtb (13.7 KB)
open | download - dove-d2plug.dts (1.1 KB)
Re: Mainline Linux on GlobalScale D2Plug
December 20, 2022 09:11PM
This improves things but I still have an issue. From dmesg I now see the flash partitions recognized:

[    5.461676] spi-nor spi0.0: mx25l3205d (4096 Kbytes)
[    5.467359] 3 cmdlinepart partitions found on MTD device spi0.0
[    5.474884] Creating 3 MTD partitions on "spi0.0":
[    5.480376] 0x000000000000-0x0000000c0000 : "u-boot"
[    5.488428] 0x0000000c0000-0x0000000e0000 : "uboot_env"
[    5.498318] 0x0000000e0000-0x000000400000 : "kernel"

And also visible in proc

root@D2Plug:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 000c0000 00001000 "u-boot"
mtd1: 00020000 00001000 "uboot_env"
mtd2: 00320000 00001000 "kernel"
root@D2Plug:~#

But fw_printenv still has an issue

root@D2Plug:~# fw_printenv 
Cannot read environment, using default
Cannot read default environment from file
root@D2Plug:~#

Using the script from [TOOL] Finding address of stock envs of fw_printenv results in the same response repeatedly. However

strings /dev/mtd1
Dumps the expected u-boot environment variables.
Re: Mainline Linux on GlobalScale D2Plug
December 20, 2022 10:03PM
> [ 5.461676] spi-nor spi0.0: mx25l3205d (4096
> Kbytes)

Cool! but as I've requested above, next time please post dmesg. Excerpt where you want to comment about something after.

Your current /etc/fw_env.config looks wrong. I'll post the correction for it.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Mainline Linux on GlobalScale D2Plug
December 20, 2022 10:24PM
Try this:

cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size      Number of sectors

/dev/mtd1               0x0000          0x20000         0x1000

Warning: don't run fw_setenv to test anything.

To test, do this first
fw_printenv

The Env size might not be 0x20000. And the flash sector size might not be 0x1000. But it's a start for SPI flash. If fw_printenv gives error, dump the mtd1 and post and attach the file mtd1.d2plug here.

nanddump --noecc --omitoob  -f mtd1.d2plug /dev/mtd1

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



Edited 1 time(s). Last edit at 12/20/2022 10:33PM by bodhi.
Re: Mainline Linux on GlobalScale D2Plug
December 21, 2022 01:41AM
root@D2Plug:~# 
root@D2Plug:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size      Number of sectors

/dev/mtd1               0x0000          0x20000         0x1000
root@D2Plug:~# fw_printenv 
Cannot read environment, using default
Cannot read default environment from file

Attempt to dump mtd1
root@D2Plug:~# nanddump --noecc --omitoob  -f mtd1.d2plug /dev/mtd1
MTDFILEMODE: Operation not supported
root@D2Plug:~# nanddump --omitoob  -f mtd1.d2plug /dev/mtd1
ECC failed: 0
ECC corrected: 0
Number of bad blocks: 0
Number of bbt blocks: 0
Block size 4096, page size 1, OOB size 0
Dumping data starting at 0x00000000 and ending at 0x00020000...
root@D2Plug:~#

Attached resulting mtd1.d2plug file.
Attachments:
open | download - mtd1.d2plug (128 KB)
Re: Mainline Linux on GlobalScale D2Plug
December 21, 2022 01:51AM
Sorry, that was a wrong command for SPI flash!

Correcttion:

dd if=/dev/mtd1 of=mtd1.d2plug bs=128k conv=sync

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Mainline Linux on GlobalScale D2Plug
December 22, 2022 12:43AM
Attached is the result of the above dd command.

Ray
Attachments:
open | download - mtd1.d2plug (128 KB)
Re: Mainline Linux on GlobalScale D2Plug
December 22, 2022 04:35PM
Try these 2.

1. The env size is 64K, sector size 4K

# MTD device name       Device offset   Env. size       Flash sector size      Number of sectors

/dev/mtd1               0x0000          0x10000         0x1000

2. The env size is 64K, sector size 64K

# MTD device name       Device offset   Env. size       Flash sector size      Number of sectors

/dev/mtd1               0x0000          0x10000         0x10000

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Mainline Linux on GlobalScale D2Plug
December 23, 2022 12:28AM
bodhi Wrote:
> 1. The env size is 64K, sector size 4K
>
>
> # MTD device name       Device offset   Env. size 
>      Flash sector size      Number of sectors
> 
> /dev/mtd1               0x0000          0x10000   
>      0x1000
>
>
With this config fw_printenv now works, but fw_setenv does not appear to actually set anything.

Ray
Re: Mainline Linux on GlobalScale D2Plug
December 23, 2022 12:54AM
Hi Ray,

> > 1. The env size is 64K, sector size 4K
> >
> >
> > # MTD device name       Device offset   Env.
> size 
> >      Flash sector size      Number of sectors
> > 
> > /dev/mtd1               0x0000          0x10000 
>  
> >      0x1000
> >
> >
> With this config fw_printenv now works, but
> fw_setenv does not appear to actually set
> anything.
>

Cool! so we know that this is a correct definition.

The env size is 64K, sector size 4K
# MTD device name       Device offset   Env. size       Flash sector size      Number of sectors

/dev/mtd1               0x0000          0x10000         0x1000


Now let's redefine the mtdparts and see it was a side effect of the SPI flash being locked wholesale.
setenv mtdparts "mtdparts=spi0.0:768k(u-boot),128k(uboot_env),-(kernel)"
saveenv

And then boot
boot

Log into Debian and

fw_printenv mtdparts
See if it has the new definition, and then set a test env:
fw_setenv test_1 yes
Reboot, interrupt serial console and
printenv test_1
If this does not work then I will have to revisit the issue of "SPI flash being protected in u-boot" for this board. Remember that we are running stock u-boot (with new u-boot it is always unprotected by default).

And please post the serial console log of everything done above.

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



Edited 1 time(s). Last edit at 12/23/2022 03:49PM by bodhi.
Re: Mainline Linux on GlobalScale D2Plug
December 24, 2022 01:58AM
Still not able to affect environment with fw_setenv after the above changes. Since this device has USB serial console its easy enough to get access to u-boot, so no rush to resolve this issue.

Ray
Re: Mainline Linux on GlobalScale D2Plug
December 24, 2022 03:43PM
> Still not able to affect environment with
> fw_setenv after the above changes. Since this
> device has USB serial console its easy enough to
> get access to u-boot, so no rush to resolve this
> issue.

It's your box, so you can stop hacking it any time you lose interest!

I'm only interested in solving problems, beneficial to the community.

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

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: