To enable "adb over net" on epc1015/UX31A
Dear all,
虽然IA在UX31A上支持wifi,可进行无线adb调试,但若要在无法进入系统(或桌面)的时候调试,可以根据一下方法做修改以适应IA。
- 修改device/intel/core_mesa/init.core_mesa.rc,见附件。
- 修改device/intel/core_mesa/init.core_mesa.sh,下面mail中的4行
- UX31A的usb to eth转换器使用的是ASIX AX88系列驱动,可配置CONFIG_USB_NET_AX8817X=y,依赖CONFIG_USB_USBNET=y
build之后便可以通过有线进行adb调试:
#adb connect 192.168.130.*
#adb shell
Best Regards,
David Xu
50533
From: Daniel Wang(王麾_华硕上海)
Sent: 2011年12月1日 11:31
To: Joan Chang(张雅琼_华硕上海); David Xu(徐鹏_华硕上海); Paddy Yang(杨国东_华硕上海)
Cc: Robert Chao(趙鴻文); Mc Yang(楊孟秦); HongKai Wang(王鴻愷); Kenneth Jia(贾纪东_华硕上海)
Subject: [ICS]: To Enable "adb over net" on epc1015
Dear all,
谢谢Dennis和Kai的帮助,这是enable “adb over net”的方法:
1、 修改device/asus/asus_x86/init.rc
a) 找到setprop ro.EMPTY_APP_ADJ 15,在这一行之后依次加入以下三行
setprop ro.secure 0
setprop persist.adb.tcp.port 5555
setprop persist.secure.adb.enable 1
b) 打开最后的三行,即start_eths(含)之后的三行,同时把这一行最后的IP地址改为合适的IP地址(建议改成10网段的地址,我用的10.10.10.3,4~8目前都没有被使用,大家可以用)
2、 保险起见,再修改一下相应的init.ep121.sh,加入下面四行:
netcfg eth0 up
ifconfig eth0 10.10.10.3
stop adbd
start adbd
另,由于epc1015的ethernet的driver是atl1c,需要在kernel config中加入这个driver,它的位置在Device Drivers->network device support->Ethernet (1000MBit)-> Atheros L1C Gigabit Ethernet support (EXPERIMENTAL)。
重新build出的系统,当启动到boot animation(就是那个大大的ASUS出现)时,adb就可以通过网络使用了。命令是:
# adb connect 10.10.10.3
# adb shell
有任何问题,请让我知道,谢谢!
Yours Sincerly,
Daniel
SSD Shanghai
8-50526
init.core_mesa.rc
import init.bigcore.rc on post-fs-data #flag vold that post-fs-data is finished setprop vold.post_fs_data_done 1 on boot # basic network init ifup lo hostname localhost domainname localdomain setprop ro.secure 0 setprop persist.adb.tcp.port 5555 setprop persist.secure.adb.enable 1 service console /system/bin/sh console disabled user root group log on property:ro.secure=0 start console # Enable console temporarily if TARGET_BUILD_VARIANT=user on property:ro.secure=1 start console # adbd is controlled by the persist.service.adb.enable system property service adbd /sbin/adbd disabled on property:persist.service.adb.enable=1 start start_eths start adbd on property:persist.service.adb.enable=0 stop adbd service start_eths /system/bin/ifconfig eth0 192.168.130.106 oneshot disabled # additional initialization service core_mesa-setup /system/bin/sh /system/etc/init.core_mesa.sh class core oneshot
浙公网安备 33010602011771号