Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/5] board/raspberrypi: provide partition description for the new genimages
Date: Sat, 4 Jan 2014 18:05:30 +0100	[thread overview]
Message-ID: <20140104170530.GB3417@free.fr> (raw)
In-Reply-To: <CAGduivyP4sdDKUpSG4ZJcfV5b5S7gipteUd=gFsWZ=_KfOMk7A@mail.gmail.com>

Maxime, All,

On 2014-01-04 17:40 +0100, Maxime Hadjinlian spake thusly:
> On Fri, Jan 3, 2014 at 6:19 PM, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
> > From: "Yann E. MORIN" <yann.morin.1998@free.fr>
> >
> > Now we can generate a complete target storage image with the genimages
> > infra, add a partition table layout description for the Raspberry Pi
> > as an example for how to use genimages.
> >
> > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> > Cc: Ryan Barnett <rjbarnet@rockwellcollins.com>
> > Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> > ---
> >  board/raspberrypi/partitions  | 35 +++++++++++++++++++++++++++++++++++
> >  configs/raspberrypi_defconfig |  3 +++
> >  2 files changed, 38 insertions(+)
> >  create mode 100644 board/raspberrypi/partitions
> >
> > diff --git a/board/raspberrypi/partitions b/board/raspberrypi/partitions
> > new file mode 100644
> > index 0000000..dea9aff
> > --- /dev/null
> > +++ b/board/raspberrypi/partitions
> > @@ -0,0 +1,35 @@
> > +[global]
> > +extract=tar
> > +devices=mmcblk0
> > +
> > +[mmcblk0]
> > +type=boot
> > +boot_type=mbr
> > +partitions=boot,root
> > +partalign=$((1048576))
> > +
> > +[root]
> > +type=fs
> > +size=$((32*1048576))
> > +mbr_type=$((0x83))
> > +fs_type=ext
> > +fs_vfstype=ext4
> > +fs_mntops=discard
> > +fs_root=/
> > +fs_label=ROOT
> > +ext_gen=4
> > +ext_rev=1
> > +
> > +[boot]
> > +type=fs
> > +size=$((9*1048576))
> > +mbr_type=$((0xc))
> > +fs_type=vfat
> > +fs_files_0=rpi-firmware/bootcode.bin
> > +fs_files_1=rpi-firmware/start.elf
> > +fs_files_2=rpi-firmware/fixup.dat
> > +fs_files_3=rpi-firmware/config.txt
> > +fs_files_4=rpi-firmware/cmdline.txt
> > +fs_files_5=zImage
> > +fs_label=BOOT
> > +vfat_size=16
> > diff --git a/configs/raspberrypi_defconfig b/configs/raspberrypi_defconfig
> > index 6a17165..50caf5f 100644
> > --- a/configs/raspberrypi_defconfig
> > +++ b/configs/raspberrypi_defconfig
> > @@ -21,3 +21,6 @@ BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="75d03120bc36b1cc3166973b8edc11f033ab7c0d"
> >  BR2_LINUX_KERNEL_USE_DEFCONFIG=y
> >  BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi_quick"
> >  BR2_LINUX_KERNEL_ZIMAGE=y
> > +
> > +BR2_TARGET_ROOTFS_CUSTOM=y
> > +BR2_TARGET_ROOTFS_CUSTOM_PARTITION_TABLE="$(TOPDIR)/board/raspberrypi/partitions"
> > --
> > 1.8.1.2
> Could you please add comments over the various size and also the
> different type used, 0x83 is not really user friendly to read.

0x83 and 0xc are partition types, and there is a pointer in the manual
for where to find their meanings and the different values:

    * mbr_type (mandatory): the partition [type]

where [type] is a pointer to:
    https://en.wikipedia.org/wiki/Partition_type#List_of_partition_IDs

But I can add such comments as this is an example.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  reply	other threads:[~2014-01-04 17:05 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-03 17:19 [Buildroot] [PATCH 0/5 v4] SUBJECT Yann E. MORIN
2014-01-03 17:19 ` [Buildroot] [PATCH 1/5] package/squashfs: add selection for the host variant Yann E. MORIN
2014-02-03 14:53   ` Thomas De Schampheleire
2014-02-08 22:20   ` Peter Korsgaard
2014-01-03 17:19 ` [Buildroot] [PATCH 2/5] fs/custom: generate complete, partition-based device images Yann E. MORIN
2014-01-04 16:38   ` Maxime Hadjinlian
2014-01-04 17:43     ` Yann E. MORIN
2014-01-04 17:52       ` Maxime Hadjinlian
2014-04-09 13:28   ` Andreas Naumann
2014-04-09 17:09     ` Yann E. MORIN
2014-04-10 13:53       ` Andreas Naumann
2014-01-03 17:19 ` [Buildroot] [PATCH 3/5] board/raspberrypi: provide partition description for the new genimages Yann E. MORIN
2014-01-04 16:40   ` Maxime Hadjinlian
2014-01-04 17:05     ` Yann E. MORIN [this message]
2014-01-04 17:12       ` Maxime Hadjinlian
2014-01-04 17:50         ` Yann E. MORIN
2014-01-04 17:57           ` Maxime Hadjinlian
2014-01-03 17:19 ` [Buildroot] [PATCH 4/5] fs/custom: add support for squashfs Yann E. MORIN
2014-01-04 16:43   ` Maxime Hadjinlian
2014-01-04 17:01     ` Yann E. MORIN
2014-01-03 17:19 ` [Buildroot] [PATCH 5/5] fs/custom: add support for raw device/partition content Yann E. MORIN
2014-01-03 17:22 ` [Buildroot] [PATCH 0/5 v4] SUBJECT Yann E. MORIN

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=20140104170530.GB3417@free.fr \
    --to=yann.morin.1998@free.fr \
    --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