jadonk / beagleconnect

Moved to https://git.beagleboard.org/beagleconnect/freedom
https://git.beagleboard.org/beagleconnect/freedom
36 stars 16 forks source link

Ideas on Building at west zephyr-export and Receiving Errors on the Build #77

Closed silver2row closed 2 years ago

silver2row commented 2 years ago

I am trying to build the /blinky application and port it to the Rev. C5 from the BBGG

I have researched specifics in the ZephyrProject, the communication aspects to the file system for Zephyr, and I am just starting to handle the ideas circulating around cc1352R and the M4F onboard the BeagleConnect.

I have been following along for now until I can make a break in the case. Here:


pip3 install -U west
cd
west init -m https://github.com/jadonk/zephyr --mr bcf-sdk-0.0.5 bcf-zephyr
west update
west zephyr-export
pip3 install -r zephyr/scripts/requirements-base.txt

This seems a bit odd to me, e.g. as I cannot use west to update or zephyr-export outside of the bcf-zephyr directory on the BBGG.

I tried to make a closed environment via venv so far. I tried to move on and rekindle the advancement of the west update/zephyr-export outside of the bcf-zephyr build directory.

The first time I tried it, the build instructions, I got a hang up at installing the binary but only after moving on from not building with west update/zephyr-export outside of the bcf-zephyr directory. I built everything, including the requirements-base.txt file, inside of the bcf-zephyr dir.

I think that the binary is already on the C5 board and already flashed for this BeagleConnect. I expected to run through some details on how to achieve a way to flash binaries to the BeagleConnect. I also expected to move past this attempt to flash the BeagleConnect to try to start my own flashing instances.

silver2row commented 2 years ago

Hello,

Is there a .dtsi file yet for the M4F for beagleconnect? I was wondering in case I could perform some driver config. on the Connect in zephyr. I am behind now and trying to catch up to tons of work everyone has produced so far.

...

I am following along in two different articles now to produce an .overlay file and a .dts file for the connect. One GPIO or LED or whatever it is called these days. It is located at P6.2. I think this is, on the Connect, an outbound GPIO.

Seth

silver2row commented 2 years ago

Hello,

I have brought up this idea before today. I am building again and again. Here is the issue w/ cmake so far which I have been trying to figure out. So far, so not so good. I have not been able to move beyond: west zephyr-export.

Seth

P.S. Oh! Here is the error in case others are working to fix this issue: FATAL ERROR: command exited with status 1: /usr/bin/cmake -P /home/debian/bcf-zephyr/zephyr/share/zephyr-package/cmake/zephyr_export.cmake

I can only look at the files so far and through looking, I have found nothing in particular that warrants a FATAL ERROR. Someone told me that people have moved on from this error but I have not moved on.

silver2row commented 2 years ago

Hello again...

So, this command: west zephyr-export

Creates this issue: FATAL ERROR: command exited with status 1: /usr/bin/cmake -P /home/debian/bcf-zephyr/zephyr/share/zephyr-package/cmake/zephyr_export.cmake

If I remove that command from the build, this happens:

CMake Error at /home/debian/bcf-zephyr/zephyr/cmake/app/boilerplate.cmake:25 (find_package):
  Could not find a configuration file for package "Zephyr" that is compatible
  with requested version "".

  The following configuration files were considered but not accepted:

    /opt/source/bcf-zephyr/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake, version: unknown

Call Stack (most recent call first):
  /opt/source/bcf-zephyr/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  /opt/source/bcf-zephyr/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
  CMakeLists.txt:4 (find_package)

CMake Error at CMakeLists.txt:4 (find_package):
  Found package configuration file:

    /opt/source/bcf-zephyr/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake

  but it set Zephyr_FOUND to FALSE so package "Zephyr" is considered to be
  NOT FOUND.

-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/usr/bin/python3 -B/home/debian/bcf-zephyr/build/blinky -S/home/debian/bcf-zephyr/zephyr/samples/basic/blinky -GNinja -DBOARD=beagleconnect_freedom

I am not sure exactly what to do as of now w/ this build.

Seth

P.S. Um, if someone has figured it out, please advise me so I can move forward. I will keep on trying.