Welcome! Log In Create A New Profile

Advanced

Debian on HP T5325 Thin Client

Posted by Gravelrash 
Re: HP T5325 Thin Client Debian
April 09, 2016 11:21PM
syong,

The fact that it is playing the file is encouraging. I did not even got that far before.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
April 10, 2016 01:53AM
This DTB version should fix it. However, I can't still hear anything from the headphone (but my sound settings might be wrong). So please try.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - kirkwood-t5325.dtb (11.6 KB)
Re: HP T5325 Thin Client Debian
April 10, 2016 08:58AM
WORKING! An epic progess! Thank you bodhi! What is the magic? Did you change something in kirkwboot.dtsi?

The puzzle of sound on t5325 is solved! Let me playback what I did:

1. Use bodhi's latest DTB and append to the kernel as if still using stock uBoot.

2. Change /usr/share/alsa/alsa.conf as following:

#pcm.front cards.pcm.front
pcm.front cards.pcm.default

3. Turn the knobs using alsamixer

Switches(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

4. Enjoy the multimedia guinea plug using mpg321.

BTW, I have not tried recording yet. The slide(Mic 1/2 Boost) seems does not work.

-syong
Re: HP T5325 Thin Client Debian
April 10, 2016 03:46PM
Cool :)

Just what I had suspected, eventhough I used alsamixer to adjust my sound levels like you did, something is still not right in my plug. That's made testing a little difficult!

The fix: the audio controller was missing a cell:
--- kirkwood.dtsi.orig	2016-03-13 21:28:54.000000000 -0700
+++ kirkwood.dtsi	2016-04-09 21:57:05.312388844 -0700
@@ -381,7 +381,7 @@
 
 		audio0: audio-controller@a0000 {
 			compatible = "marvell,kirkwood-audio";
-			#sound-dai-cells = <0>;
+			#sound-dai-cells = <1>;
 			reg = <0xa0000 0x2210>;
 			interrupts = <24>;
 			clocks = <&gate_clk 9>;
Note that changing this does not effect other Kirkwood boxes, only boxes that have audio-controller@a0000 node in their DTS.

Thanks for testing syong.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
April 10, 2016 03:53PM
!! WOW !! - You guys are amazing! I am going to go in the garage more often, whenever i do you fix something :))

So this link will sort out the onboard sound and allow it to be used without the need for a usb dongle? If thats the case, then i will update the HOWTO to include sound as well. all thats left now is the graphics adaptor

http://forum.doozan.com/file.php?2,file=882,filename=kirkwood-t5325.dtb
Re: HP T5325 Thin Client Debian
April 10, 2016 04:08PM
Gravelrash,

Yes, that latest DTB in:
http://forum.doozan.com/read.php?2,25473,27556#msg-27556

BTW, looks like I might want to release a new kernel tld-2 with all these small changes lately.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
April 10, 2016 06:35PM
i will hopefully get the HOWTO updated Monday daytime (GMT)
Re: HP T5325 Thin Client Debian
April 11, 2016 01:01AM
> !! WOW !! - You guys are amazing! I am going to go in the garage more often, whenever i do you fix something :))

:)) similar thing I often said to myself (when figuring out a solution in the shower).

> all thats
> left now is the graphics adaptor
>

Are we missing something with graphics adaptor?

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



Edited 1 time(s). Last edit at 04/11/2016 01:01AM by bodhi.
Re: HP T5325 Thin Client Debian
April 11, 2016 03:58AM
> Are we missing something with graphics adaptor?

Unknown, someone needs to compile/configure a working driver first. I will give some tries later this week.

I think it should not need dtb changes tho, but you never really know until you try.
Re: HP T5325 Thin Client Debian
April 11, 2016 04:33AM
bobafetthotmail Wrote:
-------------------------------------------------------
> > Are we missing something with graphics adaptor?
>
> Unknown, someone needs to compile/configure a
> working driver first. I will give some tries later
> this week.

Unknown meaning it never works right because we need to port the correct driver?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
April 11, 2016 05:09AM
> Unknown meaning it never works right because we need to port the correct driver?

It means we don't know if you need to hack the dtb some more, until we have a working 2D driver we can't really operate the GPU (we are at frambefuffer only, this is 2D-capable hardware), nor see if it gives errors about lack of dtb settings.
Re: HP T5325 Thin Client Debian
April 11, 2016 05:27AM
Ah, I remember now. Thanks.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
April 11, 2016 12:05PM
Re: HP T5325 Thin Client Debian
April 15, 2016 07:48AM
@bobafetthotmail

Have you had any joy building the driver? all my efforts have resulted in "snarks" about incorrect/invalid macros settings. which i cant seem to get around.


bobafetthotmail Wrote:
-------------------------------------------------------
> > Are we missing something with graphics adaptor?
>
> Unknown, someone needs to compile/configure a
> working driver first. I will give some tries later
> this week.
>
> I think it should not need dtb changes tho, but
> you never really know until you try.
Re: HP T5325 Thin Client Debian
April 16, 2016 05:08AM
answer moved to http://forum.doozan.com/read.php?9,26555,page=2



Edited 1 time(s). Last edit at 04/16/2016 05:34AM by bobafetthotmail.
Re: HP T5325 Thin Client Debian
April 26, 2016 04:42PM
I posted a question for all people interested in using the GPU on this box, and for those that know something about kernel, pci IDs, and libpciaccess library.
please head here in the thread for graphics for this box http://forum.doozan.com/read.php?9,26555,page=3
Re: HP T5325 Thin Client Debian
April 27, 2016 07:56PM
bodhi Wrote:
> The fix: the audio controller was missing a cell:
>
> --- kirkwood.dtsi.orig	2016-03-13
> 21:28:54.000000000 -0700
> +++ kirkwood.dtsi	2016-04-09 21:57:05.312388844
> -0700
> @@ -381,7 +381,7 @@
>  
>  		audio0: audio-controller@a0000 {
>  			compatible = "marvell,kirkwood-audio";
> -			#sound-dai-cells = <0>;
> +			#sound-dai-cells = <1>;
>  			reg = <0xa0000 0x2210>;
>  			interrupts = <24>;
>  			clocks = <&gate_clk 9>;
>
> Note that changing this does not effect other
> Kirkwood boxes, only boxes that have
> audio-controller@a0000 node in their DTS.

Bodhi,

Sorry for the late reply. As you can see I am a slow learner.:)

In this case, it is better not touching kirkwood.dtsi and only patching kirkwood-t5325.dts as follows:
                simple-audio-card,dai-link {
                        format = "i2s";
                        codec {
                                sound-dai = <&alc5621>;
                        };
                        cpu {
                                sound-dai = <&audio0 0>;
                        };
                };
        };
};
&audio0 {
        #sound-dai-cells = <1>;
        status = "ok";
};

-syong
Re: HP T5325 Thin Client Debian
April 27, 2016 11:47PM
syong,

Very good observation! I'll do that in the final version for release. Much cleaner.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
May 01, 2016 06:16PM
Hello men. This great topic i found few months ago, clean dust from mine brand new but forgotten T5325 and follow up from it's original HP system. You are doing great job hacking this device.

Due lack of time and some wires only now I manage to setup this box with external sata harddrive:

HP>> ide reset

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: SM22 Firm: I052 Ser#: (03)5526888-20080228
            Type: Hard Disk
            Capacity: 463.6 MB = 0.4 GB (949536 x 512)
[0 1 0]: Enable DMA mode (6)
  Device 1 @ 0 1:
Model: ST320LT020-9YG142                        Firm: 0001HPM1 Ser#: W041RKHY
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
HP>> ide part

Partition Map for IDE device 0  --   Partition Type: DOS

Partition     Start Sector     Num Sectors     Type
    1                   63          949473      83


Partition Map for IDE device 1  --   Partition Type: DOS

Partition     Start Sector     Num Sectors     Type
    1               616448          204800      83
    2               821248         1638400      82
    3            105064448       520075264       7
    4              2459648       102604800      83

Just try to boot it with bodhi's kernel-4.5.0 with embedded t5325 dtb and rootfs and found that in this kernel sata controller is not initialized during bootup so it can not mount rootfs form /dev/sdb4 in my case.
I'm using original uboot and this bootargs:
fw_setenv bootargs_ide 'console=tty0 console=ttyS0,115200 root=LABEL=rootfs rootdelay=10'
fw_setenv load_ide 'ide reset; ext2load ide 1:4 0x200000 /boot/uImage-4.5.0'
fw_setenv bootcmd_ide 'setenv bootargs $(bootargs_ide); run load_ide; bootm 0x200000'
fw_setenv bootcmd 'run bootcmd_ide; run thinpro'

Am I miss something? Is there are any circumvent of this "feature"?

PS. If anyone interested howto setup second SATA port I can describe it here in this topic.
Re: HP T5325 Thin Client Debian
May 01, 2016 06:36PM
xssa,

IDE rootfs should work. Can you post your serial console boot log?

Or you can install new u-boot: http://forum.doozan.com/read.php?3,26562. Try kwboot first and see if it all works for you.

Please, pay attention to the mtdparts in u-boot installation. If you have changed it to boot latest rootfs, then it is easy. If not, slight adjustment is needed in the instruction (I need to revise it to add from-stock-OS installation).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
May 01, 2016 07:05PM
There is bootlog:
## Booting image at 00200000 ...
   Image Name:   Linux-4.5.0-kirkwood-tld-1
   Created:      2016-04-24  23:01:46 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3205937 Bytes =  3.1 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.5.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #4 PREEMPT Fri Mar 18 21:36:04 PDT 2016
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: HP t5325 Thin Client
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=tty0 console=ttyS0,115200 root=LABEL=rootfs rootdelay=10
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 510312K/524288K available (6112K kernel code, 599K rwdata, 2024K rodata, 300K init, 315K bss, 13976K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07fa588   (8138 kB)
[    0.000000]       .init : 0xc07fb000 - 0xc0846000   ( 300 kB)
[    0.000000]       .data : 0xc0846000 - 0xc08dbc8c   ( 600 kB)
[    0.000000]        .bss : 0xc08dbc8c - 0xc092abe0   ( 316 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000299] Console: colour dummy device 80x30
[    0.000858] console [tty0] enabled
[    0.000899] Calibrating delay loop... 1196.85 BogoMIPS (lpj=5984256)
[    0.090117] pid_max: default: 32768 minimum: 301
[    0.090255] Security Framework initialized
[    0.090359] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090408] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091274] CPU: Testing write buffer coherency: ok
[    0.091713] Setting up static identity map for 0x8200 - 0x8258
[    0.092009] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.095480] devtmpfs: initialized
[    0.100144] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.100471] prandom: seed boundary self test passed
[    0.104232] prandom: 100 self tests passed
[    0.104281] pinctrl core: initialized pinctrl subsystem
[    0.105616] NET: Registered protocol family 16
[    0.106041] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130093] cpuidle: using governor ladder
[    0.160094] cpuidle: using governor menu
[    0.160513] Feroceon L2: Enabling L2
[    0.160578] Feroceon L2: Cache support initialised.
[    0.160983] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.166943] No ATAGs?
[    0.201498] vgaarb: loaded
[    0.201887] usbcore: registered new interface driver usbfs
[    0.201994] usbcore: registered new interface driver hub
[    0.202079] usbcore: registered new device driver usb
[    0.203173] clocksource: Switched to clocksource orion_clocksource
[    0.247485] VFS: Disk quotas dquot_6.6.0
[    0.247582] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.258990] NET: Registered protocol family 2
[    0.259768] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.259859] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.259935] TCP: Hash tables configured (established 4096 bind 4096)
[    0.260017] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.260065] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.260287] NET: Registered protocol family 1
[    0.260695] RPC: Registered named UNIX socket transport module.
[    0.260734] RPC: Registered udp transport module.
[    0.260762] RPC: Registered tcp transport module.
[    0.260788] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.261194] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.262241] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.262346] audit: initializing netlink subsys (disabled)
[    0.262416] audit: type=2000 audit(0.250:1): initialized
[    0.262774] Initialise system trusted keyring
[    0.263146] zbud: loaded
[    0.263941] NFS: Registering the id_resolver key type
[    0.264009] Key type id_resolver registered
[    0.264039] Key type id_legacy registered
[    0.264087] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.264130] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.264386] jffs2: version 2.2. (NAND) (SUMMARY)  б╘ 2001-2006 Red Hat, Inc.
[    0.264941] Key type big_key registered
[    0.276095] Key type asymmetric registered
[    0.276142] Asymmetric key parser 'x509' registered
[    0.276248] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.276303] io scheduler noop registered
[    0.276336] io scheduler deadline registered
[    0.276413] io scheduler cfq registered (default)
[    0.277820] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.278558] irq: Cannot allocate irq_descs @ IRQ36, assuming pre-allocated
[    0.279012] irq: Cannot allocate irq_descs @ IRQ68, assuming pre-allocated
[    0.279880] mvebu-pcie mbus:pcie-controller: PCI host bridge to bus 0000:00
[    0.279928] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.279965] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.280003] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.280403] PCI: bus0: Fast back to back transfers disabled
[    0.280454] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.281104] vgaarb: device added: PCI:0000:01:00.0,decodes=io+mem,owns=none,locks=none
[    0.293353] PCI: bus1: Fast back to back transfers disabled
[    0.293506] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe5ffffff]
[    0.293549] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    0.293591] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe3ffffff pref]
[    0.293643] pci 0000:01:00.0: BAR 1: assigned [mem 0xe4000000-0xe403ffff]
[    0.293684] pci 0000:01:00.0: BAR 2: assigned [io  0x10000-0x1007f]
[    0.293721] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.293754] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    0.293791] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe5ffffff]
[    0.293895] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    0.294238] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.333845] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.334111] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.373840] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.374339] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.375732] console [ttyS0] disabled
[    0.375814] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    1.046441] console [ttyS0] enabled
[    1.051909] m25p80 spi0.0: found mx25l8005, expected m25p80
[    1.057599] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[    1.062465] 5 ofpart partitions found on MTD device spi0.0
[    1.068021] Creating 5 MTD partitions on "spi0.0":
[    1.072858] 0x000000000000-0x000000080000 : "u-boot"
[    1.079163] 0x000000080000-0x0000000c0000 : "SSD firmware"
[    1.085979] 0x0000000c0000-0x0000000d0000 : "u-boot env"
[    1.092572] 0x0000000d0000-0x0000000e0000 : "permanent u-boot env"
[    1.100127] 0x0000000d0000-0x0000000e0000 : "permanent u-boot env"
[    1.108615] libphy: Fixed MDIO Bus: probed
[    1.113070] libphy: orion_mdio_bus: probed
[    1.117984] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.203972] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address f4:ce:46:23:fe:f6
[    1.212883] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.219522] ehci-pci: EHCI PCI platform driver
[    1.224097] ehci-orion: EHCI orion driver
[    1.228322] orion-ehci f1050000.ehci: EHCI Host Controller
[    1.233912] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    1.241786] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    1.263201] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    1.269464] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.276345] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.283652] usb usb1: Product: EHCI Host Controller
[    1.288571] usb usb1: Manufacturer: Linux 4.5.0-kirkwood-tld-1 ehci_hcd
[    1.295254] usb usb1: SerialNumber: f1050000.ehci
[    1.300708] hub 1-0:1.0: USB hub found
[    1.304590] hub 1-0:1.0: 1 port detected
[    1.309482] mousedev: PS/2 mouse device common for all mice
[    1.315796] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    1.322902] i2c /dev entries driver
[    1.328324] hidraw: raw HID events driver (C) Jiri Kosina
[    1.334204] drop_monitor: Initializing network drop monitor service
[    1.340777] NET: Registered protocol family 17
[    1.345560] Key type dns_resolver registered
[    1.350712] registered taskstats version 1
[    1.354922] Loading compiled-in X.509 certificates
[    1.359829] zswap: loaded using pool lzo/zbud
[    1.365286] Key type encrypted registered
[    1.369924] rtc-mv f1010300.rtc: setting system clock to 2016-05-01 22:24:48 UTC (1462141488)
[    1.380019] Waiting 10 sec before mounting root device...
[    1.623208] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    1.773678] usb 1-1: New USB device found, idVendor=0424, idProduct=2514
[    1.780452] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.788534] hub 1-1:1.0: USB hub found
[    1.792424] hub 1-1:1.0: 4 ports detected
[    2.073203] usb 1-1.3: new low-speed USB device number 3 using orion-ehci
[    2.212422] usb 1-1.3: New USB device found, idVendor=03f0, idProduct=0024
[    2.219388] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.226800] usb 1-1.3: Product: HP Basic USB Keyboard
[    2.231902] usb 1-1.3: Manufacturer: CHICONY
[    2.313202] usb 1-1.4: new low-speed USB device number 4 using orion-ehci
[    2.448793] usb 1-1.4: New USB device found, idVendor=046d, idProduct=c03e
[    2.455761] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.463162] usb 1-1.4: Product: USB-PS/2 Optical Mouse
[    2.468363] usb 1-1.4: Manufacturer: Logitech
[   11.393366] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
[   11.401468] Please append a correct "root=" boot option; here are the available partitions:
[   11.409944] 1f00             512 mtdblock0  (driver?)
[   11.415095] 1f01             256 mtdblock1  (driver?)
[   11.420200] 1f02              64 mtdblock2  (driver?)
[   11.425349] 1f03              64 mtdblock3  (driver?)
[   11.430455] 1f04              64 mtdblock4  (driver?)
[   11.435584] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   11.443925] CPU: 0 PID: 1 Comm: swapper Not tainted 4.5.0-kirkwood-tld-1 #4
[   11.450937] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   11.457274] [<c001680c>] (unwind_backtrace) from [<c0012a78>] (show_stack+0x10/0x14)
[   11.465095] [<c0012a78>] (show_stack) from [<c00c3428>] (panic+0xac/0x240)
[   11.472037] [<c00c3428>] (panic) from [<c07fc29c>] (mount_block_root+0x204/0x27c)
[   11.479595] [<c07fc29c>] (mount_block_root) from [<c07fc400>] (mount_root+0xec/0x118)
[   11.487503] [<c07fc400>] (mount_root) from [<c07fc550>] (prepare_namespace+0x124/0x184)
[   11.495587] [<c07fc550>] (prepare_namespace) from [<c07fbeb8>] (kernel_init_freeable+0x208/0x258)
[   11.504546] [<c07fbeb8>] (kernel_init_freeable) from [<c05cb254>] (kernel_init+0x8/0xe8)
[   11.512714] [<c05cb254>] (kernel_init) from [<c000f110>] (ret_from_fork+0x14/0x24)
[   11.520359] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   79.113201] random: nonblocking pool is initialized

I'd not like to update uboot as I read it fails to boot original thinpro system. May be I'm wrong.
Re: HP T5325 Thin Client Debian
May 01, 2016 07:23PM
xssa Wrote:
-------------------------------------------------------
> There is bootlog:
>
> ## Booting image at 00200000 ...
>    Image Name:   Linux-4.5.0-kirkwood-tld-1
>    Created:      2016-04-24  23:01:46 UTC
>    Image Type:   ARM Linux Kernel Image
> (uncompressed)
>    Data Size:    3205937 Bytes =  3.1 MB
>    Load Address: 00008000
>    Entry Point:  00008000
>    Verifying Checksum ... OK
> OK
> 
> Starting kernel ...
> 
> Uncompressing Linux... done, booting the kernel.
> [    0.000000] Booting Linux on physical CPU 0x0
> [    0.000000] Linux version 4.5.0-kirkwood-tld-1
> (root@tldDebian) (gcc version 4.9.2 (Debian
> 4.9.2-10) ) #4 PREEMPT Fri Mar 18 21:36:04 PDT
> 2016
> [    0.000000] CPU: Feroceon 88FR131 [56251311]
> revision 1 (ARMv5TE), cr=0005397f
> [    0.000000] CPU: VIVT data cache, VIVT
> instruction cache
> [    0.000000] Machine model: HP t5325 Thin
> Client
> [    0.000000] Memory policy: Data cache
> writeback
> [    0.000000] Built 1 zonelists in Zone order,
> mobility grouping on.  Total pages: 130048
> [    0.000000] Kernel command line: console=tty0
> console=ttyS0,115200 root=LABEL=rootfs
> rootdelay=10
> [    0.000000] PID hash table entries: 2048
> (order: 1, 8192 bytes)
> [    0.000000] Dentry cache hash table entries:
> 65536 (order: 6, 262144 bytes)
> [    0.000000] Inode-cache hash table entries:
> 32768 (order: 5, 131072 bytes)
> [    0.000000] Memory: 510312K/524288K available
> (6112K kernel code, 599K rwdata, 2024K rodata,
> 300K init, 315K bss, 13976K reserved, 0K
> cma-reserved)
> [    0.000000] Virtual kernel memory layout:
> [    0.000000]     vector  : 0xffff0000 -
> 0xffff1000   (   4 kB)
> [    0.000000]     fixmap  : 0xffc00000 -
> 0xfff00000   (3072 kB)
> [    0.000000]     vmalloc : 0xe0800000 -
> 0xff800000   ( 496 MB)
> [    0.000000]     lowmem  : 0xc0000000 -
> 0xe0000000   ( 512 MB)
> [    0.000000]     modules : 0xbf000000 -
> 0xc0000000   (  16 MB)
> [    0.000000]       .text : 0xc0008000 -
> 0xc07fa588   (8138 kB)
> [    0.000000]       .init : 0xc07fb000 -
> 0xc0846000   ( 300 kB)
> [    0.000000]       .data : 0xc0846000 -
> 0xc08dbc8c   ( 600 kB)
> [    0.000000]        .bss : 0xc08dbc8c -
> 0xc092abe0   ( 316 kB)
> [    0.000000] Preemptible hierarchical RCU
> implementation.
> [    0.000000]  Build-time adjustment of leaf
> fanout to 32.
> [    0.000000] NR_IRQS:16 nr_irqs:16 16
> [    0.000000] clocksource: orion_clocksource:
> mask: 0xffffffff max_cycles: 0xffffffff,
> max_idle_ns: 9556302233 ns
> [    0.000008] sched_clock: 32 bits at 200MHz,
> resolution 5ns, wraps every 10737418237ns
> [    0.000299] Console: colour dummy device 80x30
> [    0.000858] console [tty0] enabled
> [    0.000899] Calibrating delay loop... 1196.85
> BogoMIPS (lpj=5984256)
> [    0.090117] pid_max: default: 32768 minimum:
> 301
> [    0.090255] Security Framework initialized
> [    0.090359] Mount-cache hash table entries:
> 1024 (order: 0, 4096 bytes)
> [    0.090408] Mountpoint-cache hash table
> entries: 1024 (order: 0, 4096 bytes)
> [    0.091274] CPU: Testing write buffer
> coherency: ok
> [    0.091713] Setting up static identity map for
> 0x8200 - 0x8258
> [    0.092009] mvebu-soc-id: MVEBU SoC ID=0x6281,
> Rev=0x3
> [    0.095480] devtmpfs: initialized
> [    0.100144] clocksource: jiffies: mask:
> 0xffffffff max_cycles: 0xffffffff, max_idle_ns:
> 19112604462750000 ns
> [    0.100471] prandom: seed boundary self test
> passed
> [    0.104232] prandom: 100 self tests passed
> [    0.104281] pinctrl core: initialized pinctrl
> subsystem
> [    0.105616] NET: Registered protocol family 16
> [    0.106041] DMA: preallocated 256 KiB pool for
> atomic coherent allocations
> [    0.130093] cpuidle: using governor ladder
> [    0.160094] cpuidle: using governor menu
> [    0.160513] Feroceon L2: Enabling L2
> [    0.160578] Feroceon L2: Cache support
> initialised.
> [    0.160983] [Firmware Info]:
> /ocp@f1000000/ethernet-controller@72000/ethernet0-
> port@0: local-mac-address is not set
> [    0.166943] No ATAGs?
> [    0.201498] vgaarb: loaded
> [    0.201887] usbcore: registered new interface
> driver usbfs
> [    0.201994] usbcore: registered new interface
> driver hub
> [    0.202079] usbcore: registered new device
> driver usb
> [    0.203173] clocksource: Switched to
> clocksource orion_clocksource
> [    0.247485] VFS: Disk quotas dquot_6.6.0
> [    0.247582] VFS: Dquot-cache hash table
> entries: 1024 (order 0, 4096 bytes)
> [    0.258990] NET: Registered protocol family 2
> [    0.259768] TCP established hash table entries:
> 4096 (order: 2, 16384 bytes)
> [    0.259859] TCP bind hash table entries: 4096
> (order: 2, 16384 bytes)
> [    0.259935] TCP: Hash tables configured
> (established 4096 bind 4096)
> [    0.260017] UDP hash table entries: 256 (order:
> 0, 4096 bytes)
> [    0.260065] UDP-Lite hash table entries: 256
> (order: 0, 4096 bytes)
> [    0.260287] NET: Registered protocol family 1
> [    0.260695] RPC: Registered named UNIX socket
> transport module.
> [    0.260734] RPC: Registered udp transport
> module.
> [    0.260762] RPC: Registered tcp transport
> module.
> [    0.260788] RPC: Registered tcp NFSv4.1
> backchannel transport module.
> [    0.261194] NetWinder Floating Point Emulator
> V0.97 (double precision)
> [    0.262241] futex hash table entries: 256
> (order: -1, 3072 bytes)
> [    0.262346] audit: initializing netlink subsys
> (disabled)
> [    0.262416] audit: type=2000 audit(0.250:1):
> initialized
> [    0.262774] Initialise system trusted keyring
> [    0.263146] zbud: loaded
> [    0.263941] NFS: Registering the id_resolver
> key type
> [    0.264009] Key type id_resolver registered
> [    0.264039] Key type id_legacy registered
> [    0.264087] nfs4filelayout_init: NFSv4 File
> Layout Driver Registering...
> [    0.264130] Installing knfsd (copyright (C)
> 1996 okir@monad.swb.de).
> [    0.264386] jffs2: version 2.2. (NAND)
> (SUMMARY)  б╘ 2001-2006 Red Hat, Inc.
> [    0.264941] Key type big_key registered
> [    0.276095] Key type asymmetric registered
> [    0.276142] Asymmetric key parser 'x509'
> registered
> [    0.276248] Block layer SCSI generic (bsg)
> driver version 0.4 loaded (major 252)
> [    0.276303] io scheduler noop registered
> [    0.276336] io scheduler deadline registered
> [    0.276413] io scheduler cfq registered
> (default)
> [    0.277820] kirkwood-pinctrl
> f1010000.pin-controller: registered pinctrl
> driver
> [    0.278558] irq: Cannot allocate irq_descs @
> IRQ36, assuming pre-allocated
> [    0.279012] irq: Cannot allocate irq_descs @
> IRQ68, assuming pre-allocated
> [    0.279880] mvebu-pcie mbus:pcie-controller:
> PCI host bridge to bus 0000:00
> [    0.279928] pci_bus 0000:00: root bus resource
> [io  0x1000-0xfffff]
> [    0.279965] pci_bus 0000:00: root bus resource
> [mem 0xe0000000-0xefffffff]
> [    0.280003] pci_bus 0000:00: root bus resource
> [bus 00-ff]
> [    0.280403] PCI: bus0: Fast back to back
> transfers disabled
> [    0.280454] pci 0000:00:01.0: bridge
> configuration invalid ([bus 00-00]),
> reconfiguring
> [    0.281104] vgaarb: device added:
> PCI:0000:01:00.0,decodes=io+mem,owns=none,locks=no
> ne
> [    0.293353] PCI: bus1: Fast back to back
> transfers disabled
> [    0.293506] pci 0000:00:01.0: BAR 14: assigned
> [mem 0xe0000000-0xe5ffffff]
> [    0.293549] pci 0000:00:01.0: BAR 13: assigned
> [io  0x10000-0x10fff]
> [    0.293591] pci 0000:01:00.0: BAR 0: assigned
> [mem 0xe0000000-0xe3ffffff pref]
> [    0.293643] pci 0000:01:00.0: BAR 1: assigned
> [mem 0xe4000000-0xe403ffff]
> [    0.293684] pci 0000:01:00.0: BAR 2: assigned
> [io  0x10000-0x1007f]
> [    0.293721] pci 0000:00:01.0: PCI bridge to
> [bus 01]
> [    0.293754] pci 0000:00:01.0:   bridge window
> [io  0x10000-0x10fff]
> [    0.293791] pci 0000:00:01.0:   bridge window
> [mem 0xe0000000-0xe5ffffff]
> [    0.293895] pcieport 0000:00:01.0: enabling
> device (0140 -> 0143)
> [    0.294238] mv_xor f1060800.xor: Marvell shared
> XOR driver
> [    0.333845] mv_xor f1060800.xor: Marvell XOR
> (Registers Mode): ( xor cpy intr )
> [    0.334111] mv_xor f1060900.xor: Marvell shared
> XOR driver
> [    0.373840] mv_xor f1060900.xor: Marvell XOR
> (Registers Mode): ( xor cpy intr )
> [    0.374339] Serial: 8250/16550 driver, 2 ports,
> IRQ sharing disabled
> [    0.375732] console [ttyS0] disabled
> [    0.375814] f1012000.serial: ttyS0 at MMIO
> 0xf1012000 (irq = 27, base_baud = 12500000) is a
> 16550A
> [    1.046441] console [ttyS0] enabled
> [    1.051909] m25p80 spi0.0: found mx25l8005,
> expected m25p80
> [    1.057599] m25p80 spi0.0: mx25l8005 (1024
> Kbytes)
> [    1.062465] 5 ofpart partitions found on MTD
> device spi0.0
> [    1.068021] Creating 5 MTD partitions on
> "spi0.0":
> [    1.072858] 0x000000000000-0x000000080000 :
> "u-boot"
> [    1.079163] 0x000000080000-0x0000000c0000 :
> "SSD firmware"
> [    1.085979] 0x0000000c0000-0x0000000d0000 :
> "u-boot env"
> [    1.092572] 0x0000000d0000-0x0000000e0000 :
> "permanent u-boot env"
> [    1.100127] 0x0000000d0000-0x0000000e0000 :
> "permanent u-boot env"
> [    1.108615] libphy: Fixed MDIO Bus: probed
> [    1.113070] libphy: orion_mdio_bus: probed
> [    1.117984] mv643xx_eth: MV-643xx 10/100/1000
> ethernet driver version 1.4
> [    1.203972] mv643xx_eth_port mv643xx_eth_port.0
> eth0: port 0 with MAC address f4:ce:46:23:fe:f6
> [    1.212883] ehci_hcd: USB 2.0 'Enhanced' Host
> Controller (EHCI) Driver
> [    1.219522] ehci-pci: EHCI PCI platform driver
> [    1.224097] ehci-orion: EHCI orion driver
> [    1.228322] orion-ehci f1050000.ehci: EHCI Host
> Controller
> [    1.233912] orion-ehci f1050000.ehci: new USB
> bus registered, assigned bus number 1
> [    1.241786] orion-ehci f1050000.ehci: irq 31,
> io mem 0xf1050000
> [    1.263201] orion-ehci f1050000.ehci: USB 2.0
> started, EHCI 1.00
> [    1.269464] usb usb1: New USB device found,
> idVendor=1d6b, idProduct=0002
> [    1.276345] usb usb1: New USB device strings:
> Mfr=3, Product=2, SerialNumber=1
> [    1.283652] usb usb1: Product: EHCI Host
> Controller
> [    1.288571] usb usb1: Manufacturer: Linux
> 4.5.0-kirkwood-tld-1 ehci_hcd
> [    1.295254] usb usb1: SerialNumber:
> f1050000.ehci
> [    1.300708] hub 1-0:1.0: USB hub found
> [    1.304590] hub 1-0:1.0: 1 port detected
> [    1.309482] mousedev: PS/2 mouse device common
> for all mice
> [    1.315796] rtc-mv f1010300.rtc: rtc core:
> registered f1010300.rtc as rtc0
> [    1.322902] i2c /dev entries driver
> [    1.328324] hidraw: raw HID events driver (C)
> Jiri Kosina
> [    1.334204] drop_monitor: Initializing network
> drop monitor service
> [    1.340777] NET: Registered protocol family 17
> [    1.345560] Key type dns_resolver registered
> [    1.350712] registered taskstats version 1
> [    1.354922] Loading compiled-in X.509
> certificates
> [    1.359829] zswap: loaded using pool lzo/zbud
> [    1.365286] Key type encrypted registered
> [    1.369924] rtc-mv f1010300.rtc: setting system
> clock to 2016-05-01 22:24:48 UTC (1462141488)
> [    1.380019] Waiting 10 sec before mounting root
> device...
> [    1.623208] usb 1-1: new high-speed USB device
> number 2 using orion-ehci
> [    1.773678] usb 1-1: New USB device found,
> idVendor=0424, idProduct=2514
> [    1.780452] usb 1-1: New USB device strings:
> Mfr=0, Product=0, SerialNumber=0
> [    1.788534] hub 1-1:1.0: USB hub found
> [    1.792424] hub 1-1:1.0: 4 ports detected
> [    2.073203] usb 1-1.3: new low-speed USB device
> number 3 using orion-ehci
> [    2.212422] usb 1-1.3: New USB device found,
> idVendor=03f0, idProduct=0024
> [    2.219388] usb 1-1.3: New USB device strings:
> Mfr=1, Product=2, SerialNumber=0
> [    2.226800] usb 1-1.3: Product: HP Basic USB
> Keyboard
> [    2.231902] usb 1-1.3: Manufacturer: CHICONY
> [    2.313202] usb 1-1.4: new low-speed USB device
> number 4 using orion-ehci
> [    2.448793] usb 1-1.4: New USB device found,
> idVendor=046d, idProduct=c03e
> [    2.455761] usb 1-1.4: New USB device strings:
> Mfr=1, Product=2, SerialNumber=0
> [    2.463162] usb 1-1.4: Product: USB-PS/2
> Optical Mouse
> [    2.468363] usb 1-1.4: Manufacturer: Logitech
> [   11.393366] VFS: Cannot open root device
> "LABEL=rootfs" or unknown-block(0,0): error -6
> [   11.401468] Please append a correct "root="
> boot option; here are the available partitions:
> [   11.409944] 1f00             512 mtdblock0 
> (driver?)
> [   11.415095] 1f01             256 mtdblock1 
> (driver?)
> [   11.420200] 1f02              64 mtdblock2 
> (driver?)
> [   11.425349] 1f03              64 mtdblock3 
> (driver?)
> [   11.430455] 1f04              64 mtdblock4 
> (driver?)
> [   11.435584] Kernel panic - not syncing: VFS:
> Unable to mount root fs on unknown-block(0,0)
> [   11.443925] CPU: 0 PID: 1 Comm: swapper Not
> tainted 4.5.0-kirkwood-tld-1 #4
> [   11.450937] Hardware name: Marvell Kirkwood
> (Flattened Device Tree)
> [   11.457274] [<c001680c>] (unwind_backtrace)
> from [<c0012a78>] (show_stack+0x10/0x14)
> [   11.465095] [<c0012a78>] (show_stack) from
> [<c00c3428>] (panic+0xac/0x240)
> [   11.472037] [<c00c3428>] (panic) from
> [<c07fc29c>] (mount_block_root+0x204/0x27c)
> [   11.479595] [<c07fc29c>] (mount_block_root)
> from [<c07fc400>] (mount_root+0xec/0x118)
> [   11.487503] [<c07fc400>] (mount_root) from
> [<c07fc550>] (prepare_namespace+0x124/0x184)
> [   11.495587] [<c07fc550>] (prepare_namespace)
> from [<c07fbeb8>]
> (kernel_init_freeable+0x208/0x258)
> [   11.504546] [<c07fbeb8>] (kernel_init_freeable)
> from [<c05cb254>] (kernel_init+0x8/0xe8)
> [   11.512714] [<c05cb254>] (kernel_init) from
> [<c000f110>] (ret_from_fork+0x14/0x24)
> [   11.520359] ---[ end Kernel panic - not
> syncing: VFS: Unable to mount root fs on
> unknown-block(0,0)
> [   79.113201] random: nonblocking pool is
> initialized
>
>
> I'd not like to update uboot as I read it fails to
> boot original thinpro system. May be I'm wrong.

Make sure your rootfs partition is labeled:

tune2fs -L rootfs /dev/sda4

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
May 01, 2016 07:44PM
There is no ata in dmesg so it is not initialized, there is any sdaX sdbX available partitions.
[   11.401468] Please append a correct "root=" boot option; here are the available partitions:
[   11.409944] 1f00             512 mtdblock0  (driver?)
[   11.415095] 1f01             256 mtdblock1  (driver?)
[   11.420200] 1f02              64 mtdblock2  (driver?)
[   11.425349] 1f03              64 mtdblock3  (driver?)
[   11.430455] 1f04              64 mtdblock4  (driver?)
[   11.435584] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Re: HP T5325 Thin Client Debian
May 01, 2016 08:10PM
Was it labeled correctly?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
May 01, 2016 08:24PM
Finaly got it!
Booting kernel-4.4.0 with embedded latest kirkwood-t5325.dtb and its uInitrd in /boot and viola!!! rootfs on /dev/sdb4 mounted as expected with label=rootfs.

Next steps to get running kernel-4.5.0 with fbcons enabled:
root@debian:~# apt-get update
...
root@debian:~# echo "xgifb" >> /etc/initramfs-tools/modules
root@debian:~# echo "fbcon" >> /etc/initramfs-tools/modules
root@debian:~# dpkg -i /boot/45/linux-image-4.5.0-kirkwood-tld-1_1.0_armel.deb
...
root@debian:~# cd /boot
root@debian:/boot# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.5.0-kirkwood-tld-1 -d initrd.img-4.5.0-kirkwood-tld-1 uInitrd-4.5.0
...
Then reboot to original thinpro linux and setup new uboot environment:
HP>> run thinpro
...
fw_setenv load_ide 'ide reset; ext2load ide 1:4 0x800000 /boot/uImage-4.5.0; ext2load ide 1:4 0x1100000 /boot/uInitrd-4.5.0'
fw_setenv bootcmd_ide 'setenv bootargs $(bootargs_ide); run load_ide; bootm 0x800000 0x1100000'
fw_setenv bootargs_ide 'console=tty0 console=ttyS0,115200 root=LABEL=rootfs'

rootdelay=10 is redundant for SATA :)

And, most important conclusion:
sata_mv                25104  2
libata                164641  1 sata_mv
are not included in kernel but loaded from initramfs.



Edited 3 time(s). Last edit at 05/02/2016 04:17PM by xssa.
Re: HP T5325 Thin Client Debian
May 01, 2016 11:25PM
> Finaly got it!
> Booting kernel-4.4.0 with embedded latest
> kirkwood-t5325.dtb and its uInitrd in /boot and
> viola!!! rootfs on /dev/sdb4 mounted as expected
> with label=rootfs.

Glad it works for you :)

FYI, also for the benefit of others who came from Arch or OpenWrt or a different distro. If you've followed the instructions in the Debian kernel/rootfs thread closely, then it just works! there is really no need to do any thing extra. IOW, if you boot with the rootfs label, then initramfs is required. And sata_mv is always running that way, so initramfs is doubly important. For Debian users, it's kind of given, but for Arch or OpenWrt users, this might be new.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
May 02, 2016 06:40PM
xssa Wrote:
-------------------------------------------------------

> Due lack of time and some wires only now I manage
> to setup this box with external sata harddrive:

Nice -we need images, there is one way documented somewhere on the internet, I would be interested to see how you accomplished it

>
> PS. If anyone interested howto setup second SATA
> port I can describe it here in this topic.

yes please! A writeup with images would be really beneficial to everyone
CV
Re: HP T5325 Thin Client Debian
May 03, 2016 12:34PM
I have done the SATA mod, very ghetto style... SATA cable cut, split and directly soldered to the board. Mechanical stability not great,
I will search for a machting SATA connector (footprint B I think).

Log:
U-Boot 2015.10-tld-2 (Mar 09 2016 - 16:49:35 -0800)
HP Thin Client T5325

SoC:   Kirkwood 88F6281_A1
SPI:   ready
DRAM:  512 MiB (ECC not enabled)
WARNING: Caches not enabled
SF: Detected M25P80 with page size 256 Bytes, erase size 64 KiB, total 1 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
T5325> ide reset

Reset IDE: Bus 0: OK Bus 1: OK
  Device 0: Model: SM22 Firm: I052 Ser#: (03)5526888-20080228
            Type: Hard Disk
            Capacity: 463.6 MB = 0.4 GB (949536 x 512)
  Device 1: Model: ST96812AS  Firm: 7.01 Ser#: 5PJ384B6
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 57231.5 MB = 55.8 GB (117210240 x 512)
T5325>


Booted debian from USB stick, then fdisk'ed / mkfs'ed and mounted SATA hd:

root@debian:/media
# fdisk -l
...
Disk /dev/sdb: 55.9 GiB, 60011642880 bytes, 117210240 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x8d1531f6

Device     Boot     Start       End   Sectors  Size Id Type
/dev/sdb1            2048 109053951 109051904   52G 83 Linux
/dev/sdb2       109053952 117210239   8156288  3.9G 82 Linux swap / Solaris

Disk /dev/sdc: 3.8 GiB, 4076863488 bytes, 7962624 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start     End Sectors  Size Id Type
/dev/sdc1        2048 7962623 7960576  3.8G 83 Linux

root@debian:/media
# mount /dev/sdb1 /media/temp
-...
/dev/sdb1 on /media/temp type ext3 (rw,relatime,data=ordered)
root@debian:/media
# swapon
NAME      TYPE      SIZE USED PRIO
/dev/sdb2 partition 3.9G   0B   -1
root@debian:/media
#

Performance check with dd:

root@debian:/media
# dd if=/dev/zero of=/media/temp/speedtest.dmp count=100 bs=1M
100+0 records in
100+0 records out
104857600 bytes (105 MB) copied, 2.08861 s, 50.2 MB/s
root@debian:/media
#

Pics are attached.

Pinout is the following:

Board:
G   A-  B-  G
O   O   O   O
  O   O   O
  A+  G   B+

Cable:
G A+ A- G B- B+ G

Cable seen with "nose" at right end: -----,

As SATA Series caps I took SMD caps 10 nF, 16 V, size 0402.

I will try to get a better picture an label the caps and pin out.

(The second SATA port I will try some other day, I do have very little time atmo).



Edited 3 time(s). Last edit at 05/03/2016 01:46PM by CV.
Attachments:
open | download - image3.JPG (918.2 KB)
open | download - image2.JPG (789.1 KB)
open | download - image4.JPG (827.5 KB)
Re: HP T5325 Thin Client Debian
May 03, 2016 01:08PM
CV,

Getto style or not. Good works :)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
May 03, 2016 04:13PM
My method to add SATA harddrive to thin client HP T5325 is a slightly modified method described on here.
Changes are focused on to preserving case modification and it's servicability.
For modifications we need:
- 4 pcs. AC coupling 10nF capacitors for SATA datalines in 0402 SMD package. I use capacitors with corresponding dimentions and similar purpose found near SATA connectors on the broken old mATX motherboard.
- HP DV7-6000 SATA cable. Was bought on Aliexpress. On Ebay there also some.
- 2,5" HDD and 2 screws.
- Hot air rework station and/or soldering iron with skills :)
- Micro JST 1.25 4-Pin Female Connector plug with Wires. Was cut from CPU fan found on old broken ASUS notebook and used with TTL to RS232 adapter for testing and debugging proposes.

1) First we need to disassemble t5325 and to solder 4 capacitors C80-C83 near SATA pads on the upside and downside of the board.
2) Disassemble motherboard connector on the HP DV7 SATA cable, unsolder wires from connector pads from left to right and solder them to correspondong pads on the t5325 motherboard in the row. Look to the pictures in attachment and use this pinount from left to right:
p12,p11,p10,p9,p8,p7...s6,s5,s4,s3,s2
gnd,gnd,gnd,5V,5V,5V...Rx+,Rx-,gnd,Tx-,Tx+
Be careful and not mix them.
3) There is no place for 2,5" harddrive inside the case so we need to push cable somewere outside:
Fix SATA cable to CPU cooler spring, push it's HDD SATA connector through the hole for the LAN connector on casing backside and assemble t5325 motherboard into casing.
4) Screw the 2,5 harddrive to the top cover with 2 screws. Assemble the case completly and connect harddrive to our cable.
5) Boot up our modified thin client. Recently connected hard drive will be seen in u-boot and original thinpro linux. All further partitioning, software setup and u-boot environment variables modification can be done in original thinpro linux. Just open Xconsole or connect to it by ssh. But you will be blind if something goes wrong during booting. In this cases MicroJST serial TTL to RS232 cable is useful.

There are some more pictures but can't attach it here.



Edited 3 time(s). Last edit at 05/03/2016 04:17PM by xssa.
Attachments:
open | download - cable_connector.JPG (59.4 KB)
open | download - mb_sata_pads.JPG (171.8 KB)
open | download - assembled_casing.JPG (106.3 KB)
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: