[Buildroot] [PATCH 3/5] board/raspberrypi: provide partition description for the new genimages

Maxime Hadjinlian maxime.hadjinlian at gmail.com
Sat Jan 4 16:40:42 UTC 2014


Hi Yann,

On Fri, Jan 3, 2014 at 6:19 PM, Yann E. MORIN <yann.morin.1998 at free.fr> wrote:
> From: "Yann E. MORIN" <yann.morin.1998 at 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 at free.fr>
> Cc: Ryan Barnett <rjbarnet at rockwellcollins.com>
> Cc: Thomas Petazzoni <thomas.petazzoni at 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.
Thanks !
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot



More information about the buildroot mailing list