Suppose I wish to share a zephyr build that I built on my Uno Q4 on my Uno Q2,
what do I need to do.
Option 1 does not work for me: Which is to go through the full process of installing the build environment on the Q2 as well. It runs out of space when it tries to git clone of the zephyr project within the bootstrap.sh step
Option 2 copy bits from the Q4 to the Q2, so far not running yet. What I am currently trying is:
full setup to build on Q4 - Note: I cloned GitHub - KurtE/ArduinoCore-zephyr: Arduino Core based on Zephyr+llext · GitHub and then checked out the branch of my current PR: llext_long_exports.
source ./venv/bin/activate
west update
deactivate
./extras/build.sh unoq
I already have it setup with ~/arduino/hardware/arduino/zephyr pointing to this and the
main build with .arduino15 disabled.
I can flash and build with it:
On the Q2: I have also git cloned the same URL and checkout the same branch, and setup. I already have it setup with ~/arduino/hardware/arduino/zephyr pointing to this and the main build with .arduino15 disabled.
From the Q4, I copied the ~/git/ArduinoCore-zephyr/firmwares directory to a newly created firmwares directory.
From the Q4, I copied the file :~/git/ArduinoCore-zephyr/variants/arduino_uno_q_stm32u585xx/llext-edk.tar.Z
to the same location on the q2, I then used, the command line:
tar -xvf llext-edk.tar.Z
to expand it into place in the variant.
I was then able to burn the bootloader using the command:
arduino-cli burn-bootloader -b arduino:zephyr:unoq -P jlink
But when I try to build the same sketch using arduino-cli on the Q2
arduino@Uno-q2:~/gamepad_test$ cat ./compile_sketch
arduino-cli compile --fqbn arduino:zephyr:unoq --upload sketch/
arduino@Uno-q2:~/gamepad_test$ ./compile_sketch
The library Arduino_RPClite has been automatically added from sketch project.
arm-zephyr-eabi-g++: fatal error: cannot specify '-o' with '-c', '-S' or '-E' with multiple files
compilation terminated.
The library Arduino_RouterBridge has been automatically added from sketch project.
The library ArxContainer has been automatically added from sketch project.
The library ArxTypeTraits has been automatically added from sketch project.
The library DebugLog has been automatically added from sketch project.
The library Dynamixel2Arduino has been automatically added from sketch project.
The library MsgPack has been automatically added from sketch project.
Used library Version Path
Arduino_RPClite 0.2.1 /home/arduino/.arduino15/internal/Arduino_RPClite_0.2.1_ce72ff552a496aef/Arduino_RPClite
Arduino_RouterBridge 0.4.1 /home/arduino/.arduino15/internal/Arduino_RouterBridge_0.4.1_d378119a47d2c8c4/Arduino_RouterBridge
ArxContainer 0.7.0 /home/arduino/.arduino15/internal/ArxContainer_0.7.0_007f0bb2a1cdefe3/ArxContainer
ArxTypeTraits 0.3.2 /home/arduino/.arduino15/internal/ArxTypeTraits_0.3.2_d65e2aabfeed7838/ArxTypeTraits
DebugLog 0.8.4 /home/arduino/.arduino15/internal/DebugLog_0.8.4_c199e2cf6415ecc8/DebugLog
Dynamixel2Arduino 0.8.1 /home/arduino/.arduino15/internal/Dynamixel2Arduino_0.8.1_8b0e8df6a1581977/Dynamixel2Arduino
MsgPack 0.4.2 /home/arduino/.arduino15/internal/MsgPack_0.4.2_a0d4adc5044d022c/MsgPack
Used platform Version Path
arduino:zephyr 9.9.9 /home/arduino/Arduino/hardware/arduino/zephyr
Error during build: exit status 1
So what am I missing? My guess is something within the bootstrap.sh
(west update) probably changed some of the tools?
Or is this something better asked on Github?
Thanks in advance
Kurt

