Welcome! Log In Create A New Profile

Advanced

Chip PC LXD8941

Posted by Koen 
Re: Chip PC LXD8941
September 25, 2018 05:55PM
I've looked through the Dell Wyse Ubuntu files and came across this dove-rd-avng-setup.c file. It may well be related to this LXD8941 thin client since it shows 'Machine: Marvell MV88F6781-RD Avengers MID Board' in the stock dmesg log.

A quick google shows a slightly different file with similar name here: https://github.com/rabeeh/linux-2.6.32.9/blob/master/arch/arm/mach-dove/dove-rd-avng-v3-setup.c

Maybe this can help with defining the missing bits in the .dtb file?

Koen
Attachments:
open | download - dove-rd-avng-setup.c (30.3 KB)
Re: Chip PC LXD8941
September 25, 2018 06:51PM
Koen,

> A quick google shows a slightly different file
> with similar name here:
> https://github.com/rabeeh/linux-2.6.32.9/blob/master/arch/arm/mach-dove/dove-rd-avng-v3-setup.c
>

That the right one. Machine: Marvell MV88F6781-RD Avengers MID Board.

All 3 boxes: T5335z, this one and Wyse T50 use the same board. Where they are different is in such setup routine. Let me take a look.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Chip PC LXD8941
September 26, 2018 04:02PM
When I put a microSD card in the slot and run mmcinfo it shows up in uboot. (mmcinfo 0 = 2 GB internal memory, mmcinfo 1 = 16 GB microSD card)

MIC>> mmcinfo 0
Device: MV_SDHCI
Manufacturer ID: 45
OEM: 100
Name: SEM02 
Tran Speed: 25000000
Rd Block Len: 512
MMC version 4.0
High Capacity: No
Capacity: 1958739968
Bus Width: 4-bit
MIC>>

MIC>> mmcinfo 1
Device: MV_SDHCI
Manufacturer ID: 3
OEM: 5344
Name: SU16G 
Tran Speed: 25000000
Rd Block Len: 512
SD version 2.0
High Capacity: Yes
Capacity: 15931539456
Bus Width: 4-bit
MIC>>

If I continue to boot to Debian afterwards the microSD card shows up as mmcblk0 and can be mounted without problems.

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   15558144 mmcblk0
 179        1     248832 mmcblk0p1
 179        2   15306752 mmcblk0p2
 179        8    1912832 mmcblk1
 179        9       8001 mmcblk1p1
 179       10    1028160 mmcblk1p2
 179       11     876639 mmcblk1p3
 179       32        128 mmcblk1rpmb
 179       24       1024 mmcblk1boot1
 179       16       1024 mmcblk1boot0
root@debian:~#

However if I boot the device without microSD card in the slot and then plug the card in when Debian is running I'm not getting anything in dmesg and it doesn't show up in the 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
 179       24        128 mmcblk1rpmb
 179       16       1024 mmcblk1boot1
 179        8       1024 mmcblk1boot0
root@debian:~#

So should be possible to run Debian of a microSD card as long as it is scanned / activated using the mmcinfo command in uboot first.

Koen
Re: Chip PC LXD8941
September 26, 2018 05:32PM
Hi Koen,

Yeah. MMC is probably not activated by this DTS yet.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Chip PC LXD8941
September 26, 2018 11:08PM
Koen,

Try this DTB.

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - dove-chip-lxd8941.dtb (13.5 KB)
open | download - dove-chip-lxd8941.dts (1.5 KB)
Re: Chip PC LXD8941
September 27, 2018 06:00AM
bodhi Wrote:
-------------------------------------------------------
> Koen,
>
> Try this DTB.
>
Bodhi,

A bit OT here. If you don't mind, I sure would like to know how/where did you scrap the DTB files from.
Re: Chip PC LXD8941
September 27, 2018 02:07PM
Hi habibie,

I'm not sure if this is the same for any board but a default / generic .dtb file is available for the dove board in the mainline kernel files. This file is used as a starting point and is modified based on the different chips on the board. I just look at the .dtb files from different arm devices with similar chips / hardware and copy paste sections and see if things start working, basically trial and error. bodhi is the expert and reads through the GPL sources and is able to define new .dtb files based on the information in there.

Koen
Re: Chip PC LXD8941
September 27, 2018 02:20PM
Hi bodhi,

thanks for the new .dtb file. Power off works which is great. The spi stuff works but shows it is expecting a different chip. I uses the following in my .dtb file copied from another device which uses the same chip and that doesn't show this message in dmesg:

				spi-flash@0 {
                                        compatible = "mxicy,mx25l1606e";
					spi-max-frequency = <0x1312d00>;
					reg = <0x0>;
                                };

Koen

root@debian:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.4-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Jul 29 21:56:37 PDT 2017
[    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] On node 0 totalpages: 262144
[    0.000000] free_area_init_node: node 0, pgdat c0d9d700, node_mem_map ef7f8000
[    0.000000]   Normal zone: 1536 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 196608 pages, LIFO batch:31
[    0.000000]   HighMem zone: 65536 pages, LIFO batch:15
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] percpu: Embedded 17 pages/cpu @ef7d9000 s40460 r8192 d20980 u69632
[    0.000000] pcpu-alloc: s40460 r8192 d20980 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, 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] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    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: 1019144K/1048576K available (8192K kernel code, 712K rwdata, 2080K rodata, 1024K init, 331K bss, 29432K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
                   lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
                   pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
                   modules : 0xbf000000 - 0xbfe00000   (  14 MB)
                     .text : 0xc0008000 - 0xc0900000   (9184 kB)
                     .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
                     .data : 0xc0d00000 - 0xc0db2308   ( 713 kB)
                      .bss : 0xc0db9a84 - 0xc0e0ca58   ( 332 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] Division by zero in kernel.
[    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.12.4-mvebu-tld-1 #1
[    0.000000] Hardware name: Marvell Dove
[    0.000000] [<c0116150>] (unwind_backtrace) from [<c0110bcc>] (show_stack+0x10/0x14)
[    0.000000] [<c0110bcc>] (show_stack) from [<c04df674>] (dump_stack+0x70/0x8c)
[    0.000000] [<c04df674>] (dump_stack) from [<c04de174>] (Ldiv0+0x8/0x10)
[    0.000000] [<c04de174>] (Ldiv0) from [<c0549128>] (dove_recalc_rate+0x44/0x8c)
[    0.000000] [<c0549128>] (dove_recalc_rate) from [<c0545720>] (clk_register+0x38c/0x590)
[    0.000000] [<c0545720>] (clk_register) from [<c0c33644>] (dove_divider_clk_init+0xe8/0x12c)
[    0.000000] [<c0c33644>] (dove_divider_clk_init) from [<c0c334d0>] (dove_clk_init+0x4c/0x74)
[    0.000000] [<c0c334d0>] (dove_clk_init) from [<c0c323c4>] (of_clk_init+0x174/0x214)
[    0.000000] [<c0c323c4>] (of_clk_init) from [<c0c03930>] (time_init+0x20/0x2c)
[    0.000000] [<c0c03930>] (time_init) from [<c0c00af8>] (start_kernel+0x210/0x394)
[    0.000000] [<c0c00af8>] (start_kernel) from [<0000807c>] (0x807c)
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000008] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.007909] Switching to timer-based delay loop, resolution 6ns
[    0.014456] Console: colour dummy device 80x30
[    0.019033] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.029625] pid_max: default: 32768 minimum: 301
[    0.034476] Security Framework initialized
[    0.038761] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.045439] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.053371] CPU: Testing write buffer coherency: ok
[    0.058676] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.098049] Setting up static identity map for 0x100000 - 0x100060
[    0.157958] smp: Bringing up secondary CPUs ...
[    0.162561] smp: Brought up 1 node, 1 CPU
[    0.166637] SMP: Total of 1 processors activated (333.33 BogoMIPS).
[    0.173012] CPU: All CPU(s) started in SVC mode.
[    0.178597] devtmpfs: initialized
[    0.188178] VFP support v0.3: implementor 41 architecture 2 part 20 variant 9 rev 5
[    0.196446] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.206524] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.213118] prandom: seed boundary self test passed
[    0.221373] prandom: 100 self tests passed
[    0.225536] pinctrl core: initialized pinctrl subsystem
[    0.232780] NET: Registered protocol family 16
[    0.238777] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.258058] cpuidle: using governor ladder
[    0.262284] cpuidle: using governor menu
[    0.266458] Dove 88AP510 SoC
[    0.269748] Tauros2: Disabling L2 prefetch.
[    0.274004] Tauros2: Disabling burst8 line fill.
[    0.278772] Tauros2: Enabling L2 cache.
[    0.282680] Tauros2: L2 cache support initialised in ARMv7 mode.
[    0.289202] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.398530] vgaarb: loaded
[    0.401627] SCSI subsystem initialized
[    0.408191] libata version 3.00 loaded.
[    0.408521] usbcore: registered new interface driver usbfs
[    0.414124] usbcore: registered new interface driver hub
[    0.420430] usbcore: registered new device driver usb
[    0.426133] media: Linux media interface: v0.10
[    0.431188] Linux video capture interface: v2.00
[    0.438395] clocksource: Switched to clocksource orion_clocksource
[    0.523999] VFS: Disk quotas dquot_6.6.0
[    0.528063] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.554744] NET: Registered protocol family 2
[    0.560511] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.567669] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.574916] TCP: Hash tables configured (established 8192 bind 8192)
[    0.581644] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.587641] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.594270] NET: Registered protocol family 1
[    0.619232] RPC: Registered named UNIX socket transport module.
[    0.625211] RPC: Registered udp transport module.
[    0.630043] RPC: Registered tcp transport module.
[    0.634810] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.641336] PCI: CLS 0 bytes, default 64
[    0.641531] Unpacking initramfs...
[    1.101701] Freeing initrd memory: 6908K
[    1.105893] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.114401] audit: initializing netlink subsys (disabled)
[    1.121178] Initialise system trusted keyrings
[    1.125735] Key type blacklist registered
[    1.129920] audit: type=2000 audit(1.112:1): state=initialized audit_enabled=0 res=1
[    1.138106] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    1.144778] zbud: loaded
[    1.168472] NFS: Registering the id_resolver key type
[    1.173594] Key type id_resolver registered
[    1.177842] Key type id_legacy registered
[    1.181974] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.188762] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.195384] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    1.203016] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.209855] orangefs_init: module version upstream loaded
[    1.220895] Key type asymmetric registered
[    1.225062] Asymmetric key parser 'x509' registered
[    1.230147] bounce: pool size: 64 pages
[    1.234151] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.241908] io scheduler noop registered
[    1.245901] io scheduler deadline registered
[    1.250365] io scheduler cfq registered (default)
[    1.256077] dove-pinctrl f10d0200.pin-ctrl: falling back to hardcoded PMU resource
[    1.264194] dove-pinctrl f10d0200.pin-ctrl: [Firmware Bug]: Missing pinctrl regs in DTB. Please update your firmware.
[    1.275604] dove-pinctrl f10d0200.pin-ctrl: registered pinctrl driver
[    1.286199] mvebu-pcie mbus:pcie: PCI host bridge to bus 0000:00
[    1.293121] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.299573] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    1.306506] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.312221] pci_bus 0000:00: scanning bus
[    1.312256] pci 0000:00:01.0: [11ab:0510] type 01 class 0x060400
[    1.312302] pci 0000:00:01.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.312651] pci 0000:00:02.0: [11ab:0510] type 01 class 0x060400
[    1.312684] pci 0000:00:02.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.312995] pci_bus 0000:00: fixups for bus
[    1.313011] PCI: bus0: Fast back to back transfers disabled
[    1.318831] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    1.318841] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.326901] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 0
[    1.326910] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.335058] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    1.335272] pci_bus 0000:01: scanning bus
[    1.335283] pci_bus 0000:01: fixups for bus
[    1.335289] PCI: bus1: Fast back to back transfers enabled
[    1.340997] pci_bus 0000:01: bus scan returning with max=01
[    1.341009] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.341024] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 1
[    1.341234] pci_bus 0000:02: scanning bus
[    1.341244] pci_bus 0000:02: fixups for bus
[    1.341250] PCI: bus2: Fast back to back transfers enabled
[    1.346801] pci_bus 0000:02: bus scan returning with max=02
[    1.346811] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.346822] pci_bus 0000:00: bus scan returning with max=02
[    1.346835] pci 0000:00:01.0: fixup irq: got 0
[    1.346843] pci 0000:00:01.0: assigning IRQ 00
[    1.346854] pci 0000:00:02.0: fixup irq: got 0
[    1.346861] pci 0000:00:02.0: assigning IRQ 00
[    1.346887] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.352040] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.357151] pcieport 0000:00:01.0: enabling bus mastering
[    1.357231] pcieport 0000:00:02.0: enabling bus mastering
[    1.358043] mv_xor f1060800.dma-engine: Marvell shared XOR driver
[    1.419471] mv_xor f1060800.dma-engine: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    1.427994] mv_xor f1060900.dma-engine: Marvell shared XOR driver
[    1.489398] mv_xor f1060900.dma-engine: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    1.626382] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.636606] console [ttyS0] disabled
[    1.641297] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 21, base_baud = 10416666) is a 16550A
[    1.650517] console [ttyS0] enabled
[    1.657546] bootconsole [earlycon0] disabled
[    1.667437] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 22, base_baud = 10416666) is a 16550A
[    1.678148] sata_mv f10a0000.sata-host: version 1.28
[    1.678309] sata_mv f10a0000.sata-host: slots 32 ports 1
[    1.695733] scsi host0: sata_mv
[    1.699382] ata1: SATA max UDMA/133 irq 33
[    1.705401] m25p80 spi0.0: found mx25l1606e, expected sst25vf080b
[    1.711680] m25p80 spi0.0: mx25l1606e (2048 Kbytes)
[    1.716918] 4 cmdlinepart partitions found on MTD device spi0.0
[    1.723527] Creating 4 MTD partitions on "spi0.0":
[    1.728304] 0x000000000000-0x0000000c0000 : "uboot"
[    1.744830] 0x0000000c0000-0x000000100000 : "uboot_env"
[    1.761862] 0x000000100000-0x0000001c0000 : "uboot2"
[    1.778602] 0x0000001c0000-0x000000200000 : "kernel"
[    1.797613] libphy: Fixed MDIO Bus: probed
[    1.804663] libphy: orion_mdio_bus: probed
[    1.816092] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.919764] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:05:35:09:92:9a
[    1.929461] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.936297] ehci-pci: EHCI PCI platform driver
[    1.940905] ehci-orion: EHCI orion driver
[    1.945164] orion-ehci f1050000.usb-host: EHCI Host Controller
[    1.951071] orion-ehci f1050000.usb-host: new USB bus registered, assigned bus number 1
[    1.959385] orion-ehci f1050000.usb-host: irq 26, io mem 0xf1050000
[    1.988413] orion-ehci f1050000.usb-host: USB 2.0 started, EHCI 1.00
[    1.995011] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.001812] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.009047] usb usb1: Product: EHCI Host Controller
[    2.013906] usb usb1: Manufacturer: Linux 4.12.4-mvebu-tld-1 ehci_hcd
[    2.020354] usb usb1: SerialNumber: f1050000.usb-host
[    2.026156] hub 1-0:1.0: USB hub found
[    2.030108] hub 1-0:1.0: 1 port detected
[    2.034054] ata1: SATA link down (SStatus 0 SControl F300)
[    2.040105] orion-ehci f1051000.usb-host: EHCI Host Controller
[    2.045935] orion-ehci f1051000.usb-host: new USB bus registered, assigned bus number 2
[    2.054089] orion-ehci f1051000.usb-host: irq 27, io mem 0xf1051000
[    2.088483] orion-ehci f1051000.usb-host: USB 2.0 started, EHCI 1.00
[    2.095029] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    2.101823] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.109034] usb usb2: Product: EHCI Host Controller
[    2.113887] usb usb2: Manufacturer: Linux 4.12.4-mvebu-tld-1 ehci_hcd
[    2.120316] usb usb2: SerialNumber: f1051000.usb-host
[    2.126091] hub 2-0:1.0: USB hub found
[    2.130043] hub 2-0:1.0: 1 port detected
[    2.135089] usbcore: registered new interface driver usblp
[    2.141039] usbcore: registered new interface driver usb-storage
[    2.147527] mousedev: PS/2 mouse device common for all mice
[    2.154495] rtc-mv f10d8500.real-time-clock: rtc core: registered f10d8500.real-time- as rtc0
[    2.163791] i2c /dev entries driver
[    2.170033] orion_wdt: Initial timeout 25 sec
[    2.177799] marvell-cesa f1030000.crypto-engine: CESA device successfully registered
[    2.186046] hidraw: raw HID events driver (C) Jiri Kosina
[    2.192490] usbcore: registered new interface driver usbhid
[    2.198038] usbhid: USB HID core driver
[    2.202524] drop_monitor: Initializing network drop monitor service
[    2.209072] Netfilter messages via NETLINK v0.30.
[    2.213777] ip_set: protocol 6
[    2.217131] NET: Registered protocol family 10
[    2.232258] random: fast init done
[    2.236091] Segment Routing with IPv6
[    2.239955] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.247740] NET: Registered protocol family 17
[    2.252657] 8021q: 802.1Q VLAN Support v1.8
[    2.256862] Key type dns_resolver registered
[    2.261485] ThumbEE CPU extension supported.
[    2.265739] Registering SWP/SWPB emulation handler
[    2.271494] registered taskstats version 1
[    2.275574] Loading compiled-in X.509 certificates
[    2.280785] zswap: loaded using pool lzo/zbud
[    2.301440] Key type big_key registered
[    2.312691] Key type encrypted registered
[    2.329296] rtc-mv f10d8500.real-time-clock: setting system clock to 2018-09-27 19:42:01 UTC (1538077321)
[    2.339234] PM: Hibernation image not present or could not be loaded.
[    2.341451] Freeing unused kernel memory: 1024K
[    2.398497] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.488480] usb 2-1: new high-speed USB device number 2 using orion-ehci
[    2.600392] usb 1-1: New USB device found, idVendor=05e3, idProduct=0610
[    2.607086] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.628526] usb 1-1: Product: USB2.0 Hub
[    2.646257] hub 1-1:1.0: USB hub found
[    2.660033] hub 1-1:1.0: 4 ports detected
[    2.700351] usb 2-1: New USB device found, idVendor=05e3, idProduct=0610
[    2.707049] usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.728519] usb 2-1: Product: USB2.0 Hub
[    2.745849] hub 2-1:1.0: USB hub found
[    2.759004] hub 2-1:1.0: 4 ports detected
[    2.988497] usb 1-1.4: new high-speed USB device number 3 using orion-ehci
[    3.009438] i2c i2c-0: Added multiplexed i2c bus 1
[    3.038990] i2c i2c-0: Added multiplexed i2c bus 2
[    3.061563] i2c i2c-0: Added multiplexed i2c bus 3
[    3.146455] sdhci: Secure Digital Host Controller Interface driver
[    3.153760] usb 1-1.4: New USB device found, idVendor=0781, idProduct=5530
[    3.153769] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.153776] usb 1-1.4: Product: Cruzer
[    3.153783] usb 1-1.4: Manufacturer: SanDisk
[    3.153789] usb 1-1.4: SerialNumber: 20060775210A3B80C5B2
[    3.154606] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    3.169967] scsi host1: usb-storage 1-1.4:1.0
[    3.315946] sdhci: Copyright(c) Pierre Ossman
[    3.345031] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.419395] mmc0: SDHCI controller on f1090000.sdio-host [f1090000.sdio-host] using DMA
[    3.508580] mmc1: SDHCI controller on f1092000.sdio-host [f1092000.sdio-host] using DMA
[    3.576911] mmc1: new high speed MMC card at address 0001
[    3.632469] mmc0: new high speed SDHC card at address aaaa
[    4.227096] usbcore: registered new interface driver uas
[    4.251238] mmcblk1: mmc1:0001 SEM02G 1.82 GiB 
[    4.262094] scsi 1:0:0:0: Direct-Access     SanDisk  Cruzer           1.26 PQ: 0 ANSI: 5
[    4.270640] mmcblk1boot0: mmc1:0001 SEM02G partition 1 1.00 MiB
[    4.289560] sd 1:0:0:0: [sda] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[    4.303079] sd 1:0:0:0: [sda] Write Protect is off
[    4.307879] sd 1:0:0:0: [sda] Mode Sense: 43 00 00 00
[    4.308037] mmcblk1boot1: mmc1:0001 SEM02G partition 2 1.00 MiB
[    4.314550] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.325669] mmcblk1rpmb: mmc1:0001 SEM02G partition 3 128 KiB
[    4.334938]  mmcblk1: p1 p2 p3
[    4.338844] mmcblk1: p3 size 1831410 extends beyond EOD, truncated
[    4.345271]  sda: sda1
[    4.350693] sd 1:0:0:0: [sda] Attached SCSI removable disk
[    4.385320] mmcblk0: mmc0:aaaa SU16G 14.8 GiB 
[    4.402594]  mmcblk0: p1 p2
[   14.837959] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   14.871892] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   17.537827] sd 1:0:0:0: Attached scsi generic sg0 type 0
[   20.020876] EXT4-fs (sda1): re-mounted. Opts: (null)
[   20.271200] random: crng init done
[   20.274677] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   22.990879] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   25.472866] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   25.482696] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
root@debian:~# 

Re: Chip PC LXD8941
September 27, 2018 02:44PM
The first time I booted the device with the new .dtb the microSD card was still in the slot and is recognised by the system during boot.

[    3.315946] sdhci: Copyright(c) Pierre Ossman
[    3.345031] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.419395] mmc0: SDHCI controller on f1090000.sdio-host [f1090000.sdio-host] using DMA
[    3.508580] mmc1: SDHCI controller on f1092000.sdio-host [f1092000.sdio-host] using DMA
[    3.576911] mmc1: new high speed MMC card at address 0001
[    3.632469] mmc0: new high speed SDHC card at address aaaa
[    4.227096] usbcore: registered new interface driver uas
[    4.251238] mmcblk1: mmc1:0001 SEM02G 1.82 GiB 
[    4.262094] scsi 1:0:0:0: Direct-Access     SanDisk  Cruzer           1.26 PQ: 0 ANSI: 5
[    4.270640] mmcblk1boot0: mmc1:0001 SEM02G partition 1 1.00 MiB
[    4.289560] sd 1:0:0:0: [sda] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[    4.303079] sd 1:0:0:0: [sda] Write Protect is off
[    4.307879] sd 1:0:0:0: [sda] Mode Sense: 43 00 00 00
[    4.308037] mmcblk1boot1: mmc1:0001 SEM02G partition 2 1.00 MiB
[    4.314550] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.325669] mmcblk1rpmb: mmc1:0001 SEM02G partition 3 128 KiB
[    4.334938]  mmcblk1: p1 p2 p3
[    4.338844] mmcblk1: p3 size 1831410 extends beyond EOD, truncated
[    4.345271]  sda: sda1
[    4.350693] sd 1:0:0:0: [sda] Attached SCSI removable disk
[    4.385320] mmcblk0: mmc0:aaaa SU16G 14.8 GiB 
[    4.402594]  mmcblk0: p1 p2

However if I boot into Debian first and then insert the microSD card it does not get recognised. The 2 SDHCI controllers are in the dmesg log but the system doesn't respond to a card being inserted.

[    3.418566] mmc0: SDHCI controller on f1090000.sdio-host [f1090000.sdio-host] using DMA
[    3.508761] mmc1: SDHCI controller on f1092000.sdio-host [f1092000.sdio-host] using DMA
[    3.580278] mmc1: new high speed MMC card at address 0001

Koen
Re: Chip PC LXD8941
September 27, 2018 03:11PM
Hi Koen,

Power off: Cool!

SPI: This is the same as Bob saw. It does not effect the correct SPI flash being recognized. So it is OK.

MMC: we probably need a little more definition here.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Chip PC LXD8941
September 27, 2018 03:29PM
> A bit OT here. If you don't mind, I sure would
> like to know how/where did you scrap the DTB files
> from.

That DTB is the compiled binary for the DTS (also attached in the post).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Chip PC LXD8941
September 27, 2018 05:02PM
Ok I may have spoken too soon. Power off works better than before as it interrupts the power button led and seems to stop the device however a second later the led comes on again and the boot sequence starts.

Koen
Re: Chip PC LXD8941
September 27, 2018 07:15PM
Koen Wrote:
-------------------------------------------------------
> Ok I may have spoken too soon. Power off works
> better than before as it interrupts the power
> button led and seems to stop the device however a
> second later the led comes on again and the boot
> sequence starts.
>
> Koen

Do you have serial console log while powering off?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Chip PC LXD8941
September 28, 2018 01:52AM
We had similar behaviour in the T5325. It was set in uboot variables
Re: Chip PC LXD8941
September 28, 2018 03:04AM
I think probably the GPIO for power off is different on this box (not 8 like the T5335z or Wyse T50).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Chip PC LXD8941
September 28, 2018 06:35AM
I'll get the serial log later today. There is a little pin hole with reset button on the device so it could be that the current gpio is triggering the reset instead of power down.

Koen
Re: Chip PC LXD8941
September 28, 2018 01:52PM
I hope it is not a watchdog problem. It is really odd if they use a different GPIO to trigger the power off.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Chip PC LXD8941
September 28, 2018 02:51PM
Below is the serial log of powering down the device:

root@debian:~# poweroff

Broadcast message from root@debian (ttyS0) (Fri Sep 28 12:44:44 2018):

The system is going down for system halt NOW!
INIT: level: 0
INIT: Sen[info] Using makefile-style concurrent boot in runlevel 0.
[ ok ] Shutting down ALSA...done (none loaded).
[....] Stopping busybox' klogd implementation: klogd2523 (klogd)
Stopped klogd (pid 2523).
. ok 
[ ok ] Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Stopping busybox' syslogd implementation: syslogd2524 (syslogd)
. ok 
[ ok ] Saving random seed...done.
[ ok ] Stopping NFS kernel daemon: mountd nfsd.
[ ok ] Unexporting directories for NFS kernel daemon....
[ ok ] Asking all remaining processes to terminate...done.
[ ok ] All processes ended within 1 seconds...done.
[ ok ] Stopping RPC port mapper daemon: rpcbind.
[ ok ] Stopping NFS common utilities: idmapd statd.
[....] Deconfiguring network interfaces...Removed stale PID file
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
DHCPRELEASE on eth0 to 192.168.1.1 port 67
done.
[  151.678604] m88e1318_get_wol: phy_id = 0x1410e90 OK
[  151.683472] WOL not set - suspending the ethernet PHY
[info] Saving the system clock.
[info] Hardware Clock updated to Fri Sep 28 12:44:48 PDT 2018.
[....] Will now unmount temporary filesystems:umount: /tmp unmounted
. ok 
[ ok ] Will now deactivate swap:.
[  152.578222] EXT4-fs (sda1): re-mounted. Opts: (null)
[ ok ] Mounting root filesystem read-only...done.
[info] Will now halt.
[  154.800296] reboot: Power down

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

 ** LOADER **


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


This section from dove-rd-avng-setup.c shows that gpio 8 controls powering off the device.


/*****************************************************************************
 * MPP
 ****************************************************************************/
static struct dove_mpp_mode dove_rd_avng_y0_mpp_modes[] __initdata = {
	{ 0, MPP_GPIO },	/* MCU_INTRn */
	{ 1, MPP_GPIO },	/* I2S_CODEC_IRQ */
	{ 2, MPP_PMU },		/* Standby power control */
	{ 3, MPP_PMU },		/* Power button - standby wakeup */
	{ 4, MPP_PMU },		/* Core power good indication */
	{ 5, MPP_PMU },		/* DeepIdle power control */
	{ 6, MPP_GPIO },	/* PMU - DDR termination control */
	{ 7, MPP_PMU  },	/* Standby led */

	{ 8, MPP_GPIO },	/* OFF_CTRL */

	{ 9, MPP_GPIO },	/* HUB_RESETn */
	{ 10, MPP_PMU },	/* DVS SDI control */

	{ 11, MPP_GPIO },	/* LCM_DCM */
	{ 12, MPP_SDIO1 },	/* SD1_CDn */
	{ 13, MPP_GPIO },	/* WLAN_WAKEUP_HOST */
	{ 14, MPP_GPIO },	/* HOST_WAKEUP_WLAN */
	{ 15, MPP_GPIO },	/* BT_WAKEUP_HOST */
	{ 16, MPP_GPIO },	/* HOST_WAKEUP_BT */
	{ 17, MPP_GPIO },	/* LCM_BL_CTRL */

	{ 18, MPP_LCD },	/* LCD0_PWM */
	{ 19, MPP_GPIO },	/* AU_IRQOUT */
	{ 20, MPP_GPIO },	/* GP_WLAN_RSTn */
	{ 21, MPP_UART1 },	/* UA1_RTSn */
	{ 22, MPP_UART1 },	/* UA1_CTSn */
	{ 23, MPP_GPIO },	/* G_INT */

	{ 24, MPP_CAM },	/* will configure MPPs 24-39*/

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

	{ 46, MPP_SDIO1 },	/* SD1 Group */
	{ 47, MPP_SDIO1 },	/* SD1 Group */
	{ 48, MPP_SDIO1 },	/* SD1 Group */
	{ 49, MPP_SDIO1 },	/* SD1 Group */
	{ 50, MPP_SDIO1 },	/* SD1 Group */
	{ 51, MPP_SDIO1 },	/* SD1 Group */

	{ 52, MPP_AUDIO1 },	/* AU1 Group */
	{ 53, MPP_AUDIO1 },	/* AU1 Group */
	{ 54, MPP_AUDIO1 },	/* AU1 Group */
	{ 55, MPP_AUDIO1 },	/* AU1 Group */
	{ 56, MPP_AUDIO1 },	/* AU1 Group */
	{ 57, MPP_AUDIO1 },	/* AU1 Group */

	{ 58, MPP_SPI0 },	/* will configure MPPs 58-61 */
	{ 62, MPP_UART1 },	/* UART1 active */
	{ -1 },
};

static struct dove_mpp_mode dove_rd_avng_x0_mpp_modes[] __initdata = {
	{ 0, MPP_GPIO },	/* MCU_INTRn */
	{ 1, MPP_GPIO },	/* I2S_CODEC_IRQ */
	{ 2, MPP_PMU },		/* Standby power control */
	{ 3, MPP_PMU },		/* Power button - standby wakeup */
	{ 4, MPP_PMU },		/* M_CKE_MASK */
	{ 5, MPP_PMU },		/* DeepIdle power control */
	{ 6, MPP_PMU },		/* M_RST_MASK */
	{ 7, MPP_PMU  },	/* Standby led */

	{ 8, MPP_GPIO },	/* OFF_CTRL */

	{ 9, MPP_GPIO },	/* HUB_RESETn */
	{ 10, MPP_PMU },	/* DVS SDI control */

	{ 11, MPP_GPIO },	/* LCM_DCM */
	{ 12, MPP_SDIO1 },	/* SD1_CDn */
	{ 13, MPP_GPIO },	/* LCM_BL_CTRL */
	{ 14, MPP_GPIO },	/* USB_DEV_DET */
	{ 15, MPP_GPIO },	/* AU_IRQOUT */
	{ 16, MPP_GPIO },	/* PMU - DDR termination control */
	{ 17, MPP_TWSI },	/* TW_SDA Option 2 */

	{ 18, MPP_LCD },	/* LCD0_PWM */
	{ 19, MPP_TWSI },	/* TW_SCK Option 2 */
	{ 20, MPP_GPIO },	/* GP_WLAN_RSTn */
	{ 21, MPP_UART1 },	/* UA1_RTSn */
	{ 22, MPP_UART1 },	/* UA1_CTSn */
	{ 23, MPP_GPIO },	/* G_INT */

	{ 24, MPP_CAM },	/* will configure MPPs 24-39*/

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

	{ 46, MPP_SDIO1 },	/* SD1 Group */
	{ 47, MPP_SDIO1 },	/* SD1 Group */
	{ 48, MPP_SDIO1 },	/* SD1 Group */
	{ 49, MPP_SDIO1 },	/* SD1 Group */
	{ 50, MPP_SDIO1 },	/* SD1 Group */
	{ 51, MPP_SDIO1 },	/* SD1 Group */

	{ 52, MPP_AUDIO1 },	/* AU1 Group */
	{ 53, MPP_AUDIO1 },	/* AU1 Group */
	{ 54, MPP_AUDIO1 },	/* AU1 Group */
	{ 55, MPP_AUDIO1 },	/* AU1 Group */
	{ 56, MPP_AUDIO1 },	/* AU1 Group */
	{ 57, MPP_AUDIO1 },	/* AU1 Group */

	{ 58, MPP_SPI0 },	/* will configure MPPs 58-61 */
	{ 62, MPP_UART1 },	/* UART1 active */
	{ -1 },
};


And then there are these functions related to GPIO's in dove-rd-avng-setup.c :


/*****************************************************************************
 * GPIO
 ****************************************************************************/
static void dove_rd_avng_power_off(void)
{
	if (gpio_direction_output(DOVE_AVNG_POWER_OFF_GPIO, 0) != 0) {
 		printk(KERN_ERR "%s failed to set power off output pin %d\n",
		       __func__, DOVE_AVNG_POWER_OFF_GPIO);
	}
}

static void dove_rd_avng_gpio_init(u32 rev)
{
	int pin;

	orion_gpio_set_valid(0, 1);
	if (gpio_request(0, "MCU_INTRn") != 0)
		printk(KERN_ERR "Dove: failed to setup GPIO for MCU_INTRn\n");
	gpio_direction_input(0);	/* MCU interrupt */
	orion_gpio_set_valid(1, 1);
	if (gpio_request(1, "I2S_CODEC_IRQ") != 0)
		printk(KERN_ERR "Dove: failed to setup GPIO for I2S_CODEC_IRQ\n");
	gpio_direction_input(1);	/* Interrupt from ALC5632 */

	if (rev >= DOVE_REV_X0) {
		pin = 16;
	} else {
		pin = 6;
	}
	orion_gpio_set_valid(pin, 1);
	if (gpio_request(pin, "MPP_DDR_TERM") != 0)
	printk(KERN_ERR "Dove: failed to setup GPIO for MPP_DDR_TERM\n");
	gpio_direction_output(pin, 1);	/* Enable DDR 1.8v */

	orion_gpio_set_valid(DOVE_AVNG_POWER_OFF_GPIO, 1);
	if (gpio_request(DOVE_AVNG_POWER_OFF_GPIO, "OFF_CTRL") != 0)
		printk(KERN_ERR "Dove: failed to setup GPIO for OFF_CTRL\n");
	gpio_direction_output(DOVE_AVNG_POWER_OFF_GPIO, 1);	/* Power off */
	orion_gpio_set_valid(9, 1);
	if (gpio_request(9, "HUB_RESETn") != 0)
		printk(KERN_ERR "Dove: failed to setup GPIO for HUB_RESETn\n");
	gpio_direction_output(9, 1);	/* HUB_RESETn */

	orion_gpio_set_valid(11, 1);
	if (gpio_request(11, "LCM_DCM") != 0)
		printk(KERN_ERR "Dove: failed to setup GPIO for LCM_DCM\n");
	gpio_direction_output(11, 1);	/* Enable LCD power */

	orion_gpio_set_valid(13, 1);
	if (rev >= DOVE_REV_X0) {
		if (gpio_request(13, "LCM_BL_CTRL") != 0)
			printk(KERN_ERR "Dove: failed to setup GPIO for LCM_BL_CTRL\n");
		gpio_direction_output(13, 1);	/* Enable LCD backlight */
	} else {
		if (gpio_request(13, "WLAN_WAKEUP_HOST") != 0)
			printk(KERN_ERR "Dove: failed to setup GPIO for WLAN_WAKEUP_HOST\n");
		gpio_direction_input(13);
	}

	orion_gpio_set_valid(14, 1);
	if (rev >= DOVE_REV_X0) {
		if (gpio_request(14, "USB_DEV_DET") != 0)
			printk(KERN_ERR "Dove: failed to setup GPIO for USB_DEV_DET\n");
		gpio_direction_input(14);
	} else {
		if (gpio_request(14, "HOST_WAKEUP_WLAN") != 0)
			printk(KERN_ERR "Dove: failed to setup GPIO for HOST_WAKEUP_WLAN\n");
		gpio_direction_output(14, 0);
	}

	if (rev < DOVE_REV_X0) {
		orion_gpio_set_valid(15, 1);
		if (gpio_request(15, "BT_WAKEUP_HOST") != 0)
			printk(KERN_ERR "Dove: failed to setup GPIO for BT_WAKEUP_HOSTn");
		gpio_direction_input(15);
		orion_gpio_set_valid(16, 1);
		if (gpio_request(16, "HOST_WAKEUP_BT") != 0)
			printk(KERN_ERR "Dove: failed to setup GPIO for HOST_WAKEUP_BT\n");
		gpio_direction_output(16, 0);
		orion_gpio_set_valid(17, 1);
		if (gpio_request(17, "LCM_BL_CTRL") != 0)
			printk(KERN_ERR "Dove: failed to setup GPIO for LCM_BL_CTRL\n");
		gpio_direction_output(17, 1);	/* Enable LCD back light */
	}

	orion_gpio_set_valid(20, 1);
	if (gpio_request(20, "GP_WLAN_RSTn") != 0)
		printk(KERN_ERR "Dove: failed to setup GPIO for GP_WLAN_RSTn\n");
	gpio_direction_output(20, 1);
	orion_gpio_set_valid(23, 1);
	if (gpio_request(23, "G_INT") != 0)
		printk(KERN_ERR "Dove: failed to setup GPIO for G_INT\n");
	gpio_direction_input(23);	/* Interrupt from G-sensor */
}

Re: Chip PC LXD8941
September 28, 2018 06:26PM
Koen,

Yes. These patches were where I've learned about the GPIO 8. And also the LCD power. You can see those in the DTS for the T5335z and this box.

This is in the posted link to the tarball.
root@tldDebian:~# lst /usr/src/hpt5335z_gpl/patches/linux-2.6.32.9-dove-5.3.6.patch 
-rwxrwxr-x 1 openwrt openwrt 11270851 Jun  9  2011 /usr/src/hpt5335z_gpl/patches/linux-2.6.32.9-dove-5.3.6.patch

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



Edited 2 time(s). Last edit at 09/28/2018 06:29PM by bodhi.
Re: Chip PC LXD8941
September 28, 2018 10:43PM
I think:

Power Off with GPIO 8 is working on this box. Something else caused a reset.

MMC has a card detection GPIO. That was apparently set by u-boot, so it is activated when the SD card is in. But in the kernel we will need to implement that trigger.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Chip PC LXD8941
September 29, 2018 03:52PM
@Gravelrash,

> We had similar behaviour in the T5325. It was set
> in uboot variables

I forgot all about this :) can you jog my memory a bit? did we set some env to stop it from resetting?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Chip PC LXD8941
September 30, 2018 10:51AM
Hi bodhi,

Should I plug in a micro SD card and start activating gpio pins from Debian and see when it shows up in dmesg? Or is there the risk of breaking things?

I decided to do a quick sysbench of this dove board and also on my pogo E02 to see how they compare. It is 2.5x faster in the sysbench test as shown by the results below.

Koen

pogo E02:

 
koen@debian:~$ sudo sysbench --test=cpu run
sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Doing CPU performance benchmark

Threads started!
Done.

Maximum prime number checked in CPU test: 10000


Test execution summary:
    total time:                          665.4377s
    total number of events:              10000
    total time taken by event execution: 665.4117
    per-request statistics:
         min:                                 66.44ms
         avg:                                 66.54ms
         max:                                 68.55ms
         approx.  95 percentile:              66.68ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   665.4117/0.00

koen@debian:~$


LXD8941:

root@debian:~# sysbench --test=cpu run    
sysbench 0.4.12:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 1

Doing CPU performance benchmark

Threads started!
Done.

Maximum prime number checked in CPU test: 10000


Test execution summary:
    total time:                          266.0051s
    total number of events:              10000
    total time taken by event execution: 265.9872
    per-request statistics:
         min:                                 26.55ms
         avg:                                 26.60ms
         max:                                 33.62ms
         approx.  95 percentile:              26.68ms

Threads fairness:
    events (avg/stddev):           10000.0000/0.00
    execution time (avg/stddev):   265.9872/0.00
Re: Chip PC LXD8941
September 30, 2018 03:57PM
Koen,

> Should I plug in a micro SD card and start
> activating gpio pins from Debian and see when it
> shows up in dmesg? Or is there the risk of
> breaking things?

We need to activate the GPIOs before you can set it in Debian easily.

As long as you know it is a GPIO, it's OK to set/clear it. However, you dont want to turn off the HDD or USB or something that could corrupt things.

I'm looking at the GPL and will get a new version for you to test MMC. Harder to test on T5335z becaue I cannot tell if it's working or not without the slot.

>
> I decided to do a quick sysbench of this dove
> board and also on my pogo E02 to see how they
> compare. It is 2.5x faster in the sysbench test as
> shown by the results below.

Impressive :) I did not think that it's that fast!

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Chip PC LXD8941
September 30, 2018 04:57PM
Koen,

GPIO 12 is card detection.

+       { 12, MPP_SDIO1 },      /* SD1_CDn */

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Chip PC LXD8941
October 01, 2018 12:59AM
Koen,

Please try this version. I'm activating the SD card 1. Of course there is only one MMC (usually that should be 0), but stock uses 1 so let's see if it will work first.

-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 01, 2018 03:36AM
From memory there was a set of uboot variables that could be seen with an expanded declaration request at the uboot prompt, something like HP variables. and this then showed the HP specific additions as well. again im not anywhere near my kit, but will see if i can trawl the thread and find the info

bodhi Wrote:
-------------------------------------------------------
> @Gravelrash,
>
> > We had similar behaviour in the T5325. It was
> set
> > in uboot variables
>
> I forgot all about this :) can you jog my memory a
> bit? did we set some env to stop it from
> resetting?
Re: Chip PC LXD8941
October 01, 2018 03:45AM
found the additional here

https://forum.doozan.com/read.php?2,25473,page=4 (March 03, 2016 12:52PM)



https://forum.doozan.com/read.php?2,25473,page=5 (bobafetthotmail March 08, 2016 05:02AM)



Edited 1 time(s). Last edit at 10/01/2018 03:51AM by Gravelrash.
Re: Chip PC LXD8941
October 01, 2018 04:00AM
@Gravelrash,

Ah I remember now. There was the home-made WOL thing that HP cooked up :)

Good idea. Could be the culprit.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Chip PC LXD8941
October 01, 2018 03:31PM
Hi bodhi,

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.

https://elinux.org/GPIO

Seting it to either high or low does not make the microSD card show up. The debugfs output does show that the value of gpio 12 is being changed.

A bit more poking around in debugfs shows the following information (not sure if useful):

Koen

root@debian:/# cat /sys/kernel/debug/mmc1/caps
0x4000040f
root@debian:/# cat /sys/kernel/debug/mmc1/caps2 
0x00020000
root@debian:/# cat /sys/kernel/debug/mmc1/clock 
50000000
root@debian:/# cat /sys/kernel/debug/mmc1/ios   
clock:          50000000 Hz
actual clock:   50000000 Hz
vdd:            21 (3.3 ~ 3.4 V)
bus mode:       2 (push-pull)
chip select:    0 (don't care)
power mode:     2 (on)
bus width:      2 (4 bits)
timing spec:    1 (mmc high-speed)
signal voltage: 0 (3.30 V)
driver type:    0 (driver type B)

root@debian:/# cat /sys/kernel/debug/mmc0/caps
0x4000040f
root@debian:/# 
root@debian:/# cat /sys/kernel/debug/mmc0/caps2 
0x00020000
root@debian:/# cat /sys/kernel/debug/mmc0/clock 
0
root@debian:/# cat /sys/kernel/debug/mmc0/ios   
clock:          0 Hz
vdd:            0 (invalid)
bus mode:       2 (push-pull)
chip select:    0 (don't care)
power mode:     0 (off)
bus width:      0 (1 bits)
timing spec:    0 (legacy)
signal voltage: 0 (3.30 V)
driver type:    0 (driver type B)

root@debian:/sys/kernel/debug/pinctrl# ls
.  ..  f10d0200.pin-ctrl  pinctrl-devices  pinctrl-handles  pinctrl-maps
root@debian:/sys/kernel/debug/pinctrl# cat pinctrl-devices 
name [pinmux] [pinconf]
f10d0200.pin-ctrl yes yes
root@debian:/sys/kernel/debug/pinctrl# cat pinctrl-handles 
Requested pin control handlers their pinmux maps:
device: f1012100.serial current state: default
  state: default
    type: MUX_GROUP controller f10d0200.pin-ctrl group: mpp_uart1 (29) function: uart1 (18)
device: f1010600.spi-ctrl current state: default
  state: default
    type: MUX_GROUP controller f10d0200.pin-ctrl group: mpp_spi0 (28) function: spi0 (40)
device: gpio-poweroff current state: default
  state: default
    type: MUX_GROUP controller f10d0200.pin-ctrl group: mpp8 (8) function: gpio (0)
device: i2c-mux current state: none
  state: i2c0
    type: MUX_GROUP controller f10d0200.pin-ctrl group: twsi (32) function: twsi-opt1 (45)
  state: i2c1
    type: MUX_GROUP controller f10d0200.pin-ctrl group: twsi (32) function: twsi-opt2 (46)
  state: i2c2
    type: MUX_GROUP controller f10d0200.pin-ctrl group: twsi (32) function: twsi-opt3 (47)
device: f1090000.sdio-host current state: default
  state: default
    type: MUX_GROUP controller f10d0200.pin-ctrl group: mpp_sdio1 (26) function: sdio1 (21)
device: f1092000.sdio-host current state: default
  state: default
    type: MUX_GROUP controller f10d0200.pin-ctrl group: mpp_sdio0 (25) function: sdio0 (2)
root@debian:/sys/kernel/debug/pinctrl# cat pinctrl-maps    
Pinctrl maps:
device f1012100.serial
state default
type MUX_GROUP (2)
controlling device f10d0200.pin-ctrl
group mpp_uart1
function uart1

device f1010600.spi-ctrl
state default
type MUX_GROUP (2)
controlling device f10d0200.pin-ctrl
group mpp_spi0
function spi0

device gpio-poweroff
state default
type MUX_GROUP (2)
controlling device f10d0200.pin-ctrl
group mpp8
function gpio

device i2c-mux
state i2c0
type MUX_GROUP (2)
controlling device f10d0200.pin-ctrl
group twsi
function twsi-opt1

device i2c-mux
state i2c1
type MUX_GROUP (2)
controlling device f10d0200.pin-ctrl
group twsi
function twsi-opt2

device i2c-mux
state i2c2
type MUX_GROUP (2)
controlling device f10d0200.pin-ctrl
group twsi
function twsi-opt3

device f1090000.sdio-host
state default
type MUX_GROUP (2)
controlling device f10d0200.pin-ctrl
group mpp_sdio1
function sdio1

device f1092000.sdio-host
state default
type MUX_GROUP (2)
controlling device f10d0200.pin-ctrl
group mpp_sdio0
function sdio0

root@debian:/sys/kernel/debug/pinctrl#

root@debian:/sys/kernel/debug/pinctrl/f10d0200.pin-ctrl# cat gpio-ranges 
GPIO ranges handled:
0: mvebu-gpio GPIOS [0 - 31] PINS [0 - 31]
1: mvebu-gpio GPIOS [32 - 63] PINS [32 - 63]
2: mvebu-gpio GPIOS [64 - 71] PINS [64 - 71]

root@debian:/sys/kernel/debug/pinctrl/f10d0200.pin-ctrl# cat pinconf-groups 
Pin config settings per pin group
Format: group (name): configs
0 (mpp0): current: gpio(io), available = [ uart2(rts) sdio0(cd) lcd0(pwm) pmu-nc pmu-low pmu-high pmic(sdi) cpu-pwr-down standby-pwr-down core-pwr-good bat-fault ext0-wakeup ext1-wakeup ext2-wakeup pmu-blink ]
1 (mpp1): current: gpio(io), available = [ uart2(cts) sdio0(wp) lcd1(pwm) pmu-nc pmu-low pmu-high pmic(sdi) cpu-pwr-down standby-pwr-down core-pwr-good bat-fault ext0-wakeup ext1-wakeup ext2-wakeup pmu-blink ]
2 (mpp2): current: gpio(io), available = [ sata(prsnt) uart2(txd) sdio0(buspwr) uart1(rts) pmu-nc pmu-low pmu-high pmic(sdi) cpu-pwr-down standby-pwr-down core-pwr-good bat-fault ext0-wakeup ext1-wakeup ext2-wakeup pmu-blink ]
3 (mpp3): current: gpio(io), available = [ sata(act) uart2(rxd) sdio0(ledctrl) uart1(cts) lcd-spi(cs1) pmu-nc pmu-low pmu-high pmic(sdi) cpu-pwr-down standby-pwr-down core-pwr-good bat-fault ext0-wakeup ext1-wakeup ext2-wakeup pmu-blink ]
4 (mpp4): current: pmu-low, available = [ gpio(io) uart3(rts) sdio1(cd) spi1(miso) pmu-nc pmu-high pmic(sdi) cpu-pwr-down standby-pwr-down core-pwr-good bat-fault ext0-wakeup ext1-wakeup ext2-wakeup pmu-blink ]
5 (mpp5): current: gpio(io), available = [ uart3(cts) sdio1(wp) spi1(cs) pmu-nc pmu-low pmu-high pmic(sdi) cpu-pwr-down standby-pwr-down core-pwr-good bat-fault ext0-wakeup ext1-wakeup ext2-wakeup pmu-blink ]
6 (mpp6): current: pmu-high, available = [ gpio(io) uart3(txd) sdio1(buspwr) spi1(mosi) pmu-nc pmu-low pmic(sdi) cpu-pwr-down standby-pwr-down core-pwr-good bat-fault ext0-wakeup ext1-wakeup ext2-wakeup pmu-blink ]
7 (mpp7): current: gpio(io), available = [ uart3(rxd) sdio1(ledctrl) spi1(sck) pmu-nc pmu-low pmu-high pmic(sdi) cpu-pwr-down standby-pwr-down core-pwr-good bat-fault ext0-wakeup ext1-wakeup ext2-wakeup pmu-blink ]
8 (mpp8): current: gpio(io), available = [ watchdog(rstout) pmu-nc pmu-low pmu-high pmic(sdi) cpu-pwr-down standby-pwr-down cpu-pwr-good bat-fault ext0-wakeup ext1-wakeup ext2-wakeup pmu-blink ]
9 (mpp9): current: gpio(io), available = [ pex1(clkreq) pmu-nc pmu-low pmu-high pmic(sdi) cpu-pwr-down standby-pwr-down cpu-pwr-good bat-fault ext0-wakeup ext1-wakeup ext2-wakeup pmu-blink ]
10 (mpp10): current: gpio(io), available = [ ssp(sclk) pmu-nc pmu-low pmu-high pmic(sdi) cpu-pwr-down standby-pwr-down cpu-pwr-good bat-fault ext0-wakeup ext1-wakeup ext2-wakeup pmu-blink ]
11 (mpp11): current: gpio(io), available = [ sata(prsnt) sata-1(act) sdio0(ledctrl) sdio1(ledctrl) pex0(clkreq) pmu-nc pmu-low pmu-high pmic(sdi) cpu-pwr-down standby-pwr-down cpu-pwr-good bat-fault ext0-wakeup ext1-wakeup ext2-wakeup pmu-blink ]
12 (mpp12): current: gpio(io), available = [ sata(act) uart2(rts) audio0(extclk) sdio1(cd) pmu-nc pmu-low pmu-high pmic(sdi) cpu-pwr-down standby-pwr-down cpu-pwr-good bat-fault ext0-wakeup ext1-wakeup ext2-wakeup pmu-blink ]
13 (mpp13): current: audio1(extclk), available = [ gpio(io) uart2(cts) sdio1(wp) ssp(extclk) pmu-nc pmu-low pmu-high pmic(sdi) cpu-pwr-down standby-pwr-down cpu-pwr-good bat-fault ext0-wakeup ext1-wakeup ext2-wakeup pmu-blink ]
14 (mpp14): current: gpio(io), available = [ uart2(txd) sdio1(buspwr) ssp(rxd) pmu-nc pmu-low pmu-high pmic(sdi) cpu-pwr-down standby-pwr-down cpu-pwr-good bat-fault ext0-wakeup ext1-wakeup ext2-wakeup pmu-blink ]
15 (mpp15): current: gpio(io), available = [ uart2(rxd) sdio1(ledctrl) ssp(sfrm) pmu-nc pmu-low pmu-high pmic(sdi) cpu-pwr-down standby-pwr-down cpu-pwr-good bat-fault ext0-wakeup ext1-wakeup ext2-wakeup pmu-blink ]
16 (mpp16): current: gpio(io), available = [ uart3(rts) sdio0(cd) lcd-spi(cs1) ac97(sdi1) ]
17 (mpp17): current: twsi(sda), available = [ gpio(io) ac97-1(sysclko) uart3(cts) sdio0(wp) ac97(sdi2) ]
18 (mpp18): current: gpio(io), available = [ uart3(txd) sdio0(buspwr) lcd0(pwm) ac97(sdi3) ]
19 (mpp19): current: twsi(sck), available = [ gpio(io) uart3(rxd) sdio0(ledctrl) ]
20 (mpp20): current: gpio(io), available = [ ac97(sysclko) lcd-spi(miso) sdio1(cd) sdio0(cd) spi1(miso) ]
21 (mpp21): current: uart1(rts), available = [ gpio(io) lcd-spi(cs0) sdio1(wp) ssp(sfrm) sdio0(wp) spi1(cs) ]
22 (mpp22): current: uart1(cts), available = [ gpio(io) lcd-spi(mosi) sdio1(buspwr) ssp(txd) sdio0(buspwr) spi1(mosi) ]
23 (mpp23): current: gpio(io), available = [ lcd-spi(sck) sdio1(ledctrl) ssp(sclk) sdio0(ledctrl) spi1(sck) ]
24 (mpp_camera): current: camera, available = [ gpio(io) ]
25 (mpp_sdio0): current: sdio0, available = [ gpio(io) ]
26 (mpp_sdio1): current: sdio1, available = [ gpio(io) ]
27 (mpp_audio1): current: i2s1/spdifo, available = [ i2s1 spdifo gpio(io) twsi ssp/spdifo ssp ssp/twsi ]
28 (mpp_spi0): current: spi0, available = [ gpio(io) ]
29 (mpp_uart1): current: uart1, available = [ gpio(io) ]
30 (mpp_nand): current: nand, available = [ gpo(o) ]
31 (audio0): current: i2s, available = [ ac97 ]
32 (twsi): current: twsi-opt1, available = [ twsi-none twsi-opt2 twsi-opt3 ]

root@debian:/sys/kernel/debug/pinctrl/f10d0200.pin-ctrl# cat pingroups    
registered pin groups:
group: mpp0
pin 0 (PIN0)

group: mpp1
pin 1 (PIN1)

group: mpp2
pin 2 (PIN2)

group: mpp3
pin 3 (PIN3)

group: mpp4
pin 4 (PIN4)

group: mpp5
pin 5 (PIN5)

group: mpp6
pin 6 (PIN6)

group: mpp7
pin 7 (PIN7)

group: mpp8
pin 8 (PIN8)

group: mpp9
pin 9 (PIN9)

group: mpp10
pin 10 (PIN10)

group: mpp11
pin 11 (PIN11)

group: mpp12
pin 12 (PIN12)

group: mpp13
pin 13 (PIN13)

group: mpp14
pin 14 (PIN14)

group: mpp15
pin 15 (PIN15)

group: mpp16
pin 16 (PIN16)

group: mpp17
pin 17 (PIN17)

group: mpp18
pin 18 (PIN18)

group: mpp19
pin 19 (PIN19)

group: mpp20
pin 20 (PIN20)

group: mpp21
pin 21 (PIN21)

group: mpp22
pin 22 (PIN22)

group: mpp23
pin 23 (PIN23)

group: mpp_camera
pin 24 (PIN24)
pin 25 (PIN25)
pin 26 (PIN26)
pin 27 (PIN27)
pin 28 (PIN28)
pin 29 (PIN29)
pin 30 (PIN30)
pin 31 (PIN31)
pin 32 (PIN32)
pin 33 (PIN33)
pin 34 (PIN34)
pin 35 (PIN35)
pin 36 (PIN36)
pin 37 (PIN37)
pin 38 (PIN38)
pin 39 (PIN39)

group: mpp_sdio0
pin 40 (PIN40)
pin 41 (PIN41)
pin 42 (PIN42)
pin 43 (PIN43)
pin 44 (PIN44)
pin 45 (PIN45)

group: mpp_sdio1
pin 46 (PIN46)
pin 47 (PIN47)
pin 48 (PIN48)
pin 49 (PIN49)
pin 50 (PIN50)
pin 51 (PIN51)

group: mpp_audio1
pin 52 (PIN52)
pin 53 (PIN53)
pin 54 (PIN54)
pin 55 (PIN55)
pin 56 (PIN56)
pin 57 (PIN57)

group: mpp_spi0
pin 58 (PIN58)
pin 59 (PIN59)
pin 60 (PIN60)
pin 61 (PIN61)

group: mpp_uart1
pin 62 (PIN62)
pin 63 (PIN63)

group: mpp_nand
pin 64 (PIN64)
pin 65 (PIN65)
pin 66 (PIN66)
pin 67 (PIN67)
pin 68 (PIN68)
pin 69 (PIN69)
pin 70 (PIN70)
pin 71 (PIN71)

group: audio0
pin 72 (PIN72)

group: twsi
pin 73 (PIN73)

root@debian:/sys/kernel/debug/pinctrl/f10d0200.pin-ctrl# cat pinmux-functions 
function: gpio, groups = [ mpp0 mpp1 mpp2 mpp3 mpp4 mpp5 mpp6 mpp7 mpp8 mpp9 mpp10 mpp11 mpp12 mpp13 mpp14 mpp15 mpp16 mpp17 mpp18 mpp19 mpp20 mpp21 mpp22 mpp23 mpp_camera mpp_sdio0 mpp_sdio1 mpp_audio1 mpp_spi0 mpp_uart1 ]
function: uart2, groups = [ mpp0 mpp1 mpp2 mpp3 mpp12 mpp13 mpp14 mpp15 ]
function: sdio0, groups = [ mpp0 mpp1 mpp2 mpp3 mpp11 mpp16 mpp17 mpp18 mpp19 mpp20 mpp21 mpp22 mpp23 mpp_sdio0 ]
function: lcd0, groups = [ mpp0 mpp18 ]
function: pmu-nc, groups = [ mpp0 mpp1 mpp2 mpp3 mpp4 mpp5 mpp6 mpp7 mpp8 mpp9 mpp10 mpp11 mpp12 mpp13 mpp14 mpp15 ]
function: pmu-low, groups = [ mpp0 mpp1 mpp2 mpp3 mpp4 mpp5 mpp6 mpp7 mpp8 mpp9 mpp10 mpp11 mpp12 mpp13 mpp14 mpp15 ]
function: pmu-high, groups = [ mpp0 mpp1 mpp2 mpp3 mpp4 mpp5 mpp6 mpp7 mpp8 mpp9 mpp10 mpp11 mpp12 mpp13 mpp14 mpp15 ]
function: pmic, groups = [ mpp0 mpp1 mpp2 mpp3 mpp4 mpp5 mpp6 mpp7 mpp8 mpp9 mpp10 mpp11 mpp12 mpp13 mpp14 mpp15 ]
function: cpu-pwr-down, groups = [ mpp0 mpp1 mpp2 mpp3 mpp4 mpp5 mpp6 mpp7 mpp8 mpp9 mpp10 mpp11 mpp12 mpp13 mpp14 mpp15 ]
function: standby-pwr-down, groups = [ mpp0 mpp1 mpp2 mpp3 mpp4 mpp5 mpp6 mpp7 mpp8 mpp9 mpp10 mpp11 mpp12 mpp13 mpp14 mpp15 ]
function: core-pwr-good, groups = [ mpp0 mpp1 mpp2 mpp3 mpp4 mpp5 mpp6 mpp7 ]
function: bat-fault, groups = [ mpp0 mpp1 mpp2 mpp3 mpp4 mpp5 mpp6 mpp7 mpp8 mpp9 mpp10 mpp11 mpp12 mpp13 mpp14 mpp15 ]
function: ext0-wakeup, groups = [ mpp0 mpp1 mpp2 mpp3 mpp4 mpp5 mpp6 mpp7 mpp8 mpp9 mpp10 mpp11 mpp12 mpp13 mpp14 mpp15 ]
function: ext1-wakeup, groups = [ mpp0 mpp1 mpp2 mpp3 mpp4 mpp5 mpp6 mpp7 mpp8 mpp9 mpp10 mpp11 mpp12 mpp13 mpp14 mpp15 ]
function: ext2-wakeup, groups = [ mpp0 mpp1 mpp2 mpp3 mpp4 mpp5 mpp6 mpp7 mpp8 mpp9 mpp10 mpp11 mpp12 mpp13 mpp14 mpp15 ]
function: pmu-blink, groups = [ mpp0 mpp1 mpp2 mpp3 mpp4 mpp5 mpp6 mpp7 mpp8 mpp9 mpp10 mpp11 mpp12 mpp13 mpp14 mpp15 ]
function: lcd1, groups = [ mpp1 ]
function: sata, groups = [ mpp2 mpp3 mpp11 mpp12 ]
function: uart1, groups = [ mpp2 mpp3 mpp21 mpp22 mpp_uart1 ]
function: lcd-spi, groups = [ mpp3 mpp16 mpp20 mpp21 mpp22 mpp23 ]
function: uart3, groups = [ mpp4 mpp5 mpp6 mpp7 mpp16 mpp17 mpp18 mpp19 ]
function: sdio1, groups = [ mpp4 mpp5 mpp6 mpp7 mpp11 mpp12 mpp13 mpp14 mpp15 mpp20 mpp21 mpp22 mpp23 mpp_sdio1 ]
function: spi1, groups = [ mpp4 mpp5 mpp6 mpp7 mpp20 mpp21 mpp22 mpp23 ]
function: watchdog, groups = [ mpp8 ]
function: cpu-pwr-good, groups = [ mpp8 mpp9 mpp10 mpp11 mpp12 mpp13 mpp14 mpp15 ]
function: pex1, groups = [ mpp9 ]
function: ssp, groups = [ mpp10 mpp13 mpp14 mpp15 mpp21 mpp22 mpp23 mpp_audio1 ]
function: sata-1, groups = [ mpp11 ]
function: pex0, groups = [ mpp11 ]
function: audio0, groups = [ mpp12 ]
function: audio1, groups = [ mpp13 ]
function: ac97, groups = [ mpp16 mpp17 mpp18 mpp20 audio0 ]
function: ac97-1, groups = [ mpp17 ]
function: twsi, groups = [ mpp17 mpp19 mpp_audio1 ]
function: camera, groups = [ mpp_camera ]
function: i2s1/spdifo, groups = [ mpp_audio1 ]
function: i2s1, groups = [ mpp_audio1 ]
function: spdifo, groups = [ mpp_audio1 ]
function: ssp/spdifo, groups = [ mpp_audio1 ]
function: ssp/twsi, groups = [ mpp_audio1 ]
function: spi0, groups = [ mpp_spi0 ]
function: nand, groups = [ mpp_nand ]
function: gpo, groups = [ mpp_nand ]
function: i2s, groups = [ audio0 ]
function: twsi-none, groups = [ twsi ]
function: twsi-opt1, groups = [ twsi ]
function: twsi-opt2, groups = [ twsi ]
function: twsi-opt3, groups = [ twsi ]

root@debian:/sys/kernel/debug/pinctrl/f10d0200.pin-ctrl# cat pinmux-pins 
Pinmux settings per pin
Format: pin (name): mux_owner gpio_owner hog?
pin 0 (PIN0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 1 (PIN1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 2 (PIN2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 3 (PIN3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 4 (PIN4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 5 (PIN5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 6 (PIN6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 7 (PIN7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 8 (PIN8): gpio-poweroff mvebu-gpio:8 function gpio group mpp8
pin 9 (PIN9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 10 (PIN10): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 11 (PIN11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 12 (PIN12): (MUX UNCLAIMED) mvebu-gpio:12
pin 13 (PIN13): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 14 (PIN14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 15 (PIN15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 16 (PIN16): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 17 (PIN17): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 18 (PIN18): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 19 (PIN19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 20 (PIN20): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 21 (PIN21): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 22 (PIN22): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 23 (PIN23): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 24 (PIN24): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 25 (PIN25): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 26 (PIN26): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 27 (PIN27): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 28 (PIN28): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 29 (PIN29): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 30 (PIN30): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 31 (PIN31): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 32 (PIN32): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 33 (PIN33): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 34 (PIN34): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 35 (PIN35): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 36 (PIN36): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 37 (PIN37): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 38 (PIN38): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 39 (PIN39): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 40 (PIN40): f1092000.sdio-host (GPIO UNCLAIMED) function sdio0 group mpp_sdio0
pin 41 (PIN41): f1092000.sdio-host (GPIO UNCLAIMED) function sdio0 group mpp_sdio0
pin 42 (PIN42): f1092000.sdio-host (GPIO UNCLAIMED) function sdio0 group mpp_sdio0
pin 43 (PIN43): f1092000.sdio-host (GPIO UNCLAIMED) function sdio0 group mpp_sdio0
pin 44 (PIN44): f1092000.sdio-host (GPIO UNCLAIMED) function sdio0 group mpp_sdio0
pin 45 (PIN45): f1092000.sdio-host (GPIO UNCLAIMED) function sdio0 group mpp_sdio0
pin 46 (PIN46): f1090000.sdio-host (GPIO UNCLAIMED) function sdio1 group mpp_sdio1
pin 47 (PIN47): f1090000.sdio-host (GPIO UNCLAIMED) function sdio1 group mpp_sdio1
pin 48 (PIN48): f1090000.sdio-host (GPIO UNCLAIMED) function sdio1 group mpp_sdio1
pin 49 (PIN49): f1090000.sdio-host (GPIO UNCLAIMED) function sdio1 group mpp_sdio1
pin 50 (PIN50): f1090000.sdio-host (GPIO UNCLAIMED) function sdio1 group mpp_sdio1
pin 51 (PIN51): f1090000.sdio-host (GPIO UNCLAIMED) function sdio1 group mpp_sdio1
pin 52 (PIN52): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 53 (PIN53): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 54 (PIN54): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 55 (PIN55): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 56 (PIN56): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 57 (PIN57): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 58 (PIN58): f1010600.spi-ctrl (GPIO UNCLAIMED) function spi0 group mpp_spi0
pin 59 (PIN59): f1010600.spi-ctrl (GPIO UNCLAIMED) function spi0 group mpp_spi0
pin 60 (PIN60): f1010600.spi-ctrl (GPIO UNCLAIMED) function spi0 group mpp_spi0
pin 61 (PIN61): f1010600.spi-ctrl (GPIO UNCLAIMED) function spi0 group mpp_spi0
pin 62 (PIN62): f1012100.serial (GPIO UNCLAIMED) function uart1 group mpp_uart1
pin 63 (PIN63): f1012100.serial (GPIO UNCLAIMED) function uart1 group mpp_uart1
pin 64 (PIN64): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 65 (PIN65): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 66 (PIN66): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 67 (PIN67): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 68 (PIN68): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 69 (PIN69): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 70 (PIN70): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 71 (PIN71): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 72 (PIN72): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 73 (PIN73): (MUX UNCLAIMED) (GPIO UNCLAIMED)


Re: Chip PC LXD8941
October 01, 2018 03:32PM
I think the reset might have been related to whether this box SoC version is the same as the HP T5335z and Wyse T50. It could be an older one.

Chip PC LXD8941:

Board: RD-88AP510-Avengers
SoC:   MV88F510 Rev 7
CPU:   ??? (0x0c08) (Rev 1)


T5335z:

Board: RD-88AP510-Avengers
SoC:   88AP510 (A1)
CPU:   Marvell Sheeva (Rev 5)
       CPU @ 1000Mhz, L2 @ 500Mhz


Wyse T50/T10:

Unknown ???

-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: