Quantcast

bitbake u-boot in overo

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

bitbake u-boot in overo

Asier Agos

Hi,

 

I’m using the Yocto project to build an image for an Overo EarthStorm and a Tobi extension board. After bitbaking the gumstix-console-image following this https://github.com/gumstix/Gumstix-YoctoProject-Repo, I copied the files to an SD card:

 

cp ~/yocto/build/tmp/deploy/images/MLO-overo-2012.07 /media/FAT/MLO

sudo cp ~/yocto/build/tmp/deploy/images/u-boot.img /media/FAT/u-boot.img

sudo cp ~/yocto/build/tmp/deploy/images/uImage-overo.bin /media/FAT/uImage

sudo tar xaf ~/yocto/build/tmp/deploy/images/gumstix-console-image-overo.tar.bz2 -C /media/ROOTFS

 

and it works fine. Now I want to change the u-boot for some changes muxing the GPIO. Bitbake u-boot created a new file u-boot-overo-v2011XXXXXX.bin

I tried to copy it to the SD card instead of the u-boot.img with

sudo cp ~/yocto/build/tmp/deploy/images/ u-boot-overo-v2011XXXXXX.bin /media/FAT/ u-boot.img

 

and when I boot I get:

 

OMAP SD/MMC: 0

reading u-boot.img

reading u-boot.img

 

 

U-Boot 2012.07-00003-g20eaff6 (Mar 25 2013 - 20:34:52)

 

OMAP36XX/37XX-GP ES1.2, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz

Gumstix Overo board + LPDDR/NAND

I2C:   ready

DRAM:  512 MiB

NAND:  512 MiB

MMC:   OMAP SD/MMC: 0

*** Warning - bad CRC, using default environment

 

In:    serial

Out:   serial

Err:   serial

Board revision: 1

Direct connection on mmc2

No EEPROM on expansion board

Die ID #316600229ff80000015475c213025016

Net:   smc911x-0

Hit any key to stop autoboot:  0

reading boot.scr

 

** Unable to read "boot.scr" from mmc 0:1 **

reading uImage

 

276880 bytes read

Booting from mmc ...

Wrong Image Format for bootm command

ERROR: can't get kernel image!

Overo #

 

I’m confused because prebuilt images like http://cumulus.gumstix.org/images/angstrom/factory/2011-08-30-1058/ have a MLO, u-boot.bin and uImage files but the image built with bitbake has MLO, u-boot.bin, u-boot.img and uImage-overo.bin.

 

Can anyone please help? What files do I need and with what extensions?

 

Thank you

 

Asier Agos
Software Engineer
Tel: +44 (0) 1224 775700
Fax: +44 (0) 1224 775800
This email is sent and received in accordance with the terms and conditions as defined on our website. To view click here
Nautronix Limited is head-quartered at Ury House, Howe Moss Cres, Kirkhill, Dyce, Aberdeen, AB21 0GN. Nautronix is part of Nautronix Group Limited which is registered in Scotland, registered office: Blackwood House, Union Grove Lane, Aberdeen, AB10 6XU. Registered Number: SC372837.Nautronix Limited which is registered in Scotland, registered number SC062293, with a registered office at Blackwood House, Union Grove Lane, Aberdeen, AB10 6XU is part of Nautronix Group Limited. Nautronix (Holdings) Limited which is registered in Scotland, registered number SC225116, with a registered office at Blackwood House, Union Grove Lane, Aberdeen, AB10 6XU is part of Nautronix Group Limited.
---------------------------------------------------------------------
This email has been scanned for Nautronix Ltd, 
by the Postini Message Security System.
---------------------------------------------------------------------


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: bitbake u-boot in overo

Scott Ellis
You built the wrong version of u-boot with the command 'bitbake u-boot'

You can check versions like this

scott@hex:~/jumpnow/build$ bitbake -s | grep u-boot
u-boot                              :v2011.06+git22+b1af6f532e0d348b153d5c148369229d24af361a-r3                          
u-boot-fw-utils                                   :2011.06-r1                          
u-boot-mkimage                                    :2011.06-r0                          
u-boot-mkimage-native                             :2011.06-r0                          
u-boot-mkimage-nativesdk                          :2011.06-r0                          
u-boot-sakoman                                    :2012.10-r1    

You want u-boot-sakoman.

If you run bitbake virtual/bootloader it should point to u-boot-sakoman.

You can find the definition for virtual/bootloader in meta-gumstix/conf/machines/overo.inc
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: bitbake u-boot in overo

Asier Agos
Thanks for your help Scott,

I got this
user@pc:~/yocto/build$ bitbake --show-versions | grep u-boot
u-boot
:v2011.06+git37+b1af6f532e0d348b153d5c148369229d24af361a-r3

u-boot-fw-utils                                   :2011.06-r1

u-boot-mkimage                                    :2011.06-r0

u-boot-mkimage-native                             :2011.06-r0

u-boot-mkimage-nativesdk                          :2011.06-r0

u-boot-sakoman                                    :2012.07-r0

The meta-gumstix/conf/machine/over.inc is pointing to u-boot-sakoman

bitbake -c clean virtual/bootloader; bitbake virtual/bootloader
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-sakoman"

and after that I did

user@pc: bitbake -c clean virtual/bootloader; bitbake virtual/bootloader
finished without errors, but I don't have any new files in the
build/tmp/deploy/images and I don't know how to
- copy the built u-boot an image to an SD card
- where is the overo.h file that I need to edit to modify the pin
muxing? The folder bulid/tmp/work/overo-poky-linux-gnueabi contains 5
folders starting with u-boot*. One of them is u-boot-sakoman-2012.07-r0
but it doesn't have an overo.h file like others do. Do I modify the
overo.h in v2011.06+git37+b1af6f532e0d348b153d5c148369229d24af361a-r3?
Or it's just there because I wrongly did bitbake u-boot?

Thanks a lot


-----Original Message-----
From: Scott Ellis [mailto:[hidden email]]
Sent: 10 April 2013 15:47
To: [hidden email]
Subject: Re: [Gumstix-users] bitbake u-boot in overo

You built the wrong version of u-boot with the command 'bitbake u-boot'

You can check versions like this

scott@hex:~/jumpnow/build$ bitbake -s | grep u-boot
u-boot                            
:v2011.06+git22+b1af6f532e0d348b153d5c148369229d24af361a-r3

u-boot-fw-utils                                   :2011.06-r1

u-boot-mkimage                                    :2011.06-r0

u-boot-mkimage-native                             :2011.06-r0

u-boot-mkimage-nativesdk                          :2011.06-r0

u-boot-sakoman                                    :2012.10-r1    

You want u-boot-sakoman.

If you run bitbake virtual/bootloader it should point to u-boot-sakoman.

You can find the definition for virtual/bootloader in
meta-gumstix/conf/machines/overo.inc




--
View this message in context:
http://gumstix.8.x6.nabble.com/bitbake-u-boot-in-overo-tp4967128p4967129
.html
Sent from the Gumstix mailing list archive at Nabble.com.

------------------------------------------------------------------------
------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for
building apps and a phenomenal toolset for data science. Developers can
use our toolset for easy data analysis & visualization. Get a free
account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
---------------------------------------------------------------------
This email has been scanned for Nautronix Ltd,
by the Postini Message Security System.
---------------------------------------------------------------------


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: bitbake u-boot in overo

Scott Ellis
I updated some instructions here

http://www.jumpnowtek.com/index.php?option=com_content&view=article&id=55&Itemid=61

I don't use the meta-gumstix layer, but I tried to write the instructions
as if I were. There might be typos.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: bitbake u-boot in overo

Asier Agos
Thank you so much Scot,
That was great help and it's working now.



-----Original Message-----
From: Scott Ellis [mailto:[hidden email]]
Sent: 12 April 2013 11:59
To: [hidden email]
Subject: Re: [Gumstix-users] bitbake u-boot in overo

I updated some instructions here

http://www.jumpnowtek.com/index.php?option=com_content&view=article&id=5
5&Itemid=61

I don't use the meta-gumstix layer, but I tried to write the
instructions as if I were. There might be typos.




--
View this message in context:
http://gumstix.8.x6.nabble.com/bitbake-u-boot-in-overo-tp4967128p4967145
.html
Sent from the Gumstix mailing list archive at Nabble.com.

------------------------------------------------------------------------
------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for
building apps and a phenomenal toolset for data science. Developers can
use our toolset for easy data analysis & visualization. Get a free
account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
---------------------------------------------------------------------
This email has been scanned for Nautronix Ltd,
by the Postini Message Security System.
---------------------------------------------------------------------


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Loading...