Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Mar 2013 19:11:55 +0100
From:      Mattia Rossi <mattia.rossi.mailinglists@gmail.com>
To:        freebsd-arm@freebsd.org
Subject:   Dreamplug, BOOTP, NFS root, DHCP
Message-ID:  <CANUZKk=br6XfdzT0g4sAs0HeYvrsSntmEAPcLf=fUG8uwBezeQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi all,

I'm currently trying to set up my Dreamplug again, which should be quite
easy thanks to the neat work don by Ian.

I've just made a mistake when uploading the new world to the dreamplug and
unpacking it, so I've trashed my world on the Dreamplug's internal SD card.

The logical workaround would be to mount the new world via NFS, then copy
it onto the SD and voila, problem solved.

Not the case though.
First I've tried to mount the NFS root without enabling BOOTP, as the root
path is already set in ROOTDEVNAME. No luck, but you of course know that,
as Lars (Eggert) had the same issues not too long ago, and Ian filed a bug
for it. Quick question: what's the progress there?

So, next step was to enable BOOTP and all the necessary options in the
kernel, and to set up a DHCP server. Should be easy and straigthforward,
but here comes the interesting part:
I already have a DHCP server in the crappy modem I've got. I've decided to
ignore that, and just set up a second range for the DHCP server on the
FreeBSD machine, which distributes the root-path with it. With the two DHCP
servers on the network, I get a kernel panic:

<snip>
bootpc_init: wired to interface 'mge0'
Sending DHCP Discover packet from interface mge0 (f0:ad:4e:00:84:c7)
uhub0: 1 port with 1 removable, self powered
mge0: link state changed to UP
Received DHCP Offer packet on mge0 from 192.168.0.1 (accepted) (no root
path)
ugen0.2: <vendor 0x1a40> at usbus0
uhub1: <vendor 0x1a40 USB 2.0 Hub, class 9/0, rev 2.00/1.11, addr 2> on
usbus0
Received DHCP Offer packet on mge0 from 192.168.0.1 (accepted) (no root
path)
uhub1: 4 ports with 4 removable, self powered
ugen0.3: <vendor 0x05e3> at usbus0
umass0: <vendor 0x05e3 USB Storage, class 0/0, rev 2.00/99.10, addr 3> on
usbus0
da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
da0: <Generic STORAGE DEVICE 9910> Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 1876MB (3842048 512 byte sectors: 255H 63S/T 239C)
da1 at umass-sim0 bus 0 scbus2 target 0 lun 1
da1: <Generic STORAGE DEVICE 9910> Removable Direct Access SCSI-0 device
da1: 40.000MB/s transfers
da1: 974MB (1995264 512 byte sectors: 64H 32S/T 974C)
Sending DHCP Request packet from interface mge0 (f0:ad:4e:00:84:c7)
Received DHCP Ack packet on mge0 from 192.168.0.1 (accepted) (got root path)
ugen0.4: <vendor 0x0d8c> at usbus0
uaudio0: <vendor 0x0d8c C-Media USB Headphone Set, class 0/0, rev
1.10/1.00, ad0
uaudio0: Play: 48000 Hz, 2 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio0: Record: 48000 Hz, 1 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio0: No MIDI sequencer.
pcm0: <USB audio> on uaudio0
uaudio0: HID volume keys found.
Received DHCP Ack packet on mge0 from 192.168.0.1 (accepted) (no root path)
mge0 at 192.168.0.21 server 192.168.0.1
subnet mask 255.255.255.0 router 192.168.0.1
Adjusted interface mge0
panic: nfs_boot: mountd root, error=47
KDB: enter: panic
[ thread pid 0 tid 100000 ]
Stopped at      kdb_enter+0x48: ldrb    r15, [r15, r15, ror r15]!
db>

With just the DHCP server on the modem:

<snip>
bootpc_init: wired to interface 'mge0'
Sending DHCP Discover packet from interface mge0 (f0:ad:4e:00:84:c7)
uhub0: 1 port with 1 removable, self powered
mge0: link state changed to UP
Received DHCP Offer packet on mge0 from 192.168.0.1 (accepted) (no root
path)
ugen0.2: <vendor 0x1a40> at usbus0
uhub1: <vendor 0x1a40 USB 2.0 Hub, class 9/0, rev 2.00/1.11, addr 2> on
usbus0
uhub1: 4 ports with 4 removable, self powered
Sending DHCP Request packet from interface mge0 (f0:ad:4e:00:84:c7)
ugen0.3: <vendor 0x05e3> at usbus0
umass0: <vendor 0x05e3 USB Storage, class 0/0, rev 2.00/99.10, addr 3> on
usbus0
da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
da0: <Generic STORAGE DEVICE 9910> Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 1876MB (3842048 512 byte sectors: 255H 63S/T 239C)
da1 at umass-sim0 bus 0 scbus2 target 0 lun 1
da1: <Generic STORAGE DEVICE 9910> Removable Direct Access SCSI-0 device
da1: 40.000MB/s transfers
da1: 974MB (1995264 512 byte sectors: 64H 32S/T 974C)
Received DHCP Ack packet on mge0 from 192.168.0.1 (accepted) (no root path)
ugen0.4: <vendor 0x0d8c> at usbus0
uaudio0: <vendor 0x0d8c C-Media USB Headphone Set, class 0/0, rev
1.10/1.00, ad0
uaudio0: Play: 48000 Hz, 2 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio0: Record: 48000 Hz, 1 ch, 16-bit S-LE PCM format, 2x8ms buffer.
uaudio0: No MIDI sequencer.
pcm0: <USB audio> on uaudio0
uaudio0: HID volume keys found.
Received DHCP Ack packet on mge0 from 192.168.0.1 (accepted) (no root path)
Received DHCP Ack packet on mge0 from 192.168.0.1 (accepted) (no root path)
DHCP/BOOTP timeout for server 255.255.255.255
Received DHCP Ack packet on mge0 from 192.168.0.1 (accepted) (no root path)
DHCP/BOOTP timeout for server 255.255.255.255
Received DHCP Ack packet on mge0 from 192.168.0.1 (accepted) (no root path)
DHCP/BOOTP timeout for server 255.255.255.255
Received DHCP Ack packet on mge0 from 192.168.0.1 (accepted) (no root path)
DHCP/BOOTP timeout for server 255.255.255.255
Received DHCP Ack packet on mge0 from 192.168.0.1 (accepted) (no root path)
DHCP/BOOTP timeout for server 255.255.255.255
Received DHCP Ack packet on mge0 from 192.168.0.1 (accepted) (no root path)
DHCP/BOOTP timeout for server 255.255.255.255
Received DHCP Ack packet on mge0 from 192.168.0.1 (accepted) (no root path)
DHCP/BOOTP timeout for server 255.255.255.255
<and so on>

no panic, just waiting for a root path.

Help?
Can't turn off the DHCP on the modem, as I have limited rights, and it's
crap.

Mat



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANUZKk=br6XfdzT0g4sAs0HeYvrsSntmEAPcLf=fUG8uwBezeQ>