* [U-Boot] Craneboard with Uboot and xloader
@ 2012-02-24 9:25 Mohamed HAMZAOUI
2012-02-24 15:02 ` Tom Rini
0 siblings, 1 reply; 11+ messages in thread
From: Mohamed HAMZAOUI @ 2012-02-24 9:25 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] Craneboard with Uboot and xloader
2012-02-24 9:25 [U-Boot] Craneboard with Uboot and xloader Mohamed HAMZAOUI
@ 2012-02-24 15:02 ` Tom Rini
2012-02-24 20:08 ` Mohamed HAMZAOUI
0 siblings, 1 reply; 11+ messages in thread
From: Tom Rini @ 2012-02-24 15:02 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] Craneboard with Uboot and xloader
2012-02-24 15:02 ` Tom Rini
@ 2012-02-24 20:08 ` Mohamed HAMZAOUI
2012-02-24 20:20 ` Tom Rini
0 siblings, 1 reply; 11+ messages in thread
From: Mohamed HAMZAOUI @ 2012-02-24 20:08 UTC (permalink / raw)
To: 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
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] Craneboard with Uboot and xloader
2012-02-24 20:08 ` Mohamed HAMZAOUI
@ 2012-02-24 20:20 ` Tom Rini
2012-02-25 0:01 ` Mohamed HAMZAOUI
0 siblings, 1 reply; 11+ messages in thread
From: Tom Rini @ 2012-02-24 20:20 UTC (permalink / raw)
To: u-boot
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 at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
--
Tom
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] Craneboard with Uboot and xloader
2012-02-24 20:20 ` Tom Rini
@ 2012-02-25 0:01 ` Mohamed HAMZAOUI
2012-02-25 0:29 ` Tom Rini
0 siblings, 1 reply; 11+ messages in thread
From: Mohamed HAMZAOUI @ 2012-02-25 0:01 UTC (permalink / raw)
To: 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 at 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 at lists.denx.de
> > http://lists.denx.de/mailman/listinfo/u-boot
> >
>
>
>
> --
> Tom
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] Craneboard with Uboot and xloader
2012-02-25 0:01 ` Mohamed HAMZAOUI
@ 2012-02-25 0:29 ` Tom Rini
2012-02-25 13:00 ` Mohamed HAMZAOUI
0 siblings, 1 reply; 11+ messages in thread
From: Tom Rini @ 2012-02-25 0:29 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] Craneboard with Uboot and xloader
2012-02-25 0:29 ` Tom Rini
@ 2012-02-25 13:00 ` Mohamed HAMZAOUI
2012-02-25 14:35 ` Tom Rini
0 siblings, 1 reply; 11+ messages in thread
From: Mohamed HAMZAOUI @ 2012-02-25 13:00 UTC (permalink / raw)
To: u-boot
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
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] Craneboard with Uboot and xloader
2012-02-25 13:00 ` Mohamed HAMZAOUI
@ 2012-02-25 14:35 ` Tom Rini
2012-02-26 0:26 ` Mohamed HAMZAOUI
0 siblings, 1 reply; 11+ messages in thread
From: Tom Rini @ 2012-02-25 14:35 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] Craneboard with Uboot and xloader
2012-02-25 14:35 ` Tom Rini
@ 2012-02-26 0:26 ` Mohamed HAMZAOUI
2012-02-28 8:53 ` Mohamed HAMZAOUI
0 siblings, 1 reply; 11+ messages in thread
From: Mohamed HAMZAOUI @ 2012-02-26 0:26 UTC (permalink / raw)
To: u-boot
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
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] Craneboard with Uboot and xloader
2012-02-26 0:26 ` Mohamed HAMZAOUI
@ 2012-02-28 8:53 ` Mohamed HAMZAOUI
[not found] ` <CA+M6bXnNxFhzQpDOQhuSM7VKEh41dazMmUeEv=VTdVUuNoQhAw@mail.gmail.com>
0 siblings, 1 reply; 11+ messages in thread
From: Mohamed HAMZAOUI @ 2012-02-28 8:53 UTC (permalink / raw)
To: u-boot
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.com>wrote:
> 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
>>
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] [Buildroot] Craneboard with Uboot and xloader
[not found] ` <20120306103333.45e7857d@skate>
@ 2012-03-06 9:58 ` Mohamed HAMZAOUI
0 siblings, 0 replies; 11+ messages in thread
From: Mohamed HAMZAOUI @ 2012-03-06 9:58 UTC (permalink / raw)
To: u-boot
The first problem is the lack of informations about Craneboard in the
craneboard TI wiki for example the display over DVI informations...
the other problem is that impossible to use BUILDROOT to create a
distribution for Craneboard with any vanilla kernel version (2.6.37;
2.6.39.1,..). the only version that works is that provided by TI and it's
based on 2.6.32 vanilla kernel which is an older version for many tools. We
need a little description how to adapt Buildroot for compiling any recent
kernel version and other things for working on Craneboard ! we need a
kernel config file who work with recent version of vanilla kernel and not
generate a compile error or a kernel panic when booting !
I tested all the possibilities with Buildroot 2012.02 and nothing works.
Thank you for your help
On Tue, Mar 6, 2012 at 10:33 AM, Thomas Petazzoni <
thomas.petazzoni@free-electrons.com> wrote:
> Le Tue, 6 Mar 2012 10:19:57 +0100,
> Mohamed HAMZAOUI <requinham@gmail.com> a ?crit :
>
> > So far I have not been able to compile another kernel version other
> > than ( https://github.com/craneboard/craneboard-kernel.git) with
> > buildroot.
>
> What problems do you have?
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
>
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2012-03-06 9:58 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-24 9:25 [U-Boot] Craneboard with Uboot and xloader Mohamed HAMZAOUI
2012-02-24 15:02 ` Tom Rini
2012-02-24 20:08 ` Mohamed HAMZAOUI
2012-02-24 20:20 ` Tom Rini
2012-02-25 0:01 ` Mohamed HAMZAOUI
2012-02-25 0:29 ` Tom Rini
2012-02-25 13:00 ` Mohamed HAMZAOUI
2012-02-25 14:35 ` Tom Rini
2012-02-26 0:26 ` Mohamed HAMZAOUI
2012-02-28 8:53 ` Mohamed HAMZAOUI
[not found] ` <CA+M6bXnNxFhzQpDOQhuSM7VKEh41dazMmUeEv=VTdVUuNoQhAw@mail.gmail.com>
[not found] ` <CABMxt4ixVGvV_LvduJSNmWevxiEvFv0GdRHpomK325bKp4T20A@mail.gmail.com>
[not found] ` <4F550BC3.80601@ti.com>
[not found] ` <CABMxt4g9Xm6=QPhH1U2oDKVbXNjnPaxq_y71pUS4WF2LUG1RSw@mail.gmail.com>
[not found] ` <20120306103333.45e7857d@skate>
2012-03-06 9:58 ` [U-Boot] [Buildroot] " Mohamed HAMZAOUI
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox