@balanga, Try this: https://forum.doozan.com/read.php?3,26098,26811#msg-26811by syong - uBoot
@bodhi, From xssa's overlayfs idea, we do not need ssh to enable serial console on the stock os. Just do this as root: mount /dev/sda1 /mnt cp /etc/inittab /mnt/writable-cow/etc/ reboot Wait patiently at serial console... Then thank xssa for letting us on the stock os the first time :)by syong - Debian
@xssa: All three flashes used the m25p80 driver. @bodhi: Can you explain why stock u-boot and new kernel SPI MTDs work together just fine for box with sst25vf080b?by syong - Debian
@xxsa: I just checked again and here is the findings: 1. With mx25l8005, reading is broken. 2. With numonyx-25p80, reading is ok, but writing is broken. 3. With sst25vf080b, both reading and writing are ok. I am also interested to know if somebody can read mx25l8005 w/o errors with recent kernel. @bodhi: > Are you running u-boot 2015.10 and new kernel 4.6 on the box with SSTby syong - Debian
@xxsa: Since the problem of SPI reading is broken with MX25L8005 and Numonyx-25P80 flashes, but not on SST25VF080B flash, I agree with xssa that it is on the kernel side. @bodhi: Forget about the env and flashcp.c. We should read m25p80.c now.by syong - Debian
@bodhi, Hacking without looking at the source will be quite difficult.by syong - Debian
@bodhi, Have you looked at the source of flashcp binary from stock OS yet?by syong - Debian
bodhi, If you looked at the source of flashcp, I think you would rather use dd instead.by syong - Debian
@bodhi, Do you already have a better way in your uBoot? I can not find your source for the t5325 uBoot. If it is messy, let's clean it up, together. :)by syong - Off-Topic
syong Wrote: ------------------------------------------------------- > 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. > Correction -- this works only for t5325 with SST2by syong - Debian
Thanks for the great information about flashing in the "hard" way. In the t5325, I found 3 different SPI flashes in the stock boxes: SST25VF080B MX25L8005 Numonyx-25P80 I can not do UART booting for the boxes with SST25VF080B, but fw_printenv/fw_setenv works flawlessly on these boxes. I can do UART booting for the other boxes, but fw_printenv/fw_setenv does not work on thosby syong - Off-Topic
Correction! Just found the pin to be pulled up is the TX instead of RX. My excuse is my USB2UART is mislabeled. So shorting to 3.3v is not recommended although it might work. This is real life, not ideal as what I thought. Hope you did not fry anything. I didn't. :)by syong - Off-Topic
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>; > + #by syong - Debian
Seems your bootargs comes from kirkwood-dockstar.dts -- change it there.by syong - Off-Topic
'inside kwboot' is just inside u-boot. Flush u-boot just the u-boot way.by syong - uBoot
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 knobby syong - Debian
Well, that is enough for today. It is still a good box of puzzle.:)by syong - Debian
I saw this when use mpg321: ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.frontby syong - Debian
Just the same. No sound. I use alsamixer to change volume. Is that the right way?by syong - Debian
Just saw your DTB, I will try yours now.by syong - Debian
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 4fby syong - Debian
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.by syong - Debian
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.by syong - Debian
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 = <&aby syong - Debian
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.by syong - Debian
Have you tried put T0:2345:respawn:/sbin/getty -L ttyS0 115200 linux in /etc/inittab?by syong - Debian
That is exactly why I have not on the stock yet. Console workaround will be great!by syong - Debian
Very cool! I hope I understand this.by syong - Debian
@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.by syong - Debian
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.by syong - Debian