[U-Boot] Craneboard with Uboot and xloader

Hi,
I want to use Buildroot for CraneBoard...
My problem is with configuration files : MLO, u-boot.bin and uImage. I installed the last RC buildroot and after I started to configure the build by selecting the desired setting because i dont found a defconfig file for Kernel with buildroot ...
In the configuration of the bootloader I checked xloader and uboot. With uboot I found a configuration file to my card "am3517_crane" but, for xloader, I haven't found anything and I cannot generate the correspendant MLO .
I copy MLO, which was provided for Angstrom distrib for my card (compiled whith openembedded) but I cannot load the u-boot. suddenly, I also tried copying uboot that provided with the same distrib of MLO and then I start but I am blocked on: "booting the kernel"!
Could you tell me why i have this freeze ? Could you tell me what I do with buildroot to find the xloader configuration file to my card ?
thnx

On Fri, Feb 24, 2012 at 10:25:21AM +0100, Mohamed HAMZAOUI wrote:
Hi,
I want to use Buildroot for CraneBoard...
My problem is with configuration files : MLO, u-boot.bin and uImage. I installed the last RC buildroot and after I started to configure the build by selecting the desired setting because i dont found a defconfig file for Kernel with buildroot ...
Starting with v2011.12 you do not need x-loader and you want the MLO and u-boot.img (NOT u-boot.bin) files created by U-Boot.

Thank you for your help, but i use the 2012.12RC version and in the bootloader menu i select the u-boot version 2011.12 and in the uboot binary format i only have u-boot.bin, u-boot-nand.bin, u-boot.kwb ! How to build u-boot.img ? when i used a u-boot.bin for my Craneboard i can't boot because it need a MLO (xloader) for booting.
thx
On Fri, Feb 24, 2012 at 4:02 PM, Tom Rini trini@ti.com wrote:
On Fri, Feb 24, 2012 at 10:25:21AM +0100, Mohamed HAMZAOUI wrote:
Hi,
I want to use Buildroot for CraneBoard...
My problem is with configuration files : MLO, u-boot.bin and uImage. I installed the last RC buildroot and after I started to configure the
build
by selecting the desired setting because i dont found a defconfig file
for
Kernel with buildroot ...
Starting with v2011.12 you do not need x-loader and you want the MLO and u-boot.img (NOT u-boot.bin) files created by U-Boot.
-- Tom

On Fri, Feb 24, 2012 at 1:08 PM, Mohamed HAMZAOUI requinham@gmail.com wrote:
Thank you for your help, but i use the 2012.12RC version and in the bootloader menu i select the u-boot version 2011.12 and in the uboot binary format i only have u-boot.bin, u-boot-nand.bin, u-boot.kwb ! How to build u-boot.img ? when i used a u-boot.bin for my Craneboard i can't boot because it need a MLO (xloader) for booting.
That's a buildroot problem. 'make am3517_crane ; make', or however buildroot builds today is producing u-boot.img and MLO, it's just not copying them out to where you're looking for them.
thx
On Fri, Feb 24, 2012 at 4:02 PM, Tom Rini trini@ti.com wrote:
On Fri, Feb 24, 2012 at 10:25:21AM +0100, Mohamed HAMZAOUI wrote:
Hi,
I want to use Buildroot for CraneBoard...
My problem is with configuration files : MLO, u-boot.bin and uImage. I installed the last RC buildroot and after I started to configure the
build
by selecting the desired setting because i dont found a defconfig file
for
Kernel with buildroot ...
Starting with v2011.12 you do not need x-loader and you want the MLO and u-boot.img (NOT u-boot.bin) files created by U-Boot.
-- Tom
U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

I tried following your instruction and i have been found the file MLO and u-boot.img in the build/uboot directory but when i use them with the generated rootfs th craneboard boot from the nand and not from my SD although it's configured to booting from SD card and i tested it whith a openembedded distribution. the first log for starting is : U-Boot SPL 2011.12 (Feb 25 2012 - 00:01:51) Texas Instruments Revision detection unimplemented OMAP SD/MMC: 0 reading u-boot.img reading u-boot.img
U-Boot 2011.12 (Feb 25 2012 - 00:01:51)
AM35XX-GP ES2.0, CPU-OPP2, L3-165MHz, Max CPU Clock 600 Mhz CraneBoard + LPDDR/NAND I2C: ready DRAM: 256 MiB NAND: 256 MiB MMC: OMAP SD/MMC: 0 In: serial Out: serial Err: serial Die ID #0dc0000100000000015da39614006015 Hit any key to stop autoboot: 3 2 1 0 mmc - MMC sub system
Usage: mmc read addr blk# cnt mmc write addr blk# cnt mmc erase blk# cnt mmc rescan mmc part - lists available partition on current mmc device mmc dev [dev] [part] - show or set current mmc device [partition] mmc list - lists available devices Booting from nand ...
NAND read: device 0 offset 0x480000, size 0x500000 5242880 bytes read: OK ## Booting kernel from Legacy Image at 82000000 ... Image Name: Linux-2.6.32 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2103408 Bytes = 2 MiB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK
Starting kernel ...
Uncompressing Linux.................................................................................................................................... done, booting the kernel. Linux version 2.6.32 (sriharsha@localhost.localdomain) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #1 Mon Nov 29 23:22:22 IST 2010 CPU: ARMv7 Processor [411fc087] revision 7 (ARMv7), cr=10c53c7f .... ...
On Fri, Feb 24, 2012 at 9:20 PM, Tom Rini trini@ti.com wrote:
On Fri, Feb 24, 2012 at 1:08 PM, Mohamed HAMZAOUI requinham@gmail.com wrote:
Thank you for your help, but i use the 2012.12RC version and in the bootloader menu i select the u-boot version 2011.12 and in the uboot
binary
format i only have u-boot.bin, u-boot-nand.bin, u-boot.kwb ! How to build u-boot.img ? when i used a u-boot.bin for my Craneboard i can't boot because it need a MLO (xloader) for booting.
That's a buildroot problem. 'make am3517_crane ; make', or however buildroot builds today is producing u-boot.img and MLO, it's just not copying them out to where you're looking for them.
thx
On Fri, Feb 24, 2012 at 4:02 PM, Tom Rini trini@ti.com wrote:
On Fri, Feb 24, 2012 at 10:25:21AM +0100, Mohamed HAMZAOUI wrote:
Hi,
I want to use Buildroot for CraneBoard...
My problem is with configuration files : MLO, u-boot.bin and uImage. I installed the last RC buildroot and after I started to configure the
build
by selecting the desired setting because i dont found a defconfig
file
for
Kernel with buildroot ...
Starting with v2011.12 you do not need x-loader and you want the MLO and u-boot.img (NOT u-boot.bin) files created by U-Boot.
-- Tom
U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
-- Tom

On Fri, Feb 24, 2012 at 5:01 PM, Mohamed HAMZAOUI requinham@gmail.com wrote:
I tried following your instruction and i have been found the file MLO and u-boot.img in the build/uboot directory but when i use them with the generated rootfs th craneboard boot from the nand and not from my SD although it's configured to booting from SD card and i tested it whith a openembedded distribution.
It looks like the bootcmd for mmc needs to be updated to call 'mmc rescan' not 'mmc init' Please look at include/configs/am3517_crane.h and google up n hoto submit a patch to U-Boot once you've tested things. The am3517_evm.h file in that directory, along with omap3_beagle.h should help (look for 'mmc init' and 'mmc rescan'.

Hi M Tom, I checked the file am3517_crane.h and it well use "rescan" instead of "init" but the problem is that after compilation, when I check the bootcmd I find another one with init and not with rescan ! When i tried to change the variable with the setenv command, the system boot correctly from the SD card. Can you tell me how I can fix that and why the compilation or the MLO, u-boot.img files not have the correct bootcmd ? PS: I use a defconfig file for the kernel that I found on the Internet, it's that the source of problem ? Excuse me for my english and thank you.
On Sat, Feb 25, 2012 at 1:29 AM, Tom Rini trini@ti.com wrote:
On Fri, Feb 24, 2012 at 5:01 PM, Mohamed HAMZAOUI requinham@gmail.com wrote:
I tried following your instruction and i have been found the file MLO and u-boot.img in the build/uboot directory but when i use them with the generated rootfs th craneboard boot from the nand and not from my SD although it's configured to booting from SD card and i tested it whith a openembedded distribution.
It looks like the bootcmd for mmc needs to be updated to call 'mmc rescan' not 'mmc init' Please look at include/configs/am3517_crane.h and google up n hoto submit a patch to U-Boot once you've tested things. The am3517_evm.h file in that directory, along with omap3_beagle.h should help (look for 'mmc init' and 'mmc rescan'.
-- Tom

On Sat, Feb 25, 2012 at 6:00 AM, Mohamed HAMZAOUI requinham@gmail.com wrote:
Hi M Tom, I checked the file am3517_crane.h and it well use "rescan" instead of "init" but the problem is that after compilation, when I check the bootcmd I find another one with init and not with rescan ! When i tried to change the variable with the setenv command, the system boot correctly from the SD card. Can you tell me how I can fix that and why the compilation or the MLO, u-boot.img files not have the correct bootcmd ?
Ah, how about this, you've been using the board previously, yes? It probably had a saved environment from a previous version written to NAND and was using that. You might want to try doing 'nand erase 260000 20000' to erase the old environment, then reset the board to get the full, new, default environment.

After trying to correct this issue, i have a difficult problem :( the booting freeze in "Starting kernel..." and it can't decompressing the uImage and starting the kernel. for information i choosed the kernel 2.6.39.4 in buildroot configuration with am3517_crane_defconfig file (a defconfig for version 2.6.32 that i copied manually) that i found in craneboard-kernel gitorious.
Best regards Mohamed
On Sat, Feb 25, 2012 at 3:35 PM, Tom Rini trini@ti.com wrote:
On Sat, Feb 25, 2012 at 6:00 AM, Mohamed HAMZAOUI requinham@gmail.com wrote:
Hi M Tom, I checked the file am3517_crane.h and it well use "rescan" instead of
"init"
but the problem is that after compilation, when I check the bootcmd I
find
another one with init and not with rescan ! When i tried to change the variable with the setenv command, the system
boot
correctly from the SD card. Can you tell me how I can fix that and why the compilation or the MLO, u-boot.img files not have the correct bootcmd ?
Ah, how about this, you've been using the board previously, yes? It probably had a saved environment from a previous version written to NAND and was using that. You might want to try doing 'nand erase 260000 20000' to erase the old environment, then reset the board to get the full, new, default environment.
-- Tom

Hi,
Indeed, the problem is caused by selecting the ttyS0, just change it to ttyO0 (OMAP) in the buildroot configuration and in the console env vars of card.
Best regards Mohamed
On Sun, Feb 26, 2012 at 1:26 AM, Mohamed HAMZAOUI requinham@gmail.comwrote:
After trying to correct this issue, i have a difficult problem :( the booting freeze in "Starting kernel..." and it can't decompressing the uImage and starting the kernel. for information i choosed the kernel 2.6.39.4 in buildroot configuration with am3517_crane_defconfig file (a defconfig for version 2.6.32 that i copied manually) that i found in craneboard-kernel gitorious.
Best regards Mohamed
On Sat, Feb 25, 2012 at 3:35 PM, Tom Rini trini@ti.com wrote:
On Sat, Feb 25, 2012 at 6:00 AM, Mohamed HAMZAOUI requinham@gmail.com wrote:
Hi M Tom, I checked the file am3517_crane.h and it well use "rescan" instead of
"init"
but the problem is that after compilation, when I check the bootcmd I
find
another one with init and not with rescan ! When i tried to change the variable with the setenv command, the system
boot
correctly from the SD card. Can you tell me how I can fix that and why the compilation or the MLO, u-boot.img files not have the correct bootcmd ?
Ah, how about this, you've been using the board previously, yes? It probably had a saved environment from a previous version written to NAND and was using that. You might want to try doing 'nand erase 260000 20000' to erase the old environment, then reset the board to get the full, new, default environment.
-- Tom
participants (2)
-
Mohamed HAMZAOUI
-
Tom Rini