Welcome! Log In Create A New Profile

Advanced

Debian on HP Thin Client T5335z

Posted by bodhi 
Re: Debian on HP Thin Client T5335z
September 09, 2018 02:29PM
Hi Koen,

> @bodhi I mixed up different thin clients. couldn't
> find a button in the HP T5335Z. I did buy what
> looked like another Dell Wyse T10 from ebay but it
> was a TX0D and that has a button on the board (and
> uses a different CPU than the T10 / T50)

It's OK. I've looked at the GPL kernel patches. We cannot control this button through GPIO. And no LED control can be done with GPIO, either.

So no button or LED control by GPIO for HP T5335z.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
September 10, 2018 01:56AM
@all

Graphics info for VIvante / Dove along with build instructions locations to binaries etc

https://github.com/dv1/meta-cubox


EGL / OpenGLES / OpenVG
Support for EGL, OpenGL ES, and OpenVG is provided by the Vivante binaries supplied by Marvell. Unfortunately, there are multiple variants of these, which can cause a lot of confusion. The zipped binaries can be found on the solid-run website. The -light variants are used for the binaries. C headers for EGL etc. are retrieved from this zip archive. These are the newest headers and binaries. Other ones are either outdated or broken.
Also, since the kernel already links in the GALcore component, the galcore.ko kernel module from these packages is not used or installed.
Re: Debian on HP Thin Client T5335z
September 11, 2018 04:19PM
Connected a serial cable and followed bodhi's instructions and I'm now on kernel 4.12. I will upgrade to 4.18 and continue to look into the graphics tomorrow.

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 [560f5815] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: HP Thin Client T5335z
[    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(u-boot),8k(uboot_env),8k(pu_env),8k(hp_env) 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] 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.007907] Switching to timer-based delay loop, resolution 6ns
[    0.014411] Console: colour dummy device 80x30
[    0.018978] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.029571] pid_max: default: 32768 minimum: 301
[    0.034416] Security Framework initialized
[    0.038692] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.045370] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.053260] CPU: Testing write buffer coherency: ok
[    0.058550] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.098046] Setting up static identity map for 0x100000 - 0x100060
[    0.157955] smp: Bringing up secondary CPUs ...
[    0.162560] smp: Brought up 1 node, 1 CPU
[    0.166637] SMP: Total of 1 processors activated (333.33 BogoMIPS).
[    0.173009] CPU: All CPU(s) started in SVC mode.
[    0.178563] devtmpfs: initialized
[    0.188160] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 5
[    0.196421] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.206492] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.213066] prandom: seed boundary self test passed
[    0.221101] prandom: 100 self tests passed
[    0.225267] pinctrl core: initialized pinctrl subsystem
[    0.232433] NET: Registered protocol family 16
[    0.237645] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.258050] cpuidle: using governor ladder
[    0.262273] cpuidle: using governor menu
[    0.266439] Dove 88AP510 SoC
[    0.269708] Tauros2: Disabling L2 prefetch.
[    0.273961] Tauros2: Disabling burst8 line fill.
[    0.278726] Tauros2: Enabling L2 cache.
[    0.282627] Tauros2: L2 cache support initialised in ARMv7 mode.
[    0.289125] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.388504] vgaarb: loaded
[    0.391580] SCSI subsystem initialized
[    0.398174] libata version 3.00 loaded.
[    0.398488] usbcore: registered new interface driver usbfs
[    0.404090] usbcore: registered new interface driver hub
[    0.410373] usbcore: registered new device driver usb
[    0.416056] media: Linux media interface: v0.10
[    0.421085] Linux video capture interface: v2.00
[    0.428138] clocksource: Switched to clocksource orion_clocksource
[    0.508793] VFS: Disk quotas dquot_6.6.0
[    0.512855] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.538502] NET: Registered protocol family 2
[    0.544015] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.551817] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.558590] TCP: Hash tables configured (established 8192 bind 8192)
[    0.565098] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.571146] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.577714] NET: Registered protocol family 1
[    0.602652] RPC: Registered named UNIX socket transport module.
[    0.608690] RPC: Registered udp transport module.
[    0.613451] RPC: Registered tcp transport module.
[    0.618242] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.624740] PCI: CLS 0 bytes, default 64
[    0.624928] Unpacking initramfs...
[    1.055931] Freeing initrd memory: 6908K
[    1.060172] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.068610] audit: initializing netlink subsys (disabled)
[    1.074757] audit: type=2000 audit(1.066:1): state=initialized audit_enabled=0 res=1
[    1.083156] Initialise system trusted keyrings
[    1.083199] Key type blacklist registered
[    1.083321] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    1.083419] zbud: loaded
[    1.112574] NFS: Registering the id_resolver key type
[    1.117695] Key type id_resolver registered
[    1.122016] Key type id_legacy registered
[    1.126099] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.132914] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.139548] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    1.147121] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.153944] orangefs_init: module version upstream loaded
[    1.164641] Key type asymmetric registered
[    1.168905] Asymmetric key parser 'x509' registered
[    1.173898] bounce: pool size: 64 pages
[    1.177901] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.185481] io scheduler noop registered
[    1.189692] io scheduler deadline registered
[    1.194084] io scheduler cfq registered (default)
[    1.199846] dove-pinctrl f10d0200.pin-ctrl: falling back to hardcoded PMU resource
[    1.207585] dove-pinctrl f10d0200.pin-ctrl: [Firmware Bug]: Missing pinctrl regs in DTB. Please update your firmware.
[    1.219203] dove-pinctrl f10d0200.pin-ctrl: registered pinctrl driver
[    1.229577] mvebu-pcie mbus:pcie: PCI host bridge to bus 0000:00
[    1.235652] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.242765] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    1.249840] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.255391] pci_bus 0000:00: scanning bus
[    1.255425] pci 0000:00:01.0: [11ab:0510] type 01 class 0x060400
[    1.255470] pci 0000:00:01.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.255808] pci 0000:00:02.0: [11ab:0510] type 01 class 0x060400
[    1.255839] pci 0000:00:02.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.256132] pci_bus 0000:00: fixups for bus
[    1.256147] PCI: bus0: Fast back to back transfers disabled
[    1.262087] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    1.262097] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.270206] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 0
[    1.270215] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.278365] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    1.278565] pci_bus 0000:01: scanning bus
[    1.278576] pci_bus 0000:01: fixups for bus
[    1.278582] PCI: bus1: Fast back to back transfers enabled
[    1.284126] pci_bus 0000:01: bus scan returning with max=01
[    1.284137] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.284151] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 1
[    1.284455] pci_bus 0000:02: scanning bus
[    1.284466] pci_bus 0000:02: fixups for bus
[    1.284471] PCI: bus2: Fast back to back transfers enabled
[    1.290069] pci_bus 0000:02: bus scan returning with max=02
[    1.290079] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.290090] pci_bus 0000:00: bus scan returning with max=02
[    1.290103] pci 0000:00:01.0: fixup irq: got 0
[    1.290110] pci 0000:00:01.0: assigning IRQ 00
[    1.290120] pci 0000:00:02.0: fixup irq: got 0
[    1.290127] pci 0000:00:02.0: assigning IRQ 00
[    1.290152] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.295184] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.300343] pcieport 0000:00:01.0: enabling bus mastering
[    1.300419] pcieport 0000:00:02.0: enabling bus mastering
[    1.301201] mv_xor f1060800.dma-engine: Marvell shared XOR driver
[    1.369164] mv_xor f1060800.dma-engine: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    1.377700] mv_xor f1060900.dma-engine: Marvell shared XOR driver
[    1.439094] mv_xor f1060900.dma-engine: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    1.568952] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.578987] console [ttyS0] disabled
[    1.583188] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 21, base_baud = 10416666) is a 16550A
[    1.592452] console [ttyS0] enabled
[    1.599623] bootconsole [earlycon0] disabled
[    1.609336] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 22, base_baud = 10416666) is a 16550A
[    1.619968] sata_mv f10a0000.sata-host: version 1.28
[    1.620123] sata_mv f10a0000.sata-host: slots 32 ports 1
[    1.637368] scsi host0: sata_mv
[    1.640980] ata1: SATA max UDMA/133 irq 33
[    1.646949] m25p80 spi0.0: sst25vf080b (1024 Kbytes)
[    1.652121] 4 cmdlinepart partitions found on MTD device spi0.0
[    1.658423] Creating 4 MTD partitions on "spi0.0":
[    1.663193] 0x000000000000-0x0000000c0000 : "u-boot"
[    1.680324] 0x0000000c0000-0x0000000c2000 : "uboot_env"
[    1.697122] 0x0000000c2000-0x0000000c4000 : "pu_env"
[    1.713851] 0x0000000c4000-0x0000000c6000 : "hp_env"
[    1.732695] libphy: Fixed MDIO Bus: probed
[    1.739636] libphy: orion_mdio_bus: probed
[    1.750984] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.859437] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address f4:ce:46:25:c9:fa
[    1.869085] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.875898] ehci-pci: EHCI PCI platform driver
[    1.880491] ehci-orion: EHCI orion driver
[    1.884740] orion-ehci f1050000.usb-host: EHCI Host Controller
[    1.890647] orion-ehci f1050000.usb-host: new USB bus registered, assigned bus number 1
[    1.898899] orion-ehci f1050000.usb-host: irq 26, io mem 0xf1050000
[    1.928154] orion-ehci f1050000.usb-host: USB 2.0 started, EHCI 1.00
[    1.934737] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.941539] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.948761] usb usb1: Product: EHCI Host Controller
[    1.953616] usb usb1: Manufacturer: Linux 4.12.4-mvebu-tld-1 ehci_hcd
[    1.960060] usb usb1: SerialNumber: f1050000.usb-host
[    1.965821] hub 1-0:1.0: USB hub found
[    1.969764] hub 1-0:1.0: 1 port detected
[    1.974213] orion-ehci f1051000.usb-host: EHCI Host Controller
[    1.980096] orion-ehci f1051000.usb-host: new USB bus registered, assigned bus number 2
[    1.988231] orion-ehci f1051000.usb-host: irq 27, io mem 0xf1051000
[    2.018167] orion-ehci f1051000.usb-host: USB 2.0 started, EHCI 1.00
[    2.024683] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    2.031470] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.038676] usb usb2: Product: EHCI Host Controller
[    2.043532] usb usb2: Manufacturer: Linux 4.12.4-mvebu-tld-1 ehci_hcd
[    2.049958] usb usb2: SerialNumber: f1051000.usb-host
[    2.055682] hub 2-0:1.0: USB hub found
[    2.059620] hub 2-0:1.0: 1 port detected
[    2.064593] usbcore: registered new interface driver usblp
[    2.070510] usbcore: registered new interface driver usb-storage
[    2.076973] mousedev: PS/2 mouse device common for all mice
[    2.083872] rtc-mv f10d8500.real-time-clock: rtc core: registered f10d8500.real-time- as rtc0
[    2.093199] i2c /dev entries driver
[    2.099327] orion_wdt: Initial timeout 25 sec
[    2.106883] marvell-cesa f1030000.crypto-engine: CESA device successfully registered
[    2.115110] hidraw: raw HID events driver (C) Jiri Kosina
[    2.121484] usbcore: registered new interface driver usbhid
[    2.127035] usbhid: USB HID core driver
[    2.131494] drop_monitor: Initializing network drop monitor service
[    2.137783] Netfilter messages via NETLINK v0.30.
[    2.142548] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl F300)
[    2.149355] ata1.00: ATA-7: JMicron, 100415, max UDMA/133
[    2.149362] ata1.00: 946176 sectors, multi 1: LBA48 
[    2.155111] ata1.00: configured for UDMA/133
[    2.164593] ip_set: protocol 6
[    2.167932] NET: Registered protocol family 10
[    2.173233] scsi 0:0:0:0: Direct-Access     ATA      JMicron          15   PQ: 0 ANSI: 5
[    2.174702] sd 0:0:0:0: [sda] 946176 512-byte logical blocks: (484 MB/462 MiB)
[    2.174764] sd 0:0:0:0: [sda] Write Protect is off
[    2.174773] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    2.174875] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    2.184525]  sda: sda1
[    2.185906] sd 0:0:0:0: [sda] Attached SCSI disk
[    2.225759] Segment Routing with IPv6
[    2.229434] random: fast init done
[    2.232950] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.240580] NET: Registered protocol family 17
[    2.245056] 8021q: 802.1Q VLAN Support v1.8
[    2.249715] Key type dns_resolver registered
[    2.254150] ThumbEE CPU extension supported.
[    2.258548] Registering SWP/SWPB emulation handler
[    2.263314] PJ4 iWMMXt v2 coprocessor enabled.
[    2.268614] registered taskstats version 1
[    2.272697] Loading compiled-in X.509 certificates
[    2.277517] zswap: loaded using pool lzo/zbud
[    2.297350] Key type big_key registered
[    2.308001] Key type encrypted registered
[    2.314384] rtc-mv f10d8500.real-time-clock: setting system clock to 2018-09-11 22:17:14 UTC (1536704234)
[    2.324405] PM: Hibernation image not present or could not be loaded.
[    2.326512] Freeing unused kernel memory: 1024K
[    2.331115] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.518661] usb 1-1: New USB device found, idVendor=058f, idProduct=6254
[    2.525346] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.555502] hub 1-1:1.0: USB hub found
[    2.568541] hub 1-1:1.0: 4 ports detected
[    2.883400] i2c i2c-0: Added multiplexed i2c bus 1
[    2.888295] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    2.938667] i2c i2c-0: Added multiplexed i2c bus 2
[    2.969724] i2c i2c-0: Added multiplexed i2c bus 3
[    3.024432] sdhci: Secure Digital Host Controller Interface driver
[    3.045540] usb 1-1.2: New USB device found, idVendor=058f, idProduct=6387
[    3.045549] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.045555] usb 1-1.2: Product: Mass Storage
[    3.045561] usb 1-1.2: Manufacturer: Generic
[    3.045567] usb 1-1.2: SerialNumber: 0AAAC53D
[    3.046356] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[    3.061667] scsi host1: usb-storage 1-1.2:1.0
[    3.261058] sdhci: Copyright(c) Pierre Ossman
[    3.266245] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.349348] mmc0: SDHCI controller on f1090000.sdio-host [f1090000.sdio-host] using DMA
[    3.429279] mmc1: SDHCI controller on f1092000.sdio-host [f1092000.sdio-host] using DMA
[    4.120245] scsi 1:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 4
[    4.140370] usbcore: registered new interface driver uas
[    4.149200] sd 1:0:0:0: [sdb] 7866368 512-byte logical blocks: (4.03 GB/3.75 GiB)
[    4.168814] sd 1:0:0:0: [sdb] Write Protect is off
[    4.180855] sd 1:0:0:0: [sdb] Mode Sense: 23 00 00 00
[    4.181829] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.217052]  sdb: sdb1
[    4.222697] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[   14.323346] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   14.351983] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[   17.010736] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   17.018310] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   19.276953] EXT4-fs (sdb1): re-mounted. Opts: (null)
[   19.523123] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[   21.558470] random: crng init done
[   22.170579] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   24.670647] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   24.680492] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
root@debian:~# 

Re: Debian on HP Thin Client T5335z
September 12, 2018 02:26PM
Hi bodhi,

during the kernel upgrade the following message is shown. Is this OK or are there files / directories missing?

 Hmm. There is a symbolic link /lib/modules/4.18.5-mvebu-tld-1/build
 However, I can not read it: No such file or directory
 Therefore, I am deleting /lib/modules/4.18.5-mvebu-tld-1/build


 Hmm. The package shipped with a symbolic link /lib/modules/4.18.5-mvebu-tld-1/source
 However, I can not read the target: No such file or directory
 Therefore, I am deleting /lib/modules/4.18.5-mvebu-tld-1/source

Also when I reboot the device it goes back to stock. Is it OK to do save the uboot settings to boot into Debian?

Koen
Re: Debian on HP Thin Client T5335z
September 12, 2018 07:26PM
Koen Wrote:
-------------------------------------------------------
> Hi bodhi,
>
> during the kernel upgrade the following message is
> shown. Is this OK or are there files / directories
> missing?
>
>
>  Hmm. There is a symbolic link
> /lib/modules/4.18.5-mvebu-tld-1/build
>  However, I can not read it: No such file or
> directory
>  Therefore, I am deleting
> /lib/modules/4.18.5-mvebu-tld-1/build
> 
> 
>  Hmm. The package shipped with a symbolic link
> /lib/modules/4.18.5-mvebu-tld-1/source
>  However, I can not read the target: No such file
> or directory
>  Therefore, I am deleting
> /lib/modules/4.18.5-mvebu-tld-1/source
>

These warnings are ok. You can ignore them.

>
> Also when I reboot the device it goes back to
> stock. Is it OK to do save the uboot settings to
> boot into Debian?
>

Yes. It is safe to save uboot envs now. My box has been booted quite often during testing with those saved envs.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
September 12, 2018 11:12PM
I've updated the instruction to add step 5:

https://forum.doozan.com/read.php?2,66989,67269#msg-67269

Quote

5. To make it permannently boot into Debian rootfs on USB, and boot to stock OS when the USB rootfs is not attached:

fw_setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial'
fw_setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x2000000 /boot/uImage; ext2load usb 0:1 0x3000000 /boot/uInitrd'
fw_setenv bootcmd_exec 'run set_bootargs; run bootcmd_usb; bootm 0x2000000 0x3000000'
fw_setenv bootcmd 'run bootcmd_exec; run thinpro'

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
September 16, 2018 04:45PM
Let's try this new DTB.

And probably we need the video to be precisely what we want. However I am not quite sure what the correct parameter is (could not find anybody using the Armada DRM). Let's try armada-drm (it's the name of the module). I don't think we need resolution or device.

set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} video=armada-drm splash quiet earlyprintk=serial
If you have serial console, you will not see the kernel booting until the rootfs mouting. Hopefully you will see the display exhibits some different behavior. ATM, I don't have a monitor to test with (I've been traveling light with only laptops in the house and gave/donated all my monitors away:) Next week I should be able to connect a monitor to this box.


Please post your serial boot log and dmesg.

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - dove-hp-t5335z.dtb (13.9 KB)
open | download - dove-hp-t5335z.dts (2 KB)
Re: Debian on HP Thin Client T5335z
September 17, 2018 03:48PM
Hi bodhi,

I've not seen any response on my monitor. Below are the different logs.

Koen

serial:

HP>> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} video=armada-drm splash quiet earlyprintk=serial'
HP>> saveenv
Saving Environment to SPI Flash...
Erasing 0xc0000 - 0xc2000:      [Done]
Writing to SPI flash:           [Done]
Erasing 0xc2000 - 0xc4000:      [Done]
Writing to SPI flash:           [Done]
Erasing 0xc4000 - 0xc6000:      [Done]
Writing to SPI flash:           [Done]
HP>> 
HP>> boot
Resethub..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)
4466108 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
8228254 bytes read
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.18.5-mvebu-tld-1
   Created:      2018-09-17  20:01:27 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4466044 Bytes =  4.3 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-4.18.5-mvebu-tld-1
   Created:      2018-09-12  20:57:34 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8228190 Bytes =  7.8 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
rootfs: clean, 28757/245760 files, 298568/981504 blocks
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.29.2
done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[....] 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/f4:ce:46:25:c9:fa
Sending on   LPF/eth0/f4:ce:46:25:c9:fa
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 13
DHCPREQUEST of 192.168.1.164 on eth0 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.164 from 192.168.1.1
DHCPACK of 192.168.1.164 from 192.168.1.1
bound to 192.168.1.164 -- renewal in 20917 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
[ ok ] Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix.
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2537 (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...
2535 (klogd)
. ok 
[ ok ] Starting NTP server: ntpd.

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Mon Sep 17 13:05:43 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.164
HP Thin Client T5335z
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 Sep 17 14:40:33 PDT 2018 up 1 minute
root@debian:~#


dmesg:

root@debian:~# dmesg
[    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 [560f5815] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: HP Thin Client T5335z
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 262144
[    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] 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] pcpu-alloc: s41548 r8192 d23988 u73728 alloc=18*4096
[    0.000000] pcpu-alloc: [0] 0 
[    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(u-boot),8k(uboot_env),8k(pu_env),8k(hp_env) video=armada-drm splash quiet 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: 1016964K/1048576K available (9216K kernel code, 790K rwdata, 2304K rodata, 1024K init, 327K bss, 31612K 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 : 0x(ptrval) - 0x(ptrval)   (10208 kB)
                     .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
                     .data : 0x(ptrval) - 0x(ptrval)   ( 791 kB)
                      .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] 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.000038] Switching to timer-based delay loop, resolution 6ns
[    0.000746] Console: colour dummy device 80x30
[    0.000776] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[    0.000791] pid_max: default: 32768 minimum: 301
[    0.001017] Security Framework initialized
[    0.001122] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001141] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002083] CPU: Testing write buffer coherency: ok
[    0.002431] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.060185] Setting up static identity map for 0x100000 - 0x100060
[    0.080098] Hierarchical SRCU implementation.
[    0.120096] smp: Bringing up secondary CPUs ...
[    0.120109] smp: Brought up 1 node, 1 CPU
[    0.120118] SMP: Total of 1 processors activated (333.33 BogoMIPS).
[    0.120123] CPU: All CPU(s) started in SVC mode.
[    0.121047] devtmpfs: initialized
[    0.130392] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 5
[    0.131108] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.131127] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.131407] prandom: seed boundary self test passed
[    0.134418] prandom: 100 self tests passed
[    0.134425] pinctrl core: initialized pinctrl subsystem
[    0.135669] NET: Registered protocol family 16
[    0.136480] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.136985] audit: initializing netlink subsys (disabled)
[    0.137370] audit: type=2000 audit(0.130:1): state=initialized audit_enabled=0 res=1
[    0.144147] cpuidle: using governor ladder
[    0.144225] cpuidle: using governor menu
[    0.144525] Dove 88AP510 SoC
[    0.144546] Tauros2: Disabling L2 prefetch.
[    0.144551] Tauros2: Disabling burst8 line fill.
[    0.144555] Tauros2: Enabling L2 cache.
[    0.144560] Tauros2: L2 cache support initialised in ARMv7 mode.
[    0.144929] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.241109] vgaarb: loaded
[    0.241432] SCSI subsystem initialized
[    0.250175] libata version 3.00 loaded.
[    0.250412] usbcore: registered new interface driver usbfs
[    0.250470] usbcore: registered new interface driver hub
[    0.250523] usbcore: registered new device driver usb
[    0.250751] media: Linux media interface: v0.10
[    0.250797] videodev: Linux video capture interface: v2.00
[    0.250898] pps_core: LinuxPPS API ver. 1 registered
[    0.250904] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.250925] PTP clock support registered
[    0.255317] clocksource: Switched to clocksource orion_clocksource
[    0.337072] VFS: Disk quotas dquot_6.6.0
[    0.337155] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.356432] NET: Registered protocol family 2
[    0.357640] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.357664] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.357724] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.357804] TCP: Hash tables configured (established 8192 bind 8192)
[    0.357904] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.357931] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.358162] NET: Registered protocol family 1
[    0.388846] RPC: Registered named UNIX socket transport module.
[    0.388853] RPC: Registered udp transport module.
[    0.388858] RPC: Registered tcp transport module.
[    0.388862] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.388872] PCI: CLS 0 bytes, default 64
[    0.389070] Unpacking initramfs...
[    0.891714] Freeing initrd memory: 8036K
[    0.892003] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.894583] Initialise system trusted keyrings
[    0.894625] Key type blacklist registered
[    0.895877] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.895984] zbud: loaded
[    0.907006] NFS: Registering the id_resolver key type
[    0.907031] Key type id_resolver registered
[    0.907035] Key type id_legacy registered
[    0.907049] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.907055] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.907302] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.907845] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.908021] orangefs_init: module version upstream loaded
[    0.914267] Key type asymmetric registered
[    0.914275] Asymmetric key parser 'x509' registered
[    0.914340] bounce: pool size: 64 pages
[    0.914416] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    0.914423] io scheduler noop registered
[    0.914429] io scheduler deadline registered
[    0.914495] io scheduler cfq registered (default)
[    0.916151] dove-pinctrl f10d0200.pin-ctrl: falling back to hardcoded PMU resource
[    0.916346] dove-pinctrl f10d0200.pin-ctrl: [Firmware Bug]: Missing pinctrl regs in DTB. Please update your firmware.
[    0.917020] dove-pinctrl f10d0200.pin-ctrl: registered pinctrl driver
[    0.922933] mvebu-pcie mbus:pcie: PCI host bridge to bus 0000:00
[    0.922948] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.922957] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.922967] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.922976] pci_bus 0000:00: scanning bus
[    0.923081] pci 0000:00:01.0: [11ab:0510] type 01 class 0x060400
[    0.923689] pci 0000:00:02.0: [11ab:0510] type 01 class 0x060400
[    0.926272] pci_bus 0000:00: fixups for bus
[    0.926289] PCI: bus0: Fast back to back transfers disabled
[    0.926302] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    0.926311] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.926325] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 0
[    0.926333] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.926346] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    0.926578] pci_bus 0000:01: scanning bus
[    0.927658] pci_bus 0000:01: fixups for bus
[    0.927664] PCI: bus1: Fast back to back transfers enabled
[    0.927672] pci_bus 0000:01: bus scan returning with max=01
[    0.927684] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.927698] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 1
[    0.927889] pci_bus 0000:02: scanning bus
[    0.928966] pci_bus 0000:02: fixups for bus
[    0.928973] PCI: bus2: Fast back to back transfers enabled
[    0.928981] pci_bus 0000:02: bus scan returning with max=02
[    0.928990] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    0.929001] pci_bus 0000:00: bus scan returning with max=02
[    0.929028] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.929045] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.929124] pcieport 0000:00:01.0: assign IRQ: got 0
[    0.929146] pcieport 0000:00:01.0: enabling bus mastering
[    0.929214] pcieport 0000:00:02.0: assign IRQ: got 0
[    0.929229] pcieport 0000:00:02.0: enabling bus mastering
[    0.930310] mv_xor f1060800.dma-engine: Marvell shared XOR driver
[    0.986327] mv_xor f1060800.dma-engine: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.986733] mv_xor f1060900.dma-engine: Marvell shared XOR driver
[    1.046289] mv_xor f1060900.dma-engine: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.170961] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.176161] console [ttyS0] disabled
[    1.176218] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 21, base_baud = 10416666) is a 16550A
[    1.176262] console [ttyS0] enabled
[    1.176268] bootconsole [earlycon0] disabled
[    1.177382] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 22, base_baud = 10416666) is a 16550A
[    1.179952] sata_mv f10a0000.sata-host: version 1.28
[    1.180111] sata_mv f10a0000.sata-host: slots 32 ports 1
[    1.192100] scsi host0: sata_mv
[    1.192360] ata1: SATA max UDMA/133 irq 33
[    1.194537] m25p80 spi0.0: sst25vf080b (1024 Kbytes)
[    1.194559] 4 cmdlinepart partitions found on MTD device spi0.0
[    1.194565] Creating 4 MTD partitions on "spi0.0":
[    1.194575] 0x000000000000-0x0000000c0000 : "u-boot"
[    1.196055] 0x0000000c0000-0x0000000c2000 : "uboot_env"
[    1.197039] 0x0000000c2000-0x0000000c4000 : "pu_env"
[    1.197972] 0x0000000c4000-0x0000000c6000 : "hp_env"
[    1.200082] libphy: Fixed MDIO Bus: probed
[    1.200853] libphy: orion_mdio_bus: probed
[    1.217136] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.316357] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address f4:ce:46:25:c9:fa
[    1.316892] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.316921] ehci-pci: EHCI PCI platform driver
[    1.316980] ehci-orion: EHCI orion driver
[    1.317142] orion-ehci f1050000.usb-host: EHCI Host Controller
[    1.317179] orion-ehci f1050000.usb-host: new USB bus registered, assigned bus number 1
[    1.317427] orion-ehci f1050000.usb-host: irq 26, io mem 0xf1050000
[    1.345287] orion-ehci f1050000.usb-host: USB 2.0 started, EHCI 1.00
[    1.345657] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18
[    1.345667] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.345674] usb usb1: Product: EHCI Host Controller
[    1.345682] usb usb1: Manufacturer: Linux 4.18.5-mvebu-tld-1 ehci_hcd
[    1.345689] usb usb1: SerialNumber: f1050000.usb-host
[    1.346353] hub 1-0:1.0: USB hub found
[    1.346458] hub 1-0:1.0: 1 port detected
[    1.346994] orion-ehci f1051000.usb-host: EHCI Host Controller
[    1.347019] orion-ehci f1051000.usb-host: new USB bus registered, assigned bus number 2
[    1.347170] orion-ehci f1051000.usb-host: irq 27, io mem 0xf1051000
[    1.375281] orion-ehci f1051000.usb-host: USB 2.0 started, EHCI 1.00
[    1.375596] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.18
[    1.375607] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.375614] usb usb2: Product: EHCI Host Controller
[    1.375621] usb usb2: Manufacturer: Linux 4.18.5-mvebu-tld-1 ehci_hcd
[    1.375628] usb usb2: SerialNumber: f1051000.usb-host
[    1.376236] hub 2-0:1.0: USB hub found
[    1.376331] hub 2-0:1.0: 1 port detected
[    1.377279] usbcore: registered new interface driver usblp
[    1.377390] usbcore: registered new interface driver usb-storage
[    1.378139] mousedev: PS/2 mouse device common for all mice
[    1.379263] rtc-mv f10d8500.real-time-clock: rtc core: registered f10d8500.real-time-clock as rtc0
[    1.379685] i2c /dev entries driver
[    1.382321] orion_wdt: Initial timeout 25 sec
[    1.387844] marvell-cesa f1030000.crypto-engine: CESA device successfully registered
[    1.388150] hidraw: raw HID events driver (C) Jiri Kosina
[    1.388661] usbcore: registered new interface driver usbhid
[    1.388666] usbhid: USB HID core driver
[    1.389027] drop_monitor: Initializing network drop monitor service
[    1.389482] NET: Registered protocol family 10
[    1.401222] Segment Routing with IPv6
[    1.401306] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.403043] NET: Registered protocol family 17
[    1.403104] 8021q: 802.1Q VLAN Support v1.8
[    1.403147] Key type dns_resolver registered
[    1.403425] ThumbEE CPU extension supported.
[    1.403436] Registering SWP/SWPB emulation handler
[    1.403442] PJ4 iWMMXt v2 coprocessor enabled.
[    1.404335] registered taskstats version 1
[    1.404341] Loading compiled-in X.509 certificates
[    1.404403] zswap: loaded using pool lzo/zbud
[    1.421399] Key type big_key registered
[    1.428847] Key type encrypted registered
[    1.432174] rtc-mv f10d8500.real-time-clock: setting system clock to 2018-09-17 21:39:33 UTC (1537220373)
[    1.432363] lcd-power: disabling
[    1.685279] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl F300)
[    1.687621] ata1.00: ATA-7: JMicron, 100415, max UDMA/133
[    1.687629] ata1.00: 946176 sectors, multi 1: LBA48 
[    1.690067] ata1.00: configured for UDMA/133
[    1.690652] scsi 0:0:0:0: Direct-Access     ATA      JMicron          15   PQ: 0 ANSI: 5
[    1.692083] sd 0:0:0:0: [sda] 946176 512-byte logical blocks: (484 MB/462 MiB)
[    1.692152] sd 0:0:0:0: [sda] Write Protect is off
[    1.692162] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    1.692276] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    1.694112]  sda: sda1
[    1.695545] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.697451] Freeing unused kernel memory: 1024K
[    1.699373] Checked W+X mappings: passed, no W+X pages found
[    1.715373] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    1.798047] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    1.798638] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    1.798745] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    1.915811] usb 1-1: New USB device found, idVendor=058f, idProduct=6254, bcdDevice= 1.00
[    1.915825] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.918773] hub 1-1:1.0: USB hub found
[    1.918935] hub 1-1:1.0: 4 ports detected
[    2.229104] i2c i2c-0: Added multiplexed i2c bus 1
[    2.235349] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[    2.247139] i2c i2c-0: Added multiplexed i2c bus 2
[    2.249158] i2c i2c-0: Added multiplexed i2c bus 3
[    2.372486] sdhci: Secure Digital Host Controller Interface driver
[    2.372493] sdhci: Copyright(c) Pierre Ossman
[    2.373159] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.374102] mmc0 bounce up to 128 segments into one, max segment size 65536 bytes
[    2.392567] usb 1-1.1: New USB device found, idVendor=058f, idProduct=6387, bcdDevice= 1.05
[    2.392580] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.392587] usb 1-1.1: Product: Mass Storage
[    2.392594] usb 1-1.1: Manufacturer: Generic
[    2.392601] usb 1-1.1: SerialNumber: 0AAAC53D
[    2.393350] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[    2.409063] scsi host1: usb-storage 1-1.1:1.0
[    2.429000] mmc0: SDHCI controller on f1090000.sdio-host [f1090000.sdio-host] using DMA
[    2.429465] mmc1 bounce up to 128 segments into one, max segment size 65536 bytes
[    2.455395] mmc1: SDHCI controller on f1092000.sdio-host [f1092000.sdio-host] using DMA
[    2.589607] random: fast init done
[    3.447657] scsi 1:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 4
[    3.450345] sd 1:0:0:0: [sdb] 7866368 512-byte logical blocks: (4.03 GB/3.75 GiB)
[    3.451209] sd 1:0:0:0: [sdb] Write Protect is off
[    3.451220] sd 1:0:0:0: [sdb] Mode Sense: 23 00 00 00
[    3.452088] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    3.460336]  sdb: sdb1
[    3.463850] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[    3.609008] usbcore: registered new interface driver uas
[   14.124878] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   14.146212] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[   16.946733] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   16.946965] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   19.428896] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[   21.301876] random: crng init done
[   21.301887] random: 7 urandom warning(s) missed due to ratelimiting
[   22.006215] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   23.905350] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[   23.905416] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
root@debian:~#

Xorg:

root@debian:~# cat /var/log/Xorg.0.log
[   232.571] 
X.Org X Server 1.19.2
Release Date: 2017-03-02
[   232.571] X Protocol Version 11, Revision 0
[   232.571] Build Operating System: Linux 4.9.0-4-armmp-lpae armv7l Debian
[   232.571] Current Operating System: Linux debian 4.18.5-mvebu-tld-1 #1 SMP PREEMPT Thu Aug 30 22:19:21 PDT 2018 armv7l
[   232.571] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:768k(u-boot),8k(uboot_env),8k(pu_env),8k(hp_env) video=armada-drm splash quiet earlyprintk=serial
[   232.571] Build Date: 16 October 2017  09:48:39AM
[   232.571] xorg-server 2:1.19.2-1+deb9u2 (https://www.debian.org/support) 
[   232.572] Current version of pixman: 0.34.0
[   232.572]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   232.572] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   232.572] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Sep 17 14:43:24 2018
[   232.572] (II) Loader magic: 0x616f60
[   232.572] (II) Module ABI versions:
[   232.572]    X.Org ANSI C Emulation: 0.4
[   232.572]    X.Org Video Driver: 23.0
[   232.572]    X.Org XInput driver : 24.1
[   232.572]    X.Org Server Extension : 10.0
[   232.576] (--) using VT number 7

[   232.576] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[   232.577] (II) no primary bus or device found
[   232.578] List of video drivers:
[   232.578]    amdgpu
[   232.579]    ati
[   232.579]    nouveau
[   232.579]    radeon
[   232.579]    modesetting
[   232.579]    vesa
[   232.579]    fbdev
[   232.579] (II) LoadModule: "amdgpu"
[   232.579] (II) Loading /usr/lib/xorg/modules/drivers/amdgpu_drv.so
[   232.619] (II) Module amdgpu: vendor="X.Org Foundation"
[   232.619]    compiled for 1.19.0, module version = 1.2.0
[   232.620]    Module class: X.Org Video Driver
[   232.620]    ABI class: X.Org Video Driver, version 23.0
[   232.620] (II) LoadModule: "ati"
[   232.620] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
[   232.624] (II) Module ati: vendor="X.Org Foundation"
[   232.624]    compiled for 1.19.0, module version = 7.8.0
[   232.625]    Module class: X.Org Video Driver
[   232.625]    ABI class: X.Org Video Driver, version 23.0
[   232.625] (II) LoadModule: "nouveau"
[   232.625] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[   232.645] (II) Module nouveau: vendor="X.Org Foundation"
[   232.645]    compiled for 1.19.3, module version = 1.0.13
[   232.645]    Module class: X.Org Video Driver
[   232.645]    ABI class: X.Org Video Driver, version 23.0
[   232.645] (II) LoadModule: "radeon"
[   232.645] (II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
[   232.675] (II) Module radeon: vendor="X.Org Foundation"
[   232.675]    compiled for 1.19.0, module version = 7.8.0
[   232.675]    Module class: X.Org Video Driver
[   232.675]    ABI class: X.Org Video Driver, version 23.0
[   232.675] (II) LoadModule: "modesetting"
[   232.675] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   232.690] (II) Module modesetting: vendor="X.Org Foundation"
[   232.690]    compiled for 1.19.2, module version = 1.19.2
[   232.690]    Module class: X.Org Video Driver
[   232.690]    ABI class: X.Org Video Driver, version 23.0
[   232.690] (II) LoadModule: "vesa"
[   232.691] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[   232.693] (II) Module vesa: vendor="X.Org Foundation"
[   232.693]    compiled for 1.19.0, module version = 2.3.4
[   232.693]    Module class: X.Org Video Driver
[   232.693]    ABI class: X.Org Video Driver, version 23.0
[   232.693] (II) LoadModule: "fbdev"
[   232.694] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[   232.696] (II) Module fbdev: vendor="X.Org Foundation"
[   232.696]    compiled for 1.19.0, module version = 0.4.4
[   232.696]    Module class: X.Org Video Driver
[   232.696]    ABI class: X.Org Video Driver, version 23.0
[   232.697] (WW) Falling back to old probe method for modesetting
[   232.697] (WW) Falling back to old probe method for vesa
[   232.697] (WW) Falling back to old probe method for fbdev
[   232.697] No devices to configure.  Configuration failed.
[   232.697] (EE) Server terminated with error (2). Closing log file.
root@debian:~# 
Re: Debian on HP Thin Client T5335z
September 17, 2018 04:01PM
Hi Koen,

Thanks for trying!

> HP>> setenv set_bootargs 'setenv bootargs
> console=ttyS0,115200 root=LABEL=rootfs
> rootdelay=10 ${mtdparts} video=armada-drm splash
> quiet earlyprintk=serial'

> HP>> saveenv

BTW, you should not do saveenv while testing. That way, the new setting will be applicable only for this boot, and after reboot the box will go back to previous state.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
September 23, 2018 12:20PM
I got sound device to come up! but the module was not loaded automatically at boot (it should have been). Most likely we need to solve the pintctl register issue to get that (and I suspect also the display).

root@T5335z:/boot# modprobe snd-soc-alc5623

root@T5335z:~# dmesg 
[  344.593967] asoc-simple-card sound: alc5621-hifi <-> i2s mapping ok

root@T5335z:~# cat /proc/asound/cards
0 [i2salc5621hifi ]: i2s-alc5621-hif - i2s-alc5621-hifi
                      i2s-alc5621-hifi

root@T5335z:/boot# cat /proc/asound/devices
2: [ 0- 0]: digital audio playback
  3: [ 0- 0]: digital audio capture
  4: [ 0]   : control
 33:        : timer

I have not yet atached a speaker to the box.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
September 24, 2018 01:06PM
Here is a new DTB to activate sound.

This will be applicable to the Wyse T50 and the Chip LXD8941, too. So I will upload their DTBs in those threads.

After booting up with the new DTB, modprobe the sound module:
modprobe snd_soc_alc5623
And then do the follwing set up.


Set up by Gravelrash:

Quote
https://forum.doozan.com/read.php?9,26687,26687#msg-26687

CONFIGURE SOUND

ensure you have the latest dtb for the device as of the time of writing this use the following link, for kernels and rootfs beyond 4.5 the relevant dtb should be included in the downloaded rootfs

Change /usr/share/alsa/alsa.conf as following:
#pcm.front cards.pcm.front
pcm.front cards.pcm.default


Turn up the sound using alsamixer, select the onboard sound card and use the m key to toggle mute:
Speaker Mix DAC2SPK
HP Mix DAC2HP
Left Headphone Mux [HP Left Mix]
Right Headphone Mux [HP Right Mix]
Sliders:(up/down key)
Headphone
Speaker
PCM
issue alsactl store when configuration complete

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - dove-hp-t5335z.dtb (14.6 KB)
open | download - dove-hp-t5335z.dts (2.9 KB)
Re: Debian on HP Thin Client T5335z
September 24, 2018 05:36PM
Somehow the sound on my HP T5335Z doesn't work. I've appended the new dtb file, rebooted the device, loaded the module and installed alsa-utils, mpg123 and mplayer to be able to play a test .mp3 file.

Module                  Size  Used by
joydev                 20480  0
snd_soc_alc5623        36864  1
snd_soc_simple_card    16384  0
snd_soc_simple_card_utils    16384  1 snd_soc_simple_card
snd_soc_kirkwood       20480  1
snd_soc_core          143360  4 snd_soc_kirkwood,snd_soc_simple_card_utils,snd_soc_alc5623,snd_soc_simple_card
snd_pcm_dmaengine      16384  1 snd_soc_core
ac97_bus               16384  1 snd_soc_core
snd_pcm                81920  4 snd_soc_kirkwood,snd_pcm_dmaengine,snd_soc_alc5623,snd_soc_core
snd_timer              28672  1 snd_pcm
snd                    57344  3 snd_timer,snd_soc_core,snd_pcm
sg                     32768  0
soundcore              16384  1 snd
uio_pdrv_genirq        16384  0
uio                    20480  1 uio_pdrv_genirq
uas                    20480  0
armada                 45056  0
drm_kms_helper        114688  1 armada
cfbfillrect            16384  1 drm_kms_helper
syscopyarea            16384  1 drm_kms_helper
cfbimgblt              16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
cfbcopyarea            16384  1 drm_kms_helper
drm                   294912  2 armada,drm_kms_helper
drm_panel_orientation_quirks    16384  1 drm
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:~#

 Card: i2s-alc5621-hifi                                                                                     F1:  Help               │
│ Chip:                                                                                                      F2:  System information │
│ View: F3:[Playback] F4: Capture  F5: All                                                                   F6:  Select sound card  │
│ Item: Headphone [dB gain: 0.00, 0.00]                                                                      Esc: Exit               │
│                                                                                                                                    │
│                                                                                                                                    │
│                                                                                                                                    │
│                                                                                                                                    │
│     ┌──┐     ┌──┐                                                                    ┌──┐     ┌──┐     ┌──┐              ┌──┐      │
│     │▒▒│     │▒▒│                                                                    │▒▒│     │  │     │  │              │▒▒│      │
│     │▒▒│     │▒▒│                                                                    │▒▒│     │  │     │  │              │▒▒│      │
│     │▒▒│     │▒▒│                                                                    │▒▒│     │  │     │  │              │▒▒│      │
│     │▒▒│     │▒▒│                                                                    │▒▒│     │  │     │  │              │▒▒│      >
│     │▒▒│     │▒▒│                                                                    │▒▒│     │  │     │  │              │▒▒│      >
│     │▒▒│     │▒▒│                                                                    │▒▒│     │  │     │  │              │▒▒│      >
│     │▒▒│     │▒▒│                                                                    │▒▒│     │  │     │  │              │▒▒│      >
│     │▒▒│     │▒▒│                                                                    │▒▒│     │  │     │  │              │▒▒│      >
│     │▒▒│     │▒▒│                                                                    │▒▒│     │  │     │  │              │▒▒│      >
│     │▒▒│     │▒▒│                                                                    │▒▒│     │  │     │  │              │▒▒│      >
│     │▒▒│     │▒▒│                                                                    │▒▒│     │  │     │  │              │▒▒│      >
│     │▒▒│     │▒▒│                                                                    │▒▒│     │  │     │  │              │▒▒│      >
│     │▒▒│     │▒▒│                                                                    │▒▒│     │  │     │  │              │▒▒│      >
│     │▒▒│     │▒▒│                                                                    │▒▒│     │  │     │  │              │▒▒│      >
│     │▒▒│     │▒▒│                                                                    │▒▒│     │  │     │  │              │▒▒│      │
│     │▒▒│     │▒▒│                                                                    │▒▒│     │  │     │  │              │▒▒│      │
│     │▒▒│     │▒▒│                                                                    │▒▒│     │  │     │  │              │▒▒│      │
│     ├──┤     ├──┤     ┌──┐     ┌──┐     ┌──┐     ┌──┐     ┌──┐   Speaker    Vmid     └──┘     └──┘     └──┘     Vmid     ├──┤      │
│     │OO│     │OO│     │MM│     │OO│     │MM│     │MM│     │MM│                                                           │MM│      │
│     └──┘     └──┘     └──┘     └──┘     └──┘     └──┘     └──┘                                                           └──┘      │
│   100<>100 100<>100                                                                100<>100    0        0              100<>100    │
│  <Headphon>Speaker  Speaker  Speaker  Speaker  Speaker  Speaker  SpeakerO SpeakerO   PCM    Mic 1 Bo Mic 2 Bo AuxOut M  Auxout     │


Card: i2s-alc5621-hifi                                                                                     F1:  Help               │
│ Chip:                                                                                                      F2:  System information │
│ View: F3:[Playback] F4: Capture  F5: All                                                                   F6:  Select sound card  │
│ Item: HP Mix MIC12HP [Off]                                                                                 Esc: Exit               │
│                                                                                                                                    │
│                                                                                                                                    │
│                                                                                                                                    │
│                                                                                                                                    │
│     ┌──┐                                                                             ┌──┐                                          │
│     │▒▒│                                                                             │▒▒│                                          │
│     │▒▒│                                                                             │▒▒│                                          │
│     │▒▒│                                                                             │▒▒│                                          │
<     │▒▒│                                                                             │▒▒│                                          >
<     │▒▒│                                                                             │▒▒│                                          >
<     │▒▒│                                                                             │▒▒│                                          >
<     │▒▒│                                                                             │▒▒│                                          >
<     │▒▒│                                                                             │▒▒│                                          >
<     │▒▒│                                                                             │▒▒│                                          >
<     │▒▒│                                                                             │▒▒│                                          >
<     │▒▒│                                                                             │▒▒│                                          >
<     │▒▒│                                                                             │▒▒│                                          >
<     │▒▒│                                                                             │▒▒│                                          >
<     │▒▒│                                                                             │▒▒│                                          >
│     │▒▒│                                                                             │▒▒│                                          │
│     │▒▒│                                                                             │▒▒│                                          │
│     │▒▒│                                                                             │▒▒│                                          │
│     ├──┤     ┌──┐     ┌──┐     ┌──┐     ┌──┐     ┌──┐     ┌──┐     ┌──┐    AB Amp    └──┘     ┌──┐     ┌──┐     ┌──┐     ┌──┐      │
│     │MM│     │MM│     │MM│     │MM│     │MM│     │MM│     │MM│     │MM│                       │MM│     │OO│     │MM│     │MM│      │
│     └──┘     └──┘     └──┘     └──┘     └──┘     └──┘     └──┘     └──┘                       └──┘     └──┘     └──┘     └──┘      │
│   100<>100                                                                           100                                           │
│    Auxout  Mono Mix Mono Mix Mono Mix Mono Mix Mono Mix Mono Mix Mono Mix AB-D Amp Digital  HP Mix A HP Mix D HP Mix L<HP Mix M>   │
│


 Card: i2s-alc5621-hifi                                                                                     F1:  Help               │
│ Chip:                                                                                                      F2:  System information │
│ View: F3:[Playback] F4: Capture  F5: All                                                                   F6:  Select sound card  │
│ Item: Right Headphone Mux [HP Right Mix]                                                                   Esc: Exit               │
│                                                                                                                                    │
│                                                                                                                                    │
│                                                                                                                                    │
│                                                                                                                                    │
│                                         ┌──┐                                                                                       │
│                                         │▒▒│                                                                                       │
│                                         │▒▒│                                                                                       │
│                                         │▒▒│                                                                                       │
<                                         │▒▒│                                                                                       │
<                                         │▒▒│                                                                                       │
<                                         │▒▒│                                                                                       │
<                                         │▒▒│                                                                                       │
<                                         │▒▒│                                                                                       │
<                                         │▒▒│                                                                                       │
<                                         │▒▒│                                                                                       │
<                                         │▒▒│                                                                                       │
<                                         │▒▒│                                                                                       │
<                                         │▒▒│                                                                                       │
<                                         │▒▒│                                                                                       │
│                                         │▒▒│                                                                                       │
│                                         │▒▒│                                                                                       │
│                                         │▒▒│                                                                                       │
│     ┌──┐     ┌──┐     ┌──┐    AB Amp    └──┘     ┌──┐     ┌──┐     ┌──┐     ┌──┐     ┌──┐     ┌──┐     ┌──┐   HP Left  HP Right    │
│     │MM│     │MM│     │MM│                       │MM│     │OO│     │MM│     │MM│     │MM│     │MM│     │MM│                        │
│     └──┘     └──┘     └──┘                       └──┘     └──┘     └──┘     └──┘     └──┘     └──┘     └──┘                        │
│                                         100                                                                                        │
│   Mono Mix Mono Mix Mono Mix AB-D Amp Digital  HP Mix A HP Mix D HP Mix L HP Mix M HP Mix M HPL Mix  HPR Mix  Left Hea<Right He>   │


This is my alsamixer setup. I tried playing a .mp3 file with both mplayer and mpg123 with a pair of headphones plugged in. I can hear a very faint static but no music.

Koen
Re: Debian on HP Thin Client T5335z
September 24, 2018 05:58PM
Thanks Koen,

I actually had not connected a speaker! I have only observing the card playing the MP3 file, and it was playing Ok.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
September 25, 2018 01:26AM
What I am seeing playing 52 seconds of this song.

root@T5335z:/localdisk# mpg321 -v A.Thousand.Kisses.Deep.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
Version 0.3.2-1 (2012/03/25). Written and copyrights by Joe Drew,
now maintained by Nanakos Chrysostomos and others.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
Title	: A thousand kisses deep (Jackso Artist : Various                       
Album	: Acordes Con Leonard Cohen      Year	 : 2007
Comment :                                Genre : Folk-Rock                     

Playing MPEG stream from A.Thousand.Kisses.Deep.mp3 ...
MPEG 1.0, Layer: III, Freq: 44100, mode: Joint-Stereo, modext: 2, BPF : 2560
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0.
Bitrate: 128 Kbits/s, Extension value: 2
Audio: 1:1 conversion, rate: 44100, encoding: signed 16 bit, channels: 2
^C                                                                            
[0:52] Decoding of A.Thousand.Kisses.Deep.mp3 finished.

Charging the speaker, and will try to see if I can hear sound.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
September 25, 2018 03:30AM
Ok I have no sound either :)

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
September 25, 2018 05:29PM
Koen,

Does the CuBox has SPDIF audio? or just RCA?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
September 25, 2018 05:58PM
I don't own one and it is a bit confusing since they made quite a few different versions. However the wiki page seems to indicate that it has SPDIF.

https://en.wikipedia.org/wiki/CuBox
Re: Debian on HP Thin Client T5335z
September 25, 2018 06:49PM
Yes, I think that's why they use audio1. These boxes like hP T5335z has only simple audio RCA out (headphone). So I've removed audio1. But I still have no sound.

I need to get access to my T5325 to check the audio setings.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
September 26, 2018 01:10AM
I've checked the settings for T5325 and compare against what we have in this box. I've made sure that the devices and alsamixer settings are the same. But still no sound!

I think there is some difference that I have found in the patch yet.

If anybody is interested in investigating, the kernel patches is in the tarball linux-2.6.32.9_patches.tar.gz that Koen has posted the link for previously.

https://forum.doozan.com/read.php?2,66989,67294#msg-67294

patches/linux-2.6.32.9-dove-5.3.6.patch

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
September 30, 2018 03:18PM
I've been reading a lot of old posts on the forum of different boxes and there was one where it took a lot of time to get the 2nd hard drive to work. This required a 'poke' in the memory before booting to power up the 2nd hard drive. In the original uboot environment variables of this device there is a similar 'poke':

mw 0xf10a239c 0x4025

Would this help to power up the audio or display?

Koen

section of the original uboot printenv:

mfg_bootargs=console=ttyS0,115200 vmalloc=384M root=/dev/sdb1 rw rootdelay=12 video=dovefb:lcd0:1024x768-24@60-edid,lcd1:1024x768-16@60-edid clcd.lcd0_enable=1 clcd.lcd1_enable=1 oldI2Cbus=1 cpufreq_disable=1 splash quiet
usb_bootargs=root=/dev/ram video=dovefb oldI2Cbus=1 cpufreq_disable=1
bootusb=sleep 2;usb start;mw 0xf10a239c 0x4025;fatload usb 0:1 0x2000000 /boot/uImage.usb.mc2;fatload usb 0 0x3000000 /boot/uInitrd.usb.mc2
usbboot=setenv bootargs ${mtdparts} ${usb_bootargs}; run bootusb; bootm 0x2000000 0x3000000
thinpro_bootargs=root=/dev/sda1 rw init=/init vmalloc=384M video=dovefb oldI2Cbus=1 cpufreq_disable=1 splash quiet
thinpro=ide reset;mw f10a239c 0x4025;ext2load ide 0:1 0x2000000 /boot/uImage; hprecover; setenv bootargs ${mtdparts}  ${thinpro_bootargs};  bootm 0x2000000
mfgargs=setenv bootargs ${mtdparts} ${mfg_bootargs} init=/init 
mfgboot=sleep 2;usb start;mw 0xf10a239c 0x4025;ext2load usb 0:1 0x2000000 /boot/uImage;run mfgargs;bootm 0x2000000
mfgmode=setenv bootdelay 4; setenv in_mfg Yes; setenvh GotoWOL No; setenvh WOLEnabled No; setenv bootcmd run mfgboot; saveenv; reset
hpmode=setenv bootdelay 0;setenv in_mfg No;setenv bootcmd run thinpro; saveenv; reset
Re: Debian on HP Thin Client T5335z
September 30, 2018 04:03PM
Koen,

> This required a 'poke' in the memory before
> booting to power up the 2nd hard drive. In the
> original uboot environment variables of this
> device there is a similar 'poke':
>
>
> mw 0xf10a239c 0x4025
>
>
> Would this help to power up the audio or display?

I did not think it is display-related (But I need to look at that location to see what's there to be sure). You can try that, it will not hurt.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
October 01, 2018 05:15PM
Temporarily changed the boot command to include the same 'poke' as the stock system.

bootcmd_usb=usb start; mw 0xf10a239c 0x4025; ext2load usb 0:1 0x2000000 /boot/uImage; ext2load usb 0:1 0x3000000 /boot/uInitrd

However I don't see any change in the boot log or dmesg so I'm not sure what this does.

Koen
Re: Debian on HP Thin Client T5335z
October 13, 2018 02:45PM
I've backed up the stock system on the internal memory and wiped it with the plan to install a minimal Debian image as a rescue system. The USB stick would be the primary boot option with the minimal Debian on the internal memory as a rescue / recovery system. However I've realized that the 4.12 rootfs is too big to fit on the internal memory. Is there a way to trim this down or is this not possible?

Koen
Re: Debian on HP Thin Client T5335z
October 13, 2018 03:45PM
Koen,

Instead of trying to trim down, you could use Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2

Quote

Updated 20 Feb 2016:

This Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 is to keep in sync with kernel Linux-4.4.0-kirkwood-tld-1.

Basic minimal Debian Kirkwood rootfs for most Kirwood plugs:

- tarball size: 137M
- install size: 398M
- a basic jessie rootfs.
- The init system used in this rootfs is sysvinit . To boot with systemd, see note 2 below.
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, isc-dhcp-client, dialog, bzip2, nfs server/client, iperf, ethtool, sysvinit-core, sysvinit, and sysvinit-utils.
- see LED controls in /etc/rc.local, and /etc/init.d/halt
- see some useful aliases in /root/.profile
- root password: root

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
October 13, 2018 04:08PM
Ok that one is for kirkwood architecture but I guess I can try this one: Debian-4.9.0-mvebu-tld-9-rootfs-bodhi.tar.bz2 which may just fit.

Koen
Re: Debian on HP Thin Client T5335z
October 13, 2018 04:51PM
Koen,

That won't fit in 512MB.

Quote

Updated 04 Feb 2017:

This Debian-4.9.0-mvebu-tld-12-rootfs-bodhi.tar.bz2 has been uploaded.


Basic Debian jessie armhf rootfs for most MVEBU Armada NAS:

- tarball size: 160M
- install size: 554M

You can run the Kirkwood rootfs (ARMV5) with MVEBU kernel (if the MVEBU rootfs is too big). That why I've suggested it. But I was in a hurry so did not post details.

Summary of steps:

- Format the Kirwood rootfs on USB.
- Install the MVEBU kernel (either use chroot or boot this rootfs on Kirkwood box).
- On T5335z Mount and copy it to the T5335z internal disk.

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



Edited 1 time(s). Last edit at 10/13/2018 04:52PM by bodhi.
Re: Debian on HP Thin Client T5335z
October 14, 2018 04:20PM
Hi bodhi,

I've tried the following steps but run into an issue. I've created the 4.4.0 rootfs and used it to boot my iomega iconnect. Then I've run 'apt-update' and 'apt-upgrade' to update the jessie system. I've re-booted the iomega iconnect and run 'apt-get clean' to remove the cache files. The size of the system is then ~390MB so should fit in the HP 5335 internal memory. All good so far.

Next I copy the 4.18.5 mvebu kernel files to the running iomega iconnect and start the kernel upgrade process. However it does not allow me to install the 4.18.5 kernel as shown by the log below. Do you have any ideas what to do?

Koen

root@debian:/boot# 
root@debian:/boot# apt-get remove flash-kernel 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'flash-kernel' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
root@debian:/boot# 
root@debian:/boot# 
root@debian:/boot# dpkg -i linux-image-4.18.5-mvebu-tld-1_1.0_armhf.deb
dpkg: error processing archive linux-image-4.18.5-mvebu-tld-1_1.0_armhf.deb (--install):
 package architecture (armhf) does not match system (armel)
Errors were encountered while processing:
 linux-image-4.18.5-mvebu-tld-1_1.0_armhf.deb
root@debian:/boot#
Re: Debian on HP Thin Client T5335z
October 14, 2018 04:25PM
Executing this command adds armhf and makes it possible to install the new kernel.

dpkg --add-architecture armhf

Koen
Re: Debian on HP Thin Client T5335z
October 14, 2018 04:57PM
And make sure you change apt sources, too. Should have something like this:

deb [arch=armel,armhf] http://ftp.us.debian.org/debian stretch main

And
root@tldDebian:~# dpkg --print-architecture
armhf
root@tldDebian:~# dpkg --print-foreign-architectures
armel

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
October 15, 2018 03:27PM
Hi bodhi,

I didn't realise this was possible but after reading https://wiki.debian.org/Multiarch/HOWTO it is a bit clearer. I guess it is similar to running 32 bit packages on a 64 bit system.

At the moment I've got a working USB minimal 'hybrid' armel / armhf Debian jessie system based on 4.4.0 kirkwood rootfs with 4.18.5 mvebu kernel. Removing the old kernel and cleaning the apt cache results in a system of 392M which should fit on the internal memory as a recovery system.

root@debian:/# cat /etc/debian_version 
8.11
root@debian:/# uname -a
Linux debian 4.18.5-mvebu-tld-1 #1 SMP PREEMPT Thu Aug 30 22:19:21 PDT 2018 armv7l GNU/Linux
root@debian:/# dpkg --print-architecture
armel
root@debian:/# dpkg --print-foreign-architectures
armhf

Do you recommend upgrading this system to stretch before copying to the internal memory?

Also my architectures are the other way around. Does this matter?

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