Forum Discussion
Hi teiram
Good day!
Is it possible if you could share me the repo for the 4.1.33-ltsi-altera and u-boot that you used previously?
It seems like the oldest kernel version that is available in the Altera github goes up to 4.9.76-ltsi :)
First thing we could try is comparing the changes between the latest and the old version that you are using.
Another thing could we take a look at the device tree node for the usb? If you could also share with me the deice tree that you are using for the board.
There device tree node could have change when the drivers are being updated.
Regards
tehjingy
- teiram1 month ago
New Contributor
Hello Tehjingy,
thanks a lot for reaching out.
the working versions come from an ancient svn repository provided by the board designer (Novtech), which is accessible under registration (https://www.novtech.com/products/chameleon96.html)
So far I was trying to focus on u-boot because the issue seems to originate that early. With the original u-boot, usb start and usb tree shows the connected HUB and even detects storage devices connected to the HUB, but with the latest u-boot version that is not the case.
For a working u-boot I can share a public github repository that also works: Raetro
I built that from sources, deployed to the SD Card and the USB hub is detected on 'usb start'. As far as I see the USB in the DTS is exactly like the one I have. There is a specific configuration for the board in configs/socfpga_chameleon96_defconfig and a DTS at arch/arm/dts/socfpga_cyclone5_chameleon96.dts, and I don't think there are relevant differences compared to the DTS in my repository.
It's worth mentioning that there are some actions to properly setup GPIOS 0 and 9, which are relevant for the USB devices configuration, that was included as part of the u-boot commands in the Raetro u-boot version, but something equivalent was made in the original u-boot version in the board initialization code (and in my version in board_late_init, see board/novtech/chameleon96/board.c in my u-boot repo). I tried also to follow Raetros approach by issuing GPIO commands from the u-boot prompt (see include/configs/socfpga_chameleon96.h in Raetros) but I was never able to get the USB hub recognized, so I'm not sure if the issue could be related to the GPIO initialization. At least they seem to be in the proper state and changing their level from u-boot prompt seem to not make any difference: The USB HUB seems to be not detected.
Cheers,
Manuel