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 won't boot luminosity7 9 3,087 05-20-2023, 08:43 AM
Last Post: luminosity7
  How well does Rock64 deal with HDR and Atmos on Kodi? drvlikhell 3 1,442 04-29-2023, 04:24 AM
Last Post: newestssd
  OpenWRT on the Rock64 CanadianBacon 12 6,841 04-24-2023, 12:40 PM
Last Post: arunkhan
  Rock64 board not working, no HDMI no Ethernet. EDited 3 3,055 01-17-2023, 02:31 PM
Last Post: Flagtrax
  ROCK64 v3 can it boot from USB? Tsagualsa 4 1,590 11-29-2022, 11:31 AM
Last Post: Macgyver
  rock64 v3 spiflash Macgyver 0 579 11-28-2022, 02:18 PM
Last Post: Macgyver
  my rock64 dosen't work rookie_267 0 777 10-07-2022, 07:50 PM
Last Post: rookie_267
  ROCK64 - Not start mathieu 0 1,060 07-11-2022, 03:49 AM
Last Post: mathieu
  Rock64 bricked shawwwn 6 5,015 01-29-2022, 05:49 AM
Last Post: shawwwn
  Boot from SPI first mjnck 0 1,272 12-31-2021, 11:23 AM
Last Post: mjnck

Forum Jump:


Users browsing this thread: 1 Guest(s)