Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] configs: add RaspberryPi defconfig
@ 2013-01-11 13:17 Maxime Hadjinlian
  2013-01-11 13:36 ` Yann E. MORIN
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Maxime Hadjinlian @ 2013-01-11 13:17 UTC (permalink / raw)
  To: buildroot

This is a default configuration for the RaspberryPi, tested and functionnal.

The kernel used is the one developped by the RaspberryPi foundation as it's not
fully supported currently in mainline kernel.
The configuration used for the kernel is the default bcmrpi.

Note that the kernel generated is a zImage but to work you should :
    - Rename it to kernel.img
    - Add 'kernel=zImage' in config.txt (without quotes).

For more info, please find board/raspberrypi/README.txt

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
---
 board/raspberrypi/README.txt |   35 +++++++++++++++++++++++++++++++++++
 configs/rpi_defconfig        |   19 +++++++++++++++++++
 2 files changed, 54 insertions(+)
 create mode 100644 board/raspberrypi/README.txt
 create mode 100644 configs/rpi_defconfig

diff --git a/board/raspberrypi/README.txt b/board/raspberrypi/README.txt
new file mode 100644
index 0000000..5ddc5c5
--- /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 :
+
+	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.
+
+Finally, a good source of information is http://elinux.org/R-Pi_Hub
diff --git a/configs/rpi_defconfig b/configs/rpi_defconfig
new file mode 100644
index 0000000..8c73d0e
--- /dev/null
+++ b/configs/rpi_defconfig
@@ -0,0 +1,19 @@
+BR2_arm=y
+BR2_arm1176jzf_s=y
+
+BR2_TOOLCHAIN_BUILDROOT_LARGEFILE=y
+BR2_TOOLCHAIN_BUILDROOT_CXX=y
+
+BR2_TARGET_GENERIC_GETTY_PORT="tty1"
+
+BR2_PACKAGE_RPI_FIRMWARE=y
+BR2_PACKAGE_RPI_USERLAND=y
+BR2_PACKAGE_LIBCOFI=y
+
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_GIT=y
+BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL="git://github.com/raspberrypi/linux.git"
+BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION="31a951046155b27361127d9cf85a1f58719fe9b3"
+BR2_LINUX_KERNEL_USE_DEFCONFIG=y
+BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi"
+BR2_LINUX_KERNEL_ZIMAGE=y
--
1.7.10.4

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

end of thread, other threads:[~2013-01-11 23:22 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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