From owner-freebsd-arm@FreeBSD.ORG Thu Mar 28 10:26:51 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2B5EC8D9; Thu, 28 Mar 2013 10:26:51 +0000 (UTC) (envelope-from mattia.rossi.mailinglists@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8EA2EC3E; Thu, 28 Mar 2013 10:26:50 +0000 (UTC) Received: by mail-ee0-f54.google.com with SMTP id e51so1079585eek.27 for ; Thu, 28 Mar 2013 03:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=okf2P68+Ol6dsJ1iWDfPPxCjbE6alBTT74TAY+5bHpc=; b=sjqL4pKnaNM3A9zF5jGk0Ma0afd8oVqMnKn5rScGpl1GZNcdui8rU1lEioKmBY3GON vA9J7isP+n2avZnemlaTMgrYqu7Mg3UVb6guVnifb+D3EUfwINhQJL9LpwHUQDo8r20P PBhM4dYQjW/UCT0rw0kxScbFUiLwO4foK+IqmoaHG/t4d8XyyJwsQthcAl6Un3Aaqw2y JmoF9KyZAM2Bl1Fyjg3krbBz32/HP9HxCS7jHooDGa1Z3iw7e9d4RWIsQCa2Y5hGI8Hk 5+DRE/pGtYqhHd3/hWS8ytycXFGEV+BM2xyAV3An5CoCYCx4UsYWbVLv6lr/SJ+Sva4y ZhoA== X-Received: by 10.14.5.6 with SMTP id 6mr65670842eek.42.1364466409116; Thu, 28 Mar 2013 03:26:49 -0700 (PDT) Received: from [192.168.0.101] (vpn.static.83-173-212-209.cybernet.ch. [83.173.212.209]) by mx.google.com with ESMTPS id t4sm36793685eel.0.2013.03.28.03.26.47 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Mar 2013 03:26:48 -0700 (PDT) Message-ID: <51541AE6.1090101@gmail.com> Date: Thu, 28 Mar 2013 11:26:46 +0100 From: Mattia Rossi User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: Ian Lepore Subject: Re: Dreamplug, BOOTP, NFS root, DHCP References: <1364351344.36972.35.camel@revolution.hippie.lan> In-Reply-To: <1364351344.36972.35.camel@revolution.hippie.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Mar 2013 10:26:51 -0000 Am 27.03.2013 03:29, schrieb Ian Lepore: > 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: >> >> >> 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: at usbus0 >> uhub1: 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: at usbus0 >> umass0: on >> usbus0 >> da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 >> da0: 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: 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: at usbus0 >> uaudio0: > 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: 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: >> >> >> 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: at usbus0 >> uhub1: 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: at usbus0 >> umass0: on >> usbus0 >> da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 >> da0: 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: 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: at usbus0 >> uaudio0: > 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: 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 >> >> >> 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.) > Hi Ian, thanks for the tip, I just didn't think about that.. it's great to have that choice of connectivity on the Dreamplug :-) Now I've been able to install world again, and it seems to basically work. Next step is to check which devices are not supported yet, and to figure out what and if I'm able to do something there. Cheers, and thanks again for the Kernel conf and dts file. They work like a charm so far. Mat