IMX53 u-boot and image on SD-Card problems

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX53 u-boot and image on SD-Card problems

2,499 Views
jürgenmiller
Contributor II

Hey,

Working with CC WI-I.MX53 Board and have problems to load u-boot and image on a sd-card. I used the tutorial "i.MX53 Quick Start" on eewiki. Even the u-boot isn't loading with that.

Then I used flashnul on Windows from that how-to and it works fine:  How to recover a ConnectCore Wi-i.MX53 module using SD or MircoSD card, programming the card under W...

My u-boot is loading. But flashnul is taking the whole card, because I have to erase  with "flasnul -B" the sd first without any chance of creating a partition table. So if I want to build the kernel and rootfs it will not work.

What am I doing wrong?

P.S.: I am a student and still learning.

Labels (1)
4 Replies

1,247 Views
Yuri
NXP Employee
NXP Employee

  I think it would be better to use Linux command dd to form OS image

(U-boot+kernel+file_system) on SD. Please refer to section 7 (Using a Linux

Host to Set Up an SD/MMC Card) of "i.MX53_SABRE_TABLET_Linux_BSP_UserGuide.pdf".

Also the corresponding section of "i.MX53_START_Linux_BSP_UserGuide.pdf"

may be used.

https://www.freescale.com/webapp/Download?colCode=IMX53_1109_LINUXDOCS_BUNDLE&location=null

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,247 Views
jürgenmiller
Contributor II

Hey Yuri, thank you very much.

Now i'm able to load the bootloader. But my uImage isn't loading. I wanted to run my image from the µSD-Card following the instructions from the document.

/* Assume the kernel image start from the address 0x100000 byte (the block start address is

0x800). The kernel image size is less than 0x300000 byte. The rootfs is located into

/dev/mmcblk0p1 partition. Enter the following commands in the U-Boot prompt:*/

MX53-SMD U-Boot > setenv loadaddr 0x70800000

MX53-SMD U-Boot > setenv bootargs_base 'setenv bootargs

console=ttymxc0,115200'

MX53-SMD U-Boot > setenv bootargs_mmc 'setenv bootargs ${bootargs}

root=/dev/mmcblk0p1 rootwait rw video=mxcdi1fb:RGB666,XGA di1_primary

ldb=di1 ip=dhcp'

MX53-SMD U-Boot > setenv bootcmd_mmc 'run bootargs_base

bootargs_mmc;mmc read 0 ${loadaddr} 0x800 0x1800;bootm'

MX53-SMD U-Boot > setenv bootcmd 'run bootcmd_mmc'

MX53-SMD U-Boot > saveenv

MX53-SMD U-Boot > run bootcmd

So, after running the bootcommand this error occurs:

MMC read: dev # 1, block # 2048 count 6144 partition # 0 ...

6144  blocks read: OK

Wrong Image Format for bootm command

ERROR: Can't get kernel image!

I changed the device from 0 to 1 in [mmc read 0].

I think that the right partition is 1, not 0. So I want to change that, but don't have any idea where.

And why the writer is sure that the partiton is located in /dev/mmcblk0p1

0 Kudos
Reply

1,247 Views
Yuri
NXP Employee
NXP Employee

Hi, Jurgen !

Please try again to copy the kernel to the SD card (on the Linux host) :

$ sudo dd if= uImage of=/dev/sdb bs=512 seek=2048 && sync && sync

And after that - let's try reboot the card on the target.

~Yuri.

0 Kudos
Reply

1,247 Views
jürgenmiller
Contributor II

The issue still remains.

printenv:

baudrate=115200

loadaddr=0x70800000

silent=no

ethprime=FEC0

bootargs_base=setenv bootargs console=ttymxc0, 115200

bootargs_mmc=setenv bootargs ${bootargs} root=/dev/mmcblk1p1 rootwait rw video=mxcdil                                                                                                                                                                                  fb:RGB666, XGA dil_primary ldb=dil ip=dhcp

bootcmd_mmc=run bootargs_base bootargs_mmc; mmc read 1 ${loadaddr} 0x800 0x1800;bootm

bootcmd=run bootcmd_mmc

bootfile=uImage-ccwmx53js

ethaddr=00:40:9D:6B:7A:08

wlanaddr=00:40:9D:6B:7B:72

eth1addr=00:40:9D:6B:7A:48

btaddr=00:04:F3:FF:FF:FD

ipaddr=192.168.9.60

ipaddr_wlan=192.168.9.61

ipaddr1=192.168.44.30

netmask=255.255.255.0

netmask_wlan=255.255.255.0

netmask1=255.255.255.0

serverip=192.168.9.59

gatewayip=192.168.9.1

dnsip=192.168.9.1

dnsip2=0.0.0.0

dhcp=on

dhcp_wlan=on

dhcp1=off

mtdids=nand0=onboard_boot

mtdparts=mtdparts=onboard_boot:0x100000(U-Boot),0x80000@0x100000(NVRAM),0x300000@0x18                                                                                                                                                                                  0000(Kernel),0x7800000@0x480000(RootFS),0x18380000@0x7c80000(UserFS)

bootargs=console=ttymxc0, 115200 root=/dev/mmcblk1p1 rootwait rw video=mxcdilfb:RGB66                                                                                                                                                                                  6, XGA dil_primary ldb=dil ip=dhcp

0 Kudos
Reply