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.

Messages In This Thread
Rock64 u-boot for eMMC Build Error - by mexicanflyer - 09-18-2022, 02:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Boot from SPI first mjnck 1 1,381 02-29-2024, 02:12 PM
Last Post: reukiodo
  Rock64 doesn't boot dstallmo 0 204 12-19-2023, 06:10 PM
Last Post: dstallmo
  Rock64 won't boot luminosity7 9 3,662 05-20-2023, 08:43 AM
Last Post: luminosity7
  How well does Rock64 deal with HDR and Atmos on Kodi? drvlikhell 3 1,709 04-29-2023, 04:24 AM
Last Post: newestssd
  OpenWRT on the Rock64 CanadianBacon 12 7,591 04-24-2023, 12:40 PM
Last Post: arunkhan
  Rock64 board not working, no HDMI no Ethernet. EDited 3 3,325 01-17-2023, 02:31 PM
Last Post: Flagtrax
  ROCK64 v3 can it boot from USB? Tsagualsa 4 1,894 11-29-2022, 11:31 AM
Last Post: Macgyver
  rock64 v3 spiflash Macgyver 0 678 11-28-2022, 02:18 PM
Last Post: Macgyver
  my rock64 dosen't work rookie_267 0 879 10-07-2022, 07:50 PM
Last Post: rookie_267
  ROCK64 - Not start mathieu 0 1,175 07-11-2022, 03:49 AM
Last Post: mathieu

Forum Jump:

Users browsing this thread: 1 Guest(s)