Hello Fabio,
I have also attached the Makefile where also the error was reported
make[2]: ***
[/home/vjaiswal/dev/Projects/SOLAR/khadas-dev/forTesting/yocto2_actual_meta_rockchip/build/tmp/work/rockchip_rk3399_khadas_edge_v-poky-linux/u-boot-rockchip/1_2017.09-r0/git/scripts/Makefile.build:280:
cmd/bootm.o] Error 1
Best Regards,
Vivek
From: Vivek Jaiswal
Sent: Monday, March 25, 2024 5:37 PM
To: Fabio Estevam
Cc: u-boot@lists.denx.de
Subject: Re: U-boot fails for khadas-edge -v
Hello Fabio,
I tried using the this github repository.
https://github.com/u-boot/u-boot.git
And the configuration used was following
[https://res-geo.cdn.office.net/assets/mail/file-icon/png/generic_16x16.png]rockchip-rk3399-khadas-edge-v.conf<https://cinemo0-my.sharepoint.com/:u:/g/personal/vjaiswal_cinemo_com/EV-eU09iFz9GsPUVr5DEd0QBCIOp1v71AjYZHpcgH_D3aA>
UBOOT_MACHINE = "khadas-edge-v-rk3399_defconfig"
I got some error during the build from the u-boot.
Please check the attachment BuildError1.txt or BuildError2.txt
make[2]: ***
[/home/vjaiswal/dev/Projects/SOLAR/khadas-dev/forTesting/yocto2_actual_meta_rockchip/build/tmp/work/rockchip_rk3399_khadas_edge_v-poky-linux/u-boot-rockchip/1_2017.09-r0/git/scripts/Makefile.build:280:
cmd/bootm.o] Error 1
make[1]: ***
[/home/vjaiswal/dev/Projects/SOLAR/khadas-dev/forTesting/yocto2_actual_meta_rockchip/build/tmp/work/rockchip_rk3399_khadas_edge_v-poky-linux/u-boot-rockchip/1_2017.09-r0/git/Makefile:1317:
cmd] Error 2
make: *** [Makefile:157: sub-make] Error 2
I have attached the Makefile.txt as well.
I am using this repository as meta rockchip
https://github.com/JeffyCN/meta-rockchip
Linux : https://github.com/khadas/linux/tree/khadas-edges-5.10.y-release-v1.0.0
Yocto branch : Kirkstone
Layes used:
meta-rockchip
poky/meta
poky/meta-poky
poky/meta-yocto-bsp
meta-openembedded/meta-oe
Can you fix this issue ?
Best regards,
Vivek
From: Fabio Estevam
Sent: Thursday, March 7, 2024 10:19 PM
To: Vivek Jaiswal
Cc: u-boot@lists.denx.de
Subject: Re: U-boot fails for khadas-edge -v
[You don't often get email from feste...@gmail.com. Learn why this is important
at https://aka.ms/LearnAboutSenderIdentification ]
On Thu, Mar 7, 2024 at 2:43 PM Vivek Jaiswal wrote:
> are you saying to use this one?
> https://github.com/u-boot/u-boot/blob/master/configs/khadas-edge-v-rk3399_defconfig
Yes, this one.
# ==
# Building
# ==
#
# SPDX-License-Identifier: GPL-2.0
#
# Modified for U-Boot
prefix := tpl
src := $(patsubst $(prefix)/%,%,$(obj))
ifeq ($(obj),$(src))
prefix := spl
src := $(patsubst $(prefix)/%,%,$(obj))
ifeq ($(obj),$(src))
prefix := .
endif
endif
PHONY := __build
__build:
# Init all relevant variables used in kbuild files so
# 1) they have correct type
# 2) they do not inherit any value from the environment
obj-y :=
obj-m :=
lib-y :=
lib-m :=
always :=
targets :=
subdir-y :=
subdir-m :=
EXTRA_AFLAGS :=
EXTRA_CFLAGS :=
EXTRA_CPPFLAGS :=
EXTRA_LDFLAGS :=
asflags-y :=
ccflags-y :=
cppflags-y :=
ldflags-y :=
subdir-asflags-y :=
subdir-ccflags-y :=
# Read auto.conf if it exists, otherwise ignore
# Modified for U-Boot
-include include/config/auto.conf
-include $(prefix)/include/autoconf.mk
include scripts/Makefile.uncmd_spl
include scripts/Kbuild.include
# For backward compatibility check that these variables do not change
save-cflags := $(CFLAGS)
# The filename Kbuild has precedence over Makefile
kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src))
kbuild-file := $(if $(wildcard
$(kbuild-dir)/Kbuild),$(kbuild-dir)/Kbuild,$(kbuild-dir)/Makefile)
include $(kbuild-file)
# Added for U-Boot
asflags-y += $(PLATFORM_CPPFLAGS)
ccflags-y += $(PLATFORM_CPPFLAGS)
cppflags-y += $(PLATFORM_CPPFLAGS)
# If the save-* variables changed error out
ifeq ($(KBUILD_NOPEDANTIC),)
ifneq ("$(save-cflags)","$(CFLAGS)")
$(error CFLAGS was changed in "$(kbuild-file)". Fix it to use
ccflags-y)
endif
endif
include scripts/Makefile.lib
ifdef host-progs
ifneq ($(hostprogs-y),$(host-progs))
$(warning kbuild: $(obj)/Makefile - Usage of host-progs is deprecated. Please
replace with hostprogs-y!)
hostprogs-y += $(host-progs)
endif
endif
# Do not include host rules unless needed
ifneq ($(hostprogs-y)$(hostprogs-m),)
include scripts/Makefile.host
endif
# Uncommented for U-Boot
# We need to create output dicrectory for SPL and TPL even for in-tree build
#ifneq ($(KBUILD_SRC),)
# Create output directory if not already present
_dummy := $(shell [ -d $(obj) ] || mkdir -p $(obj))
# Create directories for object files if directory does not exist
# Needed when obj-y := dir/file.o syntax is used
_dummy := $(foreach d,$(obj-dirs), $(shell [ -d $(d) ] || mkdir -p $(d)))
#endif
ifn