summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2012-07-09 13:05:15 -0700
committerAndrei Gherzan <andrei@gherzan.ro>2012-07-09 13:05:15 -0700
commitfc02bba13d65dd2447d0a6d1f3b63300510eb097 (patch)
treee02c122cc07441c0413da3d8bafd14bb16fd7d7b
parenta71cbe527448f0d157d8956799d47305c4de582a (diff)
parent94d69f85331b2bf6aa5f8fffd9dab4c05b6827e9 (diff)
downloadmeta-raspberrypi-fc02bba13d65dd2447d0a6d1f3b63300510eb097.tar.gz
Merge pull request #25 from agherzan/devel_kernel
Fix a couple of kernel issues / update kernel / update bootloader and related files / remove unneeded packages
-rw-r--r--classes/sdcard_image-rpi.bbclass2
-rwxr-xr-xconf/machine/raspberrypi.conf3
-rw-r--r--recipes-bcm/common/firmware.inc6
-rw-r--r--recipes-bcm/kernel-image/bcm2835-kernel-image.bb19
-rw-r--r--recipes-bcm/kernel-image/bcm2835-mkimage.bb33
-rw-r--r--recipes-bcm/kernel-image/bcm2835-mkimage/LICENCE3
-rw-r--r--recipes-bcm/kernel-image/bcm2835-mkimage/bcm2835-args-uncompressed.txt12
-rw-r--r--recipes-bcm/kernel-image/bcm2835-mkimage/bcm2835-boot-uncompressed.txt17
-rw-r--r--recipes-bcm/kernel-image/bcm2835-mkimage/bcm2835-kernel-first32k.binbin32768 -> 0 bytes
-rw-r--r--recipes-bcm/kernel-image/bcm2835-mkimage/bcm2835-mkimage.py51
-rwxr-xr-xrecipes-kernel/linux/linux-raspberrypi_3.1.9.bb7
11 files changed, 10 insertions, 143 deletions
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass
index af18aab..6d08020 100644
--- a/classes/sdcard_image-rpi.bbclass
+++ b/classes/sdcard_image-rpi.bbclass
@@ -77,7 +77,7 @@ IMAGE_CMD_rpi-sdimg () {
77 # of the rootfs 77 # of the rootfs
78 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/bootcode.bin :: 78 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/bootcode.bin ::
79 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/loader.bin :: 79 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/loader.bin ::
80 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/kernel.img :: 80 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} ::kernel.img
81 81
82 if [ -n ${FATPAYLOAD} ] ; then 82 if [ -n ${FATPAYLOAD} ] ; then
83 echo "Copying payload into VFAT" 83 echo "Copying payload into VFAT"
diff --git a/conf/machine/raspberrypi.conf b/conf/machine/raspberrypi.conf
index a64104b..932563f 100755
--- a/conf/machine/raspberrypi.conf
+++ b/conf/machine/raspberrypi.conf
@@ -27,13 +27,12 @@ XSERVER = " \
27 xf86-video-fbdev \ 27 xf86-video-fbdev \
28" 28"
29 29
30KERNEL_IMAGETYPE = "zImage" 30KERNEL_IMAGETYPE = "Image"
31 31
32MACHINE_FEATURES = "kernel26 apm usbgadget usbhost keyboard vfat ext2 screen touchscreen alsa bluetooth wifi sdio" 32MACHINE_FEATURES = "kernel26 apm usbgadget usbhost keyboard vfat ext2 screen touchscreen alsa bluetooth wifi sdio"
33 33
34MACHINE_EXTRA_RRECOMMENDS += " \ 34MACHINE_EXTRA_RRECOMMENDS += " \
35 kernel-modules \ 35 kernel-modules \
36 bcm2835-kernel-image \
37" 36"
38 37
39# Set GPU firmware image to be used 38# Set GPU firmware image to be used
diff --git a/recipes-bcm/common/firmware.inc b/recipes-bcm/common/firmware.inc
index 89192a2..addee25 100644
--- a/recipes-bcm/common/firmware.inc
+++ b/recipes-bcm/common/firmware.inc
@@ -1,7 +1,7 @@
1 1
2# 21/06/2012 firmware; this can be overridden from distro config 2# 01/07/2012 firmware; this can be overridden from distro config
3RPIFW_SRCREV ?= "fc0232ac463f0618914bab9314e8e2ae27466d8c" 3RPIFW_SRCREV ?= "0671d60180c8d10978b442de5ec9d083596a5f3f"
4RPIFW_DATE ?= "20120621" 4RPIFW_DATE ?= "20120701"
5 5
6 6
7SRCREV = "${RPIFW_SRCREV}" 7SRCREV = "${RPIFW_SRCREV}"
diff --git a/recipes-bcm/kernel-image/bcm2835-kernel-image.bb b/recipes-bcm/kernel-image/bcm2835-kernel-image.bb
deleted file mode 100644
index 085cd01..0000000
--- a/recipes-bcm/kernel-image/bcm2835-kernel-image.bb
+++ /dev/null
@@ -1,19 +0,0 @@
1DESCRIPTION = "Helper recipe to make the munged kernel.img image for the RaspberryPi."
2LICENSE = "MIT"
3LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
4
5COMPATIBLE_MACHINE = "raspberrypi"
6PR = "${MACHINE_KERNEL_PR}.2"
7
8DEPENDS = "bcm2835-bootfiles bcm2835-mkimage-native virtual/kernel"
9
10S = "${WORKDIR}"
11
12addtask deploy before do_package after do_install
13
14do_deploy() {
15 install -d ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles
16 bcm2835-mkimage.py ${DEPLOY_DIR_IMAGE}/zImage-${MACHINE}.bin ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/kernel.img ${STAGING_BINDIR_NATIVE}/
17}
18
19PACKAGE_ARCH = "${MACHINE_ARCH}"
diff --git a/recipes-bcm/kernel-image/bcm2835-mkimage.bb b/recipes-bcm/kernel-image/bcm2835-mkimage.bb
deleted file mode 100644
index 83d5d26..0000000
--- a/recipes-bcm/kernel-image/bcm2835-mkimage.bb
+++ /dev/null
@@ -1,33 +0,0 @@
1DESCRIPTION = "Tools to append 32KB binary header to kernel image."
2LICENSE = "proprietary-binary"
3
4COMPATIBLE_MACHINE = "raspberrypi"
5PR = "${MACHINE_KERNEL_PR}.3"
6
7SECTION = "bootloader"
8
9LIC_FILES_CHKSUM = "file://LICENCE;md5=3d7292881293368c0a9f3bc521c2b87e"
10
11SRC_URI = " \
12 file://LICENCE \
13 file://bcm2835-args-uncompressed.txt \
14 file://bcm2835-boot-uncompressed.txt \
15 file://bcm2835-mkimage.py \
16 file://bcm2835-kernel-first32k.bin \
17"
18
19S = "${WORKDIR}"
20
21BBCLASSEXTEND = "native nativesdk"
22
23do_install () {
24 install -d ${D}${bindir}
25 install -m 0755 bcm2835-mkimage.py ${D}${bindir}
26 install -m 0644 bcm2835-args-uncompressed.txt ${D}${bindir}
27 install -m 0644 bcm2835-boot-uncompressed.txt ${D}${bindir}
28 install -m 0644 bcm2835-kernel-first32k.bin ${D}${bindir}
29}
30
31FILES_${PN} = " \
32 ${bindir}/bcm2835-* \
33"
diff --git a/recipes-bcm/kernel-image/bcm2835-mkimage/LICENCE b/recipes-bcm/kernel-image/bcm2835-mkimage/LICENCE
deleted file mode 100644
index c6849d9..0000000
--- a/recipes-bcm/kernel-image/bcm2835-mkimage/LICENCE
+++ /dev/null
@@ -1,3 +0,0 @@
1I believe this is a proprietary binary (the first32k.bin file) provided by Broadcom.
2
3It is distributed with the express permission of the RaspberryPi foundation.
diff --git a/recipes-bcm/kernel-image/bcm2835-mkimage/bcm2835-args-uncompressed.txt b/recipes-bcm/kernel-image/bcm2835-mkimage/bcm2835-args-uncompressed.txt
deleted file mode 100644
index 09398b4..0000000
--- a/recipes-bcm/kernel-image/bcm2835-mkimage/bcm2835-args-uncompressed.txt
+++ /dev/null
@@ -1,12 +0,0 @@
1; kernel args (place at 0x00000100)
20x00000005
30x54410001
40x00000001
50x00001000
60x00000000
70x00000004
80x54410002
90x08000000
100x00000000
110x00000000
120x00000000
diff --git a/recipes-bcm/kernel-image/bcm2835-mkimage/bcm2835-boot-uncompressed.txt b/recipes-bcm/kernel-image/bcm2835-mkimage/bcm2835-boot-uncompressed.txt
deleted file mode 100644
index 1cf5888..0000000
--- a/recipes-bcm/kernel-image/bcm2835-mkimage/bcm2835-boot-uncompressed.txt
+++ /dev/null
@@ -1,17 +0,0 @@
1; bootloader (place at 0x00000000)
20xea000006
30xe1a00000
40xe1a00000
50xe1a00000
60xe1a00000
70xe1a00000
80xe1a00000
90xe1a00000
10
110xe3a00000
120xe3a01042
130xe3811c0c
140xe59f2000
150xe59ff000
160x00000100
170x00008000
diff --git a/recipes-bcm/kernel-image/bcm2835-mkimage/bcm2835-kernel-first32k.bin b/recipes-bcm/kernel-image/bcm2835-mkimage/bcm2835-kernel-first32k.bin
deleted file mode 100644
index ebf74be..0000000
--- a/recipes-bcm/kernel-image/bcm2835-mkimage/bcm2835-kernel-first32k.bin
+++ /dev/null
Binary files differ
diff --git a/recipes-bcm/kernel-image/bcm2835-mkimage/bcm2835-mkimage.py b/recipes-bcm/kernel-image/bcm2835-mkimage/bcm2835-mkimage.py
deleted file mode 100644
index 6ce9231..0000000
--- a/recipes-bcm/kernel-image/bcm2835-mkimage/bcm2835-mkimage.py
+++ /dev/null
@@ -1,51 +0,0 @@
1#!/usr/bin/python
2
3import os
4import re
5import sys
6
7try:
8 raw_kernel = sys.argv[1]
9except:
10 raw_kernel = "./zImage"
11
12try:
13 output_img = sys.argv[2]
14except:
15 output_img = "./kernel.img"
16
17try:
18 supfile_loc = sys.argv[3]
19except:
20 supfile_loc = "./"
21
22re_line = re.compile(r"0x(?P<value>[0-9a-f]{8})")
23
24mem = [0 for i in range(32768)]
25
26def load_to_mem(name, addr):
27 f = open(name)
28
29 for l in f.readlines():
30 m = re_line.match(l)
31
32 if m:
33 value = int(m.group("value"), 16)
34
35 for i in range(4):
36 mem[addr] = int(value >> i * 8 & 0xff)
37 addr += 1
38
39 f.close()
40
41load_to_mem(""+supfile_loc+"bcm2835-boot-uncompressed.txt", 0x00000000)
42load_to_mem(""+supfile_loc+"bcm2835-args-uncompressed.txt", 0x00000100)
43
44f = open(""+supfile_loc+"bcm2835-kernel-first32k.bin", "wb")
45
46for m in mem:
47 f.write(chr(m))
48
49f.close()
50
51os.system("cat "+supfile_loc+"bcm2835-kernel-first32k.bin "+raw_kernel+" > "+output_img+"")
diff --git a/recipes-kernel/linux/linux-raspberrypi_3.1.9.bb b/recipes-kernel/linux/linux-raspberrypi_3.1.9.bb
index ab5c6a0..d9929dd 100755
--- a/recipes-kernel/linux/linux-raspberrypi_3.1.9.bb
+++ b/recipes-kernel/linux/linux-raspberrypi_3.1.9.bb
@@ -4,11 +4,11 @@ require linux.inc
4 4
5DESCRIPTION = "Linux kernel for the RaspberryPi board" 5DESCRIPTION = "Linux kernel for the RaspberryPi board"
6 6
7PR = "r1" 7PR = "r3"
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
11SRCREV = "0ec4154d64ebba48ca2446cde60a90546311defc" 11SRCREV = "14ad68cf4afc7acf14076f895b539d81cd9f32ab"
12 12
13SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-patches \ 13SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-patches \
14" 14"
@@ -22,6 +22,9 @@ S = "${WORKDIR}/git"
22 22
23KERNEL_DEFCONFIG = "bcmrpi_defconfig" 23KERNEL_DEFCONFIG = "bcmrpi_defconfig"
24 24
25# CMDLINE fro raspberypi
26CMDLINE_raspberrypi = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait"
27
25PARALLEL_MAKEINST = "" 28PARALLEL_MAKEINST = ""
26 29
27do_configure_prepend() { 30do_configure_prepend() {