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

Building on Fedora #2

Open
junaruga opened this issue Jan 21, 2022 · 4 comments · Fixed by #3
Open

Building on Fedora #2

junaruga opened this issue Jan 21, 2022 · 4 comments · Fixed by #3

Comments

@junaruga
Copy link

junaruga commented Jan 21, 2022

On Fedora 35, I was able to build like this.

With the compiler arm-none-eabi-gcc.

$ sudo dnf install arm-none-eabi-gcc-cs libftdi-devel

$ which arm-none-eabi-gcc
/bin/arm-none-eabi-gcc

$ make BOARD=hx20 CROSS_COMPILE=arm-none-eabi-

With the compiler arm-linux-gnu-gcc.

$ sudo dnf install gcc-arm-linux-gnu libftdi-devel

$ which arm-linux-gnu-gcc
/bin/arm-linux-gnu-gcc

$ make BOARD=hx20 CROSS_COMPILE=arm-linux-gnu-

If you don't mind, I would like to add the command to install arm-none-eabi-gcc on README.md.

@kiram9
Copy link
Member

kiram9 commented Jan 24, 2022

@junaruga I tried this a while ago on fedora, and there is something with the build tools using arm-none-eabi-gcc-cs on fedora 35 which causes the application built with this to run incorrectly on the EC. For now I would not suggest using this to build EC binaries.
I have not tried it yet, but I wanted to see if the zephyr tool chain worked, as I would prefer to migrate to this since most chrome-ec is moving to zephyr.

@junaruga
Copy link
Author

I tried this a while ago on fedora, and there is something with the build tools using arm-none-eabi-gcc-cs on fedora 35 which causes the application built with this to run incorrectly on the EC

@kiram9 If you remember, could you tell me more about "there is something" and " run incorrectly on the EC"? What incorrect behavior happened? Is it reproducible?

@junaruga
Copy link
Author

I have not tried it yet, but I wanted to see if the zephyr tool chain worked, as I would prefer to migrate to this since most chrome-ec is moving to zephyr.

I see. The zephyr tool chain is this? https://github.com/FrameworkComputer/zephyr

@kiram9
Copy link
Member

kiram9 commented Jan 24, 2022

@junaruga It was reproducible, but will cause your laptop to not boot.
It will show up as a WDT reset over and over, I think due to i2c timeouts. I think there is a mutex or something that is not updated causing the i2c event notifications to not notify the associated tasks, and when there are i2c transactions on the hooks task, it hangs, (hooks also does WDT patting). I have not had much time to debug what is going on yet.

The Zephyr sdk is https://github.com/zephyrproject-rtos/sdk-ng/releases and includes gcc for arm.

The framework repo is for zephyr rtos, which we are not currently using for this project.

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