aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2018-12-04 23:27:59 +0200
committerStijn Tintel <stijn@linux-ipv6.be>2018-12-05 00:39:53 +0200
commite261c8b76407ebd2d8289e3522bd02e5bd6e8552 (patch)
tree9afaead3dd8c26d1c2b6e776a6d13443e234b251 /package
parent42ca32ad2ffc2fcd22878173eba011962d369c50 (diff)
downloadupstream-e261c8b76407ebd2d8289e3522bd02e5bd6e8552.tar.gz
upstream-e261c8b76407ebd2d8289e3522bd02e5bd6e8552.tar.bz2
upstream-e261c8b76407ebd2d8289e3522bd02e5bd6e8552.zip
brcm2708-gpu-fw: add fw required for camera module
To be able to use the camera module, start_x=1 has to be set in config.txt. This will cause the bootloader to load the GPU firmware that contain the extra video codecs. Install these firmware files. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'package')
-rw-r--r--package/kernel/brcm2708-gpu-fw/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/kernel/brcm2708-gpu-fw/Makefile b/package/kernel/brcm2708-gpu-fw/Makefile
index e98add03bd..2d6dc3d81c 100644
--- a/package/kernel/brcm2708-gpu-fw/Makefile
+++ b/package/kernel/brcm2708-gpu-fw/Makefile
@@ -53,6 +53,14 @@ define Download/fixup_cd_dat
endef
$(eval $(call Download,fixup_cd_dat))
+define Download/fixup_x_dat
+ FILE:=$(RPI_FIRMWARE_FILE)-fixup_x.dat
+ URL:=$(RPI_FIRMWARE_URL)
+ HASH:=ec99af78227d9ffa2e46ab80a96aa762187467fe33876e4d8085377e7d0f76c2
+ URL_FILE:=fixup_x.dat
+endef
+$(eval $(call Download,fixup_x_dat))
+
define Download/start_elf
FILE:=$(RPI_FIRMWARE_FILE)-start.elf
URL:=$(RPI_FIRMWARE_URL)
@@ -69,6 +77,14 @@ define Download/start_cd_elf
endef
$(eval $(call Download,start_cd_elf))
+define Download/start_x_elf
+ FILE:=$(RPI_FIRMWARE_FILE)-start_x.elf
+ URL:=$(RPI_FIRMWARE_URL)
+ HASH:=4fa98ee8eca7427aa013c1ad4a70d7b4cd01dcc08264307d1cb62f7c9ddfeed9
+ URL_FILE:=start_x.elf
+endef
+$(eval $(call Download,start_x_elf))
+
define Package/brcm2708-gpu-fw
SECTION:=boot
CATEGORY:=Boot Loaders
@@ -88,8 +104,10 @@ define Build/Prepare
cp $(DL_DIR)/$(RPI_FIRMWARE_FILE)-bootcode.bin $(PKG_BUILD_DIR)/bootcode.bin
cp $(DL_DIR)/$(RPI_FIRMWARE_FILE)-fixup.dat $(PKG_BUILD_DIR)/fixup.dat
cp $(DL_DIR)/$(RPI_FIRMWARE_FILE)-fixup_cd.dat $(PKG_BUILD_DIR)/fixup_cd.dat
+ cp $(DL_DIR)/$(RPI_FIRMWARE_FILE)-fixup_x.dat $(PKG_BUILD_DIR)/fixup_x.dat
cp $(DL_DIR)/$(RPI_FIRMWARE_FILE)-start.elf $(PKG_BUILD_DIR)/start.elf
cp $(DL_DIR)/$(RPI_FIRMWARE_FILE)-start_cd.elf $(PKG_BUILD_DIR)/start_cd.elf
+ cp $(DL_DIR)/$(RPI_FIRMWARE_FILE)-start_x.elf $(PKG_BUILD_DIR)/start_x.elf
endef
define Build/Compile
@@ -105,8 +123,10 @@ define Build/InstallDev
$(CP) $(PKG_BUILD_DIR)/LICENCE.broadcom $(KERNEL_BUILD_DIR)
$(CP) $(PKG_BUILD_DIR)/start.elf $(KERNEL_BUILD_DIR)
$(CP) $(PKG_BUILD_DIR)/start_cd.elf $(KERNEL_BUILD_DIR)
+ $(CP) $(PKG_BUILD_DIR)/start_x.elf $(KERNEL_BUILD_DIR)
$(CP) $(PKG_BUILD_DIR)/fixup.dat $(KERNEL_BUILD_DIR)
$(CP) $(PKG_BUILD_DIR)/fixup_cd.dat $(KERNEL_BUILD_DIR)
+ $(CP) $(PKG_BUILD_DIR)/fixup_x.dat $(KERNEL_BUILD_DIR)
endef
$(eval $(call BuildPackage,brcm2708-gpu-fw))