MLO doesn't work, rest is ok
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Am Dienstag, den 04.09.2012, 18:31 +0200 schrieb Norbert Roos:
Quoted 9 lines
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.
Quoted 8 lines
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
Quoted 4 lines
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 9 lines · Jan Weitzel
Quoted 6 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Am Mittwoch, den 05.09.2012, 11:25 +0200 schrieb Norbert Roos:
Quoted 6 lines · Jan Weitzel
Quoted 5 lines
Quoted 5 lines
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.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
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 [email protected] Jan
Quoted 8 lines
bye
Norbert_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 1 line · Jan Weitzel
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>
Quoted 1 line
Did you use
pcm049_xload_defconfig?
Yes
Quoted 1 line
SD card layout ok?
As described in various places. A downloaded MLO does work.
Quoted 1 line
Special nand mounted?
What is this? NAND is enabled in the config...
Thank you so far
Norbert
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 18 lines · Norbert Roos
Quoted 1 line · Jan Weitzel
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-
makepcm049_xload_defconfig
make
cp MLO barebox.bin <SD card>Quoted 1 line
Did you use
pcm049_xload_defconfig?Yes
Quoted 7 lines
Quoted 1 line
SD card layout ok?
As described in various places. A downloaded MLO does work.
Quoted 1 line
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
Signature · 9 lines
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 [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 1 line · Sascha Hauer
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 5 lines · Norbert Roos
Quoted 1 line · Sascha Hauer
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...
Quoted 7 lines
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
Signature · 9 lines
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 [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Am Mittwoch, den 05.09.2012, 13:15 +0200 schrieb Sascha Hauer:
Quoted 9 lines · Norbert Roos
Quoted 5 lines · Sascha Hauer
Quoted 2 lines
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
Quoted 8 lines
Quoted 7 lines
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..
Quoted 7 lines
The MLO is generated from barebox.bin with the
omap_signGPtool. 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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 1 line · Jan Weitzel
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 15 lines · Sascha Hauer
Quoted 5 lines · Norbert Roos
Quoted 1 line · Sascha Hauer
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...
Quoted 5 lines
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.
Quoted 7 lines
Quoted 2 lines
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_signGPtool. 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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 2 lines · Sascha Hauer
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..
Quoted 3 lines
The MLO is generated from barebox.bin with the
omap_signGPtool. It seems the header is 520byte in size. You could compare these between both images.
Both configuration headers are the same.
Quoted 2 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 5 lines · Norbert Roos
On 09/05/2012 12:53 PM, Sascha Hauer wrote:
What gcc version do you have?
Quoted 1 line
Quoted 9 lines
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
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 1 line · Anand Gadiyar
What is the size of the generated MLO file?
38312, so it's not a size problem.
Norbert
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox