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

Transplant openIL to raspberrypi and use sja1105-tool #46

Open
metascience-lab opened this issue Mar 4, 2019 · 1 comment
Open

Transplant openIL to raspberrypi and use sja1105-tool #46

metascience-lab opened this issue Mar 4, 2019 · 1 comment

Comments

@metascience-lab
Copy link

I'm researching how to transplant openil to raspberrypi,and use sja1105-tool in it .For my purpose,I do the following steps:
1.Cross-compile openil on Ubuntu, and add sja1105-tool module to openil system by "make menuconfig" to compile it into embedded system.
2.Write the openil image to SD card,insert it into raspberrypi, power it up.
3.In openil system,I inputted command "sja1105-tool status general",but it report an error of /usr/bin/sja1105-tool:line1:syntax error:unexpected ")" as the picture bellow.

After several days searching in Internet but could find a solution ,I's sincerely hoping you could give me some advice,thank you very much!

@vladimiroltean
Copy link
Contributor

Hi Jiajing,
To me it sounds like an issue where sja1105-tool is compiled for a different architecture, or libc, than the system you're running on. That is strange given that you said you are compiling sja1105-tool from OpenIL. Can you compare the output of file /bin/busybox with file /usr/bin/sja1105-tool and provide the output of those 2 commands? You might need to add the file program to OpenIL by running make file and then make again to rebuild the SD card image.
Please also be aware that for sja1105-tool to work, you need bindings for spidev driver in the Raspberry Pi, as well as point sja1105-tool to that spidev node. You appear to not be at that stage yet, so this is just FYI.

@vladimiroltean vladimiroltean transferred this issue from nxp-archive/openil Apr 12, 2019
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