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>
This commit is contained in:
Andrei Gherzan 2012-09-16 21:30:28 +03:00
parent c5e8185710
commit 890dca99f9

View File

@ -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
}