|
发表于 2022-7-20 11:16:51
只看该作者
5#
本帖最后由 firefly_zhongw 于 2022-7-20 11:20 编辑
android系统,如果手动关闭eth0,接上USB以太网开启eth1的话,要让eth1能够连外网,需要在板子的/vendor/build.prop里添加如下属性:
ro.net.eth_primary=eth1
或者修改SDK源码,重新编译固件
- diff --git a/device/rockchip/rk356x/rk3566_roc_pc/rk3566_roc_pc.mk b/device/rockchip/rk356x/rk3566_roc_pc/rk3566_roc_pc.mk
- index 963dce12154..e05701e3e3a 100644
- --- a/device/rockchip/rk356x/rk3566_roc_pc/rk3566_roc_pc.mk
- +++ b/device/rockchip/rk356x/rk3566_roc_pc/rk3566_roc_pc.mk
- @@ -45,6 +45,7 @@ PRODUCT_PROPERTY_OVERRIDES += vendor.hwc.device.primary=HDMI-A
- PRODUCT_PROPERTY_OVERRIDES += ro.sf.lcd_density=280
- PRODUCT_PROPERTY_OVERRIDES += ro.wifi.sleep.power.down=true
- PRODUCT_PROPERTY_OVERRIDES += persist.usb.mode=otg
- +PRODUCT_PROPERTY_OVERRIDES += ro.net.eth_primary=eth1
-
- PRODUCT_COPY_FILES += \
- device/rockchip/rk356x/rk3566_roc_pc/gps/u-blox.conf:system/etc/u-blox.conf
复制代码
|
|