u-boot

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决
2,060 次查看
niexuzhong
Contributor II

Hi everyone, I have question about customizing the u-boot in LSDK. I can use flex build to build the deault pack now ,but I have to modify u-boot setting , I review the user guide about LSDK. but there are only operation about linux coustomize,but how to modify the U-boot? I use following step to modify the  config for uboot. 

1. export ARCH and CROSS-COMPILE enviorment variable

2.cd /packages/firmware/u-boot

3.run make menuconfig to save config

4. run flex-builder -c uboot -m xxxx -b sd

then there is an error at step 4, the error message is

xxxx/flexbuild_lsdk2012/packages/firmware/u-boot is not clean, please run 'make mrproper'
in the 'xxx/flexbuild_lsdk2012/packages/firmware/u-boot' directory.
xxx/flexbuild_lsdk2012/packages/firmware/u-boot/Makefile:1759: recipe for target 'prepare3' failed
make[2]: *** [prepare3] Error 1

who can give me suggestion about it? Thank you!

标记 (1)
0 项奖励
1 解答
2,031 次查看
yipingwang
NXP TechSupport
NXP TechSupport

I use LS1046ARDB as an example.

1. $ flex-builder -c uboot -m ls1046ardb -b sd

2. Go to folder packages/firmware/u-boot/, please customize file configs/ls1046ardb_sdcard_defconfig according to your requirement.

3. Rebuild u-boot.

$ rm -rf build/firmware/u-boot/ls1046ardb/

$ flex-builder -c uboot -m ls1046ardb -b sd

在原帖中查看解决方案

0 项奖励
4 回复数
2,050 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please go to folder "xxxx/flexbuild_lsdk2012/packages/firmware/u-boot" to run "make mrproper" to clean u-boot source code.

No need to run step 3, when execute command "flex-builder -c uboot -m xxxx -b sd", the command "make <target>_sdcard_defconfig" will be invoked automatically.

0 项奖励
2,040 次查看
niexuzhong
Contributor II

Dear yiping:

          if I use make mrproper to clean it All config will be clear, but I had changed the u-boot config by menuconfig. without the step 3, how can I customize the u-boot conifg? please give me suggestion. Thank you!

0 项奖励
2,032 次查看
yipingwang
NXP TechSupport
NXP TechSupport

I use LS1046ARDB as an example.

1. $ flex-builder -c uboot -m ls1046ardb -b sd

2. Go to folder packages/firmware/u-boot/, please customize file configs/ls1046ardb_sdcard_defconfig according to your requirement.

3. Rebuild u-boot.

$ rm -rf build/firmware/u-boot/ls1046ardb/

$ flex-builder -c uboot -m ls1046ardb -b sd

0 项奖励
84 次查看
LeonP
Contributor II

I follow your instructions:
++ rm -rf build/firmware/u-boot/ls1088ardb/
++ flex-builder -m ls1088ardb_pb -b qspi -c uboot
MACHINE: ls1088ardb_pb
BOOTTYPE: qspi
COMPONENT: uboot
make: Nothing to be done for '/host/opt/LS1088/flexbuild_lsdk2108//packages/firmware'.
make: 'uboot' is up to date.

I also did "bld clean-firmware" but the reswult is the same.

The LSDK is 21.08.
Please, help!

0 项奖励