RCW/U-BOOT image where should i write or flash u-boot-ls1021aiot.bin

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

RCW/U-BOOT image where should i write or flash u-boot-ls1021aiot.bin

Jump to solution
2,461 Views
myungjinhwang
Contributor III

there were  files in my sdcard when i get this board but no u-boot-ls1021aiot.bin

   * uImage-ls1021aiot.bin

   * uImage-ls1021a-iot.dtb

   * fsl-image-rds-ls1021aiot.ext2.gz.u-boot

where this board read  u-boot-ls1021aiot.bin? sdcard or flash memory?

i re-build u-boot file and write it to the sd-card as below

-  Rebuild u-boot

   $ bitbake -c cleansstate u-boot-ls1

   $ bitbake -c patch u-boot-ls1

   $ bitbake u-boot-ls1

And followed

* Write RCW/U-BOOT image to SD card with below command

     $ sudo dd if=u-boot-ls1021aiot.bin of=/dev/sd[x] bs=512 seek=8 conv=notrunc oflag=dsync

     Insert the SD card, Power up the board and check U-Boot output is shown on the serial terminal.

    Press a key to stop at the command prompt.

but it still boot with not re-builded u-boot-ls1021aiot.bin

should i flash RCW/U-BOOT image to flash?

then how to flash RCW/U-boot images i can not find for LS1021A-IOT

Help me plz....^^

1 Solution
1,249 Views
addiyi
NXP Employee
NXP Employee

You can check uboot timestamp in u-boot.bin, so you can be sure the u-boot was rebuilt. Also, you have two ways to load new u-boot into sdcard:

from u-boot

tftp <address> u-boot.bin

mmc write <address> 8 0x400

from linux

sudo dd if=<binary file> of=/dev/mmcblk0 bs=512 seek=8 conv=notrunc oflag=sync

Adrian

View solution in original post

7 Replies
1,249 Views
hosytan
Contributor III

I use QorIQ-SDK-V2.0-20160527-yocto and want to boot T4240RDB-64b with u-boot from SDCARD.

I edit /QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/conf/machine/t4240rdb-64b.conf with following change:

UBOOT_CONFIG ??= "sdcard nor"

But after bitbake -c cleansstate u-boot && bitbake u-boot, I didn't find u-boot-spl.bin, no folder with spl name appear.

By the way, please tell me how to product SDCARD with u-boot for T4240RDB-64b in detail.

 

Thank you in advanced.

0 Kudos
1,249 Views
addiyi
NXP Employee
NXP Employee

To rebuild uboot using Yocto:

$ bitbake -c cleansstate u-boot

$ bitbake -c patch u-boot

Add your modifications to u-boot sources, then:

$ bitbake -c compile -f u-boot

Adrian

0 Kudos
1,249 Views
myungjinhwang
Contributor III

Thanks for your reply

I'm re-building with Yocto .

and you are telling me about

3. For LS1021AIOT RevA, there is a device errata on I2C.

   use below command to modify the u-boot code to support reading EEPROM on RevA board:

   a. Applying patches to u-boot

      $ bitbake -c patch u-boot-ls1

   b. cd u-boot working directory

      $ cd <yocto_install_patch>/build_ls1021aiot_release/tmp/work/ls1021aiot-fsl-linux-gnueabi/u-boot-ls1/2014.07-r0/git

   c. $ vi include/configs/ls1021aiot.h

      change CONFIG_SYS_I2C_EEPROM_ADDR from 0x51 to 0x50

   d. $ bitbake -c compile u-boot-ls1

   e. $ bitbake u-boot-ls1

Where can i check Rev?

andthen is it right way to write u-boot-ls1021aiot.bin ?

* Write RCW/U-BOOT image to SD card with below command

$ sudo dd if=u-boot-ls1021aiot.bin of=/dev/sd[x] bs=512 seek=8 conv=notrunc oflag=dsync

1,250 Views
addiyi
NXP Employee
NXP Employee

You can check uboot timestamp in u-boot.bin, so you can be sure the u-boot was rebuilt. Also, you have two ways to load new u-boot into sdcard:

from u-boot

tftp <address> u-boot.bin

mmc write <address> 8 0x400

from linux

sudo dd if=<binary file> of=/dev/mmcblk0 bs=512 seek=8 conv=notrunc oflag=sync

Adrian

1,249 Views
myungjinhwang
Contributor III

Thanks again.

1. i can not understand how can i check the Rev

     plz...let me know again.

2. got it....

0 Kudos
1,249 Views
addiyi
NXP Employee
NXP Employee

you can open u-boot.bin in a binary view (XVI32 for example) and search for U-Boot as sting or for 55 2D as hex, something similar with the image attached:

pastedImage_0.png

Adrian

0 Kudos
1,249 Views
myungjinhwang
Contributor III

Thank you very much~~~~~~~~~~~

0 Kudos