Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] configs: add RaspberryPi defconfig
Date: Fri, 11 Jan 2013 17:05:21 +0100	[thread overview]
Message-ID: <20130111170521.44d1bdb0@skate> (raw)
In-Reply-To: <1357910250-31110-1-git-send-email-maxime.hadjinlian@gmail.com>

Dear Maxime Hadjinlian,

On Fri, 11 Jan 2013 14:17:30 +0100, Maxime Hadjinlian wrote:
> --- /dev/null
> +++ b/board/raspberrypi/README.txt
> @@ -0,0 +1,35 @@
> +## RaspberryPi
> +
> +When you use the rpi_defconfig to build a rootfs for your RaspberryPi, a few
> +items are created in output/images :

It does not build only a rootfs, so:

When you use the rpi_defconfig to build an embedded Linux system for
your Rasberry Pi, the following elements will be generated in
output/images:

> +	output/images/
> +	??? rootfs.tar
> +	??? rpi-firmware
> +	??? ??? bootcode.bin
> +	??? ??? config.txt
> +	??? ??? fixup_cd.dat
> +	??? ??? fixup.dat
> +	??? ??? start_cd.elf
> +	??? ??? start.elf
> +	??? zImage
> +
> +In order to have a working SDCard, you should have at least two partitions :
> +
> +    - First partition :
> +	This will be the boot partition (It must be formated in fat32 and have
> +        bootable flags).
> +	It should contains the *content* of output/images/rpi-firmware/.
> +        It will also contain the kernel binary.
> +        For the kernel to be found, you have two choices :
> +	    1 - Rename zImage to kernel.img since it's the default kernel file
> +                name here.
> +            2 - Add 'kernel=zImage' to config.txt (without the quotes).
> +
> +    - Second partition :
> +        This will contains the rootfs and should be formated in ext4.
> +	If you chose another filesystem, you should modify the cmdline in
> +        config.txt.
> +        Then simply extract rootfs.tar to this partition.

The indentation is really strange here. What about something like:

==
In order to boot your Rasberry Pi, you'll need to prepare your SD card
with at least two partitions:

 * The first partition is the boot partition.

   It should be FAT32-formatted and have the bootable flags.

   It should contain the contents of the output/images/rpi-firmware/
   directory: it contains bootloaders and the kernel image for the
   Rasberry Pi.

 * The second partition is the root filesystem partition.

   It should be ext4 formatted (if you choose another filesystem,
   remember to adjust the kernel command line in the config.txt file).

   Simply extract (as root!) the contents of the rootfs.tar archive
   into this partition.
==

I removed the discussion about kernel=zImage, because I think it should
be the default in our rpi-firmware package.

Thanks,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  parent reply	other threads:[~2013-01-11 16:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-11 13:17 [Buildroot] [PATCH v2] configs: add RaspberryPi defconfig Maxime Hadjinlian
2013-01-11 13:36 ` Yann E. MORIN
2013-01-11 13:38   ` Maxime Hadjinlian
2013-01-11 15:19 ` Floris Bos
2013-01-11 15:34   ` Maxime Hadjinlian
2013-01-11 16:01   ` Thomas Petazzoni
2013-01-11 16:05 ` Thomas Petazzoni [this message]
2013-01-11 17:08 ` Floris Bos
2013-01-11 20:15   ` Arnout Vandecappelle
2013-01-11 21:16     ` Floris Bos
2013-01-11 23:22       ` Arnout Vandecappelle

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=20130111170521.44d1bdb0@skate \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /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