U-Boot Configuration in Yocto

cancel
Showing results for 
Search instead for 
Did you mean: 

U-Boot Configuration in Yocto

3,904 Views
Contributor I

Dear all,

I'm trying to implement yocto project in imx51.I followed the attached document as given below,

$ mkdir ~/bin

$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo

$ chmod a+x ~/bin/repo

$ PATH=${PATH}:~/bin

$ mkdir fsl-community-bsp

$ cd fsl-community-bsp

fsl-community-bsp $ repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b dylan

fsl-community-bsp $ repo sync

$MACHINE=imx51evk source setup-environment build

$bitbake qte-in-use-image

Now i got the u-boot,uImage&qt-in-use rootfs images in deploy/images folder.

Then i flashed u-boot to the i.mx51 using peedi programmer as,

imx51>flash program card://u-boot.imx bin 0x00000000

But when i tried booting with the flashed u-boot.its not booting. Anything i'm missing in u-boot?

with regards,

Ravivarman Rajendiran

Labels (2)
0 Kudos
20 Replies

181 Views
Contributor I

Hi All,

I have the source of working u-boot for the kit i'm using. Is it possible to add that source to the yocto as recipe, if yes how to integrate the u-boot into project.

0 Kudos

181 Views
Specialist I

Create a layer and create a .bb file (this is the recipe) IF your u-boot is new (new version?). In case you need to change an existing recipe, then create a .bbappend. Check the development manual under the Yocto documentation page, lots of info related to this task is explained.

Leo

0 Kudos

181 Views
NXP Employee
NXP Employee

And, it would be very-very nice if you created your board machine file, with some basic configuration. As you´re not using a supported board.

And, only to let you know. I tested imx51evk with dora and it´s working like a charm.

0 Kudos

181 Views
Contributor I

Dear Daiane & Leonardo,

I built yocto bsp for my kit using bitbake qte-in-use-image (because i want qt embedded with qws server) and its booting now.

But its not completely booting.Its hangs when it reaches Configuring: update-modules as below,

Caching udev devnodes

ALSA: Restoring mixer settings...

Configuring network interfaces... Starting portmap daemon...

kernel.printk = 4 4 1 7

vm.lowmem_reserve_ratio = 1 1

Configuring: update-modules


In display it says Please wait:booting...


complete booting sequence is in https://dl.dropboxusercontent.com/u/12382973/errorLog.txt

Help me with this.


with Regards,

Ravivarman R

0 Kudos

181 Views
NXP Employee
NXP Employee

I don´t know if this is the same error, but please, try this

https://lists.yoctoproject.org/pipermail/meta-freescale/2013-June/003289.html

0 Kudos

179 Views
Contributor I

No.This link does'nt provide solution.

0 Kudos

181 Views
Specialist I

I need to update the document, but the latest stable branches are the dora ones. Make sure you MACHINE is correct and try baking a smaller image for the moment (core-image-minimal, for example).

0 Kudos

181 Views
NXP TechSupport
NXP TechSupport

Hello, Ravivarman,

      please try to use dd command to copy u-boot images into SD , then reboot your board.

# sudo dd if=u-boot.imx of=/dev/mmcblk0 bs=512

Regards,

Weidong

0 Kudos

181 Views
Contributor I

Dear Weidong,

Yes i tried,

$sudo dd if=tmp/deploy/images/qte-in-use-image-imx51evk.sdcard of=/dev/sdb bs=1M

it created two partitions in sd card.one with uImage and other with rootfs.but its not booting in the development kit.

with regards,

Ravivarman Rajendiran.

0 Kudos

181 Views
NXP Employee
NXP Employee

Hi varman,

You are using mx51EVK, right? or a custom mx51 ?

Pls don't forget to sync the data after copying images.

$sudo dd if=tmp/images/qte-in-use-image-imx51evk.sdcard of=/dev/sdb bs=1M & sync

Regards,

Zheng Songhao

0 Kudos

181 Views
Contributor I

Dear Songhao Zheng,

Yes i'm using mx51EVK.

Also i did sync after copying images.

But U-Boot screen itself not coming after flashing the u-boot.

with regards,

Ravivarman.

0 Kudos

181 Views
NXP Employee
NXP Employee

Hi varman,

what's the u-boot version?  legacy chips mx5 and mx2 use u-boot-2009.08.

Could you deploy only the u-boot into the SD card?  Just have a try.

$sudo dd if=u-boot-XXXXXX.imx of=/dev/sdb bs=512 seek=2

Regards,

Zheng Songhao

0 Kudos

181 Views
Contributor I

Dear Zheng Sonaghao,

     Yes the u-boot version it use is u-boot-2009.Also i tried to deploy only the uboot, its not booting.

0 Kudos

181 Views
Contributor I

Dear Leonardo,

I found the difference in  ../fsl-community-bsp/sources/meta-fsl-arm/conf/machine/include/imx-base.inc

I changed the entrypoint and load address as below as in digi embedded yocto's u-boot's source file which worked fine.

UBOOT_ENTRYPOINT_mx51  = "0x94000000"

UBOOT_LOADADDRESS_mx51 = "0x94000000"

also i changed the serial console to,

SERIAL_CONSOLE = "38400 ttymxc1" as required.

Then i commited the git and bitbaked.but still i'm not able to boot the u-boot after flash.

i hereby given the sources,

Working digi embedded yocto meta source,

https://www.dropbox.com/s/j449iukwbdiwupn/digi_meta-fsl-arm.tar.gz

freescale meta source for comparsion,

https://www.dropbox.com/s/wqnzu01e1n7362x/freescale_meta-fsl-arm.tar.gz

with regards,

Ravivarman R

0 Kudos

181 Views
NXP Employee
NXP Employee

Your SERIAL_CONSOLE line does not look correct. mx51evk uses ttymxc0 at 115200.

Regards,

Fabio Estevam

0 Kudos

181 Views
Contributor I

Dear Fabio,

I'm not using freescale's evalution kit. i'm using digi's i.mx kit.(http://www.digi.com/products/model?mid=3402). The previous digi's yocto i used has the SERIAL_CONSOLE = "38400 ttymxc1".

with regards,

Ravivarman R.

0 Kudos

181 Views
NXP Employee
NXP Employee

Ah, that was not clear as you previously wrote "Yes i'm using mx51EVK."

Regards,

Fabio Estevam

0 Kudos

181 Views
Contributor I

Hi,

Sorry i really doesn't meant the kit, it was the machine type i said.

0 Kudos

181 Views
NXP Employee
NXP Employee

I´m not sure if I got everything from your description. But, if you´re using the default configuration from meta-fsl-arm (as I think you are), the u-boot you should have in your sdcard is 2013.10, not 2009.08. But, last time I tested this board it was working.

I´m going to start a build over here and test it on my board. Then we can double check. And it would be better to use dora instead, as it´s the latest stable branch now

0 Kudos

181 Views
Contributor I

Dear Daiane Angolini,

I compiled u-boot as,

bitbake -c compile -f u-boot-imx and it generated u-boot-imx51evk-2009.08-r16.imx.


with regards,

Ravivarman R

0 Kudos