Skip to main content

启用ADB

1 kernel menuconfig

以x2000_darwin_factory_defconfig为例.

bhu@bhu-PC:~/work/build$ grep -nr "kernel" configs/x2000_darwin_factory_defconfig      //先查看kernel的配置
6:APP_kernel_dir=../kernel/kernel-x2000
7:APP_kernel_config=x2000_module_base_linux_sfc_nand_defconfig //kernel配置文件
bhu@bhu-PC:~/work/build$ cd ../kernel/kernel-x2000
bhu@bhu-PC:~/work/kernel/kernel-x2000$ make menuconfig

1

2

保存kernel配置

bhu@bhu-PC:~/work/kernel/kernel-x2000$ cp .config arch/mips/configs/x2000_module_base_linux_sfc_nand_defconfig

2 buildroot menuconfig

bhu@bhu-PC:~/work/build$ grep -nr "buildroot" configs/x2000_darwin_factory_defconfig    //先查看buildroot配置
8:APP_br_dir=../buildroot/buildroot //buildroot目录
9:APP_br_config_file=configs/buildroot/buildroot_x2000_darwin_debug //buildroot配置文件
457:# APP_br_root_login_keep_buildroot is not set
bhu@bhu-PC:~/work/build$ cd ../buildroot/buildroot
bhu@bhu-PC:~/work/buildroot/buildroot$ make menuconfig

选中adbd

3

保存buildroot 配置

bhu@bhu-PC:~/work/buildroot/buildroot$ cp .config ../../build/configs/buildroot/buildroot_x2000_darwin_debug

3 IconfigTool 配置

打开IConfigTool工具,选择配置文件

5

开启adb服务

4

Ctrl+S保存配置

6

4 编译烧录

重新编译配置

bhu@bhu-PC:~/work/build$ make x2000_darwin_factory_defconfig 

bhu@bhu-PC:~/work/build$ make

烧录固件, 没烧录过见烧录说明

5 测试

设备启动后,连上usb线

bhu@bhu-PC:~/work/build$ adb devices
List of devices attached
ingenic_4327 device

bhu@bhu-PC:~/work/build$ adb shell
#