Yocto U-boot problems

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

Yocto U-boot problems

跳至解决方案
2,109 次查看
ottoblom
Contributor III

Hi There,

I'm trying out the new Yocto BSP 1.0.0 and so far it builds but I'm having some trouble getting mmc running in u-boot on our custom board. While troubleshooting this I ran into some trouble with GDB. If I build the full image (bitbake fsl-image-dfb) and dump that onto the SD card u-boot always comes up as follows

CPU:   Freescale i.MX6Q rev1.2 at 792 MHz

CPU:   Temperature 45 C, calibration data: 0x58d4f269

Reset cause: POR

Board: MX6Q/SDL-SabreSD

I2C:   ready

DRAM:  1 GiB

MMC:   FSL_SDHC: 0

MMC Device 1 not found

No MMC card found

Using default environment

However, when I use my BDI3000 and GDB to load the image ("u-boot-imx/2013.04-r0/git/u-boot") I can single-step through just fine, as soon as I "continue" it jumps into the weeds and nothing ever prints to the console. GDB u-boot debugging works fine on the old LTIB 4.1.0 BSP.  I don't necessarily need gdb, but the problem is that the compile-test-repeat cycle is at a glacial pace when rebuilding the whole SD card image. Any ideas on what could be the culprit ?

I noticed there is a "u-boot-imx6qsabresd.imx" file in the images directory. What is this file used for ? I'm hoping that can be copied directly to an SD card somehow.

Thanks,

/Otto

标签 (4)
标记 (4)
0 项奖励
回复
1 解答
1,492 次查看
ottoblom
Contributor III

The problem had to do with changes we made the board. For anyone else interested in what the imx uboot file is - It can be written to a sdcard as follows

sudo dd if=tmp/deploy/images/imx6qsabresd/u-boot.imx of=/dev/sdc bs=512 seek=2

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,493 次查看
ottoblom
Contributor III

The problem had to do with changes we made the board. For anyone else interested in what the imx uboot file is - It can be written to a sdcard as follows

sudo dd if=tmp/deploy/images/imx6qsabresd/u-boot.imx of=/dev/sdc bs=512 seek=2

0 项奖励
回复