Skip to content
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

Installing on 5.x #50

Open
rherban opened this issue Apr 12, 2022 · 4 comments
Open

Installing on 5.x #50

rherban opened this issue Apr 12, 2022 · 4 comments

Comments

@rherban
Copy link

rherban commented Apr 12, 2022

According to this reply #39 (comment), you are working on a build path for Beaglelogic on a 5.x kernel.

Do you have any progress here? Are you going to have a pre-built image available for it?

@abhishek-kakkar
Copy link
Owner

Yes, there will be. I plan to set up a GitHub Actions Pipeline to be able to distribute images / Debian repositories to refresh BeagleLogic but it will take a bit more time. Please bear with me while I get this sorted.

@rherban
Copy link
Author

rherban commented Jan 18, 2023

I've tried compiling the beaglelogic firmware on a BeagleBone AI64 but encountered an error (presumably because of a newer clpru). Can you make your 5.x code available in a branch so we can play around with it?

root@BeagleBone:/tmp/BeagleLogic/firmware# make

************************************************************
Building project: firmware

Building file: beaglelogic-pru0.c
Invoking: PRU Compiler
/usr/share/ti/cgt-pru/bin/clpru --include_path=/usr/share/ti/cgt-pru/include --include_path=/usr/lib/ti/pru-software-support-package/include --include_path=/usr/lib/ti/pru-software-support-package/include/am335x -v3 -O2 --display_error_number --endian=little --hardware_mac=on --obj_directory=release --pp_directory=release -ppd -ppa -fe release/beaglelogic-pru0.object beaglelogic-pru0.c
"resource_table_0.h", line 50: error #71: incomplete type is not allowed
"resource_table_0.h", line 88: error #71: incomplete type is not allowed
"resource_table_0.h", line 90: error #28: expression must have a constant value
3 errors detected in the compilation of "beaglelogic-pru0.c".

>> Compilation failure
make: *** [Makefile:105: release/beaglelogic-pru0.object] Error 1

@abhishek-kakkar
Copy link
Owner

The error that you're seeing is at the PRU firmware compilation level. It appears that the current kernel module source code should compile on the 5.4-ti branch as I had merged it into the main tree.

We might need to update the firmware with the latest TI PRU support package libraries for this to work.

@abhishek-kakkar
Copy link
Owner

Also, I haven't tried BeagleLogic on the AI64 yet, since it's a new platform so adding support won't be trivial, you're likely to need work at the pinmux and also device tree level. The SoC has multiple PRUs from what I've heard and firmware should go to the correct one. I've requested for one to try, but let's see when I get one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants