From 44444b0511861f152e3c8bb5466871b51938766f Mon Sep 17 00:00:00 2001 From: Andrei Gherzan Date: Tue, 3 Jul 2012 15:10:41 +0300 Subject: [PATCH] bcm2835-mkimage: Remove recipe as bootloader can boot from Image directly Signed-off-by: Andrei Gherzan --- recipes-bcm/kernel-image/bcm2835-mkimage.bb | 33 ------------ .../kernel-image/bcm2835-mkimage/LICENCE | 3 -- .../bcm2835-args-uncompressed.txt | 12 ----- .../bcm2835-boot-uncompressed.txt | 17 ------ .../bcm2835-kernel-first32k.bin | Bin 32768 -> 0 bytes .../bcm2835-mkimage/bcm2835-mkimage.py | 51 ------------------ 6 files changed, 116 deletions(-) delete mode 100644 recipes-bcm/kernel-image/bcm2835-mkimage.bb delete mode 100644 recipes-bcm/kernel-image/bcm2835-mkimage/LICENCE delete mode 100644 recipes-bcm/kernel-image/bcm2835-mkimage/bcm2835-args-uncompressed.txt delete mode 100644 recipes-bcm/kernel-image/bcm2835-mkimage/bcm2835-boot-uncompressed.txt delete mode 100644 recipes-bcm/kernel-image/bcm2835-mkimage/bcm2835-kernel-first32k.bin delete mode 100644 recipes-bcm/kernel-image/bcm2835-mkimage/bcm2835-mkimage.py 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 @@ -DESCRIPTION = "Tools to append 32KB binary header to kernel image." -LICENSE = "proprietary-binary" - -COMPATIBLE_MACHINE = "raspberrypi" -PR = "${MACHINE_KERNEL_PR}.3" - -SECTION = "bootloader" - -LIC_FILES_CHKSUM = "file://LICENCE;md5=3d7292881293368c0a9f3bc521c2b87e" - -SRC_URI = " \ - file://LICENCE \ - file://bcm2835-args-uncompressed.txt \ - file://bcm2835-boot-uncompressed.txt \ - file://bcm2835-mkimage.py \ - file://bcm2835-kernel-first32k.bin \ -" - -S = "${WORKDIR}" - -BBCLASSEXTEND = "native nativesdk" - -do_install () { - install -d ${D}${bindir} - install -m 0755 bcm2835-mkimage.py ${D}${bindir} - install -m 0644 bcm2835-args-uncompressed.txt ${D}${bindir} - install -m 0644 bcm2835-boot-uncompressed.txt ${D}${bindir} - install -m 0644 bcm2835-kernel-first32k.bin ${D}${bindir} -} - -FILES_${PN} = " \ - ${bindir}/bcm2835-* \ -" 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 @@ -I believe this is a proprietary binary (the first32k.bin file) provided by Broadcom. - -It 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 @@ -; kernel args (place at 0x00000100) -0x00000005 -0x54410001 -0x00000001 -0x00001000 -0x00000000 -0x00000004 -0x54410002 -0x08000000 -0x00000000 -0x00000000 -0x00000000 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 @@ -; bootloader (place at 0x00000000) -0xea000006 -0xe1a00000 -0xe1a00000 -0xe1a00000 -0xe1a00000 -0xe1a00000 -0xe1a00000 -0xe1a00000 - -0xe3a00000 -0xe3a01042 -0xe3811c0c -0xe59f2000 -0xe59ff000 -0x00000100 -0x00008000 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 ebf74be8a1434d3e296b664136f9d51bc851647f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 32768 zcmeIuu?@md3[0-9a-f]{8})") - -mem = [0 for i in range(32768)] - -def load_to_mem(name, addr): - f = open(name) - - for l in f.readlines(): - m = re_line.match(l) - - if m: - value = int(m.group("value"), 16) - - for i in range(4): - mem[addr] = int(value >> i * 8 & 0xff) - addr += 1 - - f.close() - -load_to_mem(""+supfile_loc+"bcm2835-boot-uncompressed.txt", 0x00000000) -load_to_mem(""+supfile_loc+"bcm2835-args-uncompressed.txt", 0x00000100) - -f = open(""+supfile_loc+"bcm2835-kernel-first32k.bin", "wb") - -for m in mem: - f.write(chr(m)) - -f.close() - -os.system("cat "+supfile_loc+"bcm2835-kernel-first32k.bin "+raw_kernel+" > "+output_img+"")