-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BeagleV-Ahead: New Community support #5712
base: main
Are you sure you want to change the base?
Conversation
Adds official support for the board and solid foundation for the development
This reverts commit 38cc22e.
This contribution declares `default.code-workspace` which is used to open a development environment with tools and configuration needed to make development of armbian more efficien, reliable and easier through integrated linting, formatting, visual improvements and configuration for non-standard file extensions Additionally to that it also implements compatibility for nix(os) which opens the vscod{e,ium} with tools needed for development to avoid issues of missing binaries and dependencies for the build and linting for nix files
This reverts commit febb196.
3d5c3a2
to
b4296e0
Compare
Too many changes, closing for the time being until dependent changes are merged |
BeagleBoard provided the Hardware Files in https://git.beagleboard.org/beaglev-ahead/beaglev-ahead/-/commit/3b72a86f4856ca7dd90391a2a381b9385039fb86 It's still not open-source as it depends on proprietary ecad software, but i can import this in kicad and work on my own design so it's fine by me. -> Re-Opening |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Kreyren I think you missed to commit lib/functions/compilation/opensbi.sh file
My bad, I see there is a different merge request for that. However I am not seeing the option to undo the change request |
Saw the presentation at ER2023. Seems like this doesn't support vector extensions, and would require an external toolchain? Yes/no, how are you handling this? |
Sorry didn't get a notification, elaborate what do you mean?
yes i am handling this - Not recognized as a major issue, tester didn't report any issues including the audio. No idea what do you mean by ER2023, the TH1520 is using C910 cores and the addition of standard V extension is called C920 cores by t-head used in e.g. the SOPHON SG2042 which is just stupid marketing and as far as i know it doesn't really need that extension for runtime. It would benefit from the t-head optimized toolchain mainly in performance as proposed in #5692 where @chainsx claims in #5689 (comment) that not using the optimized toolchain causes various issues such as with audio that was observed by me using the revyOS build, but @Rabenda claims in ryan4yin/nixos-licheepi4a#14 (comment) that the toolchain is not relevant to the audio issue. So the optimized toolchain should be a subject by next merge request as igor requested me to try to shorted the merge requests as much as possible. |
@rpardini Maybe you are confusing that with this issue? revyos/revyos#17 The scope of that is not yet understood, worst case scenario TH1520 is franken ISA not-complying with RISCV afaik. |
audio problemThe audio problem affects two cases
vector problemRequires the kernel to add vector register contexts compiler extensionChinese docs: https://revyos.github.io/docs/en/build/debian/%E7%BC%96%E8%AF%91%E5%99%A8%E7%9B%B8%E5%85%B3%E8%AF%B4%E6%98%8E/ thead-gcc has vector and xtheadc Because the range of use is not very wide, so we have to consider whether to use it or not. |
Any interest to rework this? |
Yes, i am monitoring the development and i am currently unsure how should this be implemented in downstream. I try to brainstorm it with beagles and revyOS devs as they are working on linux 6.0+ support |
beaglev-ahead is getting the dts mainlined https://lore.kernel.org/linux-riscv/20230724-th1520-emmc-v1-0-cca1b2533da2@baylibre.com/T/#t eMMC is pending I guess i can adjust this merge request to track with upstream changes and we could merge it as community support with a disclaimer of functionality, RFC @igorpecovnik |
neat... I gave up, picked it back up, and gave up again. I am about to start from scratch! Seth P.S. Thank you guys for posting, i.e. gals too. I bet with a little hoopla from thead marketing, things will transpire just fine. Too bad about the NPU and GPU though. Anyway, off to another day of luxury grass mowing. I cannot wait to see what happens! |
Huh? |
@Kreyren , Hello...it is me. I posted some hastebin ideas on the forums... I directed the build at you. Are you still trying things? I have no clue about RevyOS and/or could care less about the GPU support. Currently, since the headers are there allocated from chip to headers, I am more worried about makers like myself making things with this board. Selfish maybe but I enjoy building in time... Okay... https://forum.armbian.com/topic/29298-beaglev-ahead-and-armbian-support/#comment-187147 I built the docker image with:
I received an error about no I do not have the board file. If you need support on building, I know less than you about Armbian for sure, I can try alternatives and builds around the OpenSBI, different cross_compilers, toolchains, and so on... Please let me know where I can fit in? Seth |
I didn't see you trying to reach me on forum, sorry about that! Lot has changed since me making this merge request i am working on adjusting this merge request to use mainline and will give you a new instructions to test, currently researching them through LicheePi 4A |
So, it seems that libssl3 is not installable on the debian distro I am using... Okay...so. Ubuntu is welcomed due to the libssl3 error. I will attempt this build again with Ubuntu and not Debian. Seth |
I don't think it's a good idea to try to build this and run it on the device as too many things have changed since this was submitted, wait for me to adjust the contribution for you to test. |
REVIEWERS: Squash using GitHub UI with message from the first commit
Includes a kernel config for thead edge thus the high count of changes
Description
Implement a community support for BeagleV-Ahead
Depends on changes from #5689
Progress from #5684
The original work is on https://github.com/Kreyren/armbian-build-kreyren/compare/6cd581c96c0b7b800b6549afe23112d4a662d2a0..811288169004dccacab964129ecaf8cfe891b22d i tried to shorten it as much as possible for the easy merge request review
The image boots and seems to work without major issues
If the fans doesn't work then invoke following from userland:
Making fans to spin is implemented in the DTS and they should work, mentioned just in case to avoid overheating of the chip
Tracked in #5692 for the optimized toolchain
UEFI was not implemented and i try to submit that in next patch, TODO tracking
Complains about:
I try to address it in next merge request
The GPU and NPU are not usable, context in Figure out the GPU and NPU GPU/NPU Support? ryan4yin/nixos-licheepi4a#11.. blame the manufacturer
GNOME doesn't compile as it's currently broken for riscv64 in debian repositories
I didn't work on ubuntu compatibility, @chainsx seems to be better option for that as it seems to be his main distro and the OS configuration is shared from SiPeed LicheePi 4A
Debian claims that bookworm will never support riscv so should be flagged
Trixie doesn't build because:
Debian upstream informed and working on the issue, i try to submit patch if they take long time
I try to address that in upcoming merge, TODO tracking
# dmesg
# fastboot devices
Jira reference number: Ehwww jira
How Has This Been Tested?
By a community member on his device
As a part of #5689 and #5714
Built using:
$ ./compile.sh build BOARD=beaglev-ahead BRANCH=edge BUILD_DESKTOP=no BUILD_MINIMAL=yes EXPERT=yes KERNEL_CONFIGURE=no RELEASE=sid
Checklist: