diff options
author | jogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-05-20 12:07:03 +0000 |
---|---|---|
committer | jogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-05-20 12:07:03 +0000 |
commit | b4607d13dcc108c5907107aa4567fbd7a082f0b7 (patch) | |
tree | ae022932016ed042594291d6dbe61200e1bdb8e0 /target/linux/brcm2708/image/Makefile | |
parent | 56525f854b1b7e215409d84c12b5704943753883 (diff) |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36668 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm2708/image/Makefile')
-rw-r--r-- | target/linux/brcm2708/image/Makefile | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/target/linux/brcm2708/image/Makefile b/target/linux/brcm2708/image/Makefile index a8dbef1b8..6b4cf141a 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)) |