diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2012-09-16 21:30:28 +0300 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2012-09-16 21:35:21 +0300 |
commit | 890dca99f92252f1feeae251d493d47c67a509c9 (patch) | |
tree | 4404605a306e27f5b64331dfbd6b88b13077b232 | |
parent | c5e81857104fdbe4d66a1a637585c7a0d7e7f7d4 (diff) | |
download | meta-raspberrypi-890dca99f92252f1feeae251d493d47c67a509c9.tar.gz |
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 <tomas@sleepfive.com>
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-rw-r--r-- | recipes-kernel/linux/linux-raspberrypi_3.2.27.bb | 8 |
1 files changed, 7 insertions, 1 deletions
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 | |||
4 | 4 | ||
5 | DESCRIPTION = "Linux kernel for the RaspberryPi board" | 5 | DESCRIPTION = "Linux kernel for the RaspberryPi board" |
6 | 6 | ||
7 | PR = "r1" | 7 | PR = "r2" |
8 | 8 | ||
9 | # Bump MACHINE_KERNEL_PR in the machine config if you update the kernel. | 9 | # Bump MACHINE_KERNEL_PR in the machine config if you update the kernel. |
10 | # This is on the rpi-patches branch | 10 | # This is on the rpi-patches branch |
@@ -36,3 +36,9 @@ do_configure_prepend() { | |||
36 | do_install_prepend() { | 36 | do_install_prepend() { |
37 | install -d ${D}/lib/firmware | 37 | install -d ${D}/lib/firmware |
38 | } | 38 | } |
39 | |||
40 | do_deploy_append() { | ||
41 | # Deploy cmdline.txt | ||
42 | install -d ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles | ||
43 | echo "${CMDLINE}" > ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/cmdline.txt | ||
44 | } | ||