From owner-freebsd-arm@FreeBSD.ORG Tue Mar 26 18:11:58 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 81BC79F1 for ; Tue, 26 Mar 2013 18:11:58 +0000 (UTC) (envelope-from mattia.rossi.mailinglists@gmail.com) Received: from mail-la0-x22b.google.com (mail-la0-x22b.google.com [IPv6:2a00:1450:4010:c03::22b]) by mx1.freebsd.org (Postfix) with ESMTP id EE860221 for ; Tue, 26 Mar 2013 18:11:57 +0000 (UTC) Received: by mail-la0-f43.google.com with SMTP id ek20so14170749lab.16 for ; Tue, 26 Mar 2013 11:11:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=dh518QkOwi5WpWkQPRUjsoZz804P06TNdodQeWukxBw=; b=f+VsWgod0JATfhAYbmwdgjM5fLHSDuWpkdCaOb/92x8Dq2nNdnE0oAgTfcbFSR4I9P DoWjok9uYMhEpccyscjqt629NCofJegNV8jCF9GbB3hvqmSJ8sPaKc9npLfFhHNYlNWl L7Pu+LN+PtgI06cRV4L4dFDuKDQswB3T9c5828xfDd9XW1lkp987ZCFBWk1WBnoxS/j9 22s/WrPATQWVZrs0AMDXOdZr2VIFYiirwWqXMR3QcRLTc7IZkx+QS5adXctCTkf9SRrM mcfGU2HfFrJGFBHxvKMvyq1ZUCHyQDiTrGkvnI0vHAvPWBohsrKSxCqukODHZxDvtEka TGMw== MIME-Version: 1.0 X-Received: by 10.152.105.244 with SMTP id gp20mr8830388lab.34.1364321516027; Tue, 26 Mar 2013 11:11:56 -0700 (PDT) Received: by 10.112.47.232 with HTTP; Tue, 26 Mar 2013 11:11:55 -0700 (PDT) Date: Tue, 26 Mar 2013 19:11:55 +0100 Message-ID: Subject: Dreamplug, BOOTP, NFS root, DHCP From: Mattia Rossi To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Tue, 26 Mar 2013 18:11:58 -0000 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: 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: 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