summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2012-07-03 15:10:41 +0300
committerAndrei Gherzan <andrei@gherzan.ro>2012-07-05 23:38:58 +0300
commit44444b0511861f152e3c8bb5466871b51938766f (patch)
tree10e27864b98780b661202060014dd5b72663c030
parent275c6b1a2b8d757fe24257636be140face6f6723 (diff)
downloadmeta-raspberrypi-44444b0511861f152e3c8bb5466871b51938766f.tar.gz
bcm2835-mkimage: Remove recipe as bootloader can boot from Image directly
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-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
6 files changed, 0 insertions, 116 deletions
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+"")