Date: Tue, 26 Mar 2013 20:29:04 -0600 From: Ian Lepore <ian@FreeBSD.org> To: Mattia Rossi <mattia.rossi.mailinglists@gmail.com> Cc: freebsd-arm@FreeBSD.org Subject: Re: Dreamplug, BOOTP, NFS root, DHCP Message-ID: <1364351344.36972.35.camel@revolution.hippie.lan> In-Reply-To: <CANUZKk=br6XfdzT0g4sAs0HeYvrsSntmEAPcLf=fUG8uwBezeQ@mail.gmail.com> References: <CANUZKk=br6XfdzT0g4sAs0HeYvrsSntmEAPcLf=fUG8uwBezeQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2013-03-26 at 19:11 +0100, Mattia Rossi wrote: > 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 I've only got a few minutes available right now, so not much to offer, except... could you put a world on a usb thumb drive and recompile the kernel for a /dev/daNxx root path? Even better would be a world on an eSata drive if you have one. (One of those multi-slot docks that holds a couple drives and is both a usb dock and an eSata port multiplier, is a nifty thing for a dreamplug owner to have.) -- Ian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1364351344.36972.35.camel>