...
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Starting mdev... OK
[ 1.680036] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 1.911867] hub 1-1:1.0: USB hub found
[ 1.920588] hub 1-1:1.0: 4 ports detected
[ 2.359925] usb 1-1.1: new high-speed USB device number 3 using ehci-platform
[ 2.620956] random: fast init done
Saving random seed: [ 3.057420] random: dd: uninitialized urandom read (512 bytes read)
OK
Starting system message bus: [ 3.118221] random: dbus-uuidgen: uninitialized urandom read (12 bytes read)
[ 3.125652] random: dbus-uuidgen: uninitialized urandom read (8 bytes read)
done
Starting network: OK
Starting dhcpcd...
no valid interfaces found
no interfaces have a carrier
forked to background, child pid 156
就一直卡在这里有三分多钟!才到下面的打印。
Starting dropbear sshd: OK
[ 185.369872] random: crng init done
[ 185.373296] random: 3 urandom warning(s) missed due to ratelimiting
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
Starting sshd: Privilege separation user sshd does not exist
OK
Welcome to Buildroot-V3s v1.1
...
如上:
终于进入系统后,使用ps命令看看这个pid:156是何方神圣!!
# ps
PID USER COMMAND
1 root init
2 root [kthreadd]
3 root [rcu_gp]
4 root [rcu_par_gp]
7 root [kworker/u2:0-ev]
8 root [mm_percpu_wq]
9 root [ksoftirqd/0]
10 root [rcu_sched]
11 root [migration/0]
12 root [cpuhp/0]
13 root [kdevtmpfs]
14 root [netns]
15 root [oom_reaper]
16 root [writeback]
17 root [kcompactd0]
19 root [kworker/u2:1]
67 root [kblockd]
68 root [watchdogd]
69 root [kworker/0:1-eve]
70 root [cfg80211]
71 root [kswapd0]
74 root [irq/23-sunxi-mm]
75 root [irq/24-sunxi-mm]
76 root [kworker/0:2-mm_]
78 root [kstrp]
79 root [kworker/0:4-eve]
81 root [mmc_complete]
83 root [kworker/0:1H-kb]
88 root [jbd2/mmcblk0p2-]
89 root [ext4-rsv-conver]
90 root [kworker/0:2H]
105 root /sbin/syslogd -n
109 root /sbin/klogd -n
121 root /sbin/mdev -df
143 dbus dbus-daemon --system
156 root /sbin/dhcpcd -f /etc/dhcpcd.conf
164 root /usr/sbin/dropbear -R
171 root -sh
174 root [kworker/0:0-eve]
175 root ps
就是这个:dhcpcd的进程!!
而且发现是在/etc/init.d/S41dhcpcd 文件中:
#!/bin/sh
#
# Start/stop dhcpcd
#
DAEMON=/sbin/dhcpcd
CONFIG=/etc/dhcpcd.conf
PIDFILE=/var/run/dhcpcd.pid
[ -f $CONFIG ] || exit 0
case "$1" in
start)
echo "Starting dhcpcd..."
start-stop-daemon -S -x "$DAEMON" -p "$PIDFILE" -- -f "$CONFIG"
;;
stop)
echo "Stopping dhcpcd..."
start-stop-daemon -K -x "$DAEMON" -p "$PIDFILE" -o
;;
reload|force-reload)
echo "Reloading dhcpcd configuration..."
"$DAEMON" -s reload
;;
restart)
"$0" stop
sleep 1 # Prevent race condition: ensure dhcpcd stops before start.
"$0" start
;;
*)
echo "Usage: $0 {start|stop|restart|reload|force-reload}"
exit 1
esac
离线
https://whycan.com/t_8713.html
应该和你这个是同样的问题
谢谢大佬,就是这个问题,已经解决了!
离线