Enable Ethernet for Android Auto with mek_8q

Document created by Andy Tian Employee on Feb 12, 2020
Version 1Show Document
  • View in full screen mode

Default Ethernet feature is removed for Android Auto (both Android_Pie9.0 and Android10)
Below are the patched to bring Ethernet feature back to Android Auto. Please try to apply the according patches if you want to enable Ethernet.


For Android_Pie9.0_Auto(example with car2 build):

--- a/arch/arm64/configs/android_car2_defconfig

+++b/arch/arm64/configs/android_car2_defconfig

@@ -245,7 +245,7 @@ CONFIG_DM_VERITY_FEC=y

CONFIG_NETDEVICES=y

CONFIG_MACVTAP=m

CONFIG_TUN=y

-# CONFIG_ETHERNET is not set

+CONFIG_ETHERNET=y

CONFIG_MDIO_BUS_MUX_MMIOREG=m

CONFIG_AT803X_PHY=m

CONFIG_MARVELL_PHY=m

@@ -517,7 +517,7 @@ CONFIG_SQUASHFS=y

CONFIG_SQUASHFS_DECOMP_MULTI=y

CONFIG_SQUASHFS_XATTR=y

CONFIG_SQUASHFS_LZ4=y

-# CONFIG_NETWORK_FILESYSTEMS is not set

+CONFIG_NETWORK_FILESYSTEMS=y

 

--- a/imx8q/mek_8q/mek_8q.mk

+++ b/imx8q/mek_8q/mek_8q.mk

@@ -46,6 +46,7 @@ PRODUCT_COPY_FILES += \

     $(IMX_DEVICE_PATH)/fstab.freescale.car:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.freescale \

     $(IMX_DEVICE_PATH)/early.init_car.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/early.init.cfg \

     $(IMX_DEVICE_PATH)/required_hardware_auto.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/required_hardware.xml \

+    frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \

     device/fsl/imx8q/init.recovery.freescale.car.rc:root/init.recovery.freescale.rc

 

For Android10_Auto,(example with car build):

--- a/arch/arm64/configs/android_car_defconfig

+++ b/arch/arm64/configs/android_car_defconfig

@@ -23,6 +23,8 @@ CONFIG_SCHED_AUTOGROUP=y

CONFIG_SCHED_TUNE=y

CONFIG_RELAY=y

CONFIG_BLK_DEV_INITRD=y

+CONFIG_FEC=y

+CONFIG_AT803X_PHY=y

# CONFIG_RD_BZIP2 is not set

# CONFIG_RD_LZMA is not set

# CONFIG_RD_XZ is not set

@@ -246,7 +248,6 @@ CONFIG_DM_VERITY=y

CONFIG_DM_VERITY_FEC=y

CONFIG_NETDEVICES=y

CONFIG_TUN=y

-# CONFIG_ETHERNET is not set

 

--- a/imx8q/mek_8q/mek_8q.mk

+++ b/imx8q/mek_8q/mek_8q.mk

@@ -46,6 +46,7 @@ PRODUCT_COPY_FILES += \

     $(IMX_DEVICE_PATH)/fstab.freescale.car:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.freescale \

     $(IMX_DEVICE_PATH)/early.init_car.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/early.init.cfg \

     $(IMX_DEVICE_PATH)/required_hardware_auto.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/required_hardware.xml \

+    frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \

     device/fsl/imx8q/init.recovery.freescale.car.rc:root/init.recovery.freescale.rc

 

1 person found this helpful

Attachments

    Outcomes