Date: Tue, 26 Aug 2025 23:31:57 +0200 From: Mario Marietto <marietto2008@gmail.com> To: uboot@freebsd.org Subject: I get a lot of errors when I try to build a lot,if not every , u-boot-* ports. Message-ID: <CA%2B1FSigsK45g0jBgtzqroz33qm8k_vNfopew7V06igB-df-TtQ@mail.gmail.com>
index | next in thread | raw e-mail
[-- Attachment #1 --]
Hello.
I'm trying to build u-boot for the khadas-edge-v on FreeBSD 14.2-RELEASE
and 14.3-RELEASE (packages = quarterly)) ; version =
[marietto@marietto]==> freebsd-version -kru
14.2-RELEASE-p1
14.2-RELEASE-p1
14.2-RELEASE-p5
First off I went to another board's build and I checked if a defconfig file
exists for this board.
Checked ./u-boot/configs/ directory :
/usr/ports/sysutils/u-boot-radxa-zero3/work/u-boot-2025.07-rc2/configs/khadas-edge-v-rk3399_defconfig
Then I found the defconfig file for the board and I tried to build a slave
u-boot port for the khadas :
# mkdir /usr/ports/sysutils/u-boot-khadas-edge-v
# cd /usr/ports/sysutils/u-boot-khadas-edge-v
# ee Makefile
MASTERDIR= ${.CURDIR}/../u-boot-master
MODEL= khadas-edge-v
BOARD_CONFIG= khadas-edge-v-rk3399_defconfig
FAMILY= rk3399
.include "${MASTERDIR}/Makefile"
Then I created the package description file :
# ee pkg-descr
U-Boot loader and related files for the khadas-edge-v :
To install this bootloader on an sdcard just do:
dd if=/usr/local/share/u-boot/u-boot-khadas-edge-v/idbloader.img
of=/path/to/sdcarddevice seek=64 conv=sync
dd if=/usr/local/share/u-boot/u-boot-khadas-edge-v/u-boot.itb
of=/path/to/sdcarddevice seek=16384 bs=512 conv=sync
At this point I tried to build the port :
Installed dependencies:
# make build-depends-list | cut -c 12- | xargs pkg install -A -y
Tried to build it :
# make install
But,unfortunately,I get a lot of errors at this point :
https://pastebin.ubuntu.com/p/jg9YrSxPrP/
These are my env variables :
# env
SSH_AUTH_SOCK=/var/run/user/1001/ssh-agent.socket
MM_CHARSET=UTF-8
LANG=C.UTF-8
XDG_CURRENT_DESKTOP=LXDE
USER=marietto
DESKTOP_SESSION=LXDE
XDG_MENU_PREFIX=lxde-
OLDPWD=/home/marietto
XDG_CONFIG_HOME=/home/marietto/.config
HOME=/home/marietto
MPD_HOST=/home/marietto/.config/mpd/socket
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-F7umH6rba7,guid=03e69b17d18bdb369701682768ac0840
_=/usr/bin/env
XDG_CONFIG_DIRS=/usr/local/etc/xdg
WINDOWPATH=9
XDG_DATA_DIRS=/usr/local/share
_LXSESSION_PID=3942
XDG_CACHE_HOME=/home/marietto/.cache
XDG_DATA_HOME=/home/marietto/.local/share
BLOCKSIZE=K
MAIL=/var/mail/marietto
LOGNAME=marietto
VISUAL=nano
SAL_USE_VCLPLUGIN=gtk
PATH=/bhyve:/home/marietto/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/bin:/sbin
XDG_RUNTIME_DIR=/var/run/user/1001
SHELL=/usr/local/bin/zsh
LESSKEY=/home/marietto/.config/less/keys
KEYTIMEOUT=1
LESSHISTFILE=/home/marietto/.config/less/history
EDITOR=nano
XDG_SESSION_COOKIE=marietto-1756104768.218998-1025553342
PWD=/home/marietto
XAUTHORITY=/home/marietto/.Xauthority
SHLVL=2
DISPLAY=:0
TERM=xterm
[marietto@marietto /usr/ports/sysutils/u-boot-khadas-edge-v]==> sudo env
LANG=C.UTF-8
XDG_CURRENT_DESKTOP=LXDE
PATH=/bhyve:/home/marietto/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/bin:/sbin
XAUTHORITY=/home/marietto/.Xauthority
DISPLAY=:0
TERM=xterm
MAIL=/var/mail/root
LOGNAME=root
USER=root
HOME=/root
SHELL=/usr/local/bin/zsh
SUDO_COMMAND=/usr/bin/env
SUDO_USER=marietto
SUDO_UID=1001
SUDO_GID=1001
SUDO_HOME=/home/marietto
SUDO_TTY=/dev/pts/1
What could be the problem ? How to fix it ? It happens also when I try to
build a lot,if not every, u-boot-* port....
The package can be installed,the port gives that error. But this does not
change anything. I get the same error when I try to install every kind of
u-boot-* port.
MAKE_JOBS_UNSAFE does not work
I also tried to remove the ports tree and I've rebuilt it. But the error is
still there.
--
Mario.
[-- Attachment #2 --]
<div dir="ltr"><div><div class="gmail-mb-sm gmail-mb-xs gmail-px-md gmail-xs:px-0 gmail-overflow-hidden">
<div id="gmail-t3_1mzldpf-post-rtjson-content" class="gmail-md gmail-text-14-scalable">
<p>
Hello.
</p><p>I'm trying to build u-boot for the khadas-edge-v on FreeBSD
14.2-RELEASE and 14.3-RELEASE (packages = quarterly)) ; version =</p><p><br></p><p>
<code>[marietto@marietto]==> freebsd-version -kru</code>
</p><p>
<code>14.2-RELEASE-p1</code>
</p><p>
<code>14.2-RELEASE-p1</code>
</p><p>
<code>14.2-RELEASE-p5</code>
</p><p>
First off I went to another board's build and I checked if a defconfig file exists for this board.
</p><p>Checked ./u-boot/configs/ directory :</p><p><br></p><p><code>/usr/ports/sysutils/u-boot-radxa-zero3/work/u-boot-2025.07-rc2/configs/khadas-edge-v-rk3399_defconfig</code></p><p><br></p><p>
Then I found the defconfig file for the board and I tried to build a slave u-boot port for the khadas :
</p><p>
<code># mkdir /usr/ports/sysutils/u-boot-khadas-edge-v</code>
</p><p>
<code># cd /usr/ports/sysutils/u-boot-khadas-edge-v</code>
</p><p>
<code># ee Makefile</code>
</p><pre>MASTERDIR= ${.CURDIR}/../u-boot-master
MODEL= khadas-edge-v
BOARD_CONFIG= khadas-edge-v-rk3399_defconfig
FAMILY= rk3399
.include "${MASTERDIR}/Makefile"<br><br></pre><p>Then I created the package description file :</p><p><br></p><p>
<code># ee pkg-descr</code>
</p><pre>U-Boot loader and related files for the khadas-edge-v :
To install this bootloader on an sdcard just do:
dd if=/usr/local/share/u-boot/u-boot-khadas-edge-v/idbloader.img of=/path/to/sdcarddevice seek=64 conv=sync
dd if=/usr/local/share/u-boot/u-boot-khadas-edge-v/u-boot.itb of=/path/to/sdcarddevice seek=16384 bs=512 conv=sync</pre><p><br></p><p>At this point I tried to build the port :</p><p>Installed dependencies:</p><p><br></p><p>
<code># make build-depends-list | cut -c 12- | xargs pkg install -A -y</code>
</p><p>
Tried to build it :
</p><p>
<code># make install</code>
</p><p>
But,unfortunately,I get a lot of errors at this point :
</p><p>
<a class="gmail-relative gmail-pointer-events-auto gmail-a gmail-cursor-pointer gmail-underline" href="https://pastebin.ubuntu.com/p/jg9YrSxPrP/" rel="noopener nofollow noreferrer ugc" target="_blank">https://pastebin.ubuntu.com/p/jg9YrSxPrP/</a>
</p><p>These are my env variables :</p><p><br></p><pre># env
SSH_AUTH_SOCK=/var/run/user/1001/ssh-agent.socket
MM_CHARSET=UTF-8
LANG=C.UTF-8
XDG_CURRENT_DESKTOP=LXDE
USER=marietto
DESKTOP_SESSION=LXDE
XDG_MENU_PREFIX=lxde-
OLDPWD=/home/marietto
XDG_CONFIG_HOME=/home/marietto/.config
HOME=/home/marietto
MPD_HOST=/home/marietto/.config/mpd/socket
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-F7umH6rba7,guid=03e69b17d18bdb369701682768ac0840
_=/usr/bin/env
XDG_CONFIG_DIRS=/usr/local/etc/xdg
WINDOWPATH=9
XDG_DATA_DIRS=/usr/local/share
_LXSESSION_PID=3942
XDG_CACHE_HOME=/home/marietto/.cache
XDG_DATA_HOME=/home/marietto/.local/share
BLOCKSIZE=K
MAIL=/var/mail/marietto
LOGNAME=marietto
VISUAL=nano
SAL_USE_VCLPLUGIN=gtk
PATH=/bhyve:/home/marietto/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/bin:/sbin
XDG_RUNTIME_DIR=/var/run/user/1001
SHELL=/usr/local/bin/zsh
LESSKEY=/home/marietto/.config/less/keys
KEYTIMEOUT=1
LESSHISTFILE=/home/marietto/.config/less/history
EDITOR=nano
XDG_SESSION_COOKIE=marietto-1756104768.218998-1025553342
PWD=/home/marietto
XAUTHORITY=/home/marietto/.Xauthority
SHLVL=2
DISPLAY=:0
TERM=xterm<br>
[marietto@marietto /usr/ports/sysutils/u-boot-khadas-edge-v]==> sudo env
<br>
LANG=C.UTF-8
XDG_CURRENT_DESKTOP=LXDE
PATH=/bhyve:/home/marietto/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/bin:/sbin
XAUTHORITY=/home/marietto/.Xauthority
DISPLAY=:0
TERM=xterm
MAIL=/var/mail/root
LOGNAME=root
USER=root
HOME=/root
SHELL=/usr/local/bin/zsh
SUDO_COMMAND=/usr/bin/env
SUDO_USER=marietto
SUDO_UID=1001
SUDO_GID=1001
SUDO_HOME=/home/marietto
SUDO_TTY=/dev/pts/1<br><br></pre><p>
What could be the problem ? How to fix it ? It happens also when I try to build a lot,if not every, u-boot-* port....
</p>
</div><div class="gmail-contents"><div class="gmail-min-w-0"><div class="gmail-relative"><span name="comment"><div class="gmail-md gmail-text-14-scalable gmail-rounded-2 gmail-pb-2xs gmail-overflow-hidden" id="gmail-t1_naql4a5-comment-rtjson-content"><div id="gmail-t1_naql4a5-post-rtjson-content" class="gmail-py-0 gmail-xs:mx-xs gmail-mx-2xs gmail-inline-block gmail-max-w-full gmail-scalable-text"><p>The package can be installed,the port gives that error. But
this does not change anything. I get the same error when I try to
install every kind of u-boot-* port.<span name="actionRow"><span class="gmail-block gmail-nd:hidden" tabindex="0"></span></span></p></div></div></span></div></div></div></div><div class="gmail-mb-sm gmail-mb-xs gmail-px-md gmail-xs:px-0 gmail-overflow-hidden">MAKE_JOBS_UNSAFE does not work</div><div class="gmail-mb-sm gmail-mb-xs gmail-px-md gmail-xs:px-0 gmail-overflow-hidden"></div><div class="gmail-mb-sm gmail-mb-xs gmail-px-md gmail-xs:px-0 gmail-overflow-hidden"><div id="gmail-t1_naqmkn0-post-rtjson-content" class="gmail-py-0 gmail-xs:mx-xs gmail-mx-2xs gmail-inline-block gmail-max-w-full gmail-scalable-text"><p>
I also tried to remove the ports tree and I've rebuilt it. But the error is still there.</p></div></div></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Mario.<br></div></div>
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSigsK45g0jBgtzqroz33qm8k_vNfopew7V06igB-df-TtQ>
