Rock64 u-boot for eMMC Build Error
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:

However, when I get to here:

make CROSS_COMPILE=aarch64-linux-gnu-

I get this error:

ModuleNotFoundError: No module named 'distutils.core'
make[2]: *** [scripts/dtc/pylibfdt/Makefile:30: rebuild] Error 1
make[1]: *** [scripts/ 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:

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/ 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.

Possibly Related Threads…
Thread Author Replies Views Last Post
  OpenWRT on the Rock64 CanadianBacon 7 2,188 09-15-2022, 05:25 PM
Last Post: pescew
  ROCK64 - Not start mathieu 0 294 07-11-2022, 03:49 AM
Last Post: mathieu
  Rock64 bricked shawwwn 6 2,562 01-29-2022, 05:49 AM
Last Post: shawwwn
  Rock64 board not working, no HDMI no Ethernet. EDited 2 1,350 01-26-2022, 08:46 AM
Last Post: TRS-80
  Boot from SPI first mjnck 0 595 12-31-2021, 11:23 AM
Last Post: mjnck
  Rock64 <--> Rock64 Serial Connection mark1250 1 969 12-23-2021, 09:27 PM
Last Post: barray
  Are you guys still using Ayufan's OMV on your Rock64? AkiraSensei 0 898 11-26-2021, 07:01 PM
Last Post: AkiraSensei
Thumbs Up USB3.0 to eMMC Adapter... MattDralle 2 1,338 10-28-2021, 12:20 PM
Last Post: tllim
  Rock64 kernel panics clay 15 6,056 10-17-2021, 06:30 PM
Last Post: Rocklobster
  Pine Rock64 eMMC lifespan moonspell79 3 2,256 08-19-2021, 06:46 PM
Last Post: bcnaz

Forum Jump:

Users browsing this thread: 1 Guest(s)