aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/image/Makefile
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2013-05-20 12:07:03 +0000
committerJonas Gorski <jogo@openwrt.org>2013-05-20 12:07:03 +0000
commitb751b5893c5403708ec095abe573ca1797366503 (patch)
tree2b885ab067d4cf16886914d1abddd9b321deadeb /target/linux/brcm2708/image/Makefile
parent44696a01c7df631945c64a87f61cae638c60f5d8 (diff)
downloadupstream-b751b5893c5403708ec095abe573ca1797366503.tar.gz
upstream-b751b5893c5403708ec095abe573ca1797366503.tar.bz2
upstream-b751b5893c5403708ec095abe573ca1797366503.zip
brcm2708: make it boot on revision 2 raspberry pis
* update the bootcode.bin to the newest version - gpu/cpu mem split is now configured through config.txt, so no need to create more than one sd card image (just edit the config.txt) - bootcode.bin now supports the never revision 2 raspberry pis * add a commented prepopulated config.txt for easier config changes Taken from <https://github.com/Evilpaul/RPi-config> Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 36668
Diffstat (limited to 'target/linux/brcm2708/image/Makefile')
-rw-r--r--target/linux/brcm2708/image/Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/target/linux/brcm2708/image/Makefile b/target/linux/brcm2708/image/Makefile
index a8dbef1b81..6b4cf141a6 100644
--- a/target/linux/brcm2708/image/Makefile
+++ b/target/linux/brcm2708/image/Makefile
@@ -20,17 +20,17 @@ define Image/Build/RaspberryPi
mkdosfs $(KDIR)/boot.img -C $(FAT32_BLOCKS)
# Raspberry Pi has no bootloader, instead the GPU loads and starts the kernel
- mcopy -i $(KDIR)/boot.img $(BUILD_DIR)/brcm2708-gpu-fw-boot/arm128_start.elf ::
- mcopy -i $(KDIR)/boot.img $(BUILD_DIR)/brcm2708-gpu-fw-boot/arm192_start.elf ::
- mcopy -i $(KDIR)/boot.img $(BUILD_DIR)/brcm2708-gpu-fw-boot/arm224_start.elf ::
mcopy -i $(KDIR)/boot.img $(BUILD_DIR)/brcm2708-gpu-fw-boot/bootcode.bin ::
mcopy -i $(KDIR)/boot.img $(BUILD_DIR)/brcm2708-gpu-fw-boot/COPYING.linux ::
mcopy -i $(KDIR)/boot.img $(BUILD_DIR)/brcm2708-gpu-fw-boot/LICENCE.broadcom ::
- mcopy -i $(KDIR)/boot.img $(BUILD_DIR)/brcm2708-gpu-fw-boot/loader.bin ::
- mcopy -i $(KDIR)/boot.img $(BUILD_DIR)/brcm2708-gpu-fw-boot/arm$(2)_start.elf ::start.elf #Copy file for memory/gpu division
+ mcopy -i $(KDIR)/boot.img $(BUILD_DIR)/brcm2708-gpu-fw-boot/start.elf ::
+ mcopy -i $(KDIR)/boot.img $(BUILD_DIR)/brcm2708-gpu-fw-boot/start_cd.elf ::
+ mcopy -i $(KDIR)/boot.img $(BUILD_DIR)/brcm2708-gpu-fw-boot/fixup.dat ::
+ mcopy -i $(KDIR)/boot.img $(BUILD_DIR)/brcm2708-gpu-fw-boot/fixup_cd.dat ::
mcopy -i $(KDIR)/boot.img cmdline.txt ::
+ mcopy -i $(KDIR)/boot.img config.txt ::
mcopy -i $(KDIR)/boot.img $(KDIR)/Image ::kernel.img # Copy OpenWrt built kernel
- ./gen_rpi_sdcard_img.sh $(BIN_DIR)/$(IMG_PREFIX)-sdcard-vfat-$(1)_$(2).img $(KDIR)/boot.img $(KDIR)/root.$(1) \
+ ./gen_rpi_sdcard_img.sh $(BIN_DIR)/$(IMG_PREFIX)-sdcard-vfat-$(1).img $(KDIR)/boot.img $(KDIR)/root.$(1) \
$(CONFIG_BRCM2708_SD_BOOT_PARTSIZE) $(CONFIG_TARGET_ROOTFS_PARTSIZE)
endef
@@ -38,9 +38,7 @@ define Image/Build
$(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1).img
$(CP) $(KDIR)/Image $(BIN_DIR)/$(IMG_PREFIX)-Image
- $(call Image/Build/RaspberryPi,$(1),128)
- $(call Image/Build/RaspberryPi,$(1),192)
- $(call Image/Build/RaspberryPi,$(1),224)
+ $(call Image/Build/RaspberryPi,$(1))
endef
$(eval $(call BuildImage))