summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2016-01-15 15:57:30 -0600
committerRob Herring <robh@kernel.org>2016-01-15 15:57:30 -0600
commit05866b98fabfd1d4cb1a3020206e7eab21c879ca (patch)
treefc9151328c0fb86ff1c5e89363f077b137f35f64
parent7879dea60d575384850f72a99ac90e7e5b5d86e8 (diff)
downloadgeneric-05866b98fabfd1d4cb1a3020206e7eab21c879ca.tar.gz
Enable ethernet support
This still doesn't quite work in QEMU. Signed-off-by: Rob Herring <robh@kernel.org>
-rw-r--r--device.mk3
-rw-r--r--init.rc11
2 files changed, 14 insertions, 0 deletions
diff --git a/device.mk b/device.mk
index bce41e7..79e6279 100644
--- a/device.mk
+++ b/device.mk
@@ -36,6 +36,9 @@ PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
$(LOCAL_PATH)/ueventd.rc:root/ueventd.unknown.rc \
$(LOCAL_PATH)/fstab:root/fstab.unknown)
+PRODUCT_COPY_FILES += \
+ frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml
+
PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
$(LOCAL_PATH)/a300_pfp.fw:root/lib/firmware/a300_pfp.fw \
$(LOCAL_PATH)/a300_pm4.fw:root/lib/firmware/a300_pm4.fw \
diff --git a/init.rc b/init.rc
index 8fd460f..8c17eb7 100644
--- a/init.rc
+++ b/init.rc
@@ -33,3 +33,14 @@ on boot
setprop status.battery.level 5
setprop status.battery.level_raw 50
setprop status.battery.level_scale 9
+
+service dhcpcd_eth0 /system/bin/dhcpcd -aABDKL
+ class late_start
+ disabled
+ oneshot
+
+service iprenew_eth0 /system/bin/dhcpcd -n
+ class late_start
+ disabled
+ oneshot
+