Hello,
I'm running a diskless Soekris net4526 (i386 architecture) and I have
encountered a problem when using dhcp setting on my hostname.sis0 file.
The booting process stops at 'Starting network'.
If I set the interface's hostname.sis0 to static IP, everything works
OK.
If I bring up the interface statically and _then_ run netstart, it also
hangs as it does in the boot process.
air# echo "dhcp" >/etc/hostname.sis0
air# /etc/netstart -n sis0
ifconfig sis0 down;dhclient sis0
air# /etc/netstart sis0
At this point the machine stops responding and must be hard-reset. ^C
doesn't do anything.
If I replicate the steps /etc/netstart takes and run ifconfig and
dhclient separately, it appears as the problem resides in dhclient, as
it straight up freezes and doesn't respond to ^C:
air# ifconfig sis0 down
air# dhclient -v sis0
However, if I set my IP configuration statically to somewhere in my
subnet and then run dhclient, everything works as it should:
air# ifconfig sis0
sis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:00:24:c4:56:20
index 2 priority 0 llprio 3
groups: netboot
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 192.168.16.11 netmask 0xffffff00 broadcast 192.168.16.255
air# dhclient -v sis0
sis0: DHCPDISCOVER - interval 1
sis0: DHCPOFFER from 192.168.16.1 (00:22:4d:a6:12:6f)
sis0: DHCPREQUEST to 255.255.255.255
sis0: DHCPACK from 192.168.16.1 (00:22:4d:a6:12:6f)
sis0: bound to 192.168.16.11 from 192.168.16.1 (00:22:4d:a6:12:6f)
air#
My dmesg output:
OpenBSD 6.3 (GENERIC) #490: Sat Mar 24 14:31:33 MDT 2018
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Am486DX4 W/B or Am5x86 W/B 150 ("AuthenticAMD" 486-class)
cpu0: FPU
real mem = 66600960 (63MB)
avail mem = 51486720 (49MB)
warning: no entropy supplied by boot loader
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 20/80/03, BIOS32 rev. 0 @ 0xf7840
pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc8000/0x9000
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
elansc0 at pci0 dev 0 function 0 "AMD ElanSC520 PCI" rev 0x00:
product 0 stepping 1.1, CPU clock 133MHz, reset 0
gpio0 at elansc0: 32 pins
ath0 at pci0 dev 17 function 0 "Atheros AR5212" rev 0x01: irq 10
ath0: AR5414 10.5 phy 6.1 rf2414 6.3 eeprom 5.2, FCC2A*, address
00:0c:42:1b:f6:0e
sis0 at pci0 dev 18 function 0 "NS DP83815 10/100" rev 0x00,
DP83816A: irq 11, address 00:00:24:c4:56:20
nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1
isa0 at mainbus0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
wdc1 at isa0 port 0x170/8 irq 15
wd0 at wdc1 channel 0 drive 0: <064MB ATA Flash Disk>
wd0: 1-sector PIO, LBA, 61MB, 125056 sectors
wd0(wdc1:0:0): using BIOS timings
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
PXE boot MAC address 00:00:24:c4:56:20, interface sis0
nfs_boot: using interface sis0, with revarp & bootparams
nfs_boot: client_addr=192.168.16.11
nfs_boot: server_addr=192.168.16.1 hostname=air
root on 192.168.16.1:/var/exports/air
nfs_boot: bootparam get swap: 60
WARNING: no swap
Is there something I am missing?
--
Thanks in advance
Kristjan Komlosi