Skip to content
Snippets Groups Projects
Commit 1550f581 authored by Jerome Forissier's avatar Jerome Forissier Committed by Jérôme Forissier
Browse files

hikey_debian: update Wi-Fi firmware


The kernel branch we are using for OP-TEE needs a new Wi-Fi firmware,
so extend the system-img recipe to download it also.

Signed-off-by: default avatarJerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: default avatarVictor Chong <victor.chong@linaro.org>
parent c309c4fe
No related branches found
No related tags found
No related merge requests found
...@@ -105,7 +105,7 @@ When the files has been transfered, please follow the commands from the `make ...@@ -105,7 +105,7 @@ When the files has been transfered, please follow the commands from the `make
send` command which will install the debian packages on the device. Typically it send` command which will install the debian packages on the device. Typically it
tells you to run something like this on the device itself: tells you to run something like this on the device itself:
```bash ```bash
$ dpkg --force-all -i /tmp/out/optee_2.0-1.deb $ dpkg --force-all -i /tmp/out/*.deb
$ dpkg --force-all -i /tmp/linux-image-*.deb $ dpkg --force-all -i /tmp/linux-image-*.deb
``` ```
## 5.2 Good to know ## 5.2 Good to know
......
...@@ -23,6 +23,7 @@ IP ?= 127.0.0.1 ...@@ -23,6 +23,7 @@ IP ?= 127.0.0.1
# URL to images # URL to images
SYSTEM_IMG_URL=https://builds.96boards.org/releases/reference-platform/debian/hikey/16.06/hikey-rootfs-debian-jessie-alip-20160629-120.emmc.img.gz SYSTEM_IMG_URL=https://builds.96boards.org/releases/reference-platform/debian/hikey/16.06/hikey-rootfs-debian-jessie-alip-20160629-120.emmc.img.gz
NVME_IMG_URL=https://builds.96boards.org/releases/hikey/linaro/binaries/latest/nvme.img NVME_IMG_URL=https://builds.96boards.org/releases/hikey/linaro/binaries/latest/nvme.img
WIFI_FW_URL=http://http.us.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-ti-connectivity_20161130-3_all.deb
################################################################################ ################################################################################
# Disallow use of UART0 for Debian Linux console # Disallow use of UART0 for Debian Linux console
...@@ -72,6 +73,7 @@ MCUIMAGE_BIN ?= $(OPENPLATPKG_PATH)/Platforms/Hisilicon/HiKey/Binary/mcuimage. ...@@ -72,6 +73,7 @@ MCUIMAGE_BIN ?= $(OPENPLATPKG_PATH)/Platforms/Hisilicon/HiKey/Binary/mcuimage.
BOOT_IMG ?= $(OUT_PATH)/boot-fat.uefi.img BOOT_IMG ?= $(OUT_PATH)/boot-fat.uefi.img
NVME_IMG ?= $(OUT_PATH)/nvme.img NVME_IMG ?= $(OUT_PATH)/nvme.img
SYSTEM_IMG ?= $(OUT_PATH)/debian_system.img SYSTEM_IMG ?= $(OUT_PATH)/debian_system.img
WIFI_FW ?= $(OUT_PATH)/firmware-ti-connectivity_20161130-3_all.deb
GRUB_PATH ?= $(ROOT)/grub GRUB_PATH ?= $(ROOT)/grub
GRUB_CONFIGFILE ?= $(OUT_PATH)/grub.configfile GRUB_CONFIGFILE ?= $(OUT_PATH)/grub.configfile
LLOADER_PATH ?= $(ROOT)/l-loader LLOADER_PATH ?= $(ROOT)/l-loader
...@@ -306,10 +308,15 @@ ifeq ("$(wildcard $(SYSTEM_IMG))","") ...@@ -306,10 +308,15 @@ ifeq ("$(wildcard $(SYSTEM_IMG))","")
wget $(SYSTEM_IMG_URL) -O $(SYSTEM_IMG).gz wget $(SYSTEM_IMG_URL) -O $(SYSTEM_IMG).gz
gunzip $(SYSTEM_IMG).gz gunzip $(SYSTEM_IMG).gz
endif endif
ifeq ("$(wildcard $(WIFI_FW))","")
@echo "Downloading Wi-Fi firmware package ..."
wget $(WIFI_FW_URL) -O $(WIFI_FW)
endif
.PHONY: system-cleaner .PHONY: system-cleaner
system-img-cleaner: system-img-cleaner:
rm -f $(SYSTEM_IMG) rm -f $(SYSTEM_IMG)
rm -f $(WIFI_FW)
################################################################################ ################################################################################
# l-loader # l-loader
...@@ -382,7 +389,7 @@ send: ...@@ -382,7 +389,7 @@ send:
@tar czf - $(shell cd $(OUT_PATH) && echo $(OUT_PATH)/*.deb && echo $(ROOT)/linux-image-*.deb) | ssh linaro@$(IP) "cd /tmp; tar xvzf -" @tar czf - $(shell cd $(OUT_PATH) && echo $(OUT_PATH)/*.deb && echo $(ROOT)/linux-image-*.deb) | ssh linaro@$(IP) "cd /tmp; tar xvzf -"
@echo "Files has been sent to $$IP/tmp/ and $$IP/tmp/out" @echo "Files has been sent to $$IP/tmp/ and $$IP/tmp/out"
@echo "On the device, run:" @echo "On the device, run:"
@echo " dpkg --force-all -i /tmp/out/optee_$(OPTEE_PKG_VERSION).deb" @echo " dpkg --force-all -i /tmp/out/*.deb"
@echo " dpkg --force-all -i /tmp/linux-image-*.deb" @echo " dpkg --force-all -i /tmp/linux-image-*.deb"
################################################################################ ################################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment