mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* mx53 loco boot procedure
@ 2012-02-21 18:38 George Stefan
  2012-02-21 20:02 ` Eric Bénard
  2012-02-21 21:01 ` Sascha Hauer
  0 siblings, 2 replies; 7+ messages in thread
From: George Stefan @ 2012-02-21 18:38 UTC (permalink / raw)
  To: barebox


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

Hello guys,
After  dd if=barebox.bin of=/dev/sdb bs=512 and dd if=arch/arm/boot/uImage
of=/dev/sdb bs=512 seek=768 i am getting

Board: Freescale i.MX53 LOCO registered netconsole as cs1 eth@eth0: got MAC
address from EEPROM: 00:04:9F:01:B4:5B mci@mci0: No partition table found
Cannot reset the SD/MMC interface Malloc space: 0x7df00000 -> 0x7fefffff
(size 32 MB) Stack space : 0x7def8000 -> 0x7df00000 (size 32 kB) envfs:
wrong magic on /dev/env0 no valid environment found on /dev/env0. Using
default environment running /env/bin/init... Hit any key to stop autoboot:
1 phy0: Link is up - 100/Full T DHCP client bound to address
128.224.168.167 TFTP from server 128.224.168.11 ('zImage-loco' -> '/image')

Wasn't the board suppose to boot from sd card by default?

Also, i have another question. I want to replace

/* call start_barebox with its absolute address */
        r = (unsigned int)&start_barebox;
        __asm__ __volatile__("mov pc, %0" : : "r"(r));

&start_barebox with the actual address of the uImage practically to skip
all the barebox part and
boot only with the minimal CPU and memory setup. What do you think?
Regards,
George.

[-- Attachment #1.2: Type: text/html, Size: 2698 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] 7+ messages in thread

* Re: mx53 loco boot procedure
  2012-02-21 18:38 mx53 loco boot procedure George Stefan
@ 2012-02-21 20:02 ` Eric Bénard
  2012-02-21 21:01 ` Sascha Hauer
  1 sibling, 0 replies; 7+ messages in thread
From: Eric Bénard @ 2012-02-21 20:02 UTC (permalink / raw)
  To: George Stefan; +Cc: barebox

Hi George,

Le Tue, 21 Feb 2012 20:38:24 +0200,
George Stefan <stefan.george87@gmail.com> a écrit :

> Hello guys,
> After  dd if=barebox.bin of=/dev/sdb bs=512 and dd if=arch/arm/boot/uImage
> of=/dev/sdb bs=512 seek=768 i am getting
> 
> Board: Freescale i.MX53 LOCO registered netconsole as cs1 eth@eth0: got MAC
> address from EEPROM: 00:04:9F:01:B4:5B mci@mci0: No partition table found
> Cannot reset the SD/MMC interface Malloc space: 0x7df00000 -> 0x7fefffff
> (size 32 MB) Stack space : 0x7def8000 -> 0x7df00000 (size 32 kB) envfs:
> wrong magic on /dev/env0 no valid environment found on /dev/env0. Using
> default environment running /env/bin/init... Hit any key to stop autoboot:
> 1 phy0: Link is up - 100/Full T DHCP client bound to address
> 128.224.168.167 TFTP from server 128.224.168.11 ('zImage-loco' -> '/image')
> 
> Wasn't the board suppose to boot from sd card by default?
> 
it will if you configure it correctly (ie: check env/config and put
the right settings inside to tell it to get the kernel from disk
instead of tftp).

Eric
-- 
http://eukrea.com/en/news/104-2012

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

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

* Re: mx53 loco boot procedure
  2012-02-21 18:38 mx53 loco boot procedure George Stefan
  2012-02-21 20:02 ` Eric Bénard
@ 2012-02-21 21:01 ` Sascha Hauer
  2012-02-22  9:22   ` George Stefan
  1 sibling, 1 reply; 7+ messages in thread
From: Sascha Hauer @ 2012-02-21 21:01 UTC (permalink / raw)
  To: George Stefan; +Cc: barebox

On Tue, Feb 21, 2012 at 08:38:24PM +0200, George Stefan wrote:
> Hello guys,
> After  dd if=barebox.bin of=/dev/sdb bs=512 and dd if=arch/arm/boot/uImage
> of=/dev/sdb bs=512 seek=768 i am getting
> 
> Board: Freescale i.MX53 LOCO registered netconsole as cs1 eth@eth0: got MAC
> address from EEPROM: 00:04:9F:01:B4:5B mci@mci0: No partition table found
> Cannot reset the SD/MMC interface Malloc space: 0x7df00000 -> 0x7fefffff
> (size 32 MB) Stack space : 0x7def8000 -> 0x7df00000 (size 32 kB) envfs:
> wrong magic on /dev/env0 no valid environment found on /dev/env0. Using
> default environment running /env/bin/init... Hit any key to stop autoboot:
> 1 phy0: Link is up - 100/Full T DHCP client bound to address
> 128.224.168.167 TFTP from server 128.224.168.11 ('zImage-loco' -> '/image')
> 
> Wasn't the board suppose to boot from sd card by default?
> 
> Also, i have another question. I want to replace
> 
> /* call start_barebox with its absolute address */
>         r = (unsigned int)&start_barebox;
>         __asm__ __volatile__("mov pc, %0" : : "r"(r));
> 
> &start_barebox with the actual address of the uImage practically to skip
> all the barebox part and
> boot only with the minimal CPU and memory setup. What do you think?

You can't jump directly into uImages. It would work with a zImage, but
how do you get your zImage from the sd card without the help of the
bootloader? Well, you could link barebox and a zImage together, but then
you'll realize that the internal ROM code is quite slow when reading
data from SD cards (unless there are ways to tweak this, I don't know)

What are your goals trying this?

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] 7+ messages in thread

* Re: mx53 loco boot procedure
  2012-02-21 21:01 ` Sascha Hauer
@ 2012-02-22  9:22   ` George Stefan
  2012-02-23 20:13     ` Sascha Hauer
  0 siblings, 1 reply; 7+ messages in thread
From: George Stefan @ 2012-02-22  9:22 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox


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

Hello,
How could i link barebox and zImage together?
Could you please give an example?
Regards

În data de 21 februarie 2012, 23:01, Sascha Hauer
<s.hauer@pengutronix.de>a scris:

> On Tue, Feb 21, 2012 at 08:38:24PM +0200, George Stefan wrote:
> > Hello guys,
> > After  dd if=barebox.bin of=/dev/sdb bs=512 and dd
> if=arch/arm/boot/uImage
> > of=/dev/sdb bs=512 seek=768 i am getting
> >
> > Board: Freescale i.MX53 LOCO registered netconsole as cs1 eth@eth0: got
> MAC
> > address from EEPROM: 00:04:9F:01:B4:5B mci@mci0: No partition table
> found
> > Cannot reset the SD/MMC interface Malloc space: 0x7df00000 -> 0x7fefffff
> > (size 32 MB) Stack space : 0x7def8000 -> 0x7df00000 (size 32 kB) envfs:
> > wrong magic on /dev/env0 no valid environment found on /dev/env0. Using
> > default environment running /env/bin/init... Hit any key to stop
> autoboot:
> > 1 phy0: Link is up - 100/Full T DHCP client bound to address
> > 128.224.168.167 TFTP from server 128.224.168.11 ('zImage-loco' ->
> '/image')
> >
> > Wasn't the board suppose to boot from sd card by default?
> >
> > Also, i have another question. I want to replace
> >
> > /* call start_barebox with its absolute address */
> >         r = (unsigned int)&start_barebox;
> >         __asm__ __volatile__("mov pc, %0" : : "r"(r));
> >
> > &start_barebox with the actual address of the uImage practically to skip
> > all the barebox part and
> > boot only with the minimal CPU and memory setup. What do you think?
>
> You can't jump directly into uImages. It would work with a zImage, but
> how do you get your zImage from the sd card without the help of the
> bootloader? Well, you could link barebox and a zImage together, but then
> you'll realize that the internal ROM code is quite slow when reading
> data from SD cards (unless there are ways to tweak this, I don't know)
>
> What are your goals trying this?
>
> 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 |
>

[-- Attachment #1.2: Type: text/html, Size: 2999 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] 7+ messages in thread

* Re: mx53 loco boot procedure
  2012-02-22  9:22   ` George Stefan
@ 2012-02-23 20:13     ` Sascha Hauer
  2012-02-23 20:40       ` George Stefan
  0 siblings, 1 reply; 7+ messages in thread
From: Sascha Hauer @ 2012-02-23 20:13 UTC (permalink / raw)
  To: George Stefan; +Cc: barebox

Hi,

Please do not top post.

On Wed, Feb 22, 2012 at 11:22:37AM +0200, George Stefan wrote:
> Hello,
> How could i link barebox and zImage together?
> Could you please give an example?

I'm afraid there is no easy example for this.

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] 7+ messages in thread

* Re: mx53 loco boot procedure
  2012-02-23 20:13     ` Sascha Hauer
@ 2012-02-23 20:40       ` George Stefan
  2012-02-23 20:59         ` Eric Bénard
  0 siblings, 1 reply; 7+ messages in thread
From: George Stefan @ 2012-02-23 20:40 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox


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

În data de 23 februarie 2012, 22:13, Sascha Hauer
<s.hauer@pengutronix.de>a scris:

> Hi,
>
> Please do not top post.
>
> On Wed, Feb 22, 2012 at 11:22:37AM +0200, George Stefan wrote:
> > Hello,
> > How could i link barebox and zImage together?
> > Could you please give an example?
>
> I'm afraid there is no easy example for this.
>
> 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 |
>

Hi,
What i have done so far is take vmlinux.o and vmlinux.lds  and try to
"integrate"
them into barebox.lds.s.
Do you thing that this is the correct aproach?

George

[-- Attachment #1.2: Type: text/html, Size: 1466 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] 7+ messages in thread

* Re: mx53 loco boot procedure
  2012-02-23 20:40       ` George Stefan
@ 2012-02-23 20:59         ` Eric Bénard
  0 siblings, 0 replies; 7+ messages in thread
From: Eric Bénard @ 2012-02-23 20:59 UTC (permalink / raw)
  To: George Stefan; +Cc: barebox

Hi,

Le Thu, 23 Feb 2012 22:40:41 +0200,
George Stefan <stefan.george87@gmail.com> a écrit :
> What i have done so far is take vmlinux.o and vmlinux.lds  and try to
> "integrate"
> them into barebox.lds.s.
> Do you thing that this is the correct aproach?
> 
Why do you want to keep barebox in that case ? You may try to hack the
kernel so that is can boot standalone, add a DCD header to the
resulting kernel binary with the correct parameters to have the romcode
load your kernel, burn the resulting binary on your SD and forget
barebox as that's what you are trying to do.

Eric
-- 
http://eukrea.com/en/news/104-2012

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

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

end of thread, other threads:[~2012-02-23 20:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-21 18:38 mx53 loco boot procedure George Stefan
2012-02-21 20:02 ` Eric Bénard
2012-02-21 21:01 ` Sascha Hauer
2012-02-22  9:22   ` George Stefan
2012-02-23 20:13     ` Sascha Hauer
2012-02-23 20:40       ` George Stefan
2012-02-23 20:59         ` Eric Bénard

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