Welcome! Log In Create A New Profile

Advanced

Debian on HP T5325 Thin Client

Posted by Gravelrash 
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 27, 2016 01:55AM
Let me look at that again. I think there is an error on my part.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 27, 2016 02:24AM
CV Wrote:
-------------------------------------------------------
> [Edit: forget "fw_printenv still says CRC error",
> it was apparently cause I had tabs in .config,
> it works with spaces]
>
>
> root@debian:~# cat /etc/fw_env.config 
> # MTD device name	Device offset	Env. size	Flash
> sector size	Number of sectors
> #
> # Dockstar:
> # /dev/mtd0 0xc0000 0x20000 0x20000
> 
> # Bodhi: HP T5325 Thin Client
> /dev/mtd0 0xc0000 0x1000 0x10000
> 
> root@debian:~# fw_printenv 
> baudrate=115200
> loads_echo=0
> rootpath=/mnt/ARM_FS/
> run_diag=no
> console=console=ttyS0,115200
> mtdparts=spi_flash:0x80000@0(uboot)ro,0x80000@0x80
> 000(root)
> CASset=min
> MALLOC_len=1
> ethprime=egiga0
> bootargs_root=root=/dev/nfs rw
> bootargs_end=:::DB88FXX81:eth0:none
> image_name=uImage
> usb_bootargs=root=/dev/ram rw
> bootusb=usb start;fatload usb 0 0x800000
> /boot/uImage.usb;fatload usb 0 0x1100000
> /boot/uInitrd.usb
> usbboot=setenv bootargs $(usb_bootargs); run
> bootusb; bootm 0x800000 0x1100000
> thinpro_bootargs=root=/dev/sda1 rw init=/init
> video=xgifb splash quiet
> pcieTune=yes
> mfgmode=setenv bootdelay 3; setenv in_mfg
> yes;setenvh GotoWOL Yes; setenvh WOLEnabled No;
> setenv bootcmd run mfgboot; saveenv; reset
> mfgbootargs=setenv bootargs root=/dev/sdb1 rw
> init=/init ip=dhcp rootdelay=8 $(console)
> udevtimeout=8
> mfgboot=usb start; ext2load usb 0:1 0x2000000
> /boot/uImage; run mfgbootargs; bootm 0x2000000
> product=setenv bootdelay 1; setenv in_mfg
> no;setenvh GotoWOL No; setenvh WOLEnabled Yes;
> setenv bootcmd run thinpro; saveenv; reset
> standalone=fsload 0x2000000 $(image_name);setenv
> bootargs $(console) root=/dev/mtdblock0 rw
> ip=$(ipaddr):$(serverip)$(bootargs_end)
> $(mvPhoneConfig); bootm 0x2000000;
> ethmtu=1500
> mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
> mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2
> :3),mtu=1500
> usb0Mode=host
> yuk_ethaddr=00:00:00:EE:51:81
> netretry=no
> rcvrip=169.254.100.100
> loadaddr=0x02000000
> autoload=no
> ethact=egiga0
> ethaddr=f4:ce:46:24:94:de
> gatewayip=10.4.50.5
> netmask=255.255.255.0
> ipaddr=10.4.50.38
> serverip=10.4.50.5
> bootdelay=1
> in_mfg=no
> thinpro=ide reset; ext2load ide 0:1 0x200000
> /boot/uImage; wol; setenv bootargs
> $(thinpro_bootargs); bootm 0x200000
> boot_initrd=
> stdin=serial
> stdout=serial
> stderr=serial
> mainlineLinux=no
> enaMonExt=no
> enaCpuStream=no
> enaWrAllo=no
> pexMode=RC
> disL2Cache=no
> setL2CacheWT=yes
> disL2Prefetch=yes
> enaICPref=yes
> enaDCPref=yes
> sata_dma_mode=yes
> netbsd_en=no
> vxworks_en=no
> disaMvPnp=no
> enaAutoRecovery=yes
> bootargs_usb=console=ttyS0,115200
> root=LABEL=rootfs rootdelay=10
> load_usb=usb start; ext2load usb 0:1 0x800000
> /boot/uImage; ext2load usb 0:1 0x1100000
> /boot/uInitrd
> bootcmd_usb=setenv bootargs $(bootargs_usb); run
> load_usb; bootm 0x800000 0x1100000
> bootcmd=run bootcmd_usb; run thinpro
> root@debian:~# 
> 
>
>
> Cool!

Cool indeed :)

Now you should try setting some variable to test. See if the checksum and the env size really works.

fw_setenv test 'CV test env'

Then reboot.

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



Edited 2 time(s). Last edit at 02/27/2016 02:43AM by bodhi.
CV
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 27, 2016 04:05AM
Ok, trying kwboot now:

-I only have a 32bit Linux box ATM, so I got kwboot sources from GitHub "https://github.com/dns42/u-boot"; and compiled it on my box "gcc kwboot.c" (renamed a.out to kwboot)

-got uboot.2015.10-tld-1.sheevaplug.mtd0.kwb from suggested link "uboot.2015.10-tld-1.sheevaplug.bodhi.tar, md5 0e3ac5428ee25dd812a77cc9cb541758"

-turned off T5325

-executed on my Linux box (with serial cable connected to T5325):
./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2015.10-tld-1.sheevaplug.mtd0.kwb -p

-turned on t5325

As a result it just booted the HP stock uboot and then the kernel on USB, see log below.

kwboot is sort of acting as a serial console program now, is see
cveit@cvnbdelli8600:~$ ps -ef | grep kwboot
cveit     3664  3054  0 10:41 pts/3    00:00:00 ./kwboot -t -B 115200 /dev/ttyUSB0 uboot.2015.10-tld-1.sheevaplug.mtd0.kwb
cveit     3856  3791  0 10:58 pts/0    00:00:00 grep --color=auto kwboot
cveit@cvnbdelli8600:~$

I have a root shell now on the t5325, can do stuff.

Did I miss something / not do something?
What was supposed to happen?

cveit@cvnbdelli8600:~/Downloads/t5323$ ./kwboot -t -B 115200 /dev/ttyUSB0 uboot.2015.10-tld-1.sheevaplug.mtd0.kwb 
[Type Ctrl-\ + c to quit]
�
       _   _     .____    
      | |_| |    |  _ \  
      |  _  |    | (_))   
      | |-| |    | |      
      |_| |_|    |_|  ..  
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** LOADER **
 ** BOARD: DB-88F6281A-BP LE 

U-Boot 1.1.4 (Jan  8 2010 - 14:03:56) MIC version : 3.4.19-16

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CD4E0

Soc: 88F6281 A1 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz 

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB 
DRAM CS[1] base 0x10000000   size 256MB 
DRAM Total size 512MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
[1024kB@f8000000] Flash:  1 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0 
(Re)start USB...
USB:   scanning bus for devices... 3 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
................................................................................................................................................................................................................................................................................................................

3166549 bytes read
....
.........................................................................................................................................................................................................................................................................................................................................................................................................................
..............................................................................................................................................................................................................................................................................................

7179935 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.4.0-kirkwood-tld-1
   Created:      2016-02-26  15:13:28 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3166485 Bytes =  3 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   Image Name:   initramfs-4.4.0-kirkwood-tld-1
   Created:      2016-02-19   7:33:04 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7179871 Bytes =  6.8 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
...
..
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1279 (klogd)
. ok 

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password: 
Last login: Sat Feb 27 01:01:19 PST 2016 on ttyS0
Linux debian 4.4.0-kirkwood-tld-1 #1 PREEMPT Mon Jan 25 20:35:24 PST 2016 armv5tel

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.
root@debian:~# uname -a
Linux debian 4.4.0-kirkwood-tld-1 #1 PREEMPT Mon Jan 25 20:35:24 PST 2016 armv5tel GNU/Linux
root@debian:~#



Edited 1 time(s). Last edit at 02/27/2016 04:27AM by CV.
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 27, 2016 04:26AM
Ah, that's bad news! However, let's go through the checklist

- Is your Linux box ARM? if it is then use the one I uploaded:

Quote

To download ARM kwboot binary for UART booting at Dropbox:
kwboot
md5:
0efd011bdb244436e432a8de33e639a1

2. Did you check the bootROM version in serial console

md ff00003c

3. If the box has UART booting, then kwboot will handshake with the box before it tries to load u-boot. And if the handshake was sucessful, then it will send the image. This is an example of what should happen:

./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2015.10-tld-2.nsa310s.mtd0.kwb -p
Sending boot message. Please reboot the target.../
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
CV
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 27, 2016 04:53AM
bodhi Wrote:
-------------------------------------------------------
> Ah, that's bad news! However, let's go through the
> checklist
>
> - Is your Linux box ARM? if it is then use the one

No, its x86, an old DELL Laptop Pentium M 32bit. That's why I compiled kwboot from C.

> 2. Did you check the bootROM version in serial
> console
>
>
> md ff00003c
>

Yes, gives all zeros:
Hit any key to stop autoboot:  0 
HP>> md ff00003c
ff00003c: 00000000 00000000 00000000 00000000    ................
ff00004c: 00000000 00000000 00000000 00000000    ................
ff00005c: 00000000 00000000 00000000 00000000    ................
ff00006c: 00000000 00000000 00000000 00000000    ................
ff00007c: 00000000 00000000 00000000 00000000    ................
ff00008c: 00000000 00000000 00000000 00000000    ................
ff00009c: 00000000 00000000 00000000 00000000    ................
ff0000ac: 00000000 00000000 00000000 00000000    ................
ff0000bc: 00000000 00000000 00000000 00000000    ................
ff0000cc: 00000000 00000000 00000000 00000000    ................
ff0000dc: 00000000 00000000 00000000 00000000    ................
ff0000ec: 00000000 00000000 00000000 00000000    ................
ff0000fc: 00000000 00000000 00000000 00000000    ................
ff00010c: 00000000 00000000 00000000 00000000    ................
ff00011c: 00000000 00000000 00000000 00000000    ................
ff00012c: 00000000 00000000 00000000 00000000    ................
HP>>


> 3. If the box has UART booting, then kwboot will
> handshake with the box before it tries to load
> u-boot. And if the handshake was sucessful, then
> it will send the image. This is an example of what
> should happen:
>
> ./kwboot -t -B 115200 /dev/ttyUSB0 -b
> uboot.2015.10-tld-2.nsa310s.mtd0.kwb -p
>
> Sending boot message. Please reboot the
> target.../
> Sending boot image...
>   0 %
> [.................................................
> .....................]
>   1 %
> [.................................................
> .....................]
>   3 %
> [.................................................
> .....................]
>   5 %
> [.................................................
> .....................]
>   6 %
> [.................................................
> .....................]
>   8 %
> [.................................................
> .....................]
>

Well, kwboot does handshake, as I can see all the UBOOT logs and kernel logs, and even allows me to login to the t5325 ("kwboot is acting like a serial terminal program",
as you see abobe I am now on stock HP uboot prompt ("HP>>).

[EDIT: I should have read the man page of kwboot, it clearly says so:
Additionally, this program implements a minimal terminal mode...]

I type boot, and then it goes on to boot Linux, comes to login prompt and I can login, all still "in kwboot":

EDIT:
I also tried using fw_setenv, alas fail:

[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1275 (klogd)
. ok 

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password: 
Last login: Sat Feb 27 02:39:47 PST 2016 on ttyS0
Linux debian 4.4.0-kirkwood-tld-1 #1 PREEMPT Mon Jan 25 20:35:24 PST 2016 armv5tel

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.
root@debian:~# fw_printenv test
## Error: "test" not defined
root@debian:~# fw_setenv test 'Bodhi and all the rest on forum are cool!'
root@debian:~# fw_printenv test
## Error: "test" not defined
root@debian:~#

Not so cool eh? ;-)

(I did not try rebooting to see if fw_setenv changes are persistent, as a subsequent fw_printenv says "not defined".)



Edited 3 time(s). Last edit at 02/27/2016 05:17AM by CV.
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 27, 2016 05:19AM
CV,

> Yes, gives all zeros:
> HP>> md ff00003c
> ff00003c: 00000000 00000000 00000000 00000000

This is neither good or bad. It means we just don't have an indicator if UART booting is supported.

> Well, kwboot does handshake, as I can see all the
> UBOOT logs and kernel logs, and even allows me to
> login to the t5325 ("kwboot is acting like a
> serial terminal program",
> as you see abobe I am now on stock HP uboot prompt
>
> [EDIT: I should have read the man page of kwboot,
> it clearly says so:
> Additionally, this program implements a minimal
> terminal mode...]

Yes, it is a regular terminal when it could not handshake. Handshake here means exchange xmodem protocol handshake with the bootROM.

> root@debian:~# fw_printenv test
> ## Error: "test" not defined
> root@debian:~# fw_setenv test 'Bodhi and all the
> rest on forum are cool!'

Thanks :)

> root@debian:~# fw_printenv test
> ## Error: "test" not defined
> root@debian:~#
> [/code]

Not good! but that's OK, since you can use serial console to setenv.

Hopefully, perhaps you might have missed the window. You could try to execute kwboot after connecting the power (like within 1 second). Play with this timing to see if it behaves differently.

Looking at the log you posted, it is not right that it did not display the banner, did it?
Sending boot message. Please reboot the target.../
and the command you used did not have -p
cveit@cvnbdelli8600:~/Downloads/t5323$ ./kwboot -t -B 115200 /dev/ttyUSB0 uboot.2015.10-tld-1.sheevaplug.mtd0.kwb

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



Edited 1 time(s). Last edit at 02/27/2016 05:19AM by bodhi.
CV
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 27, 2016 05:28AM
But taking a step back and looking at the overall situation so far:

-the stock HP uboot env can be modified from uboot itself: good

-the stock HP uboot can be set to boot from USB: good

-you provided a very well working kernel 4.4.0-kirkwood: very good!
(so far stable, good network throughput, I will continue to test)

-along with a root filesystem that can apt-get updated and all: very good!

-so already now I could use the thing as a better replacement for my dockstar fileserver

Or do you think that the stock uboot really is
Quote
UPDATE: BTW, this stock u-boot is horrible, for rebooting. Looks like it keeps rewriting the envs to NAND at each boot. -bodhi

I do not see a NAND write every boot time?
CV
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 27, 2016 05:39AM
YESSSSSS!

Bodhi, You are the man Eagle Eyes spotting the error!!!


Sheevaplug uboot kwbooted!!!!!!!

Oh joy!!!!



cveit@cvnbdelli8600:~/Downloads/t5323$ ./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2015.10-tld-1.sheevaplug.mtd0.kwb -p
Sending boot message. Please power/reset the target...-
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
...
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2015.10-tld-1 (Nov 08 2015 - 21:01:07 -0800)
Marvell-Sheevaplug

SoC:   Kirkwood 88F6281_A1
DRAM:  512 MiB (ECC not enabled)
WARNING: Caches not enabled
NAND:  0 MiB
*** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0 
Sheevaplug> printenv
arcNumber=2097
baudrate=115200
bootcmd=run bootcmd_uenv; run bootcmd_usb; reset
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot;
bootdelay=10
console=ttyS0,115200
device=0:1
ethact=egiga0
ethaddr=b6:d0:5e:0f:a1:17
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mtdids=nand0=orion_nand
partition=nand0,2
rootdelay=10
rootfstype=ext2
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
stderr=serial
stdin=serial
stdout=serial
uenv_import=echo importing envs ...; env import -t 0x810000
uenv_load=usb start; ide reset; setenv uenv_loaded 0; for devtype in usb ide; do for disknum in 0; do run uenv_read_disk; done; done
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if $devtype part $disknum; then run uenv_read; fi
usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_init=usb start
usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=/dev/sda1

Environment size: 1372/131068 bytes
Sheevaplug>

As your uboot says
NAND:  0 MiB
*** Warning - readenv() failed, using default environment

I guess a similar change to uboot is needed like this change to fw_env.config, right?



Edited 1 time(s). Last edit at 02/27/2016 05:53AM by CV.
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 27, 2016 05:51AM
Cool!!!

Let's revisit this envs tomorrow.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
CV
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 27, 2016 05:55AM
Bodhi, ok, at what timezone are you (what is your tommorrow)?
(I am in Germany, GMT+1)



Edited 1 time(s). Last edit at 02/27/2016 05:56AM by CV.
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 27, 2016 02:33PM
@Gravelrash,

How is your T5325 project? is the serial working?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
CV
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 27, 2016 11:48PM
Good Morning Bodhi!

Yesterday I had a quick look at the uboot sources in your Github - I wanted to try to setup a build environment for u-boot.
But I need to read up a lot on that, linux crossbuilding etc.

Do you maybe have a pointer to a guide on that..?

And I also did not find my way around the uboot sources really, I thought that maybe I could find the files and configuration for the nand access, but I got lost, I did see dirs like board/Marvel, /nand /spi etc but I got lost...

I'm curious to try kwbooting uboot's and see setenv going to work, and I also saw that uboot seems to support a sort of netbooting like ipxe does, is that right?

Cheers
CV
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 28, 2016 02:14AM
Hi CV,

Let's take a breather!

I think we are at the point that I've learned enough about this box to be able to start working on the new u-boot. It would not have been enough info without looking at the new kernel running like it is now.

What you can do to benefit everybody is running the new kernel and check out the system to see if it does what it suppose to do with memory, cpu, peripherals,... see if there is anything out of the ordinary.

I'm starting to build the new u-boot, and it won't be straight forward! so it will take a little while depending how much free time I have. Probably by the time Gravelrash and bobafetthotmail got their serial consoles working, I'll have a test build for everybody to try :)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 28, 2016 11:58AM
Oh awesome!!!!

kwboot is supported. Very good. I like unbrickable boxes.

>I also saw that uboot seems to support a sort of netbooting like ipxe does, is that right?

yes http://kernelnomicon.org/?p=327

It's useful for development purposes (if you make a firmware for your device) but it's not going to be much use for us as the "firmware" here is Debian ARM and that works well already.

>What you can do to benefit everybody is running the new kernel and check out the system to see if it does what it suppose to do with memory, cpu, peripherals,... see if there is anything out of the ordinary.

This. Audio jacks, GPU/Video, buttons and led and the buzzer.
CV
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 28, 2016 02:47PM
Hi Bobba!
I'll test these things, and report.
Sofar I can say that it works stable as a fileserver, tftp, smb, nfs, isci target.
X and sound not yet tested, will do.
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 28, 2016 02:52PM
> It's useful for development purposes (if you make
> a firmware for your device) but it's not going to
> be much use for us as the "firmware" here is
> Debian ARM and that works well already.

It's true that Debian with new kernel runnning is good enough for a lot of users. However, stock u-boot can not support Ext4, large 2TB+ HDD, SNTP,... a lot of modern features are missing. The box can't run as well as $200 NAS yet :)

BTW, while sheevaplug is a good u-boot for UART booting purpose, it is not a correct u-boot.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 28, 2016 04:00PM
>I'll test these things, and report.

Thanks.


>It's true that Debian with new kernel runnning is good enough for a lot of users.

He was talking of a u-boot feature that allows it to fetch uImage and stuff then boot from the network.

I should have been more clear, I only wanted to say that it's not useful for us as Debian (the "firmware") is probably mostly ok as-is, while u-boot testing has to be done by UART-boot anyway.
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 28, 2016 04:37PM
bobafetthotmail,

> He was talking of a u-boot feature that allows it
> to fetch uImage and stuff then boot from the
> network.

Ah I see. Stock u-boot should already provided tftp for that purpose.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 29, 2016 05:59PM
Hello all,

Not read this trail for a while as i have been working on some other stuff - mostly work related - sometimes being an "inveterate fiddler of kit" lands me with a backlog of other peoples stuff to sort out.

Cleared the decks now, so Tuesday, I will be reading this post in depth and offering feedback as i can. I have finally got my serial console in and working well i had to make seven more of them... but that is another story.

picture attached
Attachments:
open | download - 01.jpg (262.6 KB)
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 29, 2016 06:37PM
Gravelrash Wrote:
-------------------------------------------------------
> Hello all,
>
> Not read this trail for a while as i have been
> working on some other stuff - mostly work related
> - sometimes being an "inveterate fiddler of kit"
> lands me with a backlog of other peoples stuff to
> sort out.
>
> Cleared the decks now, so Tuesday, I will be
> reading this post in depth and offering feedback
> as i can. I have finally got my serial console in
> and working well i had to make seven more of
> them... but that is another story.
>
> picture attached

Wow! I wish any of my serial console connectors were that nice looking!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 29, 2016 07:42PM
bodhi Wrote:
> Wow! I wish any of my serial console connectors
> were that nice looking!


:) I will trade you my soldering skills for a tiny fraction of your software skills any day :)
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
February 29, 2016 11:42PM
The GPL source is supposed to be in here. I'm still looking, it's not easy to find the GPL tarball!
ftp://ftp.hp.com/pub/tcdebian

Update:

I think this worth looking into:

ll u-boot-1.1.4.tar.bz2
-rw------- 1 503 dialout 7398011 Apr 27 2010 u-boot-1.1.4.tar.bz2

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



Edited 1 time(s). Last edit at 02/29/2016 11:58PM by bodhi.
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
March 01, 2016 05:47AM
For anyone who wonders why i haven't obfuscated the mac or ip address of the device, well, quite frankly i don't care who has it as I will be changing it anyway :) its never going on the internet and will exist solely in its own little bubble....

Here is my output from the HPT5325 from serial console
gravelrash@4320 ~ $ pogoconsole
^A^X to exit

picocom v1.7

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,

Terminal ready
�
       _   _     .____    
      | |_| |    |  _ \  
      |  _  |    | (_))   
      | |-| |    | |      
      |_| |_|    |_|  ..  
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** LOADER **
 ** BOARD: DB-88F6281A-BP LE 

U-Boot 1.1.4 (Nov 27 2009 - 14:25:23) MIC version: 3.4.19-15

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CD4E0

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz 

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB 
DRAM CS[1] base 0x10000000   size 256MB 
DRAM Total size 512MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
[1024kB@f8000000] Flash:  1 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0 

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)


1888432 bytes read
Checking Button Status: off
Checking GotoWOL Status: off
## Booting image at 00200000 ...
   Image Name:   Linux-2.6.22.18-2-armel
   Created:      2009-11-17  18:35:01 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1888368 Bytes =  1.8 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux......................................................................................................................... done, booting the kernel.

at the point of "done, booting the kernel." the output switches to screen output and continues with dmesg output whilst closing the output to the serial console so we now must grab the output from dmesg

gravelrash@4320 ~ $ ssh root@192.168.42.14
root@192.168.0.14's password: 
Linux HPf4ce462327a0 2.6.22.18-2-armel #1 PREEMPT Tue Nov 17 13:34:38 EST 2009 armv5tejl

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.
root@HPf4ce462327a0:~# clear

root@HPf4ce462327a0:~# dmesg
[    0.000000] Linux version 2.6.22.18-2-armel (root@lenny-devel) (gcc version 4.2.1) #1 PREEMPT Tue Nov 17 13:34:38 EST 2009
[    0.000000] CPU: ARM926EJ-S [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] Machine: Feroceon-KW
[    0.000000] Using UBoot passing parameters structure
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 131072
[    0.000000]   DMA zone: 1024 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 130048 pages, LIFO batch:31
[    0.000000]   Normal zone: 0 pages used for memmap
[    0.000000] CPU0: D VIVT write-back cache
[    0.000000] CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
[    0.000000] CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
[    0.000000] Built 1 zonelists.  Total pages: 130048
[    0.000000] Kernel command line: root=/dev/sda1 rw init=/init video=xgifb splash quiet
[    0.000000] PID hash table entries: 2048 (order: 11, 8192 bytes)
[    0.000000] Console: colour dummy device 80x30
[    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.020000] Memory: 256MB 256MB 0MB 0MB = 512MB total
[    0.020000] Memory: 515584KB available (3508K code, 463K data, 108K init)
[    0.020000] Calibrating delay loop... 1199.30 BogoMIPS (lpj=5996544)
[    0.250000] Security Framework v1.0.0 initialized
[    0.250000] SELinux:  Disabled at boot.
[    0.250000] Capability LSM initialized
[    0.250000] Mount-cache hash table entries: 512
[    0.250000] CPU: Testing write buffer coherency: ok
[    0.250000] NET: Registered protocol family 16
[    0.250000] 
[    0.250000] CPU Interface
[    0.250000] -------------
[    0.250000] SDRAM_CS0 ....base 00000000, size 256MB 
[    0.250000] SDRAM_CS1 ....base 10000000, size 256MB 
[    0.250000] SDRAM_CS2 ....disable
[    0.250000] SDRAM_CS3 ....disable
[    0.250000] PEX0_MEM ....base e8000000, size 128MB 
[    0.250000] PEX0_IO ....base f2000000, size   1MB 
[    0.250000] INTER_REGS ....base f1000000, size   1MB 
[    0.250000] NFLASH_CS ....base fa000000, size   2MB 
[    0.250000] SPI_CS ....base f4000000, size  16MB 
[    0.250000] BOOT_ROM_CS ....no such
[    0.250000] DEV_BOOTCS ....no such
[    0.250000] CRYPT_ENG ....base f0000000, size   2MB 
[    0.250000] 
[    0.250000]   Marvell Development Board (LSP Version KW_LSP_4.2.7_patch21_with_rx_desc_tuned)-- OpenRD-Base  Soc: 88F6281 A0 LE
[    0.250000] 
[    0.250000]  Detected Tclk 200000000 and SysClk 400000000 
[    0.250000] MV Buttons Device Load
[    0.250000] rt5623 Codec device register
[    0.250000] Marvell USB EHCI Host controller #0: c0893200
[    0.750000] PEX0 interface detected Link X1
[    0.750000] PCI: bus0: Fast back to back transfers disabled
[    0.750000] SCSI subsystem initialized
[    0.760000] usbcore: registered new interface driver usbfs
[    0.760000] usbcore: registered new interface driver hub
[    0.760000] usbcore: registered new device driver usb
[    0.760000] NET: Registered protocol family 2
[    0.770000] Time: kw_clocksource clocksource has been installed.
[    0.770000] Switched to high resolution mode on CPU 0
[    0.850000] IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.850000] TCP established hash table entries: 65536 (order: 7, 524288 bytes)
[    0.850000] TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
[    0.850000] TCP: Hash tables configured (established 65536 bind 65536)
[    0.850000] TCP reno registered
[    0.880000] RTC registered
[    0.880000] Use the XOR engines (acceleration) for enhancing the following functions:
[    0.880000]   o RAID 5 Xor calculation
[    0.880000]   o kernel memcpy
[    0.880000]   o kenrel memzero
[    0.880000] Number of XOR engines to use: 4
[    0.880000] CESA test started: bufNum = 1, bufSize = 20000
[    0.880000] Cesa Test Start: pMbufSrc=c092f000, pFragsSrc=c08ae000, pMbufDst=c0929000, pFragsDst=c08f0000
[    0.900000] mvCesaInit: sessions=32, queue=252, pSram=f0000000
[    0.920000] cesadev_init(c0010edc)
[    0.920000] Warning: TS unit is powered off.
[    0.920000] MV Buttons Driver Load
[    0.920000] audit: initializing netlink socket (disabled)
[    0.920000] audit(1456831459.889:1): initialized
[    0.920000] VFS: Disk quotas dquot_6.5.1
[    0.920000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.920000] squashfs: version 3.3 (2007/10/31) Phillip Lougher
[    0.920000] squashfs: LZMA suppport for slax.org by jro
[    0.920000] aufs 20090126
[    0.920000] io scheduler noop registered
[    0.920000] io scheduler cfq registered (default)
[    0.920000] XGIfb: Options <NULL>
[    0.920000] XGIfb: Relocate IO address: 1000 [00001030] 
[    0.920000] XGIfb: Enable PCI device
[    0.920000] XGIfb: SR14=41 DramSzie 1000000 ChannelNum 1
[    0.920000] XGIfb: Framebuffer at 0xe8000000, mapped to 0xe1000000, size 16384k
[    0.920000] XGIfb: MMIO at 0xec000000, mapped to 0xe0880000, size 256k
[    0.920000] XGIfb: XGIInitNew() ...OK
[    0.920000] XGIfb: Memory heap starting at 8192K
[    0.920000] XGIfb: Default mode is 1024x768x16 (60Hz)
[    0.920000] XGIfb: Change mode to 1024x768x16-60Hz
[    0.970000] Console: switching to colour frame buffer device 128x48
[    1.020000] XGIfb: Installed XGIFB_GET_INFO ioctl (80046ef8)
[    1.020000] fb0:  frame buffer device, Version 0.8.01
[    1.040000] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
[    1.040000] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    1.040000] serial8250.0: ttyS1 at MMIO 0xf1012100 (irq = 34) is a 16550A
[    1.040000] RAMDISK driver initialized: 16 RAM disks of 8192K size 4096 blocksize
[    1.040000] loop: module loaded
[    1.040000] Loading Marvell Ethernet Driver:
[    1.040000]   o Cached descriptors in DRAM
[    1.040000]   o DRAM SW cache-coherency
[    1.040000]   o Single RX Queue support - ETH_DEF_RXQ=0
[    1.040000]   o Single TX Queue support - ETH_DEF_TXQ=0
[    1.040000]   o TCP segmentation offload enabled
[    1.040000]   o Receive checksum offload enabled
[    1.040000]   o Transmit checksum offload enabled
[    1.040000]   o Network Fast Processing (Routing) supported
[    1.040000]   o Driver ERROR statistics enabled
[    1.040000]   o Driver INFO statistics enabled
[    1.040000]   o Proc tool API enabled
[    1.040000]   o Rx descripors: q0=128
[    1.040000]   o Tx descripors: q0=532
[    1.040000]   o Loading network interface(s):
[    1.050000]     o  register under eth%d platform
[    1.050000]     o eth0, ifindex = 1, GbE port = 0
[    1.050000]     o eth1, ifindex = 2, GbE port = 1
[    1.050000] 
[    1.050000] mvFpRuleDb (de710000): 16384 entries, 65536 bytes
[    1.050000] Integrated Sata device found
[    1.070000] scsi0 : Marvell SCSI to SATA adapter
[    1.070000] scsi1 : Marvell SCSI to SATA adapter
[    1.070000] SPI Serial flash detected @ 0xf4000000, 1024KB (16sec x 64KB)
[    1.070000] Creating 5 MTD partitions on "spi_flash":
[    1.070000] 0x000c0000-0x000d0000 : "u-boot env"
[    1.070000] 0x000d0000-0x000e0000 : "permanent u-boot env"
[    1.070000] 0x000e0000-0x000f0000 : "HP env"
[    1.070000] 0x00000000-0x00080000 : "u-boot"
[    1.070000] 0x00080000-0x000c0000 : "SSD firmware"
[    1.080000] usbmon: debugfs is not available
[    1.080000] ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
[    1.080000] ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
[    1.110000] ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
[    1.130000] ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
[    1.130000] usb usb1: configuration #1 chosen from 1 choice
[    1.130000] hub 1-0:1.0: USB hub found
[    1.130000] hub 1-0:1.0: 1 port detected
[    1.240000] ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.240000] mice: PS/2 mouse device common for all mice
[    1.240000] i2c /dev entries driver
[    1.240000] Advanced Linux Sound Architecture Driver Version 1.0.14 (Thu May 31 09:03:25 2007 UTC).
[    1.240000] ASoC version 0.13.1
[    1.240000] rt5623: RT5623 Audio Codec 0.01
[    1.240000] asoc: RT5623 <-> mv88fx_-i2s mapping ok
[    1.250000] rt5623_codec_probe OK
[    1.250000] ALSA device list:
[    1.250000]   #0: Dove (RT5623)
[    1.250000] Mirror/redirect action on
[    1.250000] TCP cubic registered
[    1.250000] NET: Registered protocol family 17
[    1.250000] scsi: waiting for bus probes to complete ...
[    1.520000] usb 1-1: new high speed USB device using ehci_marvell and address 2
[    1.610000] scsi 0:0:0:0: Direct-Access     ATA      SM224            I052 PQ: 0 ANSI: 5
[    1.610000] sd 0:0:0:0: [sda] 949536 512-byte hardware sectors (486 MB)
[    1.610000] sd 0:0:0:0: [sda] Write Protect is off
[    1.610000] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[    1.610000] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.610000] sd 0:0:0:0: [sda] 949536 512-byte hardware sectors (486 MB)
[    1.610000] sd 0:0:0:0: [sda] Write Protect is off
[    1.610000] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[    1.610000] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.610000]  sda: sda1
[    1.610000] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.610000] kjournald starting.  Commit interval 5 seconds
[    1.620000] EXT3 FS on sda1, internal journal
[    1.620000] EXT3-fs: mounted filesystem with ordered data mode.
[    1.620000] VFS: Mounted root (ext3 filesystem).
[    1.620000] Freeing init memory: 108K
[    1.620000] Warning: unable to open an initial console.
[    1.700000] usb 1-1: configuration #1 chosen from 1 choice
[    1.710000] hub 1-1:1.0: USB hub found
[    1.710000] hub 1-1:1.0: 4 ports detected
[    2.010000] NET: Registered protocol family 1
[    4.340000] EXT3 FS on sda1, internal journal
[    6.400000] udevd version 125 started
[   23.410000] NET: Registered protocol family 10
[   23.410000] lo: Disabled Privacy Extensions
[   23.410000] Mobile IPv6
[   32.810000] XGIfb: Change mode to 1024x768x16-60Hz
[   33.160000] phys_mem_access_prot called - offset f2001000, uncached_access = -1071249904
[   33.200000] phys_mem_access_prot called - offset ec000000, uncached_access = -1071249904
[   33.200000] phys_mem_access_prot called - offset e8000000, uncached_access = -1071249904
[   35.290000] eth0: link up, full duplex, speed 100 Mbps
[   35.300000] eth0: started
[   45.910000] eth0: no IPv6 routers present
root@HPf4ce462327a0:~#

Interrupted uboot gives the following which then goes into a Wake On LAN loop
no nothing of much interest to show here
�
       _   _     .____    
      | |_| |    |  _ \  
      |  _  |    | (_))   
      | |-| |    | |      
      |_| |_|    |_|  ..  
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** LOADER **
 ** BOARD: DB-88F6281A-BP LE 

U-Boot 1.1.4 (Nov 27 2009 - 14:25:23) MIC version: 3.4.19-15

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CD4E0

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz 

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB 
DRAM CS[1] base 0x10000000   size 256MB 
DRAM Total size 512MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
[1024kB@f8000000] Flash:  1 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0 

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)


1888432 bytes read
Checking Button Status: off
Checking GotoWOL Status: on, setting to off
.
Un-Protected 1 sectors
Erasing Flash...
.
Erased 1 sectors
Writing to Flash... done
.
Protected 1 sectors
Entering WOL mode
--------------
Scaling down CPU freq
PEX is Powered Off - 2
USB is Powered Off - 3
SDIO is Powered Off (clock only) - 4
TSU is Powered Off (clock only) - 5
XOR0 is Powered Off (clock only) - 8
Audio is Powered Off (clock only) - 9
SATA0 is Powered Off - 14
SATA1 is Powered Off - 15
XOR1 is Powered Off (clock only) - 16
CESA is Powered Off (clock only) - 17
Giga1 is Powered Off (clock only) - 19
TDM is Powered Off (clock only) - 20
Setting PHY interrupt mode
Setting GPIOs as input
Setting GPIOs mask
Setting main high interrupt mask

Checking link...
Link is 10Mb
Got link!
Setting egiga RX interrupt mask
Setting main interrupt mask
Waiting for packets...
Analyzing packet:
[ff ff ff ff ff ff]
Got WOL pattern, checking if reffering us...
Our ethernet	[f4:ce:46:23:27:a0]
Pattren #1	[c4:4:15:fb:d4:73]:ERR
WOL packet not for our host, keep listening...

Standard environment setting have to be pulled from the unit either on the device itself of from an ssh session

root@HPf4ce462327a0:~# fw_printenv
baudrate=115200
loads_echo=0
rootpath=/mnt/ARM_FS/
run_diag=no
console=console=ttyS0,115200 mtdparts=spi_flash:0x80000@0(uboot)ro,0x80000@0x80000(root)
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
usb_bootargs=root=/dev/ram rw
bootusb=usb start;fatload usb 0 0x800000 /boot/uImage.usb;fatload usb 0 0x1100000 /boot/uInitrd.usb
usbboot=setenv bootargs $(usb_bootargs); run bootusb; bootm 0x800000 0x1100000
thinpro_bootargs=root=/dev/sda1 rw init=/init video=xgifb splash quiet
thinpro=ide reset; ext2load ide 0:1 0x200000 /boot/uImage; wol; setenv bootargs $(thinpro_bootargs); bootm 0x200000
pcieTune=yes
mfgmode=setenv bootdelay 3; setenv in_mfg yes;setenvh GotoWOL Yes; setenvh WOLEnabled No; setenv bootcmd run mfgboot; saveenv; reset
mfgbootargs=setenv bootargs root=/dev/sdb1 rw init=/init ip=dhcp rootdelay=8 $(console) udevtimeout=8
mfgboot=usb start; ext2load usb 0:1 0x2000000 /boot/uImage; run mfgbootargs; bootm 0x2000000
product=setenv bootdelay 1; setenv in_mfg no;setenvh GotoWOL No; setenvh WOLEnabled Yes; setenv bootcmd run thinpro; saveenv; reset
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
ethact=egiga0
bootargs=root=/dev/sda1 rw init=/init video=xgifb splash quiet
ethaddr=f4:ce:46:23:27:a0
gatewayip=10.4.50.5
netmask=255.255.255.0
ipaddr=10.4.50.143
serverip=10.4.50.5
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
disaMvPnp=no
enaAutoRecovery=yes
bootdelay=1
in_mfg=no
bootcmd=run thinpro
root@HPf4ce462327a0:~#

Next post will be after I attempt to do kwboot. what other information do you require?



EDIT : 1

Downloaded the precompiled x64 binary from DavyGravy and placing it in the /bin directory

obtained the sheevaplug u-boot from here
http://forum.doozan.com/read.php?3,12381 & https://bitly.com/1WKY9tj

then running the commands as written below from a cold started unit
kwboot  -t -B 115200 /dev/ttyUSB0 -b uboot.2015.10-tld-1.sheevaplug.mtd0.kwb -p

yields the following result
kwboot $ kwboot  -t -B 115200 /dev/ttyUSB0 -b uboot.2015.10-tld-1.sheevaplug.mtd0.kwb -p
Sending boot message. Please reboot the target.../
-^Z
[5]+  Stopped                 kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2015.10-tld-1.sheevaplug.mtd0.kwb -p

No handshake occured or attempt to send the file across xmodem, modified the command to remove the -p to see what happened

kwboot  -t -B 115200 /dev/ttyUSB0 -b uboot.2015.10-tld-1.sheevaplug.mtd0.kwb
Sending boot message. Please reboot the target...\
\^Z
[6]+  Stopped                 kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2015.10-tld-1.sheevaplug.mtd0.kwb

So it looks like on my particular unit that kwboot is not possible.... AND/OR there is a variance between CV's and my uboot's

Next update will be results on creating a bootable usb and amending statements to suit



EDIT : 2

generated image as per below - i move the working files into a working folder them move them back - couple of extra steps, (but its the way i work)

cp -a ./zImage-3.18.5-kirkwood-tld-1  ./zImage.fdt
cat ./kirkwood-t5325.dtb  >> ./zImage.fdt
mv ./uImage ./uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.18.5-kirkwood-tld-1 -d zImage.fdt  uImage


# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.18.5-kirkwood-tld-1 -d zImage.fdt  uImage
Image Name:   Linux-3.18.5-kirkwood-tld-1
Created:      Tue Mar  1 14:38:32 2016
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    2877023 Bytes = 2809.59 kB = 2.74 MB
Load Address: 00008000
Entry Point:  00008000

# 

sync

disk now prepared and onto setting uboot parameters from ssh session
fw_setenv bootargs_usb 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10'
fw_setenv load_usb 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1  0x1100000 /boot/uInitrd'
fw_setenv bootcmd_usb 'setenv bootargs $(bootargs_usb); run load_usb; bootm 0x800000 0x1100000'
fw_setenv bootcmd 'run bootcmd_usb; run thinpro'
boot
fw_saveenv


Which once finished and correcting the typo with a missing ' gives the below with a printenv of

root@HPf4ce462327a0:~# 
root@HPf4ce462327a0:~# 
root@HPf4ce462327a0:~# 
root@HPf4ce462327a0:~# 
root@HPf4ce462327a0:~# fw_setenv bootargs_usb 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10'
Unlocking flash...
Done
Erasing old environment...
Done
Writing environment to /dev/mtd0...
Done
Locking ...
Done
root@HPf4ce462327a0:~# fw_setenv load_usb 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1  0x1100000 /boot/uInitrd'
Unlocking flash...
Done
Erasing old environment...
Done
Writing environment to /dev/mtd0...
Done
Locking ...
Done
root@HPf4ce462327a0:~# fw_setenv bootcmd_usb 'setenv bootargs $(bootargs_usb); run load_usb; bootm 0x800000 0x1100000
> '
Unlocking flash...
Done
Erasing old environment...
Done
Writing environment to /dev/mtd0...
Done
Locking ...
Done
root@HPf4ce462327a0:~# fw_setenv bootcmd_usb 'setenv bootargs $(bootargs_usb); run load_usb; bootm 0x800000 0x1100000'
Unlocking flash...
Done
Erasing old environment...
Done
Writing environment to /dev/mtd0...
Done
Locking ...
Done
root@HPf4ce462327a0:~# fw_setenv bootcmd 'run bootcmd_usb; run thinpro'
Unlocking flash...
Done
Erasing old environment...
Done
Writing environment to /dev/mtd0...
Done
Locking ...
Done
root@HPf4ce462327a0:~# fw_printenv
baudrate=115200
loads_echo=0
rootpath=/mnt/ARM_FS/
run_diag=no
console=console=ttyS0,115200 mtdparts=spi_flash:0x80000@0(uboot)ro,0x80000@0x80000(root)
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
usb_bootargs=root=/dev/ram rw
bootusb=usb start;fatload usb 0 0x800000 /boot/uImage.usb;fatload usb 0 0x1100000 /boot/uInitrd.usb
usbboot=setenv bootargs $(usb_bootargs); run bootusb; bootm 0x800000 0x1100000
thinpro_bootargs=root=/dev/sda1 rw init=/init video=xgifb splash quiet
thinpro=ide reset; ext2load ide 0:1 0x200000 /boot/uImage; wol; setenv bootargs $(thinpro_bootargs); bootm 0x200000
pcieTune=yes
mfgmode=setenv bootdelay 3; setenv in_mfg yes;setenvh GotoWOL Yes; setenvh WOLEnabled No; setenv bootcmd run mfgboot; saveenv; reset
mfgbootargs=setenv bootargs root=/dev/sdb1 rw init=/init ip=dhcp rootdelay=8 $(console) udevtimeout=8
mfgboot=usb start; ext2load usb 0:1 0x2000000 /boot/uImage; run mfgbootargs; bootm 0x2000000
product=setenv bootdelay 1; setenv in_mfg no;setenvh GotoWOL No; setenvh WOLEnabled Yes; setenv bootcmd run thinpro; saveenv; reset
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
ethact=egiga0
bootargs=root=/dev/sda1 rw init=/init video=xgifb splash quiet
ethaddr=f4:ce:46:23:27:a0
gatewayip=10.4.50.5
netmask=255.255.255.0
ipaddr=10.4.50.143
serverip=10.4.50.5
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
disaMvPnp=no
enaAutoRecovery=yes
bootdelay=1
in_mfg=no
bootargs_usb=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10
load_usb=usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1  0x1100000 /boot/uInitrd
bootcmd_usb=setenv bootargs $(bootargs_usb); run load_usb; bootm 0x800000 0x1100000
bootcmd=run bootcmd_usb; run thinpro

root@HPf4ce462327a0:~# exit


EDIT : 3

Offered in the newly created USB rootfs as described above and heres what we get below

Hangs here for quite a while, the rootfs is ext3

USB:   scanning bus for devices... 3 USB Device(s) found
Waiting for storage device(s) to settle before scanning...

Then carries on to the standard onboard boot

gravelrash@4320 ~ $ pogoconsole 
^A^X to exit

picocom v1.7

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,

Terminal ready
�
       _   _     .____    
      | |_| |    |  _ \  
      |  _  |    | (_))   
      | |-| |    | |      
      |_| |_|    |_|  ..  
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** LOADER **
 ** BOARD: DB-88F6281A-BP LE 

U-Boot 1.1.4 (Jan  8 2010 - 14:03:56) MIC version : 3.4.19-16

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CD4E0

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz 

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB 
DRAM CS[1] base 0x10000000   size 256MB 
DRAM Total size 512MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
[1024kB@f8000000] Flash:  1 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0 
(Re)start USB...
USB:   scanning bus for devices... 3 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
T Device NOT ready
   Request Sense returned 00 00 00
1 Storage Device(s) found
** Bad partition 1 **
** Bad partition 1 **
## Booting image at 00800000 ...
Bad Magic Number

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)


1888432 bytes read
Checking Button Status: off
Checking GotoWOL Status: off
## Booting image at 00200000 ...
   Image Name:   Linux-2.6.22.18-2-armel
   Created:      2009-11-17  18:35:01 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1888368 Bytes =  1.8 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux......................................................................................................................... done, booting the kernel.


Right thats me for today, as I am now out of time, any pointers as to where we go from here is greatly appreciated. from what i can gather in comparison to the other forum member who has a working kwboot and bootable system, i have either missed something glaringly obvious or i have a different revision of the uboot which MUST be blatted away as soon as possible.

Gravelrash

EDIT : 4 cleared up code tags



Edited 4 time(s). Last edit at 03/01/2016 09:23AM by Gravelrash.
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
March 01, 2016 01:10PM
@Gravelrash,

Quote

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)

Nice :) where is this from? so you soldered the SATA port?

1. Regarding kwboot, sometime it is just a little picky. Try it the "Pogo V4 way":

- Execute the kwboot command (with option -p).
- Power up the T5325.
- Watch the spinning /, when it changes speed (slower), Control-C to abort kwboot, and then:

A) Up-arrow to recall kwboot command and execute it again

If you see the message
Sending boot image...
  0 % [+++++++++++++++++xmodem: Bad message

Repeat A for as mamy times as you can until it handshakes.


2. USB rootfs:

- Boot with serial consoll again, interrupt it

usb start
usb part

See if the drive is initialized and u-boot shows the partition on it. If it does not initialize, then use a different USB thumb (preferrably Sandisk brand).

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



Edited 2 time(s). Last edit at 03/01/2016 01:13PM by bodhi.
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
March 01, 2016 06:41PM
> Nice :) where is this from? so you soldered the SATA port?

the guy hacking the second Sata port had to desolder a ssd controller to free up the second sata (easier than it looks like).

It seems this box has a "SSD controller" soldered to one of the 2 sata lines, it controls the onboard 512MB of flash (the capacity stated in that boot log seems to confirm that).

I wonder where the heck the u-boot is actually stored since it cannot stay inside that flash. I think I've seen a EEPROM somewhere on the board.

hmmm... probably this tells us there is 1MB flash somewhere.

[1024kB@f8000000] Flash:  1 MB



Edited 1 time(s). Last edit at 03/01/2016 07:04PM by bobafetthotmail.
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
March 01, 2016 06:46PM
bobafetthotmail,

There is a SPI flash of 1MB. That's where u-boot is.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
March 01, 2016 07:21PM
Quote

It seems this box has a "SSD controller" soldered to one of the 2 sata lines, it controls the onboard 512MB of flash (the capacity stated in that boot log seems to confirm that).

Very interesting!

This is a pretty good box if you can get it for <= 30 USD used.

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



Edited 1 time(s). Last edit at 03/01/2016 07:40PM by bodhi.
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
March 01, 2016 07:42PM
bobafetthotmail,

How is your serial console? I'll have a test u-boot binary pretty soon.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
March 01, 2016 07:53PM
bodhi Wrote:
-------------------------------------------------------
> This is a pretty good box if you can get it for <=
> 30 USD used.

On board video and audio +1

Hackable SATA port +.5

10/100 Ethernet -1

Sheevaplug is better if you wanna stay with Marvell -but no video :(

IMO, HP T5740 thin client is best cheapest low power box with expansion options. Not Marvell though.....
Re: HP T5325 Thin Client Debian : Project on Hold 30-01-2016
March 01, 2016 08:08PM
LeggoMyEggo,

> 10/100 Ethernet -1
>
> Sheevaplug is better if you wanna stay with
> Marvell -but no video :(
>

Agree, it is a minus with 100Mbs Ethernet. But the Audio/Vido alone worth a lot, if you do use it for this purpose. Otherwise with the Sheevaplug, you'll have to spend quite a bit more for USB Video/Audio adapter. So it is not a NAS.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
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: