Welcome! Log In Create A New Profile

Advanced

Chip PC LXD8941

Posted by Koen 
Re: Chip PC LXD8941
October 01, 2018 04:09PM
Koen

I've appended the new dtb and booted the device but when I insert a microSD card it is not recognised. After that I've used the following instructions to add gpio 12.


Please post the serial bootlog with the new DTB appended.

And list the modules

lsmod

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 10/01/2018 04:16PM by bodhi.
Re: Chip PC LXD8941
October 01, 2018 04:23PM
bootlog:

MIC>> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial'
MIC>> setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x3000000 /boot/uImage; ext2load usb 0:1 0x4000000 /boot/uInitrd'
MIC>> setenv bootcmd_exec 'run set_bootargs; run bootcmd_usb; bootm 0x3000000 0x4000000'
MIC>> run bootcmd_exec
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
       scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
......
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
..........................
4465719 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
......
......
............
.........................
...................................................
......................................................................................................
......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
................................
8721585 bytes read
## Booting kernel from Legacy Image at 03000000 ...
   Image Name:   Linux-4.18.5-mvebu-tld-1
   Created:      2018-10-01  20:31:50 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4465655 Bytes =  4.3 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 04000000 ...
   Image Name:   initramfs-4.18.5-mvebu-tld-1
   Created:      2018-09-29  17:33:30 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8721521 Bytes =  8.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

EUGENE lcd_disable
EUGENE lcd_panel_disable
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.18.5-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1 SMP PREEMPT Thu Aug 30 22:19:21 PDT 2018
[    0.000000] CPU: ARMv7 Processor [413fc081] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Chip PC LXD8941
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] random: get_random_bytes called from start_kernel+0x78/0x4c4 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s41548 r8192 d23988 u73728
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:768k(uboot),256k(uboot_env),768k(uboot2),-(kernel) earlyprintk=serial
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1016480K/1048576K available (9216K kernel code, 790K rwdata, 2304K rodata, 1024K init, 327K bss, 32096K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (10208 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 791 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 328 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000]  Tasks RCU enabled.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] Division by zero in kernel.
[    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.18.5-mvebu-tld-1 #1
[    0.000000] Hardware name: Marvell Dove
[    0.000000] [<c0117d00>] (unwind_backtrace) from [<c0112680>] (show_stack+0x10/0x14)
[    0.000000] [<c0112680>] (show_stack) from [<c0944f18>] (dump_stack+0x70/0x8c)
[    0.000000] [<c0944f18>] (dump_stack) from [<c0943574>] (Ldiv0+0x8/0x10)
[    0.000000] [<c0943574>] (Ldiv0) from [<c05c2fbc>] (dove_recalc_rate+0x44/0x8c)
[    0.000000] [<c05c2fbc>] (dove_recalc_rate) from [<c05bed1c>] (clk_register+0x40c/0x5d4)
[    0.000000] [<c05bed1c>] (clk_register) from [<c0d35580>] (dove_divider_clk_init+0x12c/0x190)
[    0.000000] [<c0d35580>] (dove_divider_clk_init) from [<c0d353c8>] (dove_clk_init+0x4c/0x74)
[    0.000000] [<c0d353c8>] (dove_clk_init) from [<c0d3353c>] (of_clk_init+0x184/0x240)
[    0.000000] [<c0d3353c>] (of_clk_init) from [<c0d04004>] (time_init+0x20/0x2c)
[    0.000000] [<c0d04004>] (time_init) from [<c0d00d14>] (start_kernel+0x2f8/0x4c4)
[    0.000000] [<c0d00d14>] (start_kernel) from [<00000000>] (  (null))
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000007] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.007824] Switching to timer-based delay loop, resolution 6ns
[    0.014458] Console: colour dummy device 80x30
[    0.018956] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.029471] pid_max: default: 32768 minimum: 301
[    0.034307] Security Framework initialized
[    0.038543] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.045144] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.053176] CPU: Testing write buffer coherency: ok
[    0.058114] CPU0: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable
[    0.067934] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.127982] Setting up static identity map for 0x100000 - 0x100060
[    0.134914] Hierarchical SRCU implementation.
[    0.177885] smp: Bringing up secondary CPUs ...
[    0.182407] smp: Brought up 1 node, 1 CPU
[    0.186397] SMP: Total of 1 processors activated (333.33 BogoMIPS).
[    0.192690] CPU: All CPU(s) started in SVC mode.
[    0.198318] devtmpfs: initialized
[    0.208120] VFP support v0.3: implementor 41 architecture 2 part 20 variant 9 rev 5
[    0.216547] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.226740] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.233237] prandom: seed boundary self test passed
[    0.241425] prandom: 100 self tests passed
[    0.245503] pinctrl core: initialized pinctrl subsystem
[    0.253335] NET: Registered protocol family 16
[    0.259616] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.267001] audit: initializing netlink subsys (disabled)
[    0.274958] audit: type=2000 audit(0.260:1): state=initialized audit_enabled=0 res=1
[    0.298167] cpuidle: using governor ladder
[    0.302377] cpuidle: using governor menu
[    0.306513] Dove 88AP510 SoC
[    0.309509] Tauros2: Disabling L2 prefetch.
[    0.313679] Tauros2: Disabling burst8 line fill.
[    0.318390] Tauros2: Enabling L2 cache.
[    0.322208] Tauros2: L2 cache support initialised in ARMv7 mode.
[    0.328612] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.428829] vgaarb: loaded
[    0.431862] SCSI subsystem initialized
[    0.438421] usbcore: registered new interface driver usbfs
[    0.443933] usbcore: registered new interface driver hub
[    0.450357] usbcore: registered new device driver usb
[    0.456150] media: Linux media interface: v0.10
[    0.461257] videodev: Linux video capture interface: v2.00
[    0.467255] pps_core: LinuxPPS API ver. 1 registered
[    0.472618] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.481945] PTP clock support registered
[    0.488215] clocksource: Switched to clocksource orion_clocksource
[    0.581468] VFS: Disk quotas dquot_6.6.0
[    0.585446] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.612678] NET: Registered protocol family 2
[    0.618890] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.626525] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.633958] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.640506] TCP: Hash tables configured (established 8192 bind 8192)
[    0.646938] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.652930] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.659522] NET: Registered protocol family 1
[    0.694563] RPC: Registered named UNIX socket transport module.
[    0.700529] RPC: Registered udp transport module.
[    0.705209] RPC: Registered tcp transport module.
[    0.709928] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.716555] Unpacking initramfs...
[    1.272757] Freeing initrd memory: 8520K
[    1.276873] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.286061] Initialise system trusted keyrings
[    1.291577] Key type blacklist registered
[    1.295772] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    1.302388] zbud: loaded
[    1.315964] NFS: Registering the id_resolver key type
[    1.321207] Key type id_resolver registered
[    1.325371] Key type id_legacy registered
[    1.329435] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.336103] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.342759] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.350367] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.356961] orangefs_init: module version upstream loaded
[    1.369022] Key type asymmetric registered
[    1.373100] Asymmetric key parser 'x509' registered
[    1.378026] bounce: pool size: 64 pages
[    1.382094] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    1.389782] io scheduler noop registered
[    1.393688] io scheduler deadline registered
[    1.398005] io scheduler cfq registered (default)
[    1.404969] dove-pinctrl f10d0200.pin-ctrl: falling back to hardcoded PMU resource
[    1.413571] dove-pinctrl f10d0200.pin-ctrl: [Firmware Bug]: Missing pinctrl regs in DTB. Please update your firmware.
[    1.424908] dove-pinctrl f10d0200.pin-ctrl: registered pinctrl driver
[    1.436448] mvebu-pcie mbus:pcie: PCI host bridge to bus 0000:00
[    1.443528] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.449934] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    1.456783] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.464361] PCI: bus0: Fast back to back transfers disabled
[    1.470148] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.478128] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.487546] PCI: bus1: Fast back to back transfers enabled
[    1.494579] PCI: bus2: Fast back to back transfers enabled
[    1.500224] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.505173] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.511297] mv_xor f1060800.dma-engine: Marvell shared XOR driver
[    1.579304] mv_xor f1060800.dma-engine: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.587591] mv_xor f1060900.dma-engine: Marvell shared XOR driver
[    1.649300] mv_xor f1060900.dma-engine: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.790832] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.801109] console [ttyS0] disabled
[    1.805380] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 21, base_baud = 10416666) is a 16550A
[    1.814630] console [ttyS0] enabled
[    1.814630] console [ttyS0] enabled
[    1.821751] bootconsole [earlycon0] disabled
[    1.821751] bootconsole [earlycon0] disabled
[    1.831487] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 22, base_baud = 10416666) is a 16550A
[    1.842624] sata_mv f10a0000.sata-host: slots 32 ports 1
[    1.860269] scsi host0: sata_mv
[    1.863955] ata1: SATA max UDMA/133 irq 33
[    1.870102] m25p80 spi0.0: found mx25l1606e, expected sst25vf080b
[    1.876181] m25p80 spi0.0: mx25l1606e (2048 Kbytes)
[    1.882594] 4 cmdlinepart partitions found on MTD device spi0.0
[    1.888558] Creating 4 MTD partitions on "spi0.0":
[    1.893330] 0x000000000000-0x0000000c0000 : "uboot"
[    1.899811] 0x0000000c0000-0x000000100000 : "uboot_env"
[    1.906580] 0x000000100000-0x0000001c0000 : "uboot2"
[    1.913155] 0x0000001c0000-0x000000200000 : "kernel"
[    1.922460] libphy: Fixed MDIO Bus: probed
[    1.930303] libphy: orion_mdio_bus: probed
[    1.942245] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.049558] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:05:35:09:92:9a
[    2.059402] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.065918] ehci-pci: EHCI PCI platform driver
[    2.070925] ehci-orion: EHCI orion driver
[    2.075089] orion-ehci f1050000.usb-host: EHCI Host Controller
[    2.081070] orion-ehci f1050000.usb-host: new USB bus registered, assigned bus number 1
[    2.089517] orion-ehci f1050000.usb-host: irq 26, io mem 0xf1050000
[    2.118250] orion-ehci f1050000.usb-host: USB 2.0 started, EHCI 1.00
[    2.124869] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18
[    2.133146] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.140377] usb usb1: Product: EHCI Host Controller
[    2.145234] usb usb1: Manufacturer: Linux 4.18.5-mvebu-tld-1 ehci_hcd
[    2.151685] usb usb1: SerialNumber: f1050000.usb-host
[    2.157487] hub 1-0:1.0: USB hub found
[    2.161473] hub 1-0:1.0: 1 port detected
[    2.166156] orion-ehci f1051000.usb-host: EHCI Host Controller
[    2.172276] orion-ehci f1051000.usb-host: new USB bus registered, assigned bus number 2
[    2.180471] orion-ehci f1051000.usb-host: irq 27, io mem 0xf1051000
[    2.201965] ata1: SATA link down (SStatus 0 SControl F300)
[    2.208257] orion-ehci f1051000.usb-host: USB 2.0 started, EHCI 1.00
[    2.214839] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18
[    2.223128] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.230342] usb usb2: Product: EHCI Host Controller
[    2.235201] usb usb2: Manufacturer: Linux 4.18.5-mvebu-tld-1 ehci_hcd
[    2.241632] usb usb2: SerialNumber: f1051000.usb-host
[    2.247367] hub 2-0:1.0: USB hub found
[    2.251342] hub 2-0:1.0: 1 port detected
[    2.256685] usbcore: registered new interface driver usblp
[    2.262865] usbcore: registered new interface driver usb-storage
[    2.269527] mousedev: PS/2 mouse device common for all mice
[    2.276476] rtc-mv f10d8500.real-time-clock: rtc core: registered f10d8500.real-time-clock as rtc0
[    2.286360] i2c /dev entries driver
[    2.289866] random: fast init done
[    2.296367] orion_wdt: Initial timeout 25 sec
[    2.304994] marvell-cesa f1030000.crypto-engine: CESA device successfully registered
[    2.313429] hidraw: raw HID events driver (C) Jiri Kosina
[    2.319922] usbcore: registered new interface driver usbhid
[    2.325468] usbhid: USB HID core driver
[    2.330268] drop_monitor: Initializing network drop monitor service
[    2.336970] NET: Registered protocol family 10
[    2.352964] Segment Routing with IPv6
[    2.356696] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.364724] NET: Registered protocol family 17
[    2.369629] 8021q: 802.1Q VLAN Support v1.8
[    2.373834] Key type dns_resolver registered
[    2.378512] ThumbEE CPU extension supported.
[    2.382769] Registering SWP/SWPB emulation handler
[    2.388540] registered taskstats version 1
[    2.392620] Loading compiled-in X.509 certificates
[    2.397453] zswap: loaded using pool lzo/zbud
[    2.418806] Key type big_key registered
[    2.430415] Key type encrypted registered
[    2.437392] rtc-mv f10d8500.real-time-clock: setting system clock to 2006-08-24 06:03:24 UTC (1156399404)
[    2.450170] Freeing unused kernel memory: 1024K
[    2.456736] Checked W+X mappings: passed, no W+X pages found
Loading, please wait...
[    2.528330] usb 1-1: new high-speed USB device number 2 using orion-ehci
starting version 232
[    2.570918] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.583652] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.590847] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.618308] usb 2-1: new high-speed USB device number 2 using orion-ehci
[    2.740144] usb 1-1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=32.98
[    2.758320] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.765431] usb 1-1: Product: USB2.0 Hub
[    2.786723] hub 1-1:1.0: USB hub found
[    2.799345] hub 1-1:1.0: 4 ports detected
[    2.840219] usb 2-1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=32.98
[    2.858337] usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.865448] usb 2-1: Product: USB2.0 Hub
[    2.886183] hub 2-1:1.0: USB hub found
[    2.899735] hub 2-1:1.0: 4 ports detected
[    3.124551] i2c i2c-0: Added multiplexed i2c bus 1
[    3.129472] usb 1-1.4: new high-speed USB device number 3 using orion-ehci
[    3.164812] i2c i2c-0: Added multiplexed i2c bus 2
[    3.196104] i2c i2c-0: Added multiplexed i2c bus 3
[    3.293282] sdhci: Secure Digital Host Controller Interface driver
[    3.300638] usb 1-1.4: New USB device found, idVendor=0781, idProduct=5530, bcdDevice= 1.26
[    3.315850] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.330333] usb 1-1.4: Product: Cruzer
[    3.334073] usb 1-1.4: Manufacturer: SanDisk
[    3.343356] sdhci: Copyright(c) Pierre Ossman
[    3.347740] usb 1-1.4: SerialNumber: 20060775210A3B80C5B2
[    3.353972] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.360593] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    3.377918] mmc0 bounce up to 128 segments into one, max segment size 65536 bytes
[    3.386155] scsi host1: usb-storage 1-1.4:1.0
[    3.445427] mmc0: SDHCI controller on f1090000.sdio-host [f1090000.sdio-host] using DMA
[    3.469269] mmc1 bounce up to 128 segments into one, max segment size 65536 bytes
[    3.521410] mmc1: SDHCI controller on f1092000.sdio-host [f1092000.sdio-host] using DMA
[    3.574490] mmc1: new high speed MMC card at address 0001
[    4.409866] scsi 1:0:0:0: Direct-Access     SanDisk  Cruzer           1.26 PQ: 0 ANSI: 5
[    4.427196] sd 1:0:0:0: [sda] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[    4.442311] sd 1:0:0:0: [sda] Write Protect is off
[    4.451014] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.480305]  sda: sda1
[    4.486052] sd 1:0:0:0: [sda] Attached SCSI removable disk
[    4.596826] usbcore: registered new interface driver uas
[    4.612593] mmcblk1: mmc1:0001 SEM02G 1.82 GiB 
[    4.617496] mmcblk1boot0: mmc1:0001 SEM02G partition 1 1.00 MiB
[    4.648887] mmcblk1boot1: mmc1:0001 SEM02G partition 2 1.00 MiB
[    4.656488] mmcblk1rpmb: mmc1:0001 SEM02G partition 3 128 KiB, chardev (242:0)
[    4.675109]  mmcblk1: p1 p2 p3
[    4.678941] mmcblk1: p3 size 1831410 extends beyond EOD, truncated
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.29.2
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
rootfs: clean, 26714/488640 files, 378694/1953536 blocks
done.
[   15.226094] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   15.254919] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   18.030621] sd 1:0:0:0: Attached scsi generic sg0 type 0
done.
[ ok ] Activating swap:.
[   20.664505] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   20.909581] random: crng init done
[   20.912980] random: 7 urandom warning(s) missed due to ratelimiting
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[   23.589259] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   25.995202] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   26.005054] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:05:35:09:92:9a
Sending on   LPF/eth0/00:05:35:09:92:9a
Sending on   Socket/fallback
DHCPREQUEST of 192.168.1.135 on eth0 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.1.135 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.135 from 192.168.1.1
bound to 192.168.1.135 -- renewal in 20573 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
[ ok ] Setting up ALSA...done (none loaded).
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2567 (syslogd)
. ok 
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2566 (klogd)
. ok 
[ ok ] Starting NTP server: ntpd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login:

lsmod:

root@debian:~# lsmod
Module                  Size  Used by
armada                 45056  0
drm_kms_helper        114688  1 armada
drm                   294912  2 armada,drm_kms_helper
drm_panel_orientation_quirks    16384  1 drm
fb_sys_fops            16384  1 drm_kms_helper
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
cfbfillrect            16384  1 drm_kms_helper
cfbimgblt              16384  1 drm_kms_helper
cfbcopyarea            16384  1 drm_kms_helper
sg                     32768  0
uio_pdrv_genirq        16384  0
uio                    20480  1 uio_pdrv_genirq
mmc_block              36864  0
uas                    20480  0
sdhci_dove             16384  0
sdhci_pltfm            16384  1 sdhci_dove
sdhci                  49152  2 sdhci_dove,sdhci_pltfm
mmc_core              122880  3 sdhci_dove,sdhci,mmc_block
i2c_mux_pinctrl        16384  0
root@debian:~# 
Re: Chip PC LXD8941
October 01, 2018 04:57PM
Koen,

Sorry, I meant the boot log without the card inserted. And then plug in the card. List the modules.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Chip PC LXD8941
October 01, 2018 05:25PM
Here the boot log from serial console. When I plug in the card there is no new output to console.

MIC>> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial'
MIC>> setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x3000000 /boot/uImage; ext2load usb 0:1 0x4000000 /boot/uInitrd'
MIC>> setenv bootcmd_exec 'run set_bootargs; run bootcmd_usb; bootm 0x3000000 0x4000000'
MIC>> run bootcmd_exec
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
       scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
......
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
..........................
4465719 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
......
......
............
.........................
...................................................
......................................................................................................
......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
................................
8721585 bytes read
## Booting kernel from Legacy Image at 03000000 ...
   Image Name:   Linux-4.18.5-mvebu-tld-1
   Created:      2018-10-01  20:31:50 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4465655 Bytes =  4.3 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 04000000 ...
   Image Name:   initramfs-4.18.5-mvebu-tld-1
   Created:      2018-09-29  17:33:30 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8721521 Bytes =  8.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

EUGENE lcd_disable
EUGENE lcd_panel_disable
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.18.5-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1 SMP PREEMPT Thu Aug 30 22:19:21 PDT 2018
[    0.000000] CPU: ARMv7 Processor [413fc081] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Chip PC LXD8941
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] random: get_random_bytes called from start_kernel+0x78/0x4c4 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s41548 r8192 d23988 u73728
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:768k(uboot),256k(uboot_env),768k(uboot2),-(kernel) earlyprintk=serial
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1016480K/1048576K available (9216K kernel code, 790K rwdata, 2304K rodata, 1024K init, 327K bss, 32096K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (10208 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 791 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 328 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000]  Tasks RCU enabled.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] Division by zero in kernel.
[    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.18.5-mvebu-tld-1 #1
[    0.000000] Hardware name: Marvell Dove
[    0.000000] [<c0117d00>] (unwind_backtrace) from [<c0112680>] (show_stack+0x10/0x14)
[    0.000000] [<c0112680>] (show_stack) from [<c0944f18>] (dump_stack+0x70/0x8c)
[    0.000000] [<c0944f18>] (dump_stack) from [<c0943574>] (Ldiv0+0x8/0x10)
[    0.000000] [<c0943574>] (Ldiv0) from [<c05c2fbc>] (dove_recalc_rate+0x44/0x8c)
[    0.000000] [<c05c2fbc>] (dove_recalc_rate) from [<c05bed1c>] (clk_register+0x40c/0x5d4)
[    0.000000] [<c05bed1c>] (clk_register) from [<c0d35580>] (dove_divider_clk_init+0x12c/0x190)
[    0.000000] [<c0d35580>] (dove_divider_clk_init) from [<c0d353c8>] (dove_clk_init+0x4c/0x74)
[    0.000000] [<c0d353c8>] (dove_clk_init) from [<c0d3353c>] (of_clk_init+0x184/0x240)
[    0.000000] [<c0d3353c>] (of_clk_init) from [<c0d04004>] (time_init+0x20/0x2c)
[    0.000000] [<c0d04004>] (time_init) from [<c0d00d14>] (start_kernel+0x2f8/0x4c4)
[    0.000000] [<c0d00d14>] (start_kernel) from [<00000000>] (  (null))
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000007] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.007824] Switching to timer-based delay loop, resolution 6ns
[    0.014457] Console: colour dummy device 80x30
[    0.018956] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.029471] pid_max: default: 32768 minimum: 301
[    0.034306] Security Framework initialized
[    0.038537] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.045135] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.053167] CPU: Testing write buffer coherency: ok
[    0.058105] CPU0: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable
[    0.067922] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.127980] Setting up static identity map for 0x100000 - 0x100060
[    0.134904] Hierarchical SRCU implementation.
[    0.177887] smp: Bringing up secondary CPUs ...
[    0.182406] smp: Brought up 1 node, 1 CPU
[    0.186397] SMP: Total of 1 processors activated (333.33 BogoMIPS).
[    0.192690] CPU: All CPU(s) started in SVC mode.
[    0.198315] devtmpfs: initialized
[    0.208118] VFP support v0.3: implementor 41 architecture 2 part 20 variant 9 rev 5
[    0.216541] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.226743] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.233235] prandom: seed boundary self test passed
[    0.241425] prandom: 100 self tests passed
[    0.245503] pinctrl core: initialized pinctrl subsystem
[    0.253354] NET: Registered protocol family 16
[    0.259630] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.267012] audit: initializing netlink subsys (disabled)
[    0.274964] audit: type=2000 audit(0.260:1): state=initialized audit_enabled=0 res=1
[    0.298166] cpuidle: using governor ladder
[    0.302371] cpuidle: using governor menu
[    0.306506] Dove 88AP510 SoC
[    0.309502] Tauros2: Disabling L2 prefetch.
[    0.313670] Tauros2: Disabling burst8 line fill.
[    0.318383] Tauros2: Enabling L2 cache.
[    0.322207] Tauros2: L2 cache support initialised in ARMv7 mode.
[    0.328610] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.428823] vgaarb: loaded
[    0.431852] SCSI subsystem initialized
[    0.438365] usbcore: registered new interface driver usbfs
[    0.443871] usbcore: registered new interface driver hub
[    0.450322] usbcore: registered new device driver usb
[    0.456115] media: Linux media interface: v0.10
[    0.461227] videodev: Linux video capture interface: v2.00
[    0.467224] pps_core: LinuxPPS API ver. 1 registered
[    0.472584] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.481908] PTP clock support registered
[    0.488198] clocksource: Switched to clocksource orion_clocksource
[    0.581275] VFS: Disk quotas dquot_6.6.0
[    0.585255] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.612698] NET: Registered protocol family 2
[    0.618903] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.626543] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.633974] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.640523] TCP: Hash tables configured (established 8192 bind 8192)
[    0.646955] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.652945] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.659539] NET: Registered protocol family 1
[    0.694572] RPC: Registered named UNIX socket transport module.
[    0.700539] RPC: Registered udp transport module.
[    0.705217] RPC: Registered tcp transport module.
[    0.709936] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.716566] Unpacking initramfs...
[    1.272621] Freeing initrd memory: 8520K
[    1.276734] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.285977] Initialise system trusted keyrings
[    1.291500] Key type blacklist registered
[    1.295688] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    1.302301] zbud: loaded
[    1.315876] NFS: Registering the id_resolver key type
[    1.321126] Key type id_resolver registered
[    1.325284] Key type id_legacy registered
[    1.329349] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.336016] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.342671] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.350278] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.356874] orangefs_init: module version upstream loaded
[    1.368953] Key type asymmetric registered
[    1.373030] Asymmetric key parser 'x509' registered
[    1.377956] bounce: pool size: 64 pages
[    1.382024] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    1.389718] io scheduler noop registered
[    1.393619] io scheduler deadline registered
[    1.397937] io scheduler cfq registered (default)
[    1.404914] dove-pinctrl f10d0200.pin-ctrl: falling back to hardcoded PMU resource
[    1.413513] dove-pinctrl f10d0200.pin-ctrl: [Firmware Bug]: Missing pinctrl regs in DTB. Please update your firmware.
[    1.424853] dove-pinctrl f10d0200.pin-ctrl: registered pinctrl driver
[    1.436412] mvebu-pcie mbus:pcie: PCI host bridge to bus 0000:00
[    1.443503] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.449917] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    1.456765] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.464359] PCI: bus0: Fast back to back transfers disabled
[    1.470139] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.478119] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.487537] PCI: bus1: Fast back to back transfers enabled
[    1.494578] PCI: bus2: Fast back to back transfers enabled
[    1.500223] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.505172] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.511297] mv_xor f1060800.dma-engine: Marvell shared XOR driver
[    1.579342] mv_xor f1060800.dma-engine: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.587631] mv_xor f1060900.dma-engine: Marvell shared XOR driver
[    1.649330] mv_xor f1060900.dma-engine: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.790998] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.801305] console [ttyS0] disabled
[    1.805574] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 21, base_baud = 10416666) is a 16550A
[    1.814835] console [ttyS0] enabled
[    1.814835] console [ttyS0] enabled
[    1.821958] bootconsole [earlycon0] disabled
[    1.821958] bootconsole [earlycon0] disabled
[    1.831695] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 22, base_baud = 10416666) is a 16550A
[    1.842840] sata_mv f10a0000.sata-host: slots 32 ports 1
[    1.860473] scsi host0: sata_mv
[    1.864150] ata1: SATA max UDMA/133 irq 33
[    1.870408] m25p80 spi0.0: found mx25l1606e, expected sst25vf080b
[    1.876482] m25p80 spi0.0: mx25l1606e (2048 Kbytes)
[    1.882783] 4 cmdlinepart partitions found on MTD device spi0.0
[    1.888743] Creating 4 MTD partitions on "spi0.0":
[    1.893519] 0x000000000000-0x0000000c0000 : "uboot"
[    1.899870] 0x0000000c0000-0x000000100000 : "uboot_env"
[    1.906667] 0x000000100000-0x0000001c0000 : "uboot2"
[    1.913386] 0x0000001c0000-0x000000200000 : "kernel"
[    1.922672] libphy: Fixed MDIO Bus: probed
[    1.930529] libphy: orion_mdio_bus: probed
[    1.942512] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.049558] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:05:35:09:92:9a
[    2.059404] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.065928] ehci-pci: EHCI PCI platform driver
[    2.070932] ehci-orion: EHCI orion driver
[    2.075096] orion-ehci f1050000.usb-host: EHCI Host Controller
[    2.081080] orion-ehci f1050000.usb-host: new USB bus registered, assigned bus number 1
[    2.089429] orion-ehci f1050000.usb-host: irq 26, io mem 0xf1050000
[    2.118232] orion-ehci f1050000.usb-host: USB 2.0 started, EHCI 1.00
[    2.124853] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18
[    2.133127] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.140361] usb usb1: Product: EHCI Host Controller
[    2.145216] usb usb1: Manufacturer: Linux 4.18.5-mvebu-tld-1 ehci_hcd
[    2.151668] usb usb1: SerialNumber: f1050000.usb-host
[    2.157467] hub 1-0:1.0: USB hub found
[    2.161450] hub 1-0:1.0: 1 port detected
[    2.166133] orion-ehci f1051000.usb-host: EHCI Host Controller
[    2.172248] orion-ehci f1051000.usb-host: new USB bus registered, assigned bus number 2
[    2.180446] orion-ehci f1051000.usb-host: irq 27, io mem 0xf1051000
[    2.201940] ata1: SATA link down (SStatus 0 SControl F300)
[    2.208239] orion-ehci f1051000.usb-host: USB 2.0 started, EHCI 1.00
[    2.214818] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18
[    2.223101] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.230316] usb usb2: Product: EHCI Host Controller
[    2.235175] usb usb2: Manufacturer: Linux 4.18.5-mvebu-tld-1 ehci_hcd
[    2.241606] usb usb2: SerialNumber: f1051000.usb-host
[    2.247340] hub 2-0:1.0: USB hub found
[    2.251314] hub 2-0:1.0: 1 port detected
[    2.256663] usbcore: registered new interface driver usblp
[    2.262845] usbcore: registered new interface driver usb-storage
[    2.269512] mousedev: PS/2 mouse device common for all mice
[    2.276461] rtc-mv f10d8500.real-time-clock: rtc core: registered f10d8500.real-time-clock as rtc0
[    2.286343] i2c /dev entries driver
[    2.289840] random: fast init done
[    2.296338] orion_wdt: Initial timeout 25 sec
[    2.304964] marvell-cesa f1030000.crypto-engine: CESA device successfully registered
[    2.313408] hidraw: raw HID events driver (C) Jiri Kosina
[    2.319896] usbcore: registered new interface driver usbhid
[    2.325443] usbhid: USB HID core driver
[    2.330243] drop_monitor: Initializing network drop monitor service
[    2.336938] NET: Registered protocol family 10
[    2.352932] Segment Routing with IPv6
[    2.356661] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.364716] NET: Registered protocol family 17
[    2.369617] 8021q: 802.1Q VLAN Support v1.8
[    2.373825] Key type dns_resolver registered
[    2.378499] ThumbEE CPU extension supported.
[    2.382761] Registering SWP/SWPB emulation handler
[    2.388536] registered taskstats version 1
[    2.392620] Loading compiled-in X.509 certificates
[    2.397454] zswap: loaded using pool lzo/zbud
[    2.418705] Key type big_key registered
[    2.430246] Key type encrypted registered
[    2.437205] rtc-mv f10d8500.real-time-clock: hctosys: unable to read the hardware clock
[    2.448485] Freeing unused kernel memory: 1024K
[    2.455050] Checked W+X mappings: passed, no W+X pages found
Loading, please wait...
[    2.528311] usb 1-1: new high-speed USB device number 2 using orion-ehci
starting version 232
[    2.571018] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.581839] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.589132] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.618298] usb 2-1: new high-speed USB device number 2 using orion-ehci
[    2.740179] usb 1-1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=32.98
[    2.758318] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.765423] usb 1-1: Product: USB2.0 Hub
[    2.786761] hub 1-1:1.0: USB hub found
[    2.799323] hub 1-1:1.0: 4 ports detected
[    2.840196] usb 2-1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=32.98
[    2.858322] usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.865430] usb 2-1: Product: USB2.0 Hub
[    2.886313] hub 2-1:1.0: USB hub found
[    2.899712] hub 2-1:1.0: 4 ports detected
[    3.126858] i2c i2c-0: Added multiplexed i2c bus 1
[    3.131783] usb 1-1.4: new high-speed USB device number 3 using orion-ehci
[    3.177407] i2c i2c-0: Added multiplexed i2c bus 2
[    3.185770] i2c i2c-0: Added multiplexed i2c bus 3
[    3.309428] usb 1-1.4: New USB device found, idVendor=0781, idProduct=5530, bcdDevice= 1.26
[    3.317770] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.338316] usb 1-1.4: Product: Cruzer
[    3.342072] usb 1-1.4: Manufacturer: SanDisk
[    3.346323] usb 1-1.4: SerialNumber: 20060775210A3B80C5B2
[    3.356241] sdhci: Secure Digital Host Controller Interface driver
[    3.367389] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    3.396108] scsi host1: usb-storage 1-1.4:1.0
[    3.407326] sdhci: Copyright(c) Pierre Ossman
[    3.425324] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.441104] mmc0 bounce up to 128 segments into one, max segment size 65536 bytes
[    3.491227] mmc0: SDHCI controller on f1090000.sdio-host [f1090000.sdio-host] using DMA
[    3.513395] mmc1 bounce up to 128 segments into one, max segment size 65536 bytes
[    3.568367] mmc1: SDHCI controller on f1092000.sdio-host [f1092000.sdio-host] using DMA
[    3.621032] mmc1: new high speed MMC card at address 0001
[    4.409900] scsi 1:0:0:0: Direct-Access     SanDisk  Cruzer           1.26 PQ: 0 ANSI: 5
[    4.427722] sd 1:0:0:0: [sda] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[    4.442975] sd 1:0:0:0: [sda] Write Protect is off
[    4.451627] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.479716]  sda: sda1
[    4.485341] sd 1:0:0:0: [sda] Attached SCSI removable disk
[    4.624389] usbcore: registered new interface driver uas
[    4.641273] mmcblk1: mmc1:0001 SEM02G 1.82 GiB 
[    4.646172] mmcblk1boot0: mmc1:0001 SEM02G partition 1 1.00 MiB
[    4.677696] mmcblk1boot1: mmc1:0001 SEM02G partition 2 1.00 MiB
[    4.685285] mmcblk1rpmb: mmc1:0001 SEM02G partition 3 128 KiB, chardev (242:0)
[    4.706573]  mmcblk1: p1 p2 p3
[    4.710327] mmcblk1: p3 size 1831410 extends beyond EOD, truncated
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.29.2
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
rootfs: clean, 26714/488640 files, 378695/1953536 blocks
done.
[   15.256130] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   15.285076] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   18.120391] sd 1:0:0:0: Attached scsi generic sg0 type 0
done.
[ ok ] Activating swap:.
[   20.701039] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   20.715092] random: crng init done
[   20.718486] random: 7 urandom warning(s) missed due to ratelimiting
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[   23.609178] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   25.961307] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   25.971146] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:05:35:09:92:9a
Sending on   LPF/eth0/00:05:35:09:92:9a
Sending on   Socket/fallback
DHCPREQUEST of 192.168.1.135 on eth0 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.1.135 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.135 from 192.168.1.1
bound to 192.168.1.135 -- renewal in 18087 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
[ ok ] Setting up ALSA...done (none loaded).
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2571 (syslogd)
. ok 
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting periodic command scheduler: cron.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2572 (klogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Mon Oct  1 15:24:23 PDT 2018 from 192.168.1.2 on pts/0
Linux debian 4.18.5-mvebu-tld-1 #1 SMP PREEMPT Thu Aug 30 22:19:21 PDT 2018 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.
debian
192.168.1.135
Chip PC LXD8941
Linux version 4.18.5-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1 SMP PREEMPT Thu Aug 30 22:19:21 PDT 2018
Debian 9.5
Mon Oct 1 16:20:00 PDT 2018 up 1 minute
root@debian:~#

root@debian:~# lsmod
Module                  Size  Used by
armada                 45056  0
drm_kms_helper        114688  1 armada
drm                   294912  2 armada,drm_kms_helper
drm_panel_orientation_quirks    16384  1 drm
fb_sys_fops            16384  1 drm_kms_helper
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
cfbfillrect            16384  1 drm_kms_helper
cfbimgblt              16384  1 drm_kms_helper
cfbcopyarea            16384  1 drm_kms_helper
sg                     32768  0
uio_pdrv_genirq        16384  0
uio                    20480  1 uio_pdrv_genirq
mmc_block              36864  0
uas                    20480  0
sdhci_dove             16384  0
sdhci_pltfm            16384  1 sdhci_dove
sdhci                  49152  2 sdhci_dove,sdhci_pltfm
mmc_core              122880  3 sdhci_dove,sdhci,mmc_block
i2c_mux_pinctrl        16384  0
root@debian:~# 
Re: Chip PC LXD8941
October 01, 2018 06:50PM
It does work now! list the partition.
fdisk -l

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Chip PC LXD8941
October 01, 2018 06:54PM
Does this box have both internal SD and external SD slot?

There is a 1.82GB SD card that was detected by the kernel in the log.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 10/01/2018 06:56PM by bodhi.
Re: Chip PC LXD8941
October 02, 2018 01:00AM
That is the soldered on 2 GB internal memory chip. This has been working OK since the start. The SD card should show up as mmcblk0 like it does when I boot the device with the card in place.

Koen
Re: Chip PC LXD8941
October 02, 2018 01:52AM
Ok. Here is the new DTB with mmc 0.

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - dove-chip-lxd8941.dtb (13.6 KB)
open | download - dove-chip-lxd8941.dts (1.7 KB)
Re: Chip PC LXD8941
October 02, 2018 12:03PM
This latest .dtb file doesn't fix mmc0 but makes mmc1 disappear as well :-)

Koen

MIC>> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial'
MIC>> setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x3000000 /boot/uImage; ext2load usb 0:1 0x4000000 /boot/uInitrd'
MIC>> setenv bootcmd_exec 'run set_bootargs; run bootcmd_usb; bootm 0x3000000 0x4000000'
MIC>> run bootcmd_exec
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
       scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
......
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
..........................
4465752 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
......
......
............
.........................
...................................................
......................................................................................................
......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
................................
8721585 bytes read
## Booting kernel from Legacy Image at 03000000 ...
   Image Name:   Linux-4.18.5-mvebu-tld-1
   Created:      2018-10-02  17:47:49 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4465688 Bytes =  4.3 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 04000000 ...
   Image Name:   initramfs-4.18.5-mvebu-tld-1
   Created:      2018-09-29  17:33:30 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8721521 Bytes =  8.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

EUGENE lcd_disable
EUGENE lcd_panel_disable
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.18.5-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1 SMP PREEMPT Thu Aug 30 22:19:21 PDT 2018
[    0.000000] CPU: ARMv7 Processor [413fc081] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Chip PC LXD8941
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] random: get_random_bytes called from start_kernel+0x78/0x4c4 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s41548 r8192 d23988 u73728
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:768k(uboot),256k(uboot_env),768k(uboot2),-(kernel) earlyprintk=serial
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1016480K/1048576K available (9216K kernel code, 790K rwdata, 2304K rodata, 1024K init, 327K bss, 32096K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (10208 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 791 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 328 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000]  Tasks RCU enabled.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] Division by zero in kernel.
[    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.18.5-mvebu-tld-1 #1
[    0.000000] Hardware name: Marvell Dove
[    0.000000] [<c0117d00>] (unwind_backtrace) from [<c0112680>] (show_stack+0x10/0x14)
[    0.000000] [<c0112680>] (show_stack) from [<c0944f18>] (dump_stack+0x70/0x8c)
[    0.000000] [<c0944f18>] (dump_stack) from [<c0943574>] (Ldiv0+0x8/0x10)
[    0.000000] [<c0943574>] (Ldiv0) from [<c05c2fbc>] (dove_recalc_rate+0x44/0x8c)
[    0.000000] [<c05c2fbc>] (dove_recalc_rate) from [<c05bed1c>] (clk_register+0x40c/0x5d4)
[    0.000000] [<c05bed1c>] (clk_register) from [<c0d35580>] (dove_divider_clk_init+0x12c/0x190)
[    0.000000] [<c0d35580>] (dove_divider_clk_init) from [<c0d353c8>] (dove_clk_init+0x4c/0x74)
[    0.000000] [<c0d353c8>] (dove_clk_init) from [<c0d3353c>] (of_clk_init+0x184/0x240)
[    0.000000] [<c0d3353c>] (of_clk_init) from [<c0d04004>] (time_init+0x20/0x2c)
[    0.000000] [<c0d04004>] (time_init) from [<c0d00d14>] (start_kernel+0x2f8/0x4c4)
[    0.000000] [<c0d00d14>] (start_kernel) from [<00000000>] (  (null))
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000007] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.007824] Switching to timer-based delay loop, resolution 6ns
[    0.014457] Console: colour dummy device 80x30
[    0.018955] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.029472] pid_max: default: 32768 minimum: 301
[    0.034310] Security Framework initialized
[    0.038543] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.045145] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.053177] CPU: Testing write buffer coherency: ok
[    0.058115] CPU0: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable
[    0.067932] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.127982] Setting up static identity map for 0x100000 - 0x100060
[    0.134921] Hierarchical SRCU implementation.
[    0.177882] smp: Bringing up secondary CPUs ...
[    0.182398] smp: Brought up 1 node, 1 CPU
[    0.186388] SMP: Total of 1 processors activated (333.33 BogoMIPS).
[    0.192684] CPU: All CPU(s) started in SVC mode.
[    0.198299] devtmpfs: initialized
[    0.208121] VFP support v0.3: implementor 41 architecture 2 part 20 variant 9 rev 5
[    0.216539] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.226727] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.233223] prandom: seed boundary self test passed
[    0.241406] prandom: 100 self tests passed
[    0.245487] pinctrl core: initialized pinctrl subsystem
[    0.253317] NET: Registered protocol family 16
[    0.259604] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.266984] audit: initializing netlink subsys (disabled)
[    0.274943] audit: type=2000 audit(0.260:1): state=initialized audit_enabled=0 res=1
[    0.298171] cpuidle: using governor ladder
[    0.302381] cpuidle: using governor menu
[    0.306522] Dove 88AP510 SoC
[    0.309521] Tauros2: Disabling L2 prefetch.
[    0.313688] Tauros2: Disabling burst8 line fill.
[    0.318399] Tauros2: Enabling L2 cache.
[    0.322217] Tauros2: L2 cache support initialised in ARMv7 mode.
[    0.328617] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.428831] vgaarb: loaded
[    0.431868] SCSI subsystem initialized
[    0.438354] usbcore: registered new interface driver usbfs
[    0.443863] usbcore: registered new interface driver hub
[    0.450328] usbcore: registered new device driver usb
[    0.456118] media: Linux media interface: v0.10
[    0.461231] videodev: Linux video capture interface: v2.00
[    0.467228] pps_core: LinuxPPS API ver. 1 registered
[    0.472598] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.481916] PTP clock support registered
[    0.488207] clocksource: Switched to clocksource orion_clocksource
[    0.581342] VFS: Disk quotas dquot_6.6.0
[    0.585323] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.612659] NET: Registered protocol family 2
[    0.618922] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.626560] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.633998] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.640556] TCP: Hash tables configured (established 8192 bind 8192)
[    0.646992] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.652991] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.659583] NET: Registered protocol family 1
[    0.694619] RPC: Registered named UNIX socket transport module.
[    0.700582] RPC: Registered udp transport module.
[    0.705261] RPC: Registered tcp transport module.
[    0.709980] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.716615] Unpacking initramfs...
[    1.272699] Freeing initrd memory: 8520K
[    1.276812] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.286023] Initialise system trusted keyrings
[    1.291535] Key type blacklist registered
[    1.295722] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    1.302333] zbud: loaded
[    1.315902] NFS: Registering the id_resolver key type
[    1.321146] Key type id_resolver registered
[    1.325310] Key type id_legacy registered
[    1.329374] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.336042] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.342698] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.350311] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.356901] orangefs_init: module version upstream loaded
[    1.368976] Key type asymmetric registered
[    1.373057] Asymmetric key parser 'x509' registered
[    1.377981] bounce: pool size: 64 pages
[    1.382048] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    1.389739] io scheduler noop registered
[    1.393645] io scheduler deadline registered
[    1.397960] io scheduler cfq registered (default)
[    1.404948] dove-pinctrl f10d0200.pin-ctrl: falling back to hardcoded PMU resource
[    1.413547] dove-pinctrl f10d0200.pin-ctrl: [Firmware Bug]: Missing pinctrl regs in DTB. Please update your firmware.
[    1.424882] dove-pinctrl f10d0200.pin-ctrl: registered pinctrl driver
[    1.436436] mvebu-pcie mbus:pcie: PCI host bridge to bus 0000:00
[    1.443517] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.449920] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    1.456765] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.464367] PCI: bus0: Fast back to back transfers disabled
[    1.470148] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.478129] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.487552] PCI: bus1: Fast back to back transfers enabled
[    1.494594] PCI: bus2: Fast back to back transfers enabled
[    1.500242] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.505190] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.511319] mv_xor f1060800.dma-engine: Marvell shared XOR driver
[    1.579336] mv_xor f1060800.dma-engine: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.587617] mv_xor f1060900.dma-engine: Marvell shared XOR driver
[    1.649322] mv_xor f1060900.dma-engine: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.790719] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.800999] console [ttyS0] disabled
[    1.805279] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 21, base_baud = 10416666) is a 16550A
[    1.814532] console [ttyS0] enabled
[    1.814532] console [ttyS0] enabled
[    1.821657] bootconsole [earlycon0] disabled
[    1.821657] bootconsole [earlycon0] disabled
[    1.831386] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 22, base_baud = 10416666) is a 16550A
[    1.842527] sata_mv f10a0000.sata-host: slots 32 ports 1
[    1.860169] scsi host0: sata_mv
[    1.863850] ata1: SATA max UDMA/133 irq 33
[    1.870153] m25p80 spi0.0: found mx25l1606e, expected sst25vf080b
[    1.876233] m25p80 spi0.0: mx25l1606e (2048 Kbytes)
[    1.882525] 4 cmdlinepart partitions found on MTD device spi0.0
[    1.888485] Creating 4 MTD partitions on "spi0.0":
[    1.893260] 0x000000000000-0x0000000c0000 : "uboot"
[    1.899623] 0x0000000c0000-0x000000100000 : "uboot_env"
[    1.906410] 0x000000100000-0x0000001c0000 : "uboot2"
[    1.913130] 0x0000001c0000-0x000000200000 : "kernel"
[    1.922432] libphy: Fixed MDIO Bus: probed
[    1.930301] libphy: orion_mdio_bus: probed
[    1.942224] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.049553] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:05:35:09:92:9a
[    2.059394] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.065910] ehci-pci: EHCI PCI platform driver
[    2.070918] ehci-orion: EHCI orion driver
[    2.075081] orion-ehci f1050000.usb-host: EHCI Host Controller
[    2.081057] orion-ehci f1050000.usb-host: new USB bus registered, assigned bus number 1
[    2.089486] orion-ehci f1050000.usb-host: irq 26, io mem 0xf1050000
[    2.118243] orion-ehci f1050000.usb-host: USB 2.0 started, EHCI 1.00
[    2.124865] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18
[    2.133146] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.140377] usb usb1: Product: EHCI Host Controller
[    2.145234] usb usb1: Manufacturer: Linux 4.18.5-mvebu-tld-1 ehci_hcd
[    2.151686] usb usb1: SerialNumber: f1050000.usb-host
[    2.157476] hub 1-0:1.0: USB hub found
[    2.161456] hub 1-0:1.0: 1 port detected
[    2.166148] orion-ehci f1051000.usb-host: EHCI Host Controller
[    2.172265] orion-ehci f1051000.usb-host: new USB bus registered, assigned bus number 2
[    2.180456] orion-ehci f1051000.usb-host: irq 27, io mem 0xf1051000
[    2.201947] ata1: SATA link down (SStatus 0 SControl F300)
[    2.208249] orion-ehci f1051000.usb-host: USB 2.0 started, EHCI 1.00
[    2.214828] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18
[    2.223111] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.230327] usb usb2: Product: EHCI Host Controller
[    2.235185] usb usb2: Manufacturer: Linux 4.18.5-mvebu-tld-1 ehci_hcd
[    2.241614] usb usb2: SerialNumber: f1051000.usb-host
[    2.247359] hub 2-0:1.0: USB hub found
[    2.251330] hub 2-0:1.0: 1 port detected
[    2.256678] usbcore: registered new interface driver usblp
[    2.262854] usbcore: registered new interface driver usb-storage
[    2.269517] mousedev: PS/2 mouse device common for all mice
[    2.276467] rtc-mv f10d8500.real-time-clock: rtc core: registered f10d8500.real-time-clock as rtc0
[    2.286342] i2c /dev entries driver
[    2.289840] random: fast init done
[    2.296342] orion_wdt: Initial timeout 25 sec
[    2.304952] marvell-cesa f1030000.crypto-engine: CESA device successfully registered
[    2.313398] hidraw: raw HID events driver (C) Jiri Kosina
[    2.319889] usbcore: registered new interface driver usbhid
[    2.325435] usbhid: USB HID core driver
[    2.330229] drop_monitor: Initializing network drop monitor service
[    2.336922] NET: Registered protocol family 10
[    2.352917] Segment Routing with IPv6
[    2.356643] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.364692] NET: Registered protocol family 17
[    2.369590] 8021q: 802.1Q VLAN Support v1.8
[    2.373800] Key type dns_resolver registered
[    2.378493] ThumbEE CPU extension supported.
[    2.382752] Registering SWP/SWPB emulation handler
[    2.388520] registered taskstats version 1
[    2.392603] Loading compiled-in X.509 certificates
[    2.397439] zswap: loaded using pool lzo/zbud
[    2.418649] Key type big_key registered
[    2.430294] Key type encrypted registered
[    2.437277] rtc-mv f10d8500.real-time-clock: setting system clock to 2018-10-02 17:49:56 UTC (1538502596)
[    2.450051] Freeing unused kernel memory: 1024K
[    2.456613] Checked W+X mappings: passed, no W+X pages found
Loading, please wait...
[    2.528319] usb 1-1: new high-speed USB device number 2 using orion-ehci
starting version 232
[    2.570966] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.583994] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.591249] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.618303] usb 2-1: new high-speed USB device number 2 using orion-ehci
[    2.740236] usb 1-1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=32.98
[    2.758328] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.765440] usb 1-1: Product: USB2.0 Hub
[    2.786691] hub 1-1:1.0: USB hub found
[    2.799345] hub 1-1:1.0: 4 ports detected
[    2.840206] usb 2-1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=32.98
[    2.858331] usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.865439] usb 2-1: Product: USB2.0 Hub
[    2.886174] hub 2-1:1.0: USB hub found
[    2.899723] hub 2-1:1.0: 4 ports detected
[    3.126798] i2c i2c-0: Added multiplexed i2c bus 1
[    3.131726] usb 1-1.4: new high-speed USB device number 3 using orion-ehci
[    3.176934] i2c i2c-0: Added multiplexed i2c bus 2
[    3.197130] i2c i2c-0: Added multiplexed i2c bus 3
[    3.285246] sdhci: Secure Digital Host Controller Interface driver
[    3.299479] usb 1-1.4: New USB device found, idVendor=0781, idProduct=5530, bcdDevice= 1.26
[    3.307825] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.326919] sdhci: Copyright(c) Pierre Ossman
[    3.331326] usb 1-1.4: Product: Cruzer
[    3.335070] usb 1-1.4: Manufacturer: SanDisk
[    3.346939] usb 1-1.4: SerialNumber: 20060775210A3B80C5B2
[    3.357301] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    3.364501] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.384270] mmc0 bounce up to 128 segments into one, max segment size 65536 bytes
[    3.391861] scsi host1: usb-storage 1-1.4:1.0
[    3.445672] mmc0: SDHCI controller on f1090000.sdio-host [f1090000.sdio-host] using DMA
[    3.468289] sdhci-dove f1092000.sdio-host: Got CD GPIO
[    3.473569] mmc1 bounce up to 128 segments into one, max segment size 65536 bytes
[    3.548569] mmc1: SDHCI controller on f1092000.sdio-host [f1092000.sdio-host] using DMA
[    4.409958] scsi 1:0:0:0: Direct-Access     SanDisk  Cruzer           1.26 PQ: 0 ANSI: 5
[    4.427283] sd 1:0:0:0: [sda] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[    4.444162] sd 1:0:0:0: [sda] Write Protect is off
[    4.453286] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.482272]  sda: sda1
[    4.487898] sd 1:0:0:0: [sda] Attached SCSI removable disk
[    4.603575] usbcore: registered new interface driver uas
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.29.2
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
rootfs: clean, 26714/488640 files, 378698/1953536 blocks
done.
[   15.056064] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   15.084859] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   17.901913] sd 1:0:0:0: Attached scsi generic sg0 type 0
done.
[ ok ] Activating swap:.
[   20.300670] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[   21.688304] random: crng init done
[   21.691704] random: 7 urandom warning(s) missed due to ratelimiting
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[   23.209216] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   25.550301] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   25.560143] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:05:35:09:92:9a
Sending on   LPF/eth0/00:05:35:09:92:9a
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPREQUEST of 192.168.1.135 on eth0 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.135 from 192.168.1.1
DHCPACK of 192.168.1.135 from 192.168.1.1
bound to 192.168.1.135 -- renewal in 17966 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
[ ok ] Setting up ALSA...done (none loaded).
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2564 (syslogd)
. ok 
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2565 (klogd)
. ok 
[ ok ] Starting NTP server: ntpd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Tue Oct  2 10:42:42 PDT 2018 from 192.168.1.2 on pts/0
Linux debian 4.18.5-mvebu-tld-1 #1 SMP PREEMPT Thu Aug 30 22:19:21 PDT 2018 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.
debian
192.168.1.135
Chip PC LXD8941
Linux version 4.18.5-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1 SMP PREEMPT Thu Aug 30 22:19:21 PDT 2018
Debian 9.5
Tue Oct 2 10:50:51 PDT 2018 up
root@debian:~#


root@debian:~# lsmod
Module                  Size  Used by
armada                 45056  0
drm_kms_helper        114688  1 armada
drm                   294912  2 armada,drm_kms_helper
drm_panel_orientation_quirks    16384  1 drm
fb_sys_fops            16384  1 drm_kms_helper
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
cfbfillrect            16384  1 drm_kms_helper
cfbimgblt              16384  1 drm_kms_helper
cfbcopyarea            16384  1 drm_kms_helper
sg                     32768  0
uio_pdrv_genirq        16384  0
uio                    20480  1 uio_pdrv_genirq
uas                    20480  0
sdhci_dove             16384  0
sdhci_pltfm            16384  1 sdhci_dove
sdhci                  49152  2 sdhci_dove,sdhci_pltfm
mmc_core              122880  2 sdhci_dove,sdhci
i2c_mux_pinctrl        16384  0
root@debian:~#

root@debian:~# modprobe mmc_block
root@debian:~# 
root@debian:~# cat /proc/partitions 
major minor  #blocks  name

  31        0        768 mtdblock0
  31        1        256 mtdblock1
  31        2        768 mtdblock2
  31        3        256 mtdblock3
   8        0    7816704 sda
   8        1    7814144 sda1
root@debian:~# 

Re: Chip PC LXD8941
October 02, 2018 12:05PM
Koen,

> This latest .dtb file doesn't fix mmc0 but makes
> mmc1 disappear as well :-)

:) that proved the GPIO 12 is for mmc 1, for sure.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Chip PC LXD8941
October 02, 2018 12:12PM
Now we need to find where this is done in GPL. It is some where between 40 and 45.

+       { 40, MPP_SDIO0 },      /* will configure MPPs 40-45 */

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Chip PC LXD8941
October 02, 2018 02:25PM
Hi bodhi,

I've had another look through the Dell Wyse Ubuntu files and found some more stuff related to SD card in the file 'dove-rd-avng-setup.c'.

There is a section called 'Board Init' which includes some SD card setup calls:

/*****************************************************************************
 * Board Init
 ****************************************************************************/
static void __init dove_rd_avng_init(void)
{
	u32 dev, rev;

	/*
	 * Basic Dove setup. Needs to be called early.
	 */
	dove_init();
	dove_pcie_id(&dev, &rev);
	if (rev >= DOVE_REV_X0)
		dove_mpp_conf(dove_rd_avng_x0_mpp_modes);
	else
		dove_mpp_conf(dove_rd_avng_y0_mpp_modes);
	dove_rd_avng_gpio_init(rev);

	pm_power_off = dove_rd_avng_power_off;

	/* sdio card interrupt workaround using GPIOs */
	dove_sd_card_int_wa_setup(0);
	dove_sd_card_int_wa_setup(1);

Trawling through some of the other files I have found the 'dove_sd_card_int_wa_setup' function in 'common.c'

/*****************************************************************************
 * SDIO
 ****************************************************************************/
#define DOVE_SD0_START_GPIO	40
#define DOVE_SD1_START_GPIO	46


struct sdhci_dove_int_wa sdio0_data = {
	.gpio = DOVE_SD0_START_GPIO + 3,
	.func_select_bit = 0
};

static u64 sdio_dmamask = DMA_BIT_MASK(32);
/*****************************************************************************
 * SDIO0
 ****************************************************************************/

static struct resource dove_sdio0_resources[] = {
	{
		.start	= DOVE_SDIO0_PHYS_BASE,
		.end	= DOVE_SDIO0_PHYS_BASE + SZ_4K - 1,
		.flags	= IORESOURCE_MEM,
	}, {
		.start	= IRQ_DOVE_SDIO0,
		.end	= IRQ_DOVE_SDIO0,
		.flags	= IORESOURCE_IRQ,
	},
};

static struct platform_device dove_sdio0 = {
	.name		= "sdhci-mv",
	.id		= 0,
	.dev		= {
		.dma_mask		= &sdio_dmamask,
		.coherent_dma_mask	= DMA_BIT_MASK(32),
	},
	.resource	= dove_sdio0_resources,
	.num_resources	= ARRAY_SIZE(dove_sdio0_resources),
};

void __init dove_sdio0_init(void)
{
	platform_device_register(&dove_sdio0);
}

/*****************************************************************************
 * SDIO1
 ****************************************************************************/
struct sdhci_dove_int_wa sdio1_data = {
	.gpio = DOVE_SD1_START_GPIO + 3,
	.func_select_bit = 1
};

static struct resource dove_sdio1_resources[] = {
	{
		.start	= DOVE_SDIO1_PHYS_BASE,
		.end	= DOVE_SDIO1_PHYS_BASE + SZ_4K - 1,
		.flags	= IORESOURCE_MEM,
	}, {
		.start	= IRQ_DOVE_SDIO1,
		.end	= IRQ_DOVE_SDIO1,
		.flags	= IORESOURCE_IRQ,
	},
};

static struct platform_device dove_sdio1 = {
	.name		= "sdhci-mv",
	.id		= 1,
	.dev		= {
		.dma_mask		= &sdio_dmamask,
		.coherent_dma_mask	= DMA_BIT_MASK(32),
	},
	.resource	= dove_sdio1_resources,
	.num_resources	= ARRAY_SIZE(dove_sdio1_resources),
};

void __init dove_sdio1_init(void)
{
	platform_device_register(&dove_sdio1);
}

/* sdio card interrupt workaround, when no command is running, switch the
 * DATA[1] pin to be gpio-in with level interrupt.
 */

void __init dove_sd_card_int_wa_setup(int port)
{
	int	gpio = 0, i, irq = 0;
	char	*name;

	switch(port) {
	case 0:
		gpio = DOVE_SD0_START_GPIO;
		name = "sd0";
		dove_sdio0.dev.platform_data = &sdio0_data;
		irq = sdio0_data.irq = gpio_to_irq(sdio0_data.gpio);
		break;
	case 1:
		gpio = DOVE_SD1_START_GPIO;
		name = "sd1";
		dove_sdio1.dev.platform_data = &sdio1_data;
		irq = sdio1_data.irq = gpio_to_irq(sdio1_data.gpio);
		break;
	default:
		printk(KERN_ERR "dove_sd_card_int_wa_setup: bad port (%d)\n", 
		       port);
		return;
	}
	
	for (i = gpio; i < (gpio + 6); i++) {
		orion_gpio_set_valid(i, 1);
		
		if (gpio_request(i, name) != 0)
			printk(KERN_ERR "dove: failed to config gpio (%d) for %s\n",
			       i, name);

		gpio_direction_input(i);
	}
	set_irq_type(irq, IRQ_TYPE_LEVEL_LOW);
}

I'm not sure if this is what is needed to activate the sd card slot but I thought I would share it anyway.

Koen



Edited 1 time(s). Last edit at 10/02/2018 02:29PM by Koen.
Re: Chip PC LXD8941
October 02, 2018 11:02PM
Koen,

Yeah. Looks like they had some problem, and had to work around it. It is consisten with the comment,

Quote

+ { 40, MPP_SDIO0 }, /* will configure MPPs 40-45 */

I was too distracted about on SDIO1 and GPO 12! We'll try 40.

And BTW, what you did above was good (trying to use import/export GPIO to manipulate the bits in class devices in Debian).

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 10/02/2018 11:04PM by bodhi.
Re: Chip PC LXD8941
October 02, 2018 11:38PM
Ok let's try this version.

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - dove-chip-lxd8941.dtb (13.6 KB)
open | download - dove-chip-lxd8941.dts (1.7 KB)
Re: Chip PC LXD8941
October 14, 2018 06:41AM
I've tried this latest dtb but can't get the SD card to show up so I've reverted back to the .dtb from 26 September. I've cloned the USB stick to a SD card and plugged it into the device. I then change uboot environment from serial using the following commands:

setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial'
setenv bootcmd_sd 'mmcinfo 1; ext2load mmc 1:1 0x3000000 /boot/uImage; ext2load mmc 1:1 0x4000000 /boot/uInitrd'
setenv bootcmd_exec 'run set_bootargs; run bootcmd_sd; bootm 0x3000000 0x4000000'
run bootcmd_exec

This boots into Debian from the SD card however it is not very responsive probably due to the low quality (class 4) card. The stock system doesn't offer a terminal or ssh access so I'm thinking of wiping the internal memory and installing Debian there.

The device has 2GB of internal memory divided into 3 partitions:

root@debian:~# cat /proc/partitions 
major minor  #blocks  name

  31        0        768 mtdblock0
  31        1        256 mtdblock1
  31        2        768 mtdblock2
  31        3        256 mtdblock3
   8        0    7816704 sda
   8        1    7814144 sda1
 179        0    1912832 mmcblk1
 179        1       8001 mmcblk1p1
 179        2    1028160 mmcblk1p2
 179        3     876639 mmcblk1p3

mmcblk1p1 seems to be a FAT file system that doesn't mount in Debian. Probably best to leave it in place.

mmcblk1p2 is an ext3 filesystem with the following contents:

root@debian:/mnt/temp# ll
total 320036
drwxr-xr-x 3 root root      4096 Sep 22 00:49 .
drwxr-xr-x 3 root root      4096 Sep 22 00:48 ..
drwx------ 2 root root     16384 Feb  4  1930 lost+found
-rw-r--r-- 1 root root    787508 Jul 21  2013 tffsb
-rw-r--r-- 1 root root    524288 Oct 15  2000 tffsd
-rw-r--r-- 1 root root        80 Dec 31  2012 tffsf
-rw-r--r-- 1 root root  14119164 Jan 21  2014 tffsg
-rw-r--r-- 1 root root 155951104 Feb  2  2014 tffsh
-rw-r--r-- 1 root root 155951104 Feb  2  2014 tffsi
root@debian:/mnt/temp#

tffsb is an image that is loaded by uboot during boot to display on the screen, tffsd and tffsf contain data, tffsg is the uImage and tffsh & tffsi are identical squashfs filesystems.

mmcblk1p3 is an ext3 filesystem with the following contents:

root@debian:/mnt/temp# ll
total 56
drwxr-xr-x 11 root root  4096 May 18  2016 .
drwxr-xr-x  3 root root  4096 Sep 22 00:48 ..
-r--r--r--  3 root root     0 May 18  2016 .wh..wh.aufs
drwx------  2 root root  4096 May 18  2016 .wh..wh.orph
drwx------  2 root root  4096 May 18  2016 .wh..wh.plnk
drwxr-xr-x  2 root root  4096 May 18  2016 doc
drwxr-xr-x  9 root root  4096 Dec 31  2012 etc
drwxrwxrwx  3 root root  4096 Jan 14  2014 lib
drwx------  2 root root 16384 May 18  2016 lost+found
drwxr-xr-x 12 root root  4096 Dec 31  2012 root
drwxr-xr-x  4 root root  4096 May 18  2016 usr
drwxr-xr-x  5 root root  4096 Jan  2  2013 var
root@debian:/mnt/temp# du -lsh .
15M     .
root@debian:/mnt/temp#

So I'm thinking of removing the uImage and squashfs files from partition 2 but leave the three small files in place. I would then resize partition 2 to its minimal required size, wipe the contents of partition 3 and resizing it to the maximum size and install Debian in there.

Koen
Re: Chip PC LXD8941
October 14, 2018 09:40AM
OK the steps above have worked. I've created backups of the original partitions to an external drive and removed most of the files. Then I've resized the filesystem and partition mmcblk1p2. I've removed the old mmcblk1p3 partition and re-created it with the rootfs label. Then I used the following commands in serial to boot from the internal memory:

setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial'
setenv bootcmd_int 'mmcinfo 0; ext2load mmc 0:3 0x3000000 /boot/uImage; ext2load mmc 0:3 0x4000000 /boot/uInitrd'
setenv bootcmd_exec 'run set_bootargs; run bootcmd_int; bootm 0x3000000 0x4000000'
run bootcmd_exec

new partition layout:

root@debian:/# cat /proc/partitions 
major minor  #blocks  name

  31        0        768 mtdblock0
  31        1        256 mtdblock1
  31        2        768 mtdblock2
  31        3        256 mtdblock3
 179        0    1912832 mmcblk1
 179        1       8001 mmcblk1p1
 179        2      21264 mmcblk1p2
 179        3    1883136 mmcblk1p3
 179       24        128 mmcblk1rpmb
 179       16       1024 mmcblk1boot1
 179        8       1024 mmcblk1boot0
root@debian:/#

More than 1GB of free space on a clean 4.12 rootfs install:

root@debian:/# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            498M     0  498M   0% /dev
tmpfs           101M  1.2M  100M   2% /run
/dev/mmcblk1p3  1.8G  595M  1.1G  36% /
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           201M     0  201M   0% /run/shm
tmpfs           502M     0  502M   0% /tmp
root@debian:/#

Koen
Re: Chip PC LXD8941
October 14, 2018 03:16PM
Hi Koen,

Good works! I have been busy so can only resond to posts. No time to research much.

Usually we do "mmc reset" here.

Quote

setenv bootcmd_int 'mmcinfo 0; ext2load mmc 0:3 0x3000000 /boot/uImage; ext2load mmc 0:3 0x4000000 /boot/uInitrd'

Another observation. Why didn't you just wipe out the internal SD and make 1 partition? if you are not going to use stock as rescue then why keeping multiple partitions?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Chip PC LXD8941
October 14, 2018 04:08PM
Hi bodhi,

stock uboot loads an image from the 2nd partition to display on screen during boot. I can't find it anywhere in the uboot environment variables so I assume that this behavior is hard coded. This happens before you get to the uboot prompt so I am afraid that removing the 2nd partition may result in a brick. The 1st partition can't be mounted in Debian so I'm not sure what is stored in there. In the end the size of the 1st and 2nd partitions is now small enough that I don't care too much about the wasted space.

Koen

         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 

 ** LOADER **


U-Boot 2009.08-svn7881 (Jan 23 2013 - 13:55:26) version: dove-5.3.4

BootROM:
       Version on chip: 2.33
       Status: OK
       Retries #: 0
Board: RD-88AP510-Avengers
SoC:   MV88F510 Rev 7
CPU:   ??? (0x0c08) (Rev 1)
       CPU @ 933Mhz, L2 @ 466Mhz
       DDR3 @ 466Mhz, TClock @ 166Mhz
PEX 0: interface detected no Link.
PEX 1: interface detected no Link.
Write Leveling Results:
       CS0, Lane: 0, value: 2
       CS0, Lane: 1, value: 5
       CS0, Lane: 2, value: 1
       CS0, Lane: 3, value: 1
DRAM:   1 GB
       CS 0: base 0x00000000 size 512 MB
       CS 1: base 0x20000000 size 512 MB
       Addresses 38M - 0M are saved for the U-Boot usage.
SF: Detected MX25L1605D with page size 256, total 2097152 bytes
***   env_relocate_spec ****
*** Warning    environment  crc c6db905b  c6db905b fffc.****
Warning: clock source is too slow.Try smaller resolution.

Streaming disabled 
L2 Cache Prefetch disabled
L2 Cache ECC disabled
USB 0: Host Mode
USB 1: Host Mode
Setting VPU power ON.
Setting GPU power ON.
PEX 0: interface detected no Link.
PEX 1: interface detected no Link.
MMC:   MV_SDHCI: 0, MV_SDHCI: 1
NORMAL MODE detected
Boot config is valid
LCD config is invalid
Using defaults
Try to load image :  0x02f00000, /tffsb 
Loading file "/tffsb" from mmc device 0:2 (mmcda2)
787508 bytes read
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 
MIC>>
Re: Chip PC LXD8941
October 14, 2018 04:38PM
Koen,

Quote

stock uboot loads an image from the 2nd partition to display on screen during boot

I see. Good sense :)

I think we need to find u-boot GPL to make this more robust.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Chip PC LXD8941
October 19, 2018 04:02PM
I've tried to setup a boot sequence where the device first tries to boot from SD, then USB and eventually the internal memory. I've used the following settings:

setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial'
setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x3000000 /boot/uImage; ext2load usb 0:1 0x4000000 /boot/uInitrd'
setenv bootcmd_sd 'mmc reset; mmcinfo 1; ext2load mmc 1:1 0x3000000 /boot/uImage; ext2load mmc 1:1 0x4000000 /boot/uInitrd'
setenv bootcmd_int 'mmc reset; mmcinfo 0; ext2load mmc 0:3 0x3000000 /boot/uImage; ext2load mmc 0:3 0x4000000 /boot/uInitrd'
setenv boot_usb 'run set_bootargs; run bootcmd_usb; bootm 0x3000000 0x4000000'
setenv boot_sd 'run set_bootargs; run bootcmd_sd; bootm 0x3000000 0x4000000'
setenv boot_int 'run set_bootargs; run bootcmd_int; bootm 0x3000000 0x4000000'
setenv bootcmd 'run boot_sd; run boot_usb; run boot_int' 

saveenv
boot


Unfortunately this doesn't work. Once the first attempt at booting fails the device continues into some sort of recovery mode and tries to boot from a server. I'm not sure if this is behaviour is hard coded since it is not defined in the normal uboot environment settings?

MIC>> boot
Card did not respond to voltage select!
Device: MV_SDHCI
Manufacturer ID: 0
OEM: 0
Name: Tran Speed: 0
Rd Block Len: 0
MMC version 0.0
High Capacity: No
Capacity: 0
Bus Width: 1-bit
** Bad partition 1 **
** Bad partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Recovering...
Loading file "/tffsb" from mmc device 0:2 (mmcda2)
787508 bytes read
BOOTP broadcast 1
BOOTP broadcast 2
*** Unhandled DHCP Option in OFFER/ACK: 28
*** Unhandled DHCP Option in OFFER/ACK: 28
DHCP client bound to address 192.168.1.135
Using egiga0 device
arp eth addr 18:62:2c:2f:bc:34
host 129.100.2.50 is alive
BootMe:   ClientIP=192.168.1.135, ServerIP=129.100.2.50, ServerMAC=18:62:2c:2f:bc:34 platform=8xxx, name=L
BootMe:   timeout 3000 msecs (1 of 3)
BootMe:   ClientIP=192.168.1.135, ServerIP=129.100.2.50, ServerMAC=18:62:2c:2f:bc:34 platform=8xxx, name=L
BootMe:   timeout 3000 msecs (2 of 3)
BootMe:   ClientIP=192.168.1.135, ServerIP=129.100.2.50, ServerMAC=18:62:2c:2f:bc:34 platform=8xxx, name=L
BootMe:   timeout 3000 msecs (3 of 3)
ServerMe: broadcasting IP address=192.168.1.135, Platform=8xxx, Name=L
ServerMe: timeout, 0 servers found.
ServerMe: broadcasting IP address=192.168.1.135, Platform=8xxx, Name=L
ServerMe: timeout, 0 servers found.
ServerMe: broadcasting IP address=192.168.1.135, Platform=8xxx, Name=L
Abort

One thing I have noticed is that there is a 2nd uboot stored in mtd2 which differs from the one in mtd0. Could it be that after running uboot in mtd0 fails it tries again but runs uboot in mtd2?

It would be great if anyone has an idea how to avoid booting recovery mode and how to run a multi stage bootcmd.

Thanks,

Koen

MIC>> printenv
bootdelay=0
baudrate=115200
loads_echo=0
in_mfg=no
ub_mfgphase=0000000
mb_sn=00000000
mtdids=nand0=dove-mtd
arcNumber=1789
CASset=min
MALLOC_len=5
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::dove:eth0:none
image_name=uImage
disaMvPnp=no
usb0Mode=host
usb1Mode=host
yuk_ethaddr=00:00:00:EE:51:81
autoload=no
lcd1_enable=1
ethact=egiga0
rootpath=/work/armel-dev
lcd0_enable=1
load_addr=0x2000000
bootcmd_prev=ide reset; ext2load ide 0:2 0x3000000 tffsg; setenv bootargs $(console) ip=dhcp usb0Mode=$(usb0Mode) usb1Mode=$(usb1Mode) video=dovefb:lcd0:$(lcd0_params),lcd1:$(lcd1_params) clcd.lcd0_enable=1 clcd.lcd1_enable=1; bootm 0x3000000
gatewayip=192.168.9.1
netmask=255.255.255.0
ipaddr=192.168.9.96
serverip=192.168.9.90
bootargs=console=tty0,115200 mtdparts=spi0.0:768k(u-boot),256k(uboot_env),768k(u-boot2),-(unused) rootdelay=6 cpufreq_disable pm_disable usb0Mode=host usb1Mode=host video=dovefb:lcd0:1024x768-24@60,lcd1:1024x768-24@60 clcd.lcd0_enable=1 clcd.lcd1_enable=1
bootcmd2=usb reset; ext2load usb 0:2 0x3000000 uImage; setenv bootargs $(console) mtdparts=spi0.0:768k(u-boot),256k(uboot_env),768k(u-boot2),-(unused) rootdelay=6 cpufreq_disable pm_disable usb0Mode=$(usb0Mode) usb1Mode=$(usb1Mode) video=dovefb:lcd0:$(lcd0_params),lcd1:$(lcd1_params) clcd.lcd0_enable=1 clcd.lcd1_enable=1; bootm 0x3000000
lcd0_params=1024x768-24@60-edid
lcd1_params=1024x768-24@60-edid
bootmmc=mmcinfo 0; ext2load mmc 0:2 0x3000000 tffsg; setenv bootargs $(console) mtdparts=spi0.0:768k(u-boot),256k(uboot_env),768k(u-boot2),-(unused) cpufreq_disable pm_disable usb0Mode=$(usb0Mode) usb1Mode=$(usb1Mode) video=dovefb:lcd0:$(lcd0_params),lcd1:$(lcd1_params) clcd.lcd0_enable=1 clcd.lcd1_enable=1; bootm 0x3000000
console=console=ttyS0,115200
mtdparts=mtdparts=spi0.0:768k(uboot),256k(uboot_env),768k(uboot2),-(kernel)
rootinit=root=initramfs init=/linuxrc
lcdargs=vmalloc=384MB video=dovefb:lcd0:1024x768-24@60,lcd1:1024x768-24@60 clcd.lcd0_enable=1 clcd.lcd1_enable=1
fileaddr=3000000
ethaddr=00:05:35:09:92:9A
bootcmd_exec=run set_bootargs; run bootcmd_int; bootm 0x3000000 0x4000000
usbargs=setenv bootargs ${mtdparts} console=ttyS0,115200 root=/dev/sdb1 rw rootdelay=10 video=dovefb:lcd0:1024x768-16@60,lcd1:1024x768-16@60 clcd.lcd0_enable=1 clcd.lcd1_enable=1
usbboot=usb start; sleep 3; ext2load usb 0:1 0x2000000 /boot/uImage; run usbargs;bootm 0x2000000
sataargs=root=/dev/sda1 rw init=/init video=dovefb:lcd0:1024x768-24@60,lcd1:1024x768-16@60 clcd.lcd0_enable=1 clcd.lcd1_enable=1
sataboot=ide reset;ext2load ide 0:1 0x2000000 /boot/uImage; setenv bootargs ${mtdparts}  ${sataargs};  bootm 0x2000000
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial
bootcmd_usb=usb start; ext2load usb 0:1 0x3000000 /boot/uImage; ext2load usb 0:1 0x4000000 /boot/uInitrd
bootcmd_sd=mmc reset; mmcinfo 1; ext2load mmc 1:1 0x3000000 /boot/uImage; ext2load mmc 1:1 0x4000000 /boot/uInitrd
bootcmd_int=mmc reset; mmcinfo 0; ext2load mmc 0:3 0x3000000 /boot/uImage; ext2load mmc 0:3 0x4000000 /boot/uInitrd
boot_usb=run set_bootargs; run bootcmd_usb; bootm 0x3000000 0x4000000
boot_sd=run set_bootargs; run bootcmd_sd; bootm 0x3000000 0x4000000
boot_int=run set_bootargs; run bootcmd_int; bootm 0x3000000 0x4000000
bootcmd=run boot_int
stdin=serial
stdout=lcd
stderr=lcd
passDramInitTag=yes
mainlineLinux=yes
enaMonExt=no
pexMode=RC
disL2Cache=no
disL2Ecc=no
sata_dma_mode=yes
enaL2ExtraFeatures=yes
enaCpuStream=no
enaVpuPower=yes
enaGpuPower=yes
filesize=C0434

Environment size: 3529/65532 bytes
MIC>> 
Re: Chip PC LXD8941
October 19, 2018 08:21PM
Koen,

The envs logic needs to be a little bit more complicate than what you currently have. I don't think I covered this part for you, since we are still getting these boxes to completelly brought up to the way we want (i.e. display, sound are remaining works).

But, since you are apprently want to use them as headless production servers now :), I will show you how to change the envs to make it resilient, and fall through the execution paths correctly from the 1st to the last device.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Chip PC LXD8941
October 19, 2018 09:14PM
setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial'
setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x3000000 /boot/uImage; ext2load usb 0:1 0x4000000 /boot/uInitrd'
setenv bootcmd_sd 'mmc reset; mmcinfo 1; ext2load mmc 1:1 0x3000000 /boot/uImage; ext2load mmc 1:1 0x4000000 /boot/uInitrd'
setenv bootcmd_int 'mmc reset; mmcinfo 0; ext2load mmc 0:3 0x3000000 /boot/uImage; ext2load mmc 0:3 0x4000000 /boot/uInitrd'
setenv bootcmd_bootm 'bootm 0x3000000 0x4000000'
setenv bootmcd 'run set_bootargs; if run boot_sd; then; run bootcmd_bootm; else if run boot_usb; then; run bootcmd_bootm; else if run boot_int;  then; run bootcmd_bootm; fi; fi; fi'

Now, if you also want to fall back to recovery, too, then more needs to be added to bootcmd.

-bodhi
===========================
Forum Wiki
bodhi's corner
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: