您尚未登录。

楼主 #1 2020-03-31 09:21:50

shiqx429
会员
注册时间: 2019-09-04
已发帖子: 48
积分: 48

buildroot 以太网问题

大家好, 我问一个小问题

我自己定制了buildroot,  只设置了链接器和安装了dropbear,  系统启动都正常,内网外网都可以ping的通, 我现在用dropbear开启监听,出现问题如下

# netstat -tln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       
netstat: /proc/net/tcp6: No such file or directory
# 
# 
# dropbear -p 2222
# 
# 
# netstat -tln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       
netstat: /proc/net/tcp6: No such file or directory
# 
# ping www.baidu.com
PING www.baidu.com (180.101.49.12): 56 data bytes
64 bytes from 180.101.49.12: seq=0 ttl=53 time=7.716 ms
64 bytes from 180.101.49.12: seq=1 ttl=53 time=7.628 ms
64 bytes from 180.101.49.12: seq=2 ttl=53 time=7.547 ms

我感觉端口打不开啊,  还是我缺什么配置了?   也不像缺配置了,按道理说系统刚启动时,我调用netstat -tln,怎么样也应该有点东西啊,我那个什么都没,昨天卡了一天了,请各位帮忙看看, 给点参考意见,谢谢了

离线

#2 2020-03-31 09:28:05

ubuntu
会员
注册时间: 2020-03-30
已发帖子: 272
积分: 250

Re: buildroot 以太网问题

ps 显示所有进程, 看 dropbear 有没有在跑。

离线

楼主 #3 2020-03-31 09:43:06

shiqx429
会员
注册时间: 2019-09-04
已发帖子: 48
积分: 48

Re: buildroot 以太网问题

好像没有啊,下面是我系统启动信息最后面的一部分, 我看Starting dropbear sshd: OK  已经OK啊, 这是什么情况

rtc-ds1307 0-0068: setting system clock to 2020-03-31 09:37:37 UTC (1585647457)
mmcblk0boot1: mmc0:0001 004G60 partition 2 2.00 MiB
 mmcblk0: p1
 mmcblk0boot1: unknown partition table
 mmcblk0boot0: unknown partition table
EXT3-fs: barriers not enabled
kjournald starting.  Commit interval 5 seconds
EXT3-fs (mmcblk0p1): warning: checktime reached, running e2fsck is recommended
EXT3-fs (mmcblk0p1): using internal journal
EXT3-fs (mmcblk0p1): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) on device 179:1.
Freeing init memory: 200K
devpts: called with bogus options
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Starting mdev... OK
modprobe: can't change directory to '/lib/modules': No such file or directory
Saving random seed: OK
Starting network: OK
Starting dropbear sshd: OK
# ps
PID   USER     COMMAND
    1 root     init
    2 root     [kthreadd]
    3 root     [ksoftirqd/0]
    4 root     [kworker/0:0]
    5 root     [kworker/u:0]
    6 root     [migration/0]
    7 root     [migration/1]
    8 root     [kworker/1:0]
    9 root     [ksoftirqd/1]
   10 root     [khelper]
   11 root     [kworker/u:1]
  341 root     [sync_supers]
  343 root     [bdi-default]
  345 root     [kblockd]
  376 root     [ata_sff]
  380 root     [imx6q-ecspi.4]
  391 root     [khubd]
  413 root     [ipu1_task]
  414 root     [ipu1_task]
  415 root     [ipu2_task]
  416 root     [ipu2_task]
  427 root     [l2cap]
  430 root     [kworker/0:1]
  432 root     [cfg80211]
  518 root     [rpciod]
  526 root     [usb_wakeup thre]
  528 root     [otg_switch]
  532 root     [usb_wakeup thre]
  543 root     [kswapd0]
  544 root     [ksmd]
  606 root     [fsnotify_mark]
  623 root     [nfsiod]
  636 root     [crypto]
  981 root     [kworker/1:1]
 1220 root     [kapmd]
 1257 root     [mtdblock0]
 1262 root     [mtdblock1]
 1318 root     [irq/401-ads7846]
 1324 root     [2-0038]
 1356 root     [kworker/u:2]
 1364 root     [vpu_wq]
 1369 root     [galcore workque]
 1370 root     [Vivante Kernel ]
 1371 root     [galcore daemon ]
 1372 root     [galcore daemon ]
 1373 root     [galcore daemon ]
 1410 root     [krfcommd]
 1414 root     [mmcqd/0]
 1415 root     [mmcqd/0boot0]
 1421 root     [mmcqd/0boot1]
 1429 root     [kjournald]
 1432 root     [flush-179:0]
 1445 root     /sbin/syslogd -n
 1449 root     /sbin/klogd -n
 1461 root     /sbin/mdev -df
 1493 root     -sh
 1494 root     [kworker/0:2]
 1508 root     ps

离线

#4 2020-03-31 09:45:52

ubuntu
会员
注册时间: 2020-03-30
已发帖子: 272
积分: 250

Re: buildroot 以太网问题

这个日志 Starting dropbear sshd 应该是

/etc/init.d/XXX 开机初始化脚本里面显示出来的, 找到对应的dropbear 命令行修改一下。

dropbear 命令行我记得有后台运行的参数, 你找一下。

离线

楼主 #5 2020-03-31 09:52:26

shiqx429
会员
注册时间: 2019-09-04
已发帖子: 48
积分: 48

Re: buildroot 以太网问题

我去找一下, 谢谢你啊

离线

页脚

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

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