Welcome! Log In Create A New Profile

Advanced

Debian on HP T5325 Thin Client

Posted by Gravelrash 
Re: HP T5325 Thin Client Debian
March 28, 2016 02:00PM
syong,

>
> The ground is at what Gravelrash said. But that is
> half right. The other half is the unsoldered pin
> of the jack which bends toward chassis by tension
> in the last pic.

Cool!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
April 09, 2016 04:03AM
@Gravelrash or syong,

Could you upload your T5325 stock OS backup image/tarball to dropbox, if you have it handy. I'd like to try boot stock to check out the sound issue.

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



Edited 1 time(s). Last edit at 04/09/2016 04:07AM by bodhi.
Re: HP T5325 Thin Client Debian
April 09, 2016 03:04PM
bodhi Wrote:
-------------------------------------------------------
> @Gravelrash or syong,
>
> Could you upload your T5325 stock OS backup
> image/tarball to dropbox, if you have it handy.
> I'd like to try boot stock to check out the sound
> issue.

Thanks bobafett, I got the link.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
April 09, 2016 03:09PM
Thanks syong, I got the link from you, too.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
April 09, 2016 04:57PM
fw_printenv and fw_setenv work on stock uBoot if the fw_env.config is set as follows:

(17:52)(hep)~> cat /etc/fw_env.config
/dev/mtd2 0 0x1000

where mtd2 could be mtd3 or mtd4 for the other environments.

I am still on the stock uBoot, and sound does not work on either 3.18 or 4.5 kernel.

-syong



Edited 1 time(s). Last edit at 04/09/2016 05:09PM by syong.
Re: HP T5325 Thin Client Debian
April 09, 2016 05:42PM
syong,

I suspect that the latest DTS in the kernel is the problem with sound device. I thought I have a fix, but it is not working. And I never boot into stock, so I can't really be certain that I ever have sound working on this box :)

In case you have not tried this test DTB:
http://forum.doozan.com/read.php?2,25473,26763#msg-26763

You will need to regenerate uImage if you have embedded DTB in it.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
April 09, 2016 06:25PM
@all

You guys don't hang around when it comes to answering requests for files!!

I spend one day tidying up the garage so i can get to my mechanical projects - then come on the forum for a quick looksee before going to bed and see the above request and updates

Bonus points to you all !



Edited 1 time(s). Last edit at 04/09/2016 06:27PM by Gravelrash.
Re: HP T5325 Thin Client Debian
April 09, 2016 06:39PM
> You guys don't hang around when it comes to
> answering requests for files!!

:) I will let you know.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
April 09, 2016 06:45PM
@bodhi, In the stock uBoot, there are audioTest and beep commands to check sound at that level. I remember tried that DTB a while ago and it does not work. What it is the fix you tried?

@Gravelrash, Welcome back! The fun story of t5325 has not ended yet.

-syong



Edited 1 time(s). Last edit at 04/09/2016 06:50PM by syong.
Re: HP T5325 Thin Client Debian
April 09, 2016 07:18PM
syong,

--- kirkwood-t5325.dts.orig	2016-03-13 21:28:54.000000000 -0700
+++ kirkwood-t5325.dts	2016-03-16 00:57:15.370063901 -0700
@@ -204,12 +204,14 @@
 
 		simple-audio-card,mclk-fs = <256>;
 
-		simple-audio-card,cpu {
-			sound-dai = <&audio>;
-		};
-
-		simple-audio-card,codec {
-			sound-dai = <&alc5621>;
+		simple-audio-card,dai-link {
+			format = "i2s";
+			cpu {
+				sound-dai = <&audio>;
+			};
+			codec {
+				sound-dai = <&alc5621>;
+			};
 		};
 	};
 };


Also a small change in kirkwboot.dtsi was needed.

The idea was that the T5325 has i2s:
http://lists.infradead.org/pipermail/linux-arm-kernel/2014-September/283330.html

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
April 09, 2016 07:57PM
Very cool! I hope I understand this.

-syong
Re: HP T5325 Thin Client Debian
April 09, 2016 07:59PM
I've booted to stock but then lost the ttyconsole input. I have no monitor attached.

[    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] 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 console=ttyS0,115200

<snip>

Starting hpdmagent: [   32.300000] phys_mem_access_prot called - offset f2001000, uncached_access = -1071249904
hpdmagent.
[   32.400000] phys_mem_access_prot called - offset ec000000, uncached_access = -1071249904
[   32.500000] phys_mem_access_prot called - offset e8000000, uncached_access = -1071249904
 * Starting periodic command scheduler crond                                    [   35.200000] eth0: link up, full duplex, speed 100 Mbps
[   35.210000] eth0: started
 * Starting periodic command scheduler crond                                    crontabs: No such file or directory
crontabs: created
                                                                         [ OK ]
                                                                         [ OK ]

I vaguely remember about this console workaround posted here, but could not find it.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
April 09, 2016 08:09PM
That is exactly why I have not on the stock yet. Console workaround will be great!

-syong
Re: HP T5325 Thin Client Debian
April 09, 2016 08:36PM
Exactly what Gravelrash has found. This post is very informative:

http://forum.doozan.com/read.php?2,25473,26295#msg-26295

However there is something in the stock kernel, that made our current ttyconsole parameter not enough.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
April 09, 2016 08:46PM
syong,

I wonder why your stock rootfs disallow ssh. Look like we need to dig in that.

ssh root@192.168.0.15
ssh: connect to host 192.168.0.15 port 22: Connection refused

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
April 09, 2016 08:47PM
Have you tried put

T0:2345:respawn:/sbin/getty -L ttyS0 115200 linux

in /etc/inittab?

-syong
Re: HP T5325 Thin Client Debian
April 09, 2016 08:57PM
bodhi Wrote:
-------------------------------------------------------
> syong,
>
> I wonder why your stock rootfs disallow ssh. Look
> like we need to dig in that.
>
>
> ssh root@192.168.0.15
> ssh: connect to host 192.168.0.15 port 22:
> Connection refused
>

Looks like sshd is not started.

-syong
Re: HP T5325 Thin Client Debian
April 09, 2016 08:59PM
syong Wrote:
-------------------------------------------------------
> Have you tried put
>
>
> T0:2345:respawn:/sbin/getty -L ttyS0 115200 linux
>
>
> in /etc/inittab?


There is no /etc/inittab in stock rootfs! was that from your serial log?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
April 09, 2016 09:05PM
bodhi Wrote:
-------------------------------------------------------
> syong,
>
>
> --- kirkwood-t5325.dts.orig	2016-03-13
> 21:28:54.000000000 -0700
> +++ kirkwood-t5325.dts	2016-03-16
> 00:57:15.370063901 -0700
> @@ -204,12 +204,14 @@
>  
>  		simple-audio-card,mclk-fs = <256>;
>  
> -		simple-audio-card,cpu {
> -			sound-dai = <&audio>;
> -		};
> -
> -		simple-audio-card,codec {
> -			sound-dai = <&alc5621>;
> +		simple-audio-card,dai-link {
> +			format = "i2s";
> +			cpu {
> +				sound-dai = <&audio>;
> +			};
> +			codec {
> +				sound-dai = <&alc5621>;
> +			};
>  		};
>  	};
>  };
>
>

But
(22:00)(hep)~/ws> fdtdump kirkwood-t5325.dtb |tail -14
    sound {
        compatible = "simple-audio-card";
        simple-audio-card,format = "i2s";
        simple-audio-card,routing = [48 65 61 64 70 68 6f 6e 65 20 4a 61 63 6b 00 48 50 4c 00 48 65 61 64 70 68 6f 6e 65 20 4a 61 63 6b 00 48 50 52 00 53 70 65 61 6b 65 72 00 53 50 4b 4f 55 54 00 53 70 65 61 6b 65 72 00 53 50 4b 4f 55 54 4e 00 4d 49 43 31 00 4d 69 63 20 4a 61 63 6b 00 4d 49 43 32 00 4d 69 63 20 4a 61 63 6b 00];
        simple-audio-card,widgets = [48 65 61 64 70 68 6f 6e 65 00 48 65 61 64 70 68 6f 6e 65 20 4a 61 63 6b 00 53 70 65 61 6b 65 72 00 53 70 65 61 6b 65 72 00 4d 69 63 72 6f 70 68 6f 6e 65 00 4d 69 63 20 4a 61 63 6b 00];
        simple-audio-card,mclk-fs = <0x00000100>;
        simple-audio-card,cpu {
            sound-dai = <0x00000017 0x00000000>;
        };
        simple-audio-card,codec {
            sound-dai = <0x00000018>;
        };
    };
};

There is still no dai-link subnode in your test DTB.

-syong
Re: HP T5325 Thin Client Debian
April 09, 2016 09:09PM
>
> (22:00)(hep)~/ws> fdtdump kirkwood-t5325.dtb |tail
> -14
>     sound {
>         compatible = "simple-audio-card";
>         simple-audio-card,format = "i2s";
>         simple-audio-card,routing = [48 65 61 64
> 70 68 6f 6e 65 20 4a 61 63 6b 00 48 50 4c 00 48 65
> 61 64 70 68 6f 6e 65 20 4a 61 63 6b 00 48 50 52 00
> 53 70 65 61 6b 65 72 00 53 50 4b 4f 55 54 00 53 70
> 65 61 6b 65 72 00 53 50 4b 4f 55 54 4e 00 4d 49 43
> 31 00 4d 69 63 20 4a 61 63 6b 00 4d 49 43 32 00 4d
> 69 63 20 4a 61 63 6b 00];
>         simple-audio-card,widgets = [48 65 61 64
> 70 68 6f 6e 65 00 48 65 61 64 70 68 6f 6e 65 20 4a
> 61 63 6b 00 53 70 65 61 6b 65 72 00 53 70 65 61 6b
> 65 72 00 4d 69 63 72 6f 70 68 6f 6e 65 00 4d 69 63
> 20 4a 61 63 6b 00];
>         simple-audio-card,mclk-fs = <0x00000100>;
>         simple-audio-card,cpu {
>             sound-dai = <0x00000017 0x00000000>;
>         };
>         simple-audio-card,codec {
>             sound-dai = <0x00000018>;
>         };
>     };
> };
>
>
> There is still no dai-link subnode in your test
> DTB.

Woo, that's interesting. I need to recompile it to see what happen.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
April 09, 2016 09:10PM
bodhi Wrote:

> There is no /etc/inittab in stock rootfs! was that
> from your serial log?

No. How about creating one and put that line in.

-syong
Re: HP T5325 Thin Client Debian
April 09, 2016 09:13PM
bodhi Wrote:
-------------------------------------------------------
> Woo, that's interesting. I need to recompile it to
> see what happen.

I have checked your patch on 4.5 kernel and the patch is not in.

-syong
Re: HP T5325 Thin Client Debian
April 09, 2016 09:21PM
> Looks like sshd is not started.

That is true. No port 22 in my scan. I think the rootfs has not been mounted.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
April 09, 2016 09:23PM
syong Wrote:
-------------------------------------------------------
> bodhi Wrote:
> --------------------------------------------------
> -----
> > Woo, that's interesting. I need to recompile it
> to
> > see what happen.
>
> I have checked your patch on 4.5 kernel and the
> patch is not in.

This DTS was modified after release when I tried to get sound.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: HP T5325 Thin Client Debian
April 09, 2016 10:14PM
One more try! new DTB is attached.

I have a hunch that this will be better :)

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



Edited 1 time(s). Last edit at 04/09/2016 10:17PM by bodhi.
Attachments:
open | download - kirkwood-t5325.dtb (11.6 KB)
Re: HP T5325 Thin Client Debian
April 09, 2016 10:17PM
I just compile the DTB with the patch:

(23:14)(hep)~/ws/pogo/kernel/4.5/linux-4.5> fdtdump arch/arm/boot/dts/kirkwood-t5325.dtb|tail -17
    sound {
        compatible = "simple-audio-card";
        simple-audio-card,routing = [48 65 61 64 70 68 6f 6e 65 20 4a 61 63 6b 00 48 50 4c 00 48 65 61 64 70 68 6f 6e 65 20 4a 61 63 6b 00 48 50 52 00 53 70 65 61 6b 65 72 00 53 50 4b 4f 55 54 00 53 70 65 61 6b 65 72 00 53 50 4b 4f 55 54 4e 00 4d 49 43 31 00 4d 69 63 20 4a 61 63 6b 00 4d 49 43 32 00 4d 69 63 20 4a 61 63 6b 00];
        simple-audio-card,widgets = [48 65 61 64 70 68 6f 6e 65 00 48 65 61 64 70 68 6f 6e 65 20 4a 61 63 6b 00 53 70 65 61 6b 65 72 00 53 70 65 61 6b 65 72 00 4d 69 63 72 6f 70 68 6f 6e 65 00 4d 69 63 20 4a 61 63 6b 00];
        simple-audio-card,mclk-fs = <0x00000100>;
        simple-audio-card,dai-link {
            format = "i2s";
            cpu {
                sound-dai = <0x00000019>;
            };
            codec {
                sound-dai = <0x0000001a>;
            };
        };
    };
};

and tried it. Everything looks normal but still no sound.:(

Edit: there is a error in my patch. After correction, I got exactly same DTB as yours.

-syong



Edited 1 time(s). Last edit at 04/09/2016 10:36PM by syong.
Re: HP T5325 Thin Client Debian
April 09, 2016 10:18PM
Just saw your DTB, I will try yours now.

-syong
Re: HP T5325 Thin Client Debian
April 09, 2016 10:28PM
Just the same. No sound.

I use alsamixer to change volume. Is that the right way?

-syong
Re: HP T5325 Thin Client Debian
April 09, 2016 10:42PM
I saw this when use mpg321:

ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front

-syong
Re: HP T5325 Thin Client Debian
April 09, 2016 10:44PM
Well, that is enough for today. It is still a good box of puzzle.:)

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