From 890dca99f92252f1feeae251d493d47c67a509c9 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan Date: Sun, 16 Sep 2012 21:30:28 +0300 Subject: linux-raspberrypi: Use cmdline.txt to supply kernel command line The build-time kernel command line (as defined by the CONFIG_CMDLINE config parameter) is not respected by the RPI bootloader, and instead any custom command line must be suplied via the cmdline.txt file in the boot partition. This patch modifies the linux-raspberrypi recipe to generate a cmdline.txt file that corresponds to the build-time configured command line, and it also modifies the sdcard_image-rpi.bbclass to include this file in the generated SD card images. [GITHUB #62] Signed-off-by: Tomas Frydrych Signed-off-by: Andrei Gherzan --- recipes-kernel/linux/linux-raspberrypi_3.2.27.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/recipes-kernel/linux/linux-raspberrypi_3.2.27.bb b/recipes-kernel/linux/linux-raspberrypi_3.2.27.bb index 8006bd3..bfe63d4 100644 --- a/recipes-kernel/linux/linux-raspberrypi_3.2.27.bb +++ b/recipes-kernel/linux/linux-raspberrypi_3.2.27.bb @@ -4,7 +4,7 @@ require linux.inc DESCRIPTION = "Linux kernel for the RaspberryPi board" -PR = "r1" +PR = "r2" # Bump MACHINE_KERNEL_PR in the machine config if you update the kernel. # This is on the rpi-patches branch @@ -36,3 +36,9 @@ do_configure_prepend() { do_install_prepend() { install -d ${D}/lib/firmware } + +do_deploy_append() { + # Deploy cmdline.txt + install -d ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles + echo "${CMDLINE}" > ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/cmdline.txt +} -- cgit v1.2.3-54-g00ecf