您尚未登录。

楼主 #1 2020-08-26 18:36:34

小熊猫
会员
注册时间: 2020-05-21
已发帖子: 71
积分: 65.5

f1c100s adb 调式# cannot bind 'tcp:5037',接着奏乐接着填坑

# 
# lsmod 
u_ether 20480 0 - Live 0xbf02d000
usb_f_fs 36864 0 - Live 0xbf023000
libcomposite 53248 1 usb_f_fs, Live 0xbf005000
ns2009 16384 0 - Live 0xbf000000
# ls
g_ffs.ko               modules.dep            usb_f_mass_storage.ko
g_mass_storage.ko      modules.dep.bb         usb_f_rndis.ko
g_zero.ko              u_ether.ko             usb_f_ss_lb.ko
libcomposite.ko        usb_f_fs.ko
# 
# 
# insmod  usb_f_rndis.ko 
# 
# 
# modprobe g_ffs idVendor=0x18d1 idProduct=0x4e42 iSerialNumber="buildroot"
[ 3361.753684] file system registered
# 
# 
# mkdir -p /dev/usb-ffs/adb
# mount -t functionfs adb /dev/usb-ffs/adb -o uid=2000,gid=2000
# adbd &
# install_listener('tcp:5037','*smartsocket*')
cannot bind 'tcp:5037'

[1]+  Done(1)                    adbd
# adb
adb   adbd
# adbd
install_listener('tcp:5037','*smartsocket*')
cannot bind 'tcp:5037'
# 
# 
# netstat
netstat      netstat-nat
# netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       
netstat: /proc/net/tcp: No such file or directory
netstat: /proc/net/tcp6: No such file or directory
netstat: /proc/net/udp: No such file or directory
netstat: /proc/net/udp6: No such file or directory
netstat: /proc/net/raw: No such file or directory
netstat: /proc/net/raw6: No such file or directory
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags       Type       State         I-Node Path
unix  3      [ ]         DGRAM                      1590 /dev/log
unix  2      [ ]         DGRAM                      1594 
# 
# 
# netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       
netstat: /proc/net/tcp: No such file or directory
netstat: /proc/net/tcp6: No such file or directory
netstat: /proc/net/udp: No such file or directory
netstat: /proc/net/udp6: No such file or directory
netstat: /proc/net/raw: No such file or directory
netstat: /proc/net/raw6: No such file or directory
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node Path
unix  3      [ ]         DGRAM                      1590 /dev/log
unix  2      [ ]         DGRAM                      1594 
# 
# 
# lsmod 
g_ffs 16384 1 - Live 0xbf013000
usb_f_rndis 24576 1 g_ffs, Live 0xbf06d000
u_ether 20480 2 g_ffs,usb_f_rndis, Live 0xbf02d000
usb_f_fs 36864 3 g_ffs, Live 0xbf023000
libcomposite 53248 3 g_ffs,usb_f_rndis,usb_f_fs, Live 0xbf005000
ns2009 16384 0 - Live 0xbf000000

参考
这个帖子和论坛里一些其他帖子

https://whycan.cn/t_2794.html


使用的kernerl -5.2-tf

## 执行adbd 报错,端口监听失败,以为是端口占用了,但是查看没有被占用,初步怀疑是kernel 里的 NET 相关的没有被打开,后来去内核里Networking options 里配置了一番后,发现加载内核的的时候,就卡在了   Starting kernel ... 。。。

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

Setting up a 480x600 lcd console (overscan 0x0)
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 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
278 bytes read in 15 ms (17.6 KiB/s)
## Executing script at 80c50000
reading zImage
4711848 bytes read in 427 ms (10.5 MiB/s)
reading suniv-f1c100s-licheepi-nano.dtb
10155 bytes read in 31 ms (319.3 KiB/s)
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 80e2b000, end 80e307aa ... OK

Starting kernel ...      卡在这里。。。。。。。。。。。。。。。。。。。。。。。。。。。

最近编辑记录 小熊猫 (2020-08-26 18:46:23)

离线

楼主 #2 2020-08-27 16:51:21

小熊猫
会员
注册时间: 2020-05-21
已发帖子: 71
积分: 65.5

Re: f1c100s adb 调式# cannot bind 'tcp:5037',接着奏乐接着填坑

结帖 ifconfig 没有回环lo设备,5.2-tf 默认把network options 里的TCP 相关的去掉了,配置上即可,adbd 端口监听就不会失败,

Starting kernel ...      卡在这里。。。。。。。。。。。。。。。。。。。。。。。。。。。

### 主要是应该是.config 文件里有手动修改导致编译出来的zimag 有些问题, 基本上按照 https://whycan.cn/t_2794.html 就可以了。。

不知道为啥虚拟机ubuntu 里可以,win10 下确实虚拟出来的是usb串口设备。。。

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn