Open lmore377 opened 3 months ago
Thanks!!!
By the way, USB host is working (need some init script). Let me know if there's any feature anyone would like to have.
I've been trying to get a mainline kernel working with the patches from linux-superbird-6.6... It seems like some of the patches are already upstreamed (the clock drivers). Is there any plan to move to a newer kernel release (e.g. 6.10)?
Hi @theoparis ,
I think I've mentioned this somewhere but looks like I didn't put it in the repo :P
I've tried the mainline kernel, stock u-boot could not directly boot it. That's the reason why I am using this fork. I actually copied all display related code from 6.10.
You can use go
command boot to a mainline u-boot first and then boot the mainline kernel, but after I tried that, it's harder to work with and without any advantage.
Since unifreq released their version every LTS, I will consider move it to the next LTS when they released theirs.
Cheers
Quick question, would it be possible to include adbd in the Buildroot like the stock firmware does? It's very convenient for moving files around, getting a terminal, etc and it'd be nice to have it in custom images. Also some tools/apps we've made rely on it for doing some stuff.
Edit: also is GPU acceleration working?
In short, adbd
is available on Buildroot, but it's out of scope for me.
I think I've tested that once or twice but it's not really working, and I didn't dig deeper. Probably you need to enable some features on the kernel. anything adb
can do could be done using ssh
and scp
. So I don't think it's worth it.
For the GPU part, on Buildroot, OpenGL/GLES is working, Wayland is working. gstreamer is working, I can play 720p Youtube video on Cog. It would be nice if you have some example use cases/websites so I can test it out too.
Hi @theoparis , I think I've mentioned this somewhere but looks like I didn't put it in the repo :P I've tried the mainline kernel, stock u-boot could not directly boot it. That's the reason why I am using this fork. I actually copied all display related code from 6.10. You can use
go
command boot to a mainline u-boot first and then boot the mainline kernel, but after I tried that, it's harder to work with and without any advantage. Since unifreq released their version every LTS, I will consider move it to the next LTS when they released theirs.Cheers
How did you manage to get mainline u-boot working? I don't know what address to use with the go command. Additionally I tried pyamlboot's boot-g12.py
script and both failed and it booted to stock adb instead of u-boot. I used the recommended defconfig as well
@theoparis Please check this section as well as "Mainline/vendor as 2nd stage" Section on this guide. In short,
# Using u-boot-2024.04
export CROSS_COMPILE=aarch64-linux-gnu-
make radxa-zero_defconfig
make
and then send the u-boot.bin
to 0x1000000
on the memory. execute bulkcmd go 0x1000000
should work.
I used fatload
since I already repartitioned my device, but load into memory using pyamlboot
(not boot-g12.py
, check here) should work as well.
By the way, the mainline kernel normally will try all boot method one by one and automatically boot into the system, it's possible that's why yours booted into the system. You could take a look at the process on UART to make sure what's happening.
I personally haven't tried your kernel/buildroot yet but it looks like you've made a lot of progress! Just some quick notes
I haven't seen anything that looks like an LED anywhere in the carthing. Maybe there was one on dev units?
As for the accelerometer, there's an empty footprint on the PCB in the bottom left corner of this image and I'm pretty sure that's where it would've gone. If you soldered one on it would probably work
If you want more convenient access to UART, someone in the Discord pointed out the fact that you can solder an FPC connector to the empty footprint in the bottom right corner of the board and run the cable out of the case. This should be a suitable connector: https://www.te.com/en/product-1-2328702-0.html
Would you be able to update the link for superbird-tool to this: https://github.com/Car-Thing-Hax-Community/superbird-tool The original maintainer seems to me MIA so we forked it so it can be updated. Also, if you'd like to be a part of that org let me know and I'll send an invite!