Welcome! Log In Create A New Profile

Advanced

Debian on HP Thin Client T5335z

Posted by bodhi 
Re: Debian on HP Thin Client T5335z
March 03, 2021 09:21PM
[    4.245546][    T1] dove-pinctrl f10d0200.pin-ctrl: falling back to hardcoded PMU resource
[    4.254002][    T1] dove-pinctrl f10d0200.pin-ctrl: [Firmware Bug]: Missing pinctrl regs in DTB. Please update your firmware.
[    4.268713][    T1] dove-pinctrl f10d0200.pin-ctrl: registered pinctrl driver

Looks like I need to do some more in the DTS get this fixed first. Also the DTS LCD node will need to be beefed up a bit more.

-bodhi
===========================
Forum Wiki
bodhi's corner
Gyan
Re: Debian on HP Thin Client T5335z
March 05, 2021 08:42AM
Hi bodhi,

Here the lsmod output:

Module                  Size  Used by
armada                 45056  0
drm_kms_helper        151552  1 armada
snd_soc_simple_card    16384  0
drm                   339968  2 armada,drm_kms_helper
snd_soc_simple_card_utils    16384  1 snd_soc_simple_card
drm_panel_orientation_quirks    16384  1 drm
snd_soc_kirkwood       16384  0
fb_sys_fops            16384  1 drm_kms_helper
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
cfbfillrect            16384  1 drm_kms_helper
cfbimgblt              16384  1 drm_kms_helper
cfbcopyarea            16384  1 drm_kms_helper
snd_soc_core          180224  3 snd_soc_kirkwood,snd_soc_simple_card_utils,snd_soc_simple_card
ac97_bus               16384  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_pcm                81920  3 snd_soc_kirkwood,snd_pcm_dmaengine,snd_soc_core
snd_timer              28672  1 snd_pcm
snd                    53248  3 snd_timer,snd_soc_core,snd_pcm
soundcore              16384  1 snd
sg                     32768  0
uio_pdrv_genirq        16384  0
uio                    20480  1 uio_pdrv_genirq
ext2                   69632  1
sdhci_dove             16384  0
sdhci_pltfm            16384  1 sdhci_dove
sdhci                  49152  2 sdhci_dove,sdhci_pltfm
mmc_core              118784  2 sdhci_dove,sdhci
i2c_mux_pinctrl        16384  0
uas                    20480  0

- Gyan
Re: Debian on HP Thin Client T5335z
March 05, 2021 09:07AM
Awesome! Looking forward to any display progress!
Gyan
Re: Debian on HP Thin Client T5335z
March 05, 2021 11:32AM
Hi bodhi,

Do you know how I can extract the DTS from the stock kernel image? I don't seem to be finding much on Google.
Could it be useful for debugging the LCD part of your DTS?

- Gyan
Re: Debian on HP Thin Client T5335z
March 05, 2021 05:31PM
Gyan,

Looks like the DRM modules were loaded properly.
drm_kms_helper        151552  1 armada
snd_soc_simple_card    16384  0
drm                   339968  2 armada,drm_kms_helper
snd_soc_simple_card_utils    16384  1 snd_soc_simple_card
drm_panel_orientation_quirks    16384  1 drm
snd_soc_kirkwood       16384  0
fb_sys_fops            16384  1 drm_kms_helper
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
cfbfillrect            16384  1 drm_kms_helper
cfbimgblt              16384  1 drm_kms_helper
cfbcopyarea            16384  1 drm_kms_helper


> Do you know how I can extract the DTS from the
> stock kernel image? I don't seem to be finding
> much on Google.
> Could it be useful for debugging the LCD part of
> your DTS?

Stock kernel is quite old (pre-FDT) so it does not have DTS.

I'll upload a DTB for you to test soon (today or tomorrow).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
March 07, 2021 05:11PM
Hi Gyan,

Here is the new DTB (I also attached the DTS).

Recreate uImage with this new DTB.

WIth the monitor plugged in and power on, reboot (or power up) the T5335z. Observe any behavior on the monitor screen during boot (even a flickering would be interesting). Let it boot all the way in to Debian.

Log in and

lsmod

And post the entire serial console log here.

This is a work-in-progress ( more needed to be done).

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - dove-hp-t5335z.dtb (14.9 KB)
open | download - dove-hp-t5335z.dts (3.5 KB)
Re: Debian on HP Thin Client T5335z
March 08, 2021 02:28AM
Hi bodhi,

I did not see any activity on the screen.
lsmod output and boot log in attachment.

Thanks,

- Gyan
Attachments:
open | download - lsmod.log (1.4 KB)
open | download - hpboot2l.log (27.3 KB)
Re: Debian on HP Thin Client T5335z
March 08, 2021 04:15AM
Gyan,

Looks like the kernel did not even detect there is a monitor! I know the DTS is not complete, but hoping to see some activity.

The GPL source has this LCD enable defined at GPIO 11. Perhaps 11 is not really the LCD Power GPIO. There is another one for LCD, we'll try that tomorrow.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
March 11, 2021 03:11AM
bodhi,

Out of curiosity, what is this GPL source?
Is there some code we can use as reference for reverse engineering?

Thanks

- Gyan
Re: Debian on HP Thin Client T5335z
March 11, 2021 10:19PM
Gyan,

> Out of curiosity, what is this GPL source?

GPL source is abbreviate for GPL V2 license source code. Any manufacturer who use the Linux kernel as a base, and patch that source tree to run their hardware, has to provide the complete source code, or patches that clearly states which LInux kernel version the patches are for. This can be either on a public website, or available upon request for a customer who bought the box. Some manufacturers wait for a while before publishing on their website. But they are legally obligated to provide it when requested.

The process of hacking a box to build latest kernel always starts with the GPL soure, where you can find the patches.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
March 11, 2021 11:10PM
Now, when a manufacturer failed to provide GPL source, anybody (not just one who bought the hardware) can raise the issue and threaten to sue the manufacturer.

One of the worse offenders that I came across is GTI (Global Technologies Inc) who made the Dreamplug, Sheevaplug, Mirabox, and a few other small board computers. I still don't have the correct GPL source for the Mirabox v5, and cannot find them.

HP (the manufacturer for this box and the T5325), and a few other NAS vendors such as Synology, are quite good in GPL compliance. We can see the patches sources clearly separated from the mainline kernel source. They are obligated only to provide the Linux patched source tree (which would make it a little more difficult to find the deltas). Most NAS boxes manufacturers provide the patched Linux source tree.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
March 12, 2021 04:57AM
Thanks for your explanation!
Could you point me to where I can get the source for the t5335z?

Thanks,
- Gyan
Re: Debian on HP Thin Client T5335z
March 12, 2021 04:53PM
Gyan,

Not sure where I kept the link. You can find it in this thread, or the T5325 thread:

https://forum.doozan.com/read.php?2,25473

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
March 12, 2021 07:07PM
Here is another version for the DTB. Please try the same test as before.

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - dove-hp-t5335z.dtb (14.9 KB)
open | download - dove-hp-t5335z.dts (3.5 KB)
Re: Debian on HP Thin Client T5335z
March 12, 2021 09:06PM
bodhi Wrote:
-------------------------------------------------------
> Here is another version for the DTB. Please try
> the same test as before.

FYI. This is probably not the right change to get the LCD started.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
March 13, 2021 03:09PM
Hi bodhi,

No changes with the latest .dtb

Thanks,

- Gyan
Re: Debian on HP Thin Client T5335z
March 13, 2021 04:14PM
Gyan,

Thanks! I was just making a wild guess on that GPIO 18. So back to GPIO 11 for LCD power.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
March 14, 2021 06:51AM
bodhi,

I have found googling the datasheet of the 88AP510, which should be the ARMADA 500 SoC this box mounts.
In the DS, there is an embedded spreadsheet with the Multi Purpose Pins descriptions (mpp) - attaching to this message the excel.
In this file, MPP 11 does not seem usable for LCD.

Hope this can help.

Datasheet source: https://www.datasheets360.com/pdf/-5345332529946537264

- Gyan

======
moderator edit: removed the attachment



Edited 2 time(s). Last edit at 03/14/2021 05:10PM by bodhi.
Re: Debian on HP Thin Client T5335z
March 14, 2021 05:09PM
Thanks Gyan,

I've removed the spreadsheet so we don't get into potential problem. Afaik, Marvell has not released the datasheet to the public.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
March 14, 2021 05:51PM
Gyan,

Found the GPL links, I've edited the 1st post to include them.

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

What I'm looking for is the LCD clock settings, found some instances of that in the patches. But I'm not sure exactly what to use yet.

Regarding GPIO 11. The datasheet usally show all possible ways that an MPP can be configured. So GPIO info in datasheet are useful, but not exactly as a box really connected to (i.e. MPP is pin mutilplexer). The specifics can be found in GPL source.

====

It looks as though stock uses lcd1, not lcd0.

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



Edited 1 time(s). Last edit at 03/15/2021 12:56AM by bodhi.
Re: Debian on HP Thin Client T5335z
March 14, 2021 05:54PM
Koen & others,

Please chime in if you are interested. Perhaps helping look into the GPL patches.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
March 15, 2021 08:39AM
Yes, I see from the source that apparently MPP11 is used to power up the LCD, configured as GPIO.
There is also a reference to MPP13 for the LCD backlight - not sure if we should set that as well in the DTS.

I am not clear where DTS configurations should stop and the video driver's job begins. In the stock source I also see references to the SoC register map for video settings, but maybe that is taken care of by the armada video driver?

Thanks,
- Gyan
Re: Debian on HP Thin Client T5335z
March 15, 2021 12:13PM
How could I compile the DTS into DTB?
I would like to do some trials.

Thanks,

- Gyan
Re: Debian on HP Thin Client T5335z
March 15, 2021 03:58PM
dtc - device tree compiler
Re: Debian on HP Thin Client T5335z
March 15, 2021 05:26PM
I believe all video related settings have been taken care off in the DTS, except for the LCD clock. And in the latest kernel, Dove DRM has been fully implemented.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on HP Thin Client T5335z
March 17, 2021 11:16AM
How can we find out which resources are missing in the DTB? For example the PMU registers pinctrl is complaining about.
I see in pinctrl-dove.c file of the kernel source, we are missing this resource (I found out with the error message we get at startup):

res = platform_get_resource(pdev, IORESOURCE_MEM, 2);


memory resources 0 and 1 are fine, it seems.

A memory resource of some kind (PMU regmap portion I guess) is missing in the DTS, but how can it be described?

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