From b751b5893c5403708ec095abe573ca1797366503 Mon Sep 17 00:00:00 2001 From: Jonas Gorski Date: Mon, 20 May 2013 12:07:03 +0000 Subject: 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 Signed-off-by: Jonas Gorski SVN-Revision: 36668 --- target/linux/brcm2708/image/Makefile | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'target/linux/brcm2708/image/Makefile') 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)) -- cgit v1.2.3