diff options
Diffstat (limited to 'db845c')
-rw-r--r-- | db845c/device.mk | 11 | ||||
-rw-r--r-- | db845c/eth_mac_addr.rc | 9 | ||||
-rw-r--r-- | db845c/eth_mac_addr.sh | 15 | ||||
-rw-r--r-- | db845c/firmware/Android.mk | 4 | ||||
-rw-r--r-- | db845c/firmware/adspua.jsn | 27 | ||||
-rw-r--r-- | db845c/firmware/device.mk | 4 | ||||
-rw-r--r-- | db845c/firmware/modemuw.jsn | 33 |
7 files changed, 97 insertions, 6 deletions
diff --git a/db845c/device.mk b/db845c/device.mk index 5cdd38d..23299ad 100644 --- a/db845c/device.mk +++ b/db845c/device.mk @@ -24,8 +24,7 @@ PRODUCT_COPY_FILES := \ $(DB845C_KERNEL_DIR)/Image.gz:kernel \ $(DB845C_KERNEL_DIR)/sdm845-db845c.dtb:dtb.img \ device/linaro/dragonboard/fstab.ramdisk.common:$(TARGET_COPY_OUT_RAMDISK)/fstab.db845c \ - device/linaro/dragonboard/fstab.ramdisk.common:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.db845c \ - device/linaro/dragonboard/fstab.common:$(TARGET_COPY_OUT_VENDOR)/etc/init/fstab.db845c \ + device/linaro/dragonboard/fstab.common:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.db845c \ device/linaro/dragonboard/init.common.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.db845c.rc \ device/linaro/dragonboard/init.common.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.db845c.usb.rc \ device/linaro/dragonboard/common.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/db845c.kl @@ -33,10 +32,9 @@ PRODUCT_COPY_FILES := \ # Build generic Audio HAL PRODUCT_PACKAGES := audio.primary.db845c +# Build and install Qcom userspace tools to talk to dsp and modem PRODUCT_PACKAGES += \ pd-mapper \ - qrtr-ns \ - qrtr-cfg \ qrtr-lookup \ rmtfs \ tqftpserv @@ -44,5 +42,10 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ device/linaro/dragonboard/qcom/init.qcom.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.qcom.rc +# Install scripts to set Ethernet MAC address +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/eth_mac_addr.rc:/system/etc/init/eth_mac_addr.rc \ + $(LOCAL_PATH)/eth_mac_addr.sh:/system/bin/eth_mac_addr.sh + # Copy firmware files $(call inherit-product-if-exists, $(LOCAL_PATH)/firmware/device.mk) diff --git a/db845c/eth_mac_addr.rc b/db845c/eth_mac_addr.rc new file mode 100644 index 0000000..e710c19 --- /dev/null +++ b/db845c/eth_mac_addr.rc @@ -0,0 +1,9 @@ +service eth_mac_addr /system/bin/eth_mac_addr.sh + class core + user root + group system + disabled + oneshot + +on post-fs-data + start eth_mac_addr diff --git a/db845c/eth_mac_addr.sh b/db845c/eth_mac_addr.sh new file mode 100644 index 0000000..bdc1ba7 --- /dev/null +++ b/db845c/eth_mac_addr.sh @@ -0,0 +1,15 @@ +#! /system/bin/sh +# Set eth0 mac address. +# +# Get the unique board serial number from /proc/cmdline, +# prepend '0's to the serial number to fill 5 LSBs of the +# MAC address and prepend "02" as MSB to prepare a 6 byte +# locally administered unicast MAC address. +# Format the output in xx:xx:xx:xx:xx:xx format for the +# "ip" set address command to work. + +SERIALNO=`cat /proc/cmdline | grep -o serialno.* | cut -f2 -d'=' | awk '{printf("02%010s\n", $1)}' | sed 's/\(..\)/\1:/g' | sed '$s/:$//'` + +/system/bin/ip link set dev eth0 down +/system/bin/ip link set dev eth0 address "${SERIALNO}" +/system/bin/ip link set dev eth0 up diff --git a/db845c/firmware/Android.mk b/db845c/firmware/Android.mk index 3af24e3..6c3dc4b 100644 --- a/db845c/firmware/Android.mk +++ b/db845c/firmware/Android.mk @@ -34,6 +34,7 @@ sdm845_firmware_files += \ adsp.b12 \ adsp.b13 \ adsp.mdt \ + adspua.jsn \ cdsp.b00 \ cdsp.b01 \ cdsp.b02 \ @@ -104,7 +105,8 @@ firmware_files += \ # wifi/modem/mba sdm845_firmware_files += \ mba.mbn \ - modem.mbn + modem.mbn \ + modemuw.jsn # License firmware_files += \ diff --git a/db845c/firmware/adspua.jsn b/db845c/firmware/adspua.jsn new file mode 100644 index 0000000..e75e83f --- /dev/null +++ b/db845c/firmware/adspua.jsn @@ -0,0 +1,27 @@ +{ + "sr_version": { + "major": 1, + "minor": 1, + "patch": 1 + }, + "sr_domain": { + "soc": "msm", + "domain": "adsp", + "subdomain": "audio_pd", + "qmi_instance_id": 74 + }, + "sr_service": [ + { + "provider": "tms", + "service": "servreg", + "service_data_valid": 0, + "service_data": 0 + }, + { + "provider": "avs", + "service": "audio", + "service_data_valid": 0, + "service_data": 0 + } + ] +} diff --git a/db845c/firmware/device.mk b/db845c/firmware/device.mk index 7611aa8..78a1d8f 100644 --- a/db845c/firmware/device.mk +++ b/db845c/firmware/device.mk @@ -28,6 +28,7 @@ PRODUCT_PACKAGES += \ adsp.b12 \ adsp.b13 \ adsp.mdt \ + adspua.jsn \ cdsp.b00 \ cdsp.b01 \ cdsp.b02 \ @@ -50,7 +51,8 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ mba.mbn \ - modem.mbn + modem.mbn \ + modemuw.jsn # Venus # Video encoder/decoder accelerator diff --git a/db845c/firmware/modemuw.jsn b/db845c/firmware/modemuw.jsn new file mode 100644 index 0000000..4322190 --- /dev/null +++ b/db845c/firmware/modemuw.jsn @@ -0,0 +1,33 @@ +{ + "sr_version": { + "major": 1, + "minor": 1, + "patch": 1 + }, + "sr_domain": { + "soc": "msm", + "domain": "modem", + "subdomain": "wlan_pd", + "qmi_instance_id": 180 + }, + "sr_service": [ + { + "provider": "kernel", + "service": "elf_loader", + "service_data_valid": 0, + "service_data": 0 + }, + { + "provider": "tms", + "service": "servreg", + "service_data_valid": 0, + "service_data": 0 + }, + { + "provider": "wlan", + "service": "fw", + "service_data_valid": 0, + "service_data": 0 + } + ] +} |