Welcome! Log In Create A New Profile

Advanced

Debian on HP Thin Client T5335z

Posted by bodhi 
Re: Debian on HP Thin Client T5335z
February 16, 2022 04:52PM
Just in case someone run into this: trying to set the box to boot from USB I couldn't permanently set envs from Debian:
After changing mtd1 addresses
vi /etc/fw_env.config 

# MTD device name       Device offset   Env. size       Flash sector size
Number of sectors
#/dev/mtd1              0x0000          0x80000         0x20000 4
/dev/mtd1               0x0000          0x2000          0x1000
I could get correct printout from fw_printenv. But after running fw_setenv, it stopped working ("Cannot read environment, using default. Cannot read default environment from file"). So I managed to permanently set variables from U-boot as follows:

HP>> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial'
HP>> setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x2000000 /boot/uImage; ext2load usb 0:1 0x3000000 /boot/uInitrd'
HP>> setenv bootcmd_exec 'run set_bootargs; run bootcmd_usb; bootm 0x2000000 0x3000000'
HP>> setenv bootcmd 'run bootcmd_exec; run thinpro'
HP>> saveenv
Saving Environment to SPI Flash...
Erasing 0xc0000 - 0xc2000:	[Done]
Writing to SPI flash:		[Done]
Erasing 0xc2000 - 0xc4000:	[Done]
Writing to SPI flash:		[Done]
Erasing 0xc4000 - 0xc6000:	[Done]
Writing to SPI flash:		[Done]
Re: Debian on HP Thin Client T5335z
December 27, 2022 12:35AM
bodhi Wrote:
-------------------------------------------------------
> Serial console pinouts.
>
> Left-to-Right, Inside facing out.
>
> MicroJST header
>
> 1. GND
> 2. RxD
> 3. TxD
> 4. N/A: 3.3V

This is confusing and caused me to have issues! The MicroJST on both of my examples is P4 and has pins 1 and 4 labeled. With front of unit with power facing me the MiroJST header is on the left side of the board with Pin 1 to the back and Pin 4 to the front. Therfore pins are as follows:

1. - 3.3V (not connected with most devices). I'm using μArt (uart-adapter.com) so I have it connected.
2. - RxD on μArt
3. - TxD on μArt
4. - GND on μArt

Uses standard 115200 8N1 that most Marvell SoC based devices use.

Ray
Re: Debian on HP Thin Client T5335z
December 27, 2022 02:48PM
Orientation. We should not be too rely on marking, because it could change from on production lot to the next.

"Left-to-Right, Inside facing out" means "Reading from left to righ, from inside the case facing outward)".

See the picture in this post (the picture orientation is also inside-facing-out):
https://forum.doozan.com/read.php?2,66989,116939#msg-116939

Perhaps your board is from a different production lot.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on HP Thin Client T5335z
December 28, 2022 03:00PM
bodhi Wrote:
-------------------------------------------------------
> See the picture in this post (the picture
> orientation is also inside-facing-out):
> https://forum.doozan.com/read.php?2,66989,116939#msg-116939
>
> Perhaps your board is from a different production
> lot.

The photo in that post appears to be for a HP t5325 not the t5335z which is very different in appearance. See the photos at https://wikidevi.wi-cat.ru/images/8/8b/HP_t5335z_Top.jpeg showing P4 at the top of the photo which doesn't look similar in any way to photo in that post.

Ray
Re: Debian on HP Thin Client T5335z
December 28, 2022 04:05PM
> The photo in that post appears to be for a HP
> t5325 not the t5335z which is very different in
> appearance. See the photos at
> https://wikidevi.wi-cat.ru/images/8/8b/HP_t5335z_Top.jpeg
> showing P4 at the top of the photo which doesn't
> look similar in any way to photo in that post.

OK when I have a chance, I'll open up the T5335z to verify. It was a long time ago, but I did record that layout in my notes for HP T5335z. It could be that my T5535z and T5325 have the same serial pins layout.

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



Edited 1 time(s). Last edit at 12/28/2022 04:07PM by bodhi.
Author:

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: