Hi, I need the remote unlocking, I currently use the console, while
debugging this.

I have the exact same setup on other machines, just seems to a a
peculiarity of this hardware.

As far as I can tell the root cause is that dropbear does not detect
that the network/eth0 is up, see below:
How can I debug this further?

There is however a bug in that if the network is not up and you enter
the passphrase in the console, dropbear goes 100% cpu on 1 core with
the missing cat/sleep binary.

This fixes that issue:

diff /usr/share/initramfs-tools/scripts/functions /usr/share/initramfs-
tools/scripts/functions.org
339,344c339
<               if command -v sleep >/dev/null 2>&1; then
<                       sleep 1
<               else
<                       #initramsfs is gone, bail out
<                       break
<               fi
---
>               sleep 1

You then get this, but dropbear goes away.

/scripts/init-premount/dropbear: line 149: cat: not found
/scripts/init-premount/dropbear: line 339: can't create /dev/null:
nonexistent directory
done.
/scripts/init-premount/dropbear: line 396: can't create /dev/null:
nonexistent directory
/scripts/init-premount/dropbear: line 377: ipconfig: not found
/scripts/init-premount/dropbear: line 377: ipconfig: not found
/scripts/init-premount/dropbear: line 377: ipconfig: not found
/scripts/init-premount/dropbear: line 377: ipconfig: not found
/scripts/init-premount/dropbear: line 377: ipconfig: not found
/scripts/init-premount/dropbear: line 377: ipconfig: not found
/scripts/init-premount/dropbear: line 377: ipconfig: not found
/scripts/init-premount/dropbear: line 377: ipconfig: not found
/scripts/init-premount/dropbear: line 377: ipconfig: not found
/scripts/init-premount/dropbear: line 377: ipconfig: not found
/scripts/init-premount/dropbear: .: line 385: can't open '/run/net-
eth0.conf': No such file or directory


I tried the BOOT=nfs, but that just times out and then you get a kernel
crash.


#Network is up:

[Mon Aug 26 12:04:21 2024] BIOS-e820: [mem 0x0000000088ed2000-
0x0000000088efefff] type 20
....
[Mon Aug 26 12:04:38 2024] tg3 0000:03:00.0 eth0: Tigon3
[partno(BCM957766a) rev 57766001] (PCI Express) MAC address
ac:87:a3:16:d2:97
[Mon Aug 26 12:04:38 2024] tg3 0000:03:00.0 eth0: attached PHY is 57765
(10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
[Mon Aug 26 12:04:38 2024] tg3 0000:03:00.0 eth0: RXcsums[1]
LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
[Mon Aug 26 12:04:38 2024] tg3 0000:03:00.0 eth0: dma_rwctrl[00000001]
dma_mask[64-bit]
[Mon Aug 26 12:04:44 2024] tg3 0000:03:00.0 eth0: Link is up at 1000
Mbps, full duplex
[Mon Aug 26 12:04:44 2024] tg3 0000:03:00.0 eth0: Flow control is on
for TX and on for RX
[Mon Aug 26 12:04:44 2024] tg3 0000:03:00.0 eth0: EEE is disabled
[Mon Aug 26 12:04:44 2024] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link
becomes ready

Thanks.

Reply via email to