diff options
| -rw-r--r-- | README | 23 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-raspberrypi.inc | 5 |
2 files changed, 19 insertions, 9 deletions
| @@ -19,10 +19,11 @@ Contents: | |||
| 19 | 2.E. Set overclocking options | 19 | 2.E. Set overclocking options |
| 20 | 2.F. Optional - Video camera support with V4L2 drivers | 20 | 2.F. Optional - Video camera support with V4L2 drivers |
| 21 | 2.G. Optional - Enable offline compositing support | 21 | 2.G. Optional - Enable offline compositing support |
| 22 | 2.H. Images | 22 | 2.H. Optional - Enable kgdb over console support |
| 23 | 2.I. Boot to U-Boot | 23 | 2.I. Images |
| 24 | 2.J. Image with Initramfs | 24 | 2.J. Boot to U-Boot |
| 25 | 2.K. Device tree support | 25 | 2.K. Image with Initramfs |
| 26 | 2.L. Device tree support | ||
| 26 | 3. Extra apps | 27 | 3. Extra apps |
| 27 | 3.A. omxplayer | 28 | 3.A. omxplayer |
| 28 | 4. Source code and mirrors | 29 | 4. Source code and mirrors |
| @@ -138,7 +139,13 @@ Heavily recommended for Wayland/Weston. | |||
| 138 | 139 | ||
| 139 | See: http://wayland.freedesktop.org/raspberrypi.html | 140 | See: http://wayland.freedesktop.org/raspberrypi.html |
| 140 | 141 | ||
| 141 | 2.H. Images | 142 | 2.H. Optional - Enable kgdb over console support |
| 143 | ================================================ | ||
| 144 | To add the kdbg over console (kgdboc) parameter to the kernel command line, | ||
| 145 | set this variable in local.conf: | ||
| 146 | ENABLE_KGDB = "1" | ||
| 147 | |||
| 148 | 2.I. Images | ||
| 142 | =========== | 149 | =========== |
| 143 | * rpi-hwup-image | 150 | * rpi-hwup-image |
| 144 | Hardware up image | 151 | Hardware up image |
| @@ -148,7 +155,7 @@ See: http://wayland.freedesktop.org/raspberrypi.html | |||
| 148 | Image based on rpi-basic-image which includes most of the packages in this | 155 | Image based on rpi-basic-image which includes most of the packages in this |
| 149 | layer and some media samples. | 156 | layer and some media samples. |
| 150 | 157 | ||
| 151 | 2.I. Boot to U-Boot | 158 | 2.J. Boot to U-Boot |
| 152 | =================== | 159 | =================== |
| 153 | To have u-boot load kernel image, set in your local.conf | 160 | To have u-boot load kernel image, set in your local.conf |
| 154 | KERNEL_IMAGETYPE = "uImage" | 161 | KERNEL_IMAGETYPE = "uImage" |
| @@ -156,7 +163,7 @@ KERNEL_IMAGETYPE = "uImage" | |||
| 156 | This will make kernel.img be u-boot image which will load uImage. | 163 | This will make kernel.img be u-boot image which will load uImage. |
| 157 | By default, kernel.img is the actual kernel image (ex. Image). | 164 | By default, kernel.img is the actual kernel image (ex. Image). |
| 158 | 165 | ||
| 159 | 2.J. Image with Initramfs | 166 | 2.K. Image with Initramfs |
| 160 | ========================= | 167 | ========================= |
| 161 | To build an initramfs image : | 168 | To build an initramfs image : |
| 162 | * Set this 3 kernel variables (in linux-raspberrypi.inc for example) | 169 | * Set this 3 kernel variables (in linux-raspberrypi.inc for example) |
| @@ -169,7 +176,7 @@ To build an initramfs image : | |||
| 169 | * Set the meta-rasberrypi variable (in raspberrypi.conf for example) | 176 | * Set the meta-rasberrypi variable (in raspberrypi.conf for example) |
| 170 | - KERNEL_INITRAMFS = "-initramfs" | 177 | - KERNEL_INITRAMFS = "-initramfs" |
| 171 | 178 | ||
| 172 | 2.K. Device tree support | 179 | 2.L. Device tree support |
| 173 | ========================= | 180 | ========================= |
| 174 | Device tree for RPi is only supported when using linux-raspberrypi 3.18+ | 181 | Device tree for RPi is only supported when using linux-raspberrypi 3.18+ |
| 175 | kernels. | 182 | kernels. |
diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index 7e36408..d60a3e9 100644 --- a/recipes-kernel/linux/linux-raspberrypi.inc +++ b/recipes-kernel/linux/linux-raspberrypi.inc | |||
| @@ -19,7 +19,10 @@ KERNEL_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig" | |||
| 19 | KERNEL_DEFCONFIG_raspberrypi2 ?= "bcm2709_defconfig" | 19 | KERNEL_DEFCONFIG_raspberrypi2 ?= "bcm2709_defconfig" |
| 20 | 20 | ||
| 21 | # CMDLINE for raspberrypi | 21 | # CMDLINE for raspberrypi |
| 22 | CMDLINE = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" | 22 | CMDLINE = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" |
| 23 | |||
| 24 | # Add the kernel debugger over console kernel command line option if enabled | ||
| 25 | CMDLINE_append = ' ${@base_conditional("ENABLE_KGDB", "1", "kgdboc=ttyAMA0,115200", "", d)}' | ||
| 23 | 26 | ||
| 24 | UDEV_GE_141 ?= "1" | 27 | UDEV_GE_141 ?= "1" |
| 25 | 28 | ||
