u-boot 2020 not booting

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

u-boot 2020 not booting

跳至解决方案
5,360 次查看
ajellisuk
Contributor II

Hi

I have compiled u-boot 2020 for use on a sabresd board. When I deploy the u-boot image to an sd card, and try and boot it, I see no activity on the serial console. I have deployed u-boot-mx6q-sabresd.bin on the same sd card and uboot, does boot correctly.

I have set the baudrate to 115200 which is what was used witht he previous u-boot, specified port 1 for the console and enambled IMX serial port support. I have ensured that the architecture is set to ARM, the target is MX6, and the board chosen is mx6sabresd.

I deployed the u-boot binary with:

sudo dd if=u-boot.bin of=/dev/sdb bs=512 seek=2 skip=2 conv=fsync

Is there anything else I need to enable in the uboot configuration, and is there any additional boot code that I need to write to the sdcard before u-boot?

Thanks in advance

Andrew

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
5,326 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi ajellisuk,

 

The latest uboot you need download is from:

git clone https://source.codeaurora.org/external/imx/uboot-imx

 

Regards

 

在原帖中查看解决方案

0 项奖励
回复
5 回复数
5,353 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello ajellisuk,

 

You can view the complete process and follow up for compiling and deployment uboot at:

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/u-boot-on-the-i-MX6-sabre-sd-platform-in...

 

https://www.youtube.com/watch?v=sn1d39AcTzI

 

Regards

 

0 项奖励
回复
5,349 次查看
ajellisuk
Contributor II

Hello Bio_TICFSL

Thank you for those links.

They appear to be for much older versions of uboot: 2009 & 2013. I'm using 2020, which using menuconfig to configure uboot in a similar manner to Linux kernels.

I believe that I'm a step closer as I have spotted the option for adding SPL. Currently the build is failing with:
common/spl/built-in.o: In function `board_init_r':
/home/user/andrew/u-boot/u-boot-2020/common/spl/spl.c:641: undefined reference to `spl_board_init'

I'll continue to debug, if I find the answer before someelse replies I'll share it.

Andrew

0 项奖励
回复
5,344 次查看
ajellisuk
Contributor II

I have made quite a step forward. I cleaned the configuration of my u-boot with "make mrproper" and did "make mx6sabresd_defconfig" . After building uboot, the file "u-boot-with-spl.imx" was created. I deployed this to an sd card with "sudo dd if=u-boot-with-spl.imx of=/dev/sdb bs=1K seek=1" 

The boot stalls with:

U-Boot SPL 2021.01-rc2 (Dec 17 2020 - 21:59:37 +0000)
Trying to boot from MMC1
mmc_load_image_raw_sector: mmc block read error
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

I haven't changed any of the configuration settings in menuconfig, but the above error suggests the SPL is looking in the wrong location for uboot.

Has anyone else had this issue? And how did you resolve it?

Andrew

0 项奖励
回复
5,327 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi ajellisuk,

 

The latest uboot you need download is from:

git clone https://source.codeaurora.org/external/imx/uboot-imx

 

Regards

 

0 项奖励
回复
5,307 次查看
ajellisuk
Contributor II

Hi Bio_TICFSL

Thank you for sharing the link.

I was able to download an build the 2018 version of u-boot, and get it to boot on my board.

I didn't have any success with building with booting imx_v2020.04_5.4.70_2.3.0, and niether of them have squashfs.

I may need to think again about my requirements.

Kind regards

Andrew

0 项奖励
回复