WhyCan Forum

本站无需注册,无需积分,无需回复可下载所有资料,如果真的喜欢小站,请您注册之后请至少回复一个帖子激活Id,谢谢支持! 站长QQ: 516333132 (挖坑网/填坑网) admin@whycan.cn

您尚未登录。

#1 2019-08-22 21:39:17

checkout
会员
注册时间: 2018-11-09
累计积分: 70

分享个licheepi nano镜像,支持adb调试

烧写参考这里:https://whycan.cn/t_2179.html
其中,boot.scr、zImage、xx.dtb放到第一分区(FAT16),解压rootfs.tar到第二分区(ext4)
启动到uboot,执行命令:run distro_bootcmd 加载内核
启动到shell,执行命令:sh run_adbd.sh 运行adbd
最后,插入电脑,会看到一个ADB Interface设备
nano-adbd4_14-exp.rar

离线

#2 2019-08-22 21:48:26

checkout
会员
注册时间: 2018-11-09
累计积分: 70

Re: 分享个licheepi nano镜像,支持adb调试

adbd的移植,buildroot配置adb-tools即可
内核配置文件nano_kernel_config.tgz(不是压缩文件,直接改名.config替换即可)

最近编辑记录 checkout (2019-08-22 22:05:33)

离线

#3 2019-08-23 09:44:54

firstman
会员
注册时间: 2019-04-06
累计积分: 154

Re: 分享个licheepi nano镜像,支持adb调试

奇怪, rootfs 里面没有发现 run_adbd.sh

离线

#4 2019-08-23 09:58:12

firstman
会员
注册时间: 2019-04-06
累计积分: 154

Re: 分享个licheepi nano镜像,支持adb调试

firstman 说:

奇怪, rootfs 里面没有发现 run_adbd.sh

https://github.com/rockchip-linux/linux-adb/raw/master/run_adbd.sh

#! /bin/sh

UDC=`ls /sys/class/udc/| awk '{print $1}'`

mkdir /dev/usb-ffs -m 0770 
mkdir /dev/usb-ffs/adb -m 0770 

mkdir /sys/kernel/config/usb_gadget/g1  -m 0770 

sleep 1

echo 0x2207 > /sys/kernel/config/usb_gadget/g1/idVendor 
echo 0x0006 > /sys/kernel/config/usb_gadget/g1/idProduct

mkdir /sys/kernel/config/usb_gadget/g1/strings/0x409   -m 0770 

sleep 1

echo "0123456789ABCDEF" > /sys/kernel/config/usb_gadget/g1/strings/0x409/serialnumber
echo "rockchip"  > /sys/kernel/config/usb_gadget/g1/strings/0x409/manufacturer
echo "rk3xxx"  > /sys/kernel/config/usb_gadget/g1/strings/0x409/product

sleep 1

mkdir /sys/kernel/config/usb_gadget/g1/functions/ffs.adb
mkdir /sys/kernel/config/usb_gadget/g1/configs/b.1  -m 0770 
mkdir /sys/kernel/config/usb_gadget/g1/configs/b.1/strings/0x409  -m 0770 

sleep 1

ln -s  /sys/kernel/config/usb_gadget/g1/functions/ffs.adb /sys/kernel/config/usb_gadget/g1/configs/b.1
echo "adb" > /sys/kernel/config/usb_gadget/g1/configs/b.1/strings/0x409/configuration
mount -t functionfs adb /dev/usb-ffs/adb

adbd  &

这个弄进去有问题,:

#  run_adbd.sh
mkdir: can't create directory '/sys/kernel/config/usb_gadget/g1': No such file or directory
/bin/run_adbd.sh: line 12: can't create /sys/kernel/config/usb_gadget/g1/idVendor: nonexistent directory
/bin/run_adbd.sh: line 13: can't create /sys/kernel/config/usb_gadget/g1/idProduct: nonexistent directory
mkdir: can't create directory '/sys/kernel/config/usb_gadget/g1/strings/0x409': No such file or directory
/bin/run_adbd.sh: line 19: can't create /sys/kernel/config/usb_gadget/g1/strings/0x409/serialnumber: nonexistent directory
/bin/run_adbd.sh: line 20: can't create /sys/kernel/config/usb_gadget/g1/strings/0x409/manufacturer: nonexistent directory
/bin/run_adbd.sh: line 21: can't create /sys/kernel/config/usb_gadget/g1/strings/0x409/product: nonexistent directory
mkdir: can't create directory '/sys/kernel/config/usb_gadget/g1/functions/ffs.adb': No such file or directory
mkdir: can't create directory '/sys/kernel/config/usb_gadget/g1/configs/b.1': No such file or directory
mkdir: can't create directory '/sys/kernel/config/usb_gadget/g1/configs/b.1/strings/0x409': No such file or directory
ln: /sys/kernel/config/usb_gadget/g1/configs/b.1: No such file or directory
/bin/run_adbd.sh: line 32: can't create /sys/kernel/config/usb_gadget/g1/configs/b.1/strings/0x409/configuration: nonexistent directory
[  952.353269] ------------[ cut here ]------------
[  952.357969] WARNING: CPU: 0 PID: 143 at fs/filesystems.c:282 get_fs_type+0xf8/0x110
[  952.365750] request_module fs-functionfs succeeded, but still no fs?
[  952.372147] Modules linked in: usb_f_fs libcomposite
[  952.377148] CPU: 0 PID: 143 Comm: mount Not tainted 4.14.0-licheepi-nano #7
[  952.384130] Hardware name: Allwinner suniv Family
[  952.388914] [<c010e8c0>] (unwind_backtrace) from [<c010ba10>] (show_stack+0x10/0x14)
[  952.396730] [<c010ba10>] (show_stack) from [<c0116a74>] (__warn+0xd4/0xfc)
[  952.403660] [<c0116a74>] (__warn) from [<c0116ad4>] (warn_slowpath_fmt+0x38/0x48)
[  952.411202] [<c0116ad4>] (warn_slowpath_fmt) from [<c01e618c>] (get_fs_type+0xf8/0x110)
[  952.419223] [<c01e618c>] (get_fs_type) from [<c01e9478>] (do_mount+0x1c0/0xb58)
[  952.426589] [<c01e9478>] (do_mount) from [<c01ea148>] (SyS_mount+0x54/0xc0)
[  952.433606] [<c01ea148>] (SyS_mount) from [<c0108060>] (ret_fast_syscall+0x0/0x44)
[  952.441201] ---[ end trace 803250e82eace444 ]---
mount: /dev/usb-ffs/adb: unknown filesystem type 'functionfs'.
# install_listener('tcp:5037','*smartsocket*')
Using USB

离线

#5 2019-08-23 10:01:11

xm1994
会员
注册时间: 2019-07-03
累计积分: 24

Re: 分享个licheepi nano镜像,支持adb调试

试试先

 mount -t configfs none /sys/kernel/config

离线

#6 2019-08-23 10:29:49

firstman
会员
注册时间: 2019-04-06
累计积分: 154

Re: 分享个licheepi nano镜像,支持adb调试

加了, 但是电脑上仍然没有反应, 看来还是脚本不太对。

离线

#7 2019-08-23 11:00:05

checkout
会员
注册时间: 2018-11-09
累计积分: 70

Re: 分享个licheepi nano镜像,支持adb调试

漏了,脚本如下:

#! /bin/sh
modprobe g_ffs idVendor=0x18d1 idProduct=0x4e42 iSerialNumber="buildroot"
mkdir -p /dev/usb-ffs/adb
mount -t functionfs adb /dev/usb-ffs/adb -o uid=2000,gid=2000
adbd &
firstman 说:

加了, 但是电脑上仍然没有反应, 看来还是脚本不太对。

最近编辑记录 checkout (2019-08-23 11:01:03)

离线

#8 2019-08-23 11:12:55

firstman
会员
注册时间: 2019-04-06
累计积分: 154

Re: 分享个licheepi nano镜像,支持adb调试

adbd_ok.png

真可以了, 奔走相告 ^_^

adb shell/push/pull 都可以了

妈妈再也不用为我收发文件操心了。

感谢各位大神!

最近编辑记录 firstman (2019-08-23 11:16:23)

离线

#9 2019-08-23 13:49:47

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 7,403

Re: 分享个licheepi nano镜像,支持adb调试

我把楼主的文件写到TF卡, 然后 dump 出来一个 bin 文件, 大家可以测试下载: f1c100s_4_14_128M_tfcard_dump_bin.7z

解压后 dd 到 TF 卡即可:

sudo dd if=f1c100s_4.14_128M_tfcard_dump.bin of=/dev/sdX

1. 添加了可执行文件 etc/init.d/S50adbd

#! /bin/sh
modprobe g_ffs idVendor=0x18d1 idProduct=0x4e42 iSerialNumber="buildroot"
mkdir -p /dev/usb-ffs/adb
mount -t functionfs adb /dev/usb-ffs/adb -o uid=2000,gid=2000
adbd &

2. 免输入密码登录,  修改 etc/inittab

console::respawn:/sbin/getty -L  console 0 vt100 # GENERIC_SERIAL

改为:

console::respawn:-/bin/sh


这样处理之后, 插入USB就能自动进入ADB, 什么命令都不用输入了。

离线

#10 2019-08-23 16:49:34

xyzijk
会员
注册时间: 2019-08-23
累计积分: 4

Re: 分享个licheepi nano镜像,支持adb调试

晕哥 说:

我把楼主的文件写到TF卡, 然后 dump 出来一个 bin 文件, 大家可以测试下载: f1c100s_4_14_128M_tfcard_dump_bin.7z

解压后 dd 到 TF 卡即可:

sudo dd if=f1c100s_4.14_128M_tfcard_dump.bin of=/dev/sdX

1. 添加了可执行文件 etc/init.d/S50adbd

#! /bin/sh
modprobe g_ffs idVendor=0x18d1 idProduct=0x4e42 iSerialNumber="buildroot"
mkdir -p /dev/usb-ffs/adb
mount -t functionfs adb /dev/usb-ffs/adb -o uid=2000,gid=2000
adbd &

2. 免输入密码登录,  修改 etc/inittab

console::respawn:/sbin/getty -L  console 0 vt100 # GENERIC_SERIAL

改为:

console::respawn:-/bin/sh


这样处理之后, 插入USB就能自动进入ADB, 什么命令都不用输入了。



测试了一下,果然好用

离线

#11 2019-08-24 12:12:27

Jmhh247
会员
注册时间: 2018-12-21
累计积分: 114

Re: 分享个licheepi nano镜像,支持adb调试

多谢分享,回头测试下

离线

#12 2019-08-25 14:18:38

Jmhh247
会员
注册时间: 2018-12-21
累计积分: 114

Re: 分享个licheepi nano镜像,支持adb调试

晕哥 说:

我把楼主的文件写到TF卡, 然后 dump 出来一个 bin 文件, 大家可以测试下载: f1c100s_4_14_128M_tfcard_dump_bin.7z

解压后 dd 到 TF 卡即可:

sudo dd if=f1c100s_4.14_128M_tfcard_dump.bin of=/dev/sdX

1. 添加了可执行文件 etc/init.d/S50adbd

#! /bin/sh
modprobe g_ffs idVendor=0x18d1 idProduct=0x4e42 iSerialNumber="buildroot"
mkdir -p /dev/usb-ffs/adb
mount -t functionfs adb /dev/usb-ffs/adb -o uid=2000,gid=2000
adbd &

2. 免输入密码登录,  修改 etc/inittab

console::respawn:/sbin/getty -L  console 0 vt100 # GENERIC_SERIAL

改为:

console::respawn:-/bin/sh


这样处理之后, 插入USB就能自动进入ADB, 什么命令都不用输入了。


adb-test.png

请教晕哥,用你提供的bin,进去之后是这个样子。adb这里显示乱码,正常吗

没玩过adb,可以干啥用,有简单的教程没...

最近编辑记录 Jmhh247 (2019-08-25 14:18:53)

离线

#13 2019-08-25 14:52:18

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 7,403

Re: 分享个licheepi nano镜像,支持adb调试

这个是正常的,因为 windows 自带的终端显示不支持 *nix 这种颜色终端显示,你下载一个 adb 版本的 putty 是没有问题的

离线

#14 2019-08-26 08:36:43

Jmhh247
会员
注册时间: 2018-12-21
累计积分: 114

Re: 分享个licheepi nano镜像,支持adb调试

晕哥 说:

这个是正常的,因为 windows 自带的终端显示不支持 *nix 这种颜色终端显示,你下载一个 adb 版本的 putty 是没有问题的

换了个putty果然好了!

离线

#15 2019-08-26 16:03:15

jimmy
Moderator
注册时间: 2017-10-29
累计积分: 175

Re: 分享个licheepi nano镜像,支持adb调试

感谢楼上的各位大神,用 linux adb 连接没有问题,一切OK,颜色正常,可以push pull 文件。

离线

#16 2019-08-26 20:55:07

超级萌新
会员
注册时间: 2018-05-04
累计积分: 267

Re: 分享个licheepi nano镜像,支持adb调试

-连接方式选择 adb

-host上填"transport-usb"  引号不要(或者是别的连接字符串 具体查看 adb sockey interface 的文档)

-端口填 5037

配置如下:

20180107015355826.png

adb版本 putty 下载地址: https://github.com/sztupy/adbputty/downloads

离线

#17 2019-08-28 09:49:52

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 184

Re: 分享个licheepi nano镜像,支持adb调试

checkout 说:

adbd的移植,buildroot配置adb-tools即可
内核配置文件nano_kernel_config.tgz(不是压缩文件,直接改名.config替换即可)

v3s不知道怎么配置?

离线

#18 2019-08-28 10:26:14

checkout
会员
注册时间: 2018-11-09
累计积分: 70

Re: 分享个licheepi nano镜像,支持adb调试

内核配置USB部分可以看我上面f1c的

晕哥小弟 说:
checkout 说:

adbd的移植,buildroot配置adb-tools即可
内核配置文件nano_kernel_config.tgz(不是压缩文件,直接改名.config替换即可)

v3s不知道怎么配置?

离线

#19 2019-08-28 13:40:45

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 184

Re: 分享个licheepi nano镜像,支持adb调试

TIM20190828133951.png
这个软件有使用过么?@晕哥

离线

#20 2019-08-28 13:53:02

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 7,403

Re: 分享个licheepi nano镜像,支持adb调试

晕哥小弟 说:

没有用过, 方便传一个上来吗?

离线

#21 2019-08-29 09:35:22

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 184

Re: 分享个licheepi nano镜像,支持adb调试

离线

#22 2019-08-29 09:36:45

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 184

Re: 分享个licheepi nano镜像,支持adb调试

20190829093543.png

v3s 的gadget的配置部分,和楼上的配置不一样。找不到几个选项。

离线

#23 2019-08-29 09:55:45

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 7,403

Re: 分享个licheepi nano镜像,支持adb调试

你选中这个改成模块方式编译: M



晕哥小弟 说:

谢谢

离线

#24 2019-08-29 09:59:43

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 184

Re: 分享个licheepi nano镜像,支持adb调试

20190829093543_20190829-0958.png

其实M和*都是一样,只是M可以看到其他选项而已。就是和你 https://whycan.cn/t_2179.html
配置Gadget不一样。

离线

#25 2019-08-29 10:06:19

checkout
会员
注册时间: 2018-11-09
累计积分: 70

Re: 分享个licheepi nano镜像,支持adb调试

选gadgetfs,fuctionfs

晕哥小弟 说:

https://whycan.cn/files/members/1569/20190829093543.png

v3s 的gadget的配置部分,和楼上的配置不一样。找不到几个选项。

离线

#26 2019-08-29 10:17:24

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 184

Re: 分享个licheepi nano镜像,支持adb调试

20190829093543_20190829-1017.png
这样对么?

离线

#27 2019-08-29 10:55:16

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 7,403

Re: 分享个licheepi nano镜像,支持adb调试

对, 没有问题, 先试一试。

然后7楼的脚本用上 https://whycan.cn/t_2794.html#p22752

离线

#28 2019-08-29 11:07:29

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 184

Re: 分享个licheepi nano镜像,支持adb调试

运行了脚本:

#! /bin/sh
modprobe g_ffs idVendor=0x18d1 idProduct=0x4e42 iSerialNumber="buildroot"
mkdir -p /dev/usb-ffs/adb
mount -t functionfs adb /dev/usb-ffs/adb -o uid=2000,gid=2000
adbd &

20190829093543_20190829-1106.png

离线

#29 2019-08-29 11:10:04

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 184

Re: 分享个licheepi nano镜像,支持adb调试

发现kernel目录下有个out。里面是别人编译的。如何生成属于我自己的out?

离线

#30 2019-08-29 11:11:48

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 7,403

Re: 分享个licheepi nano镜像,支持adb调试

ARCH=arm CROSS_COMPILE=arm-linux- INSTALL_MOD_PATH=/opt/f1c100s/buildroot-2019.02.2/output/target/ make modules_install

得把你的 ko 文件用上面的命令安装到你的根文件系统(根据具体情况调整参数)

离线

#31 2019-08-29 11:16:57

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 184

Re: 分享个licheepi nano镜像,支持adb调试

20190829093543_20190829-1116.png
按照晕哥的提示,调整了。但是运行脚本后。一直打印。PC端一点反应也没有?

离线

#32 2019-08-29 11:20:55

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 7,403

Re: 分享个licheepi nano镜像,支持adb调试

你的 Linux 是什么版本, USB Gadget 本身有没有问题?也就是说默认那个USB串口是否OK ?

看log好像 USB 一直在复位??? 换一条手机原装的USB线试一试, 或者换一台电脑试一试。

离线

#33 2019-08-29 11:23:05

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 184

Re: 分享个licheepi nano镜像,支持adb调试

1、数据线和电脑没有问题,电脑可以通过adb访问手机。
2、bsp 内核 3.4
3、默认的USB串口怎么查?

离线

#34 2019-08-29 11:27:58

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 7,403

Re: 分享个licheepi nano镜像,支持adb调试

晕哥小弟 说:

1、数据线和电脑没有问题,电脑可以通过adb访问手机。
2、bsp 内核 3.4
3、默认的USB串口怎么查?

默认的USB串口是荔枝派主线Linux的默认配置

那你试一试 gadget usb serial 是否正常吧.

配置,编译,安装
modprobe g_serial

然后电脑应该有一个 USB 串口.

离线

#35 2019-08-29 11:35:40

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 184

Re: 分享个licheepi nano镜像,支持adb调试

modprobe: can't load module g_serial.ko (/lib/modules/3.4.39/kernel/drivers/usb/gadget/g_serial.ko): No such device

离线

#36 2019-08-29 11:36:47

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 184

Re: 分享个licheepi nano镜像,支持adb调试

我改了下 modules.dep

# cat /lib/modules/3.4.39/modules.dep
kernel/fs/fatfs/fatfs.ko:
kernel/drivers/scsi/scsi_wait_scan.ko:
kernel/drivers/usb/gadget/g_ether.ko:
kernel/drivers/usb/gadget/gadgetfs.ko:
kernel/drivers/usb/gadget/g_ffs.ko:
/lib/modules/3.4.39/kernel/drivers/usb/gadget/g_serial.ko:
kernel/drivers/input/sw-device.ko:
kernel/drivers/hwmon/da380/da380.ko:

离线

#37 2019-08-29 11:40:25

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 184

Re: 分享个licheepi nano镜像,支持adb调试

20190829093543_20190829-1140.png
会不会是这里选择错误了?

离线

#38 2019-08-29 13:36:19

checkout
会员
注册时间: 2018-11-09
累计积分: 70

Re: 分享个licheepi nano镜像,支持adb调试

你看看相关的.ko有没有存在

晕哥小弟 说:

最近编辑记录 checkout (2019-08-29 13:36:58)

离线

#39 2019-08-29 13:39:22

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 184

Re: 分享个licheepi nano镜像,支持adb调试

g_serial.ko  是存在的。

离线

#40 2019-08-29 14:00:44

checkout
会员
注册时间: 2018-11-09
累计积分: 70

Re: 分享个licheepi nano镜像,支持adb调试

insmod试试,或者depmod -a搞搞
你没有用buildroot??

晕哥小弟 说:

g_serial.ko  是存在的。

最近编辑记录 checkout (2019-08-29 14:02:08)

离线

#41 2019-08-29 14:12:56

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 184

Re: 分享个licheepi nano镜像,支持adb调试

我瞎配置了内核。把所有的gadget的选型都选择了M。
现在可以运行g_serial.ko了。
但是运行了,PC端没有任何反应。
20190829093543_20190829-1412.png

离线

#42 2019-08-29 14:18:57

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 7,403

Re: 分享个licheepi nano镜像,支持adb调试

看下 sys_config.fex, 通过配置 决定是手动切换/GPIO检测自动切换 usb device /host

离线

#43 2019-08-29 14:27:31

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 184

Re: 分享个licheepi nano镜像,支持adb调试

20190829093543_20190829-1426.png
改了fex文件,但是还是没有任何反应。

dmesg有个

[   20.036504] gadget_is_softwinner_otg is not -int
[   20.036511] gadget_is_softwinner_otg is not -int
[   20.036531] g_serial gadget: Gadget Serial v2.4
[   20.042744] g_serial gadget: g_serial ready

离线

#44 2019-08-29 14:46:23

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 7,403

Re: 分享个licheepi nano镜像,支持adb调试

https://forums.hak5.org/topic/44592-usb0-and-usb1-not-found/
https://forum.pine64.org/printthread.php?tid=6227

网上随便一搜, 很多这种问题。

貌似都没看到如何解决。




试一试这个:

http://git.linux-sunxi.cn/?file=001-OrangePi/04-%E8%BF%9B%E9%98%B6/07-%E4%BF%AE%E6%94%B9OTG%E5%8F%A3%E6%A8%A1%E5%BC%8F%E4%B8%BAdevice

修改OTG口模式为device
执行

echo "2" > /sys/bus/platform/devices/sunxi_usb_udc/otg_role
你得先看看有没有这个文件,没有的话,那就试试这个路径

echo "2" > /sys/devices/platform/sunxi_otg/otg_role

离线

#45 2019-08-29 14:50:41

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 184

Re: 分享个licheepi nano镜像,支持adb调试

我发现板卡中出现了  /dev/ttyGS0

离线

#46 2019-08-29 17:52:53

checkout
会员
注册时间: 2018-11-09
累计积分: 70

Re: 分享个licheepi nano镜像,支持adb调试

4.13-y版本完全没问题
adbd_v3s.jpg
启动log:

reading zImage
3911360 bytes read in 219 ms (17 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
12671 bytes read in 32 ms (385.7 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42df9000, end 42dff17e ... OK
Cannot setup simplefb: node not found

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero (root@ubuntu) (gcc version 7.3.0 (Buildroot 2018.08.2)) #2 SMP Thu Aug 29 17:16:35 CST 2019
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Zero with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3f5e000 s33868 r8192 d23476 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 55092K/65536K available (6144K kernel code, 215K rwdata, 1432K rodata, 1024K init, 261K bss, 10444K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4800000 - 0xff800000   ( 944 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a35d00   ( 216 kB)
[    0.000000]        .bss : 0xc0a3c7e4 - 0xc0a7df2c   ( 262 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000020] Switching to timer-based delay loop, resolution 41ns
[    0.000185] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000435] Console: colour dummy device 80x30
[    0.000470] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000484] pid_max: default: 32768 minimum: 301
[    0.000610] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000627] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001228] CPU: Testing write buffer coherency: ok
[    0.001601] /cpus/cpu@0 missing clock-frequency property
[    0.001625] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002082] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002266] Hierarchical SRCU implementation.
[    0.002758] smp: Bringing up secondary CPUs ...
[    0.002772] smp: Brought up 1 node, 1 CPU
[    0.002781] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002787] CPU: All CPU(s) started in SVC mode.
[    0.003548] devtmpfs: initialized
[    0.006818] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007113] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007139] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007312] pinctrl core: initialized pinctrl subsystem
[    0.008163] random: get_random_u32 called from bucket_table_alloc+0x110/0x238 with crng_init=0
[    0.008301] NET: Registered protocol family 16
[    0.008758] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009849] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009866] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023681] SCSI subsystem initialized
[    0.024025] usbcore: registered new interface driver usbfs
[    0.024113] usbcore: registered new interface driver hub
[    0.024209] usbcore: registered new device driver usb
[    0.024464] pps_core: LinuxPPS API ver. 1 registered
[    0.024475] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024497] PTP clock support registered
[    0.024737] Advanced Linux Sound Architecture Driver Initialized.
[    0.026530] clocksource: Switched to clocksource arch_sys_counter
[    0.037009] NET: Registered protocol family 2
[    0.037590] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.037625] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.037648] TCP: Hash tables configured (established 1024 bind 1024)
[    0.037773] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.037821] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038035] NET: Registered protocol family 1
[    0.038641] RPC: Registered named UNIX socket transport module.
[    0.038659] RPC: Registered udp transport module.
[    0.038664] RPC: Registered tcp transport module.
[    0.038670] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.040702] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.049736] NFS: Registering the id_resolver key type
[    0.049790] Key type id_resolver registered
[    0.049798] Key type id_legacy registered
[    0.050843] random: fast init done
[    0.053702] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.053724] io scheduler noop registered
[    0.053731] io scheduler deadline registered
[    0.053940] io scheduler cfq registered (default)
[    0.053951] io scheduler mq-deadline registered
[    0.053958] io scheduler kyber registered
[    0.058409] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.058926] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    0.127896] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.131069] console [ttyS0] disabled
[    0.151326] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 37, base_baud = 18750000) is a U6_16550A
[    0.739345] console [ttyS0] enabled
[    0.764364] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 38, base_baud = 18750000) is a U6_16550A
[    0.794951] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 39, base_baud = 18750000) is a U6_16550A
[    0.805261] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE0
[    0.813066] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE1
[    0.820771] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE2
[    0.828459] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE3
[    0.836132] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE4
[    0.843816] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE5
[    0.851499] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE6
[    0.859180] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE7
[    0.866862] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE8
[    0.874533] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE9
[    0.882215] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE10
[    0.889983] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE11
[    0.897752] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE12
[    0.905510] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE13
[    0.913278] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE14
[    0.921046] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE15
[    0.928815] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE16
[    0.936583] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE17
[    0.944342] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE18
[    0.952110] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE19
[    0.959877] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE23
[    0.967646] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE24
[    0.977185] panel-simple panel: panel supply power not found, using dummy regulator
[    0.986376] libphy: Fixed MDIO Bus: probed
[    0.991131] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.997031] dwmac-sun8i 1c30000.ethernet: No regulator found
[    1.002762] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    1.008982] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    1.014665] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    1.021941] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    1.027627] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    1.034862] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    1.039847] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    1.046835] libphy: stmmac: probed
[    1.052140] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.058821] ehci-platform: EHCI generic platform driver
[    1.064361] ehci-platform 1c1a000.usb: EHCI Host Controller
[    1.070084] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    1.078046] ehci-platform 1c1a000.usb: irq 27, io mem 0x01c1a000
[    1.106543] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.113745] hub 1-0:1.0: USB hub found
[    1.117710] hub 1-0:1.0: 1 port detected
[    1.122233] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.128560] ohci-platform: OHCI generic platform driver
[    1.134147] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.140892] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.148855] ohci-platform 1c1a400.usb: irq 28, io mem 0x01c1a400
[    1.221686] hub 2-0:1.0: USB hub found
[    1.225521] hub 2-0:1.0: 1 port detected
[    1.233791] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.242869] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.249795] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.254379] i2c /dev entries driver
[    1.259409] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.268996] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.336765] sunxi-mmc 1c0f000.mmc: base:0xc4985000 irq:24
[    1.383661] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.393689] mmc0: new high speed SDHC card at address 0001
[    1.399716] sunxi-mmc 1c10000.mmc: base:0xc4989000 irq:25
[    1.406121] usbcore: registered new interface driver usbhid
[    1.411807] usbhid: USB HID core driver
[    1.416438] mmcblk0: mmc0:0001 SD8GB 7.28 GiB 
[    1.423089] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.431165] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.437687]  mmcblk0: p1 p2
[    1.445759] NET: Registered protocol family 17
[    1.450490] Key type dns_resolver registered
[    1.454907] Registering SWP/SWPB emulation handler
[    1.464905] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    1.474515] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE0
[    1.482366] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE1
[    1.490085] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE2
[    1.497775] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE3
[    1.505446] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE4
[    1.513131] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE5
[    1.520813] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE6
[    1.528495] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE7
[    1.536166] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE8
[    1.543846] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE9
[    1.551529] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE10
[    1.559297] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE11
[    1.567066] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE12
[    1.574824] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE13
[    1.582594] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE14
[    1.590364] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE15
[    1.598133] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE16
[    1.605891] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE17
[    1.613661] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE18
[    1.621431] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE19
[    1.629200] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE23
[    1.636969] sun8i-v3s-pinctrl 1c20800.pinctrl: unsupported function lcd0 on pin PE24
[    1.645098] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.651850] [drm] No driver support for vblank timestamp query.
[    1.667267] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc073ed78)
[    1.674668] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc073dbf8)
[    1.723755] Console: switching to colour frame buffer device 100x30
[    1.746916] sun4i-drm display-engine: fb0:  frame buffer device
[    1.753480] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.762008] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.773529] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.779405] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.788494] hub 3-0:1.0: USB hub found
[    1.792331] hub 3-0:1.0: 1 port detected
[    1.799658] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.808366] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    1.817613] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:12 UTC (12)
[    1.825921] vcc5v0: disabling
[    1.829009] ALSA device list:
[    1.831989]   #0: V3s Audio Codec
[    1.837727] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.846932] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    2.272992] EXT4-fs (mmcblk0p2): recovery complete
[    2.280017] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.288260] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.294495] devtmpfs: mounted
[    2.298789] Freeing unused kernel memory: 1024K
[    2.478403] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting logging: OK
Starting mdev...
Initializing random number generator... done.
Starting system message bus: done
Starting network: OK

Welcome to Buildroot
buildroot login: root
# sh run_adbd.sh 
[   14.138960] file system registered
# install_listener('tcp:5037','*smartsocket*')[   14.238566] read descriptors

[   14.244427] read strings
[   14.247383] g_ffs gadget: g_ffs ready

最近编辑记录 checkout (2019-08-29 18:00:54)

离线

#47 2019-08-29 17:56:19

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 184

Re: 分享个licheepi nano镜像,支持adb调试

同意。我的是3.4 BSP。明天准备换4.13-y 了。

离线

#48 2019-08-31 17:34:37

阿黄
会员
注册时间: 2018-10-03
累计积分: 90

Re: 分享个licheepi nano镜像,支持adb调试

我遇到个奇怪的问题,在家里的win10下就不行
启动日志

U-Boot 2018.01-05679-g013ca45-dirty (Aug 29 2019 - 17:55:54 -0700) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x70000, size 0x10000
SF: 65536 bytes @ 0x70000 Read: OK
device 0 offset 0x80000, size 0x400000
SF: 4194304 bytes @ 0x80000 Read: OK
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 816fa000, end 816ff40a ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.15.0-rc8-licheepi-nano+ (ubuntu@ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #58 Sat Aug 31 07:23:27 CST 2019
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Nano
[    0.000000] Memory policy: Data cache writeback
[    0.000000] random: fast init done
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 56236K/65536K available (5120K kernel code, 214K rwdata, 1020K rodata, 1024K init, 221K bss, 9300K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4800000 - 0xff800000   ( 944 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (6112 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 215 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 222 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000044] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000109] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000639] Console: colour dummy device 80x30
[    0.000729] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070228] pid_max: default: 32768 minimum: 301
[    0.070541] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070582] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.071965] CPU: Testing write buffer coherency: ok
[    0.073559] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076050] devtmpfs: initialized
[    0.082908] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.082970] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.083222] pinctrl core: initialized pinctrl subsystem
[    0.085141] NET: Registered protocol family 16
[    0.086341] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.088034] cpuidle: using governor menu
[    0.107083] SCSI subsystem initialized
[    0.107395] usbcore: registered new interface driver usbfs
[    0.107543] usbcore: registered new interface driver hub
[    0.107722] usbcore: registered new device driver usb
[    0.108133] pps_core: LinuxPPS API ver. 1 registered
[    0.108163] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.108226] PTP clock support registered
[    0.109638] clocksource: Switched to clocksource timer
[    0.134228] NET: Registered protocol family 2
[    0.135605] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.135680] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.135731] TCP: Hash tables configured (established 1024 bind 1024)
[    0.135980] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.136041] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.136506] NET: Registered protocol family 1
[    0.138764] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.140651] Initialise system trusted keyrings
[    0.141184] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.156226] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.156808] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.171191] Key type asymmetric registered
[    0.171230] Asymmetric key parser 'x509' registered
[    0.171430] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.171463] io scheduler noop registered
[    0.171483] io scheduler deadline registered
[    0.172244] io scheduler cfq registered (default)
[    0.172279] io scheduler mq-deadline registered
[    0.172298] io scheduler kyber registered
[    0.173397] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.183229] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.341042] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.347340] console [ttyS0] disabled
[    0.367589] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 22, base_baud = 6250000) is a 16550A
[    0.806314] console [ttyS0] enabled
[    0.832283] 1c25400.serial: ttyS1 at MMIO 0x1c25400 (irq = 23, base_baud = 6250000) is a 16550A
[    0.841925] suniv-pinctrl 1c20800.pinctrl: unsupported function uart2 on pin PD14
[    0.871149] 1c25800.serial: ttyS2 at MMIO 0x1c25800 (irq = 24, base_baud = 6250000) is a 16550A
[    0.881947] SCSI Media Changer driver v0.25 
[    0.889746] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.894527] 4 ofpart partitions found on MTD device spi0.0
[    0.900074] Creating 4 MTD partitions on "spi0.0":
[    0.904908] 0x000000000000-0x000000070000 : "u-boot"
[    0.912312] 0x000000070000-0x000000080000 : "dtb"
[    0.919317] 0x000000080000-0x000000480000 : "kernel"
[    0.926780] 0x000000480000-0x000001000000 : "rootfs"
[    0.936907] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.943571] ehci-platform: EHCI generic platform driver
[    0.949063] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.955365] ohci-platform: OHCI generic platform driver
[    0.961030] usbcore: registered new interface driver usb-storage
[    0.967844] i2c /dev entries driver
[    0.976503] NET: Registered protocol family 17
[    0.981183] Key type dns_resolver registered
[    0.987291] Loading compiled-in X.509 certificates
[    1.000376] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.012157] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.017950] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.026445] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.033331] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.040592] usb usb1: Product: MUSB HDRC host driver
[    1.045556] usb usb1: Manufacturer: Linux 4.15.0-rc8-licheepi-nano+ musb-hcd
[    1.052639] usb usb1: SerialNumber: musb-hdrc.1.auto
[    1.059118] hub 1-0:1.0: USB hub found
[    1.063150] hub 1-0:1.0: 1 port detected
[    1.068805] hctosys: unable to open rtc device (rtc0)
[    1.074437] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.091945] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.098690] vcc3v3: disabling
[    1.102594] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.111302] cfg80211: failed to load regulatory.db
[    1.212105] random: crng init done
[    2.880061] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[    2.888776] devtmpfs: mounted
[    2.896262] Freeing unused kernel memory: 1024K
Starting syslogd: OK
Starting klogd: OK
Initializing random number generator... done.
Starting ntpd: /etc/init.d/S39ntpd: line 9: /usr/sbin/ntpd: not found
FAIL
Starting udhcpd: /etc/init.d/S39udhcpd: line 9: /usr/sbin/udhcpd: not found
FAIL
Starting network: /bin/sh: wpa_supplicant: not found
FAIL
Starting wpa_cli: /etc/init.d/S41wpa_cli: line 9: /usr/sbin/wpa_cli: not found
FAIL
[   10.350506] file system registered
# install_listener('tcp:5037','*smartsocket*')
[   15.598118] read descriptors
[   15.601558] read strings
[   15.604359] g_ffs gadget: g_ffs ready
[   15.887494] musb_g_ep0_irq 687: SetupEnd came in a wrong ep0stage out/status
[   15.934514] g_ffs gadget: high-speed config #1: FunctionFS
[   52.145089] musb_g_ep0_irq 687: SetupEnd came in a wrong ep0stage out/status
[   52.161146] g_ffs gadget: high-speed config #1: FunctionFS
[   52.167815] read descriptors
[   52.172418] read strings
[   52.175193] g_ffs gadget: g_ffs ready
[   52.425135] musb_g_ep0_irq 687: SetupEnd came in a wrong ep0stage out/status
[   53.102215] musb_g_ep0_irq 687: SetupEnd came in a wrong ep0stage out/status
[   53.297238] musb_g_ep0_irq 687: SetupEnd came in a wrong ep0stage out/status
[   53.308229] musb_g_ep0_irq 687: SetupEnd came in a wrong ep0stage out/status
[   53.316262] musb_g_ep0_irq 687: SetupEnd came in a wrong ep0stage out/status
[   53.323326] musb_g_ep0_irq 779: SETUP packet len 0 != 8 ?
[   53.357234] musb_g_ep0_irq 687: SetupEnd came in a wrong ep0stage out/status

# 
# 
# 
# [  456.763383] musb_g_ep0_irq 687: SetupEnd came in a wrong ep0stage out/status
[  456.773412] g_ffs gadget: high-speed config #1: FunctionFS
[  457.713994] musb_g_ep0_irq 687: SetupEnd came in a wrong ep0stage in/status
[  458.396588] musb_g_ep0_irq 687: SetupEnd came in a wrong ep0stage out/status
[  459.274700] musb_g_ep0_irq 687: SetupEnd came in a wrong ep0stage out/status
[  459.314707] g_ffs gadget: high-speed config #1: FunctionFS
[  459.321355] read descriptors
[  459.324291] read strings
[  459.327026] g_ffs gadget: g_ffs ready
[  459.598764] musb_g_ep0_irq 687: SetupEnd came in a wrong ep0stage out/status
[  460.899399] musb_g_ep0_irq 687: SetupEnd came in a wrong ep0stage in/status
[  461.780025] musb_g_ep0_irq 687: SetupEnd came in a wrong ep0stage out/status
[  461.819026] g_ffs gadget: high-speed config #1: FunctionFS
[  463.585249] musb_g_ep0_irq 687: SetupEnd came in a wrong ep0stage out/status
[  467.692256] musb_g_ep0_irq 687: SetupEnd came in a wrong ep0stage in/status
[  468.904940] g_ffs gadget: high-speed config #1: FunctionFS
[  468.911546] read descriptors
[  468.914481] read strings
[  468.917216] g_ffs gadget: g_ffs ready
[  470.332608] musb_g_ep0_irq 687: SetupEnd came in a wrong ep0stage in/status
[  471.199228] musb_g_ep0_irq 687: SetupEnd came in a wrong ep0stage out/status
[  471.260235] g_ffs gadget: high-speed config #1: FunctionFS

但是在公司的win10下就好的。在家里的就不行,CPU均为AMD 1600, win10 x64.

1.jpg

最近编辑记录 阿黄 (2019-08-31 17:35:12)

离线

#49 2019-08-31 17:36:44

晕哥小弟
会员
注册时间: 2019-04-04
累计积分: 184

Re: 分享个licheepi nano镜像,支持adb调试

为什么不使用BSPkernel 去弄ADB ?

离线

#50 2019-09-13 17:46:38

firstman
会员
注册时间: 2019-04-06
累计积分: 154

Re: 分享个licheepi nano镜像,支持adb调试

貌似不能同时 装两个 gadget 驱动:

会出现一个错误:

# modprobe g_mass_storage file=/dev/mmcblk0 removable=1
[  877.681949] udc-core: couldn't find an available UDC - added [g_mass_storage] to list of pending drivers

然后还不能动态卸载 g_ffs 驱动:

# rmmod g_ffs
rmmod: can't unload module 'g_ffs': Resource temporarily unavailable

即使 kill 了 adbd 也一样的错误.



请问楼主和各位大神,怎么解决呢?

离线

#51 2019-09-17 11:18:29

checkout
会员
注册时间: 2018-11-09
累计积分: 70

Re: 分享个licheepi nano镜像,支持adb调试

可能有依赖其他模块,用modprobe卸载

firstman 说:

貌似不能同时 装两个 gadget 驱动:

会出现一个错误:

# modprobe g_mass_storage file=/dev/mmcblk0 removable=1
[  877.681949] udc-core: couldn't find an available UDC - added [g_mass_storage] to list of pending drivers

然后还不能动态卸载 g_ffs 驱动:

# rmmod g_ffs
rmmod: can't unload module 'g_ffs': Resource temporarily unavailable

即使 kill 了 adbd 也一样的错误.



请问楼主和各位大神,怎么解决呢?

离线

页脚