From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 7/9] boards: stm32f469-disco: Add kernel patch to set RAM address to 0
Date: Mon, 22 Feb 2016 12:14:46 +0100 [thread overview]
Message-ID: <20160222121446.2e0e142e@free-electrons.com> (raw)
In-Reply-To: <1455901745-18486-8-git-send-email-lee.jones@linaro.org>
Lee,
On Fri, 19 Feb 2016 17:09:03 +0000, Lee Jones wrote:
> At the time of submission, the Mainline kernel does not currently
> support the STM32f469. This patch makes changes to the defconfig
> to enable booting with the CPIO which Buildroot puts together.
>
> Signed-off-by: Lee Jones <lee.jones@linaro.org>
> ---
> .../patches/kernel/0004-enable-cpio-rootfs.patch | 26 ++++++++++++++++++++++
> 1 file changed, 26 insertions(+)
> create mode 100644 board/stmicroelectronics/stm32/stm32f469-disco/patches/kernel/0004-enable-cpio-rootfs.patch
>
> diff --git a/board/stmicroelectronics/stm32/stm32f469-disco/patches/kernel/0004-enable-cpio-rootfs.patch b/board/stmicroelectronics/stm32/stm32f469-disco/patches/kernel/0004-enable-cpio-rootfs.patch
> new file mode 100644
> index 0000000..28a1b81
> --- /dev/null
> +++ b/board/stmicroelectronics/stm32/stm32f469-disco/patches/kernel/0004-enable-cpio-rootfs.patch
> @@ -0,0 +1,26 @@
> +From 025cf91280af68d2e7f527e46dce072713fa79ac Mon Sep 17 00:00:00 2001
> +From: Lee Jones <lee.jones@linaro.org>
> +Date: Thu, 18 Feb 2016 11:07:25 +0000
> +Subject: [PATCH 1/1] ARM: stm32: Add support for booting with a CPIO rootfs
> +
> +Signed-off-by: Lee Jones <lee.jones@linaro.org>
> +---
> + arch/arm/configs/stm32_defconfig | 5 +++++
> + 1 file changed, 5 insertions(+)
> +
> +diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig
> +index 4725fab..eaac94c 100644
> +--- a/arch/arm/configs/stm32_defconfig
> ++++ b/arch/arm/configs/stm32_defconfig
> +@@ -68,3 +68,8 @@ CONFIG_MAGIC_SYSRQ=y
> + # CONFIG_FTRACE is not set
> + CONFIG_CRC_ITU_T=y
> + CONFIG_CRC7=y
> ++CONFIG_INITRAMFS_ROOT_UID=0
> ++CONFIG_INITRAMFS_ROOT_GID=0
> ++CONFIG_INITRAMFS_SOURCE="${BR_BINARIES_DIR}/rootfs.cpio"
> ++CONFIG_RD_GZIP=y
> ++CONFIG_INITRAMFS_COMPRESSION_GZIP=y
This is not needed. Buildroot already sets those options when building
a kernel with BR2_TARGET_ROOTFS_INITRAMFS=y in the Buildroot
configuration. See linux/linux.mk, and search for
BR2_TARGET_ROOTFS_INITRAMFS.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-02-22 11:14 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-19 17:08 [Buildroot] [PATCH 0/9] Add support for STM32F469-DISCO board Lee Jones
2016-02-19 17:08 ` [Buildroot] [PATCH 1/9] boot: Add new bootloader afboot-stm32 Lee Jones
2016-02-22 11:07 ` Thomas Petazzoni
2016-02-19 17:08 ` [Buildroot] [PATCH 2/9] configs: Add a tested working STM32F469-DISCO defconfig Lee Jones
2016-02-22 11:12 ` Thomas Petazzoni
2016-02-19 17:08 ` [Buildroot] [PATCH 3/9] boards: stm32f469-disco: Add a post-image script Lee Jones
2016-02-22 11:12 ` Thomas Petazzoni
2016-02-19 17:09 ` [Buildroot] [PATCH 4/9] boards: stm32f469-disco: Add kernel patch to provide top compatible string Lee Jones
2016-02-19 17:09 ` [Buildroot] [PATCH 5/9] boards: stm32f469-disco: Add kernel patch to provide DTS file Lee Jones
2016-02-19 17:09 ` [Buildroot] [PATCH 6/9] boards: stm32f469-disco: Add kernel patch to set RAM address to 0 Lee Jones
2016-02-19 17:09 ` [Buildroot] [PATCH 7/9] " Lee Jones
2016-02-22 11:14 ` Thomas Petazzoni [this message]
2016-02-19 17:09 ` [Buildroot] [PATCH 8/9] boards: stm32f469-disco: Add OpenOCD patch to supply a new config Lee Jones
2016-02-19 17:09 ` [Buildroot] [PATCH 9/9] boards: stm32f469-disco: Add OpenOCD patch to support on-board flash chip Lee Jones
2016-02-22 11:08 ` [Buildroot] [PATCH 0/9] Add support for STM32F469-DISCO board Thomas Petazzoni
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=20160222121446.2e0e142e@free-electrons.com \
--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