AnsweredAssumed Answered

Boot loader fails  to load Using SD-Card

Question asked by hsksar22 on Sep 14, 2017

I have an issue getting the boot loader to work on a custom board. - OS: Linux - Ubuntu 16

Processor: MCIMX6U5DVM10AC : Processor Series:  i.MX 6DualLite.- 32bit.  

I'm using yocto to build the image.  For the build we did not make any changes to the source code or linux/menuconfig, I've used  the following configuration DISTRO-

# 'DISTRO=fsl-imx-x11 MACHINE=imx6dlsabresd source fsl-setup-release.sh -b build'.  

// For the build command - base image # bitbake core-image-base

The command to copy the image to SDCard:

I have deleted the SDCard completely.  Disk programs shows 32G Unallocated prior to image copy.

# sudo dd if=core-image-base-imx6dlsabresd--xxx.rootfs.sdcard of=/dev/sdc bs=1MB conv=fsync 

 

 

For testing the SDCard, I connected a USB to serial cable from host PC to board.   I used putty program

to check the console output.  After reset/reboot of the board nothing came out. I tried other variation during boot

.. such as hitting the keyboard space bar, other keys...but no output displayed on the putty terminal console.

 

 

Questions:

1) Do you recommend making changes to the source code (ei: SDRam Addr, CONFIG_LOADADDR.., or project build local.conf...) in order to get the boot loader to work properly?

 

2) Is it possible to just copy the boot loader and verify if it's working.? Is it possible to download a matching imx6- uboot-imx boot loader and test it .?

 

3) Do you recommend a proper way to format the SD Card - Is this issue might be related to the way the SD Card is initially formatted...?  

 

4)  Could the issue be related to the way the "dd" single image operation is not creating the proper partition correctly:

I did a hexdump from the begining sector of the SD Card # sudo dd if=/dev/sdc of=/tmp/sdcard.img count=10 

I can see the boot loader - listed at 0x400 .

 

 

0000000 b8fa 1000 d08e 00bc b8b0 0000 d88e c08e                      <=== Section A             
0000010 befb 7c00 00bf b906 0200 a4f3 21ea 0006
0000020 be00 07be 0438 0b75 c683 8110 fefe 7507
0000030 ebf3 b416 b002 bb01 7c00 80b2 748a 8b01
0000040 024c 13cd 00ea 007c eb00 00fe 0000 0000
0000050 0000 0000 0000 0000 0000 0000 0000 0000
*
00001b0 0000 0000 0000 0000 1cbd 492d 0000 0000                   <=== Section B                                 
00001c0 4001 030c bf20 2000 0000 4000 0000 0000
00001d0 c001 0383 ffe0 6000 0000 0000 0003 0000
00001e0 0000 0000 0000 0000 0000 0000 0000 0000
00001f0 0000 0000 0000 0000 0000 0000 0000 aa55
0000200 0000 0000 0000 0000 0000 0000 0000 0000
*
0000400 00d1 4020 0000 1780 0000 0000 f42c 177               <========  boot loader image at address 0x400
0000410 f420 177f f400 177f 0000 0000 0000 0000
0000420 f000 177f 5000 0007 0000 0000 02d2 40f0
0000430 02cc 04ec 0e02 7407 0c00 0000 0e02 5407
0000440 0000 0000 0e02 ac04 0000 3000 0e02 b004
0000450 0000 3000 0e02 6404 0000 3000 0e02 9004

 

Thank you!

Outcomes