mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* MLO doesn't work, rest is ok
@ 2012-09-04 16:31 Norbert Roos
  2012-09-05  6:12 ` Jan Weitzel
  0 siblings, 1 reply; 14+ messages in thread
From: Norbert Roos @ 2012-09-04 16:31 UTC (permalink / raw)
  To: barebox

Hello,

I just wanted to try the freshly generated MLO and barebox.bin on my 
Phytec PCM049 board (OMAP4 based). Copied both files to the FAT 
partition on the SD card.

Unfortunately it doesn't boot, after trying to boot from SD card the ROM 
boot loader oviously skips to booting from UART.

When i replace the MLO with a different one (downloaded a compiled one), 
my generated barebox.bin gets loaded and everything's fine.

Is there a simple way for debugging it? It seems like the MLO does not 
get executed, as the ROM boot skips to UART boot...

bye
Norbert

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: MLO doesn't work, rest is ok
  2012-09-04 16:31 MLO doesn't work, rest is ok Norbert Roos
@ 2012-09-05  6:12 ` Jan Weitzel
  2012-09-05  9:25   ` Norbert Roos
  0 siblings, 1 reply; 14+ messages in thread
From: Jan Weitzel @ 2012-09-05  6:12 UTC (permalink / raw)
  To: Norbert Roos; +Cc: barebox

Am Dienstag, den 04.09.2012, 18:31 +0200 schrieb Norbert Roos:
> Hello,
> 
> I just wanted to try the freshly generated MLO and barebox.bin on my 
> Phytec PCM049 board (OMAP4 based). Copied both files to the FAT 
> partition on the SD card.
> 
> Unfortunately it doesn't boot, after trying to boot from SD card the ROM 
> boot loader oviously skips to booting from UART.
> 
> When i replace the MLO with a different one (downloaded a compiled one), 
> my generated barebox.bin gets loaded and everything's fine.
> 
> Is there a simple way for debugging it? It seems like the MLO does not 
> get executed, as the ROM boot skips to UART boot...
> 
> bye
> Norbert

Hi,
which barebox version? Is the board with OMAP4460?
Jan

> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox



_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: MLO doesn't work, rest is ok
  2012-09-05  6:12 ` Jan Weitzel
@ 2012-09-05  9:25   ` Norbert Roos
  2012-09-05  9:41     ` Jan Weitzel
  0 siblings, 1 reply; 14+ messages in thread
From: Norbert Roos @ 2012-09-05  9:25 UTC (permalink / raw)
  To: barebox

On 09/05/2012 08:12 AM, Jan Weitzel wrote:

>> I just wanted to try the freshly generated MLO and barebox.bin on my
>> Phytec PCM049 board (OMAP4 based). Copied both files to the FAT
>> partition on the SD card.
>>
>> Unfortunately it doesn't boot, after trying to boot from SD card the ROM
>> boot loader oviously skips to booting from UART.
>
> Hi,
> which barebox version? Is the board with OMAP4460?

barebox is 2012.08.0, OMAP4430.

bye
Norbert


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: MLO doesn't work, rest is ok
  2012-09-05  9:25   ` Norbert Roos
@ 2012-09-05  9:41     ` Jan Weitzel
  2012-09-05 10:00       ` Norbert Roos
  0 siblings, 1 reply; 14+ messages in thread
From: Jan Weitzel @ 2012-09-05  9:41 UTC (permalink / raw)
  To: Norbert Roos; +Cc: barebox

Am Mittwoch, den 05.09.2012, 11:25 +0200 schrieb Norbert Roos:
> On 09/05/2012 08:12 AM, Jan Weitzel wrote:
> 
> >> I just wanted to try the freshly generated MLO and barebox.bin on my
> >> Phytec PCM049 board (OMAP4 based). Copied both files to the FAT
> >> partition on the SD card.
> >>
> >> Unfortunately it doesn't boot, after trying to boot from SD card the ROM
> >> boot loader oviously skips to booting from UART.
> >
> > Hi,
> > which barebox version? Is the board with OMAP4460?
> 
> barebox is 2012.08.0, OMAP4430.

I just test it here it works. Did you use pcm049_xload_defconfig? SD
card layout ok? Special nand mounted? Maybe you ask at support@phytec.de
Jan

> bye
> Norbert
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox



_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: MLO doesn't work, rest is ok
  2012-09-05  9:41     ` Jan Weitzel
@ 2012-09-05 10:00       ` Norbert Roos
  2012-09-05 10:53         ` Sascha Hauer
  0 siblings, 1 reply; 14+ messages in thread
From: Norbert Roos @ 2012-09-05 10:00 UTC (permalink / raw)
  To: J.Weitzel, barebox

On 09/05/2012 11:41 AM, Jan Weitzel wrote:

> I just test it here it works.

Did another test - still doesn't work:

tar xfj barebox-2012.08.0.tar.bz2
cd barebox-2012.08.0
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabi-
make pcm049_xload_defconfig
make
cp MLO barebox.bin <SD card>

> Did you use pcm049_xload_defconfig?

Yes

> SD card layout ok?

As described in various places. A downloaded MLO does work.

> Special nand mounted?

What is this? NAND is enabled in the config...

Thank you so far
Norbert

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: MLO doesn't work, rest is ok
  2012-09-05 10:00       ` Norbert Roos
@ 2012-09-05 10:53         ` Sascha Hauer
  2012-09-05 11:01           ` Norbert Roos
  0 siblings, 1 reply; 14+ messages in thread
From: Sascha Hauer @ 2012-09-05 10:53 UTC (permalink / raw)
  To: Norbert Roos; +Cc: barebox

On Wed, Sep 05, 2012 at 12:00:56PM +0200, Norbert Roos wrote:
> On 09/05/2012 11:41 AM, Jan Weitzel wrote:
> 
> >I just test it here it works.
> 
> Did another test - still doesn't work:
> 
> tar xfj barebox-2012.08.0.tar.bz2
> cd barebox-2012.08.0
> export ARCH=arm
> export CROSS_COMPILE=arm-linux-gnueabi-
> make pcm049_xload_defconfig
> make
> cp MLO barebox.bin <SD card>
> 
> >Did you use pcm049_xload_defconfig?
> 
> Yes
> 
> >SD card layout ok?
> 
> As described in various places. A downloaded MLO does work.
> 
> >Special nand mounted?
> 
> What is this? NAND is enabled in the config...

I think it even doesn't have to be enabled in the config. You won't be
able to boot the second stage barebox from Nand then of course, but
still you should see some output from the first stage.

What gcc version do you have?

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: MLO doesn't work, rest is ok
  2012-09-05 10:53         ` Sascha Hauer
@ 2012-09-05 11:01           ` Norbert Roos
  2012-09-05 11:15             ` Sascha Hauer
  2012-09-05 11:18             ` Anand Gadiyar
  0 siblings, 2 replies; 14+ messages in thread
From: Norbert Roos @ 2012-09-05 11:01 UTC (permalink / raw)
  To: barebox

On 09/05/2012 12:53 PM, Sascha Hauer wrote:

> What gcc version do you have?

gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

Is there something which i could quickly check in the MLO, a checksum 
for example? Only if you know something, otherwise i can look it up in 
the OMAP manual, what he is doing to accept the MLO.

As i said, it seems he doesn't like the MLO, because he's skipping to 
the next boot source..

Norbert

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: MLO doesn't work, rest is ok
  2012-09-05 11:01           ` Norbert Roos
@ 2012-09-05 11:15             ` Sascha Hauer
  2012-09-05 11:46               ` Jan Weitzel
                                 ` (2 more replies)
  2012-09-05 11:18             ` Anand Gadiyar
  1 sibling, 3 replies; 14+ messages in thread
From: Sascha Hauer @ 2012-09-05 11:15 UTC (permalink / raw)
  To: Norbert Roos; +Cc: barebox

On Wed, Sep 05, 2012 at 01:01:54PM +0200, Norbert Roos wrote:
> On 09/05/2012 12:53 PM, Sascha Hauer wrote:
> 
> >What gcc version do you have?
> 
> gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

Maybe you could try an older toolchain. There are some dark memories in
my mind, but it could also be that my mind is fooling me...

> 
> Is there something which i could quickly check in the MLO, a
> checksum for example? Only if you know something, otherwise i can
> look it up in the OMAP manual, what he is doing to accept the MLO.
> 
> As i said, it seems he doesn't like the MLO, because he's skipping
> to the next boot source..

The MLO is generated from barebox.bin with the omap_signGP tool. It
seems the header is 520byte in size. You could compare these between
both images. I don't know though if this is enough for the OMAP ROM code
to detect a valid image.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: MLO doesn't work, rest is ok
  2012-09-05 11:01           ` Norbert Roos
  2012-09-05 11:15             ` Sascha Hauer
@ 2012-09-05 11:18             ` Anand Gadiyar
  2012-09-05 12:32               ` Norbert Roos
  1 sibling, 1 reply; 14+ messages in thread
From: Anand Gadiyar @ 2012-09-05 11:18 UTC (permalink / raw)
  To: Norbert Roos; +Cc: barebox


[-- Attachment #1.1: Type: text/plain, Size: 575 bytes --]

On Wed, Sep 5, 2012 at 4:31 PM, Norbert Roos <nroos@webware-experts.de>wrote:

> On 09/05/2012 12:53 PM, Sascha Hauer wrote:
>
>  What gcc version do you have?
>>
>
> gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
>
> Is there something which i could quickly check in the MLO, a checksum for
> example? Only if you know something, otherwise i can look it up in the OMAP
> manual, what he is doing to accept the MLO.
>
> As i said, it seems he doesn't like the MLO, because he's skipping to the
> next boot source..
>



What is the size of the generated MLO file?

- Anand

[-- Attachment #1.2: Type: text/html, Size: 1104 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: MLO doesn't work, rest is ok
  2012-09-05 11:15             ` Sascha Hauer
@ 2012-09-05 11:46               ` Jan Weitzel
  2012-09-05 12:34                 ` Norbert Roos
  2012-09-05 12:04               ` Jean-Christophe PLAGNIOL-VILLARD
  2012-09-05 12:30               ` Norbert Roos
  2 siblings, 1 reply; 14+ messages in thread
From: Jan Weitzel @ 2012-09-05 11:46 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

Am Mittwoch, den 05.09.2012, 13:15 +0200 schrieb Sascha Hauer:
> On Wed, Sep 05, 2012 at 01:01:54PM +0200, Norbert Roos wrote:
> > On 09/05/2012 12:53 PM, Sascha Hauer wrote:
> > 
> > >What gcc version do you have?
> > 
> > gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
> 
> Maybe you could try an older toolchain. There are some dark memories in
> my mind, but it could also be that my mind is fooling me...
I used gcc-linaro-4.5 with gcc-4.6.2 it stops working here also.
Jan

> > 
> > Is there something which i could quickly check in the MLO, a
> > checksum for example? Only if you know something, otherwise i can
> > look it up in the OMAP manual, what he is doing to accept the MLO.
> > 
> > As i said, it seems he doesn't like the MLO, because he's skipping
> > to the next boot source..
> 
> The MLO is generated from barebox.bin with the omap_signGP tool. It
> seems the header is 520byte in size. You could compare these between
> both images. I don't know though if this is enough for the OMAP ROM code
> to detect a valid image.
> 
> Sascha
> 



_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: MLO doesn't work, rest is ok
  2012-09-05 11:15             ` Sascha Hauer
  2012-09-05 11:46               ` Jan Weitzel
@ 2012-09-05 12:04               ` Jean-Christophe PLAGNIOL-VILLARD
  2012-09-05 12:30               ` Norbert Roos
  2 siblings, 0 replies; 14+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-09-05 12:04 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

On 13:15 Wed 05 Sep     , Sascha Hauer wrote:
> On Wed, Sep 05, 2012 at 01:01:54PM +0200, Norbert Roos wrote:
> > On 09/05/2012 12:53 PM, Sascha Hauer wrote:
> > 
> > >What gcc version do you have?
> > 
> > gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
> 
> Maybe you could try an older toolchain. There are some dark memories in
> my mind, but it could also be that my mind is fooling me...
> 
> > 
> > Is there something which i could quickly check in the MLO, a
> > checksum for example? Only if you know something, otherwise i can
> > look it up in the OMAP manual, what he is doing to accept the MLO.
> > 
> > As i said, it seems he doesn't like the MLO, because he's skipping
> > to the next boot source..
> 
> The MLO is generated from barebox.bin with the omap_signGP tool. It
> seems the header is 520byte in size. You could compare these between
> both images. I don't know though if this is enough for the OMAP ROM code
> to detect a valid image.
maybe too big we need to set the BAREBOX_MAX_IMAGE_SIZE
IIRC it's 54KiB

Best Regards,
J.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: MLO doesn't work, rest is ok
  2012-09-05 11:15             ` Sascha Hauer
  2012-09-05 11:46               ` Jan Weitzel
  2012-09-05 12:04               ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-09-05 12:30               ` Norbert Roos
  2 siblings, 0 replies; 14+ messages in thread
From: Norbert Roos @ 2012-09-05 12:30 UTC (permalink / raw)
  To: barebox

On 09/05/2012 01:15 PM, Sascha Hauer wrote:

> Maybe you could try an older toolchain. There are some dark memories in
> my mind, but it could also be that my mind is fooling me...

Ok, i will try this..

> The MLO is generated from barebox.bin with the omap_signGP tool. It
> seems the header is 520byte in size. You could compare these between
> both images.

Both configuration headers are the same.

> I don't know though if this is enough for the OMAP ROM code
> to detect a valid image.

Meanwhile, i took a look at the MLO. The configuration header is ok, the 
image size in the GP header is correct, and the loading address is the 
same like in the working MLO. The first instruction in the image differs 
from the working one (the others too, of course).

So the MLO should at least get loaded and started.. strange.

Norbert


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: MLO doesn't work, rest is ok
  2012-09-05 11:18             ` Anand Gadiyar
@ 2012-09-05 12:32               ` Norbert Roos
  0 siblings, 0 replies; 14+ messages in thread
From: Norbert Roos @ 2012-09-05 12:32 UTC (permalink / raw)
  To: barebox

On 09/05/2012 01:18 PM, Anand Gadiyar wrote:

> What is the size of the generated MLO file?

38312, so it's not a size problem.

Norbert

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: MLO doesn't work, rest is ok
  2012-09-05 11:46               ` Jan Weitzel
@ 2012-09-05 12:34                 ` Norbert Roos
  0 siblings, 0 replies; 14+ messages in thread
From: Norbert Roos @ 2012-09-05 12:34 UTC (permalink / raw)
  To: barebox

On 09/05/2012 01:46 PM, Jan Weitzel wrote:

> I used gcc-linaro-4.5 with gcc-4.6.2 it stops working here also.

I will try it with an older version then.

Thank you all for your help!

Norbert


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-09-05 12:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-04 16:31 MLO doesn't work, rest is ok Norbert Roos
2012-09-05  6:12 ` Jan Weitzel
2012-09-05  9:25   ` Norbert Roos
2012-09-05  9:41     ` Jan Weitzel
2012-09-05 10:00       ` Norbert Roos
2012-09-05 10:53         ` Sascha Hauer
2012-09-05 11:01           ` Norbert Roos
2012-09-05 11:15             ` Sascha Hauer
2012-09-05 11:46               ` Jan Weitzel
2012-09-05 12:34                 ` Norbert Roos
2012-09-05 12:04               ` Jean-Christophe PLAGNIOL-VILLARD
2012-09-05 12:30               ` Norbert Roos
2012-09-05 11:18             ` Anand Gadiyar
2012-09-05 12:32               ` Norbert Roos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox