Rock64 u-boot for eMMC Build Error
#1
I have a Rock64 4GB board which I would like to turn into a FreedomBox server.

Since the Rock64 boards are no longer sold with SPI flash, I am trying
to build U-Boot to flash onto the eMMC module. I am following the instructions
for building here:

https://u-boot.readthedocs.io/en/latest/...kchip.html

However, when I get to here:

Code:
make CROSS_COMPILE=aarch64-linux-gnu-


I get this error:

Code:
ModuleNotFoundError: No module named 'distutils.core'
make[2]: *** [scripts/dtc/pylibfdt/Makefile:30: rebuild] Error 1
make[1]: *** [scripts/Makefile.build:398: scripts/dtc/pylibfdt] Error 2
make: *** [Makefile:2047: scripts_dtc] Error 2


Some investigation tells me pylibfdt is not yet compatible with python3, and it will
be a while before the developers will be able to solve the problem, as it causes many other issues.
I installed python2, but I get this error:

Code:
scripts/dtc/pylibfdt/libfdt_wrap.c:154:11: fatal error: Python.h: No such file or directory
  154 | # include <Python.h>
      |           ^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/cc' failed with exit code 1
make[2]: *** [scripts/dtc/pylibfdt/Makefile:30: rebuild] Error 1
make[1]: *** [scripts/Makefile.build:398: scripts/dtc/pylibfdt] Error 2
make: *** [Makefile:2047: scripts_dtc] Error 2


What am I able to do in order to work around this issue?

For clarity, will the u-boot and FreedomBox installations exist on the same eMMC module in the end, or must I install one to an SD card and the other on the eMMC module?


Thank you for reading the post. I would appreciate any advice you have to offer.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Rock64 No Audio @ Debian 12 dmitrymyadzelets 1 112 03-18-2024, 06:56 AM
Last Post: diederik
  Rock64 bricked shawwwn 7 5,448 03-17-2024, 12:22 PM
Last Post: dmitrymyadzelets
  Rock64 won't boot luminosity7 10 3,863 03-16-2024, 08:33 AM
Last Post: dmitrymyadzelets
  Rock64 doesn't boot dstallmo 1 254 03-16-2024, 08:29 AM
Last Post: dmitrymyadzelets
  Boot from SPI first mjnck 1 1,451 02-29-2024, 02:12 PM
Last Post: reukiodo
  How well does Rock64 deal with HDR and Atmos on Kodi? drvlikhell 3 1,769 04-29-2023, 04:24 AM
Last Post: newestssd
  OpenWRT on the Rock64 CanadianBacon 12 7,790 04-24-2023, 12:40 PM
Last Post: arunkhan
  Rock64 board not working, no HDMI no Ethernet. EDited 3 3,395 01-17-2023, 02:31 PM
Last Post: Flagtrax
  ROCK64 v3 can it boot from USB? Tsagualsa 4 1,973 11-29-2022, 11:31 AM
Last Post: Macgyver
  rock64 v3 spiflash Macgyver 0 703 11-28-2022, 02:18 PM
Last Post: Macgyver

Forum Jump:


Users browsing this thread: 1 Guest(s)