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 2 1,103 04-08-2024, 06:47 AM
Last Post: dmitrymyadzelets
  OpenWRT on the Rock64 CanadianBacon 14 10,755 04-03-2024, 08:48 AM
Last Post: helpmerock
  Rock64 bricked shawwwn 7 6,991 03-17-2024, 12:22 PM
Last Post: dmitrymyadzelets
  Rock64 won't boot luminosity7 10 5,968 03-16-2024, 08:33 AM
Last Post: dmitrymyadzelets
  Rock64 doesn't boot dstallmo 1 741 03-16-2024, 08:29 AM
Last Post: dmitrymyadzelets
  Boot from SPI first mjnck 1 1,928 02-29-2024, 02:12 PM
Last Post: reukiodo
  How well does Rock64 deal with HDR and Atmos on Kodi? drvlikhell 3 2,705 04-29-2023, 04:24 AM
Last Post: newestssd
  Rock64 board not working, no HDMI no Ethernet. EDited 3 4,282 01-17-2023, 02:31 PM
Last Post: Flagtrax
  ROCK64 v3 can it boot from USB? Tsagualsa 4 2,944 11-29-2022, 11:31 AM
Last Post: Macgyver
  rock64 v3 spiflash Macgyver 0 1,053 11-28-2022, 02:18 PM
Last Post: Macgyver

Forum Jump:


Users browsing this thread: 1 Guest(s)