mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Samuel Stirtzel <s.stirtzel@googlemail.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: Booting Pandaboard from SD card
Date: Mon, 17 Oct 2011 16:44:21 +0200	[thread overview]
Message-ID: <CAGiJk9fPbYfnJc+s-R+-h5TBE8Lr3VVhQc+Cr9KivnNhe3syJw@mail.gmail.com> (raw)
In-Reply-To: <20111013152547.GT13898@pengutronix.de>

2011/10/13 Sascha Hauer <s.hauer@pengutronix.de>:
> On Thu, Oct 13, 2011 at 10:49:30AM +0200, Samuel Stirtzel wrote:
>> Hi,
>> currently I try to get a Pandaboard to boot out of Barebox, so far I
>> got Barebox up and running.
>>
>>
>> For testing purpose I'd like to boot from a SD card, optimal would be
>> if I could set up the card like the description in the Omappedia
>> tutorial [1].
>> Is there a tutorial how to set up barebox to boot from SD cards?
>>
>>
>> What I already tried:
>>
>> In the configuration file from arch/arm/boards/panda/env is the
>> description for a network boot configuration,
>> I used this file to start out and wanted to boot from the barebox prompt.
>>
>> Barebox is build from my toolchain and i copy the MLO file, the
>> barebox.bin and the bareboxenv file to the boot partition of the card.
>> For convenience I currently use a precompiled MLO that has been made
>> for u-boot thus I just renamed the barebox.bin file to u-boot.bin.
>>
>> On startup the following messages were displayed:
>> -
>> Texas Instruments X-Loader 1.5.1 (Sep  6 2011 - 13:37:48)
>> Reading boot sector
>> Loading u-boot.bin from mmc
>>
>>
>> barebox 2011.10.0 (Oct 13 2011 - 09:45:17)
>>
>> Board: Texas Instrument's Panda
>> PandaBoard Revision: 003
>> ehci@ehci0: USB EHCI 1.00
>> Malloc space: 0x8d000000 -> 0x8f000000 (size 32 MB)
>> Stack space : 0x8cff8000 -> 0x8d000000 (size 32 kB)
>> running /env/bin/init...
>> not found
>> -
>> For me it looks like i forgot to copy a file or something, any advice?
>
> I just compiled the current master branch with panda_defconfig and this
> does not happen on my board. Instead I get a null pointer exception in
> the mmc driver. I just sent out a patch which fixes this.
Like Fabian hinted, i used the version with the 2011.10.0 tag and
applied the unaligned access patch.

>
> Have you changed your config?

Only the boot arguments have been changed, I used the tool bareboxenv,
something like:
./scripts/bareboxenv ./arch/arm/boards/panda/env/ ~/barebox-test/myenv-panda
and copied it as bareboxenv to the SD card.

This step was shown in a tutorial (can't find the link right now),
should I use the defaultenv instead?
If I would use the defaultenv, can I do it like:
scripts/bareboxenv ./defaultenv/ ~/barebox-test/myenv-panda
Or is there another way to do it?

>
>>
>>
>> Although booting the uImage with bootm looks ok it won't work, the
>> following message was displayed:
>> -
>> Verifying Checksum ... OK
>>    Image Name:   Angstrom/2.6.35.7/omap4430-panda
>>    Image Type:   ARM Linux Kernel Image (uncompressed)
>>    Data Size:    3688408 Bytes =  3.5 MB
>>    Load Address: 80008000
>>    Entry Point:  80008000
>> OK
>>
>> Starting kernel ...
>>
>> commandline: <NULL>
>> arch_number: 2791
>> Uncompressing Linux... done, booting the kernel.
>
> Does not work for me aswell, although with a current v3.1-rc9 kernel.
> Here's what I get with earlyprintk:
>
> Uncompressing Linux... done, booting the kernel.
> [    0.463745] GPMC revision 6.0
> [   59.033691] INFO: rcu_sched_state detected stall on CPU 0 (t=7680 jiffies)
>
> After this no more messages.
>
> Haven't investigated further so far, but maybe the kernel expects some GPMC
> registers to be set correctly.
I disabled GPMC in the kernel, with u-boot it worked* on my 2.6.35
Linux (plus some TI patches).

* Not totally since I got framebuffer problems, but that is another
problem and not the fault of the bootloader.

>
> 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 |
>



-- 
Regards
Samuel

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

      reply	other threads:[~2011-10-17 14:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-13  8:49 Samuel Stirtzel
2011-10-13  9:07 ` Samuel Stirtzel
2011-10-13  9:14 ` Fabian van der Werf
2011-10-13  9:29   ` Samuel Stirtzel
2011-10-13  9:45     ` Samuel Stirtzel
2011-10-14  7:17       ` Fabian van der Werf
2011-10-13  9:36   ` Uwe Kleine-König
2011-10-13 15:25 ` Sascha Hauer
2011-10-17 14:44   ` Samuel Stirtzel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGiJk9fPbYfnJc+s-R+-h5TBE8Lr3VVhQc+Cr9KivnNhe3syJw@mail.gmail.com \
    --to=s.stirtzel@googlemail.com \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox