From owner-freebsd-mips@FreeBSD.ORG Tue Oct 26 15:53:41 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 680B5106564A for ; Tue, 26 Oct 2010 15:53:41 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 24EBA8FC14 for ; Tue, 26 Oct 2010 15:53:40 +0000 (UTC) Received: by qyk7 with SMTP id 7so2560926qyk.13 for ; Tue, 26 Oct 2010 08:53:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=sEfRlN6jLR1qGMonG+3ilNqcZLmpCPEcgvWVj+E8wXg=; b=KDAr8m8vch1yTh5HX34A7z6HseqiYQGS3xkDZz8XZ9PDDb//KRatrHULJahwkU13Ok JoS9DTejFeZBAs+dIllfBqs7ybGgdpCRJ7ohR9/CM4LmaYHzKW+6aNhaUnljx6iOHyJY pbObQpPWwqAY0oEC/iV2jgsrGC1pBOEHVWGhU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=nBXAVoQghfUdkd75IKRvd3OP+7di18spLjUdJPPiydjlBgB3bL5ZyR6XiJTya9cUL/ RDgaOyu/CGIcF5y07qZ43SYbdcfk7Cmk15YMvvIgJ0cdEYjqAm2ifcrprr8+cvMHIPIh ZyhRDD/l6gamMLJy6BhhyOTJV4wtbLJTDzyqQ= MIME-Version: 1.0 Received: by 10.224.199.9 with SMTP id eq9mr1525409qab.47.1288106810666; Tue, 26 Oct 2010 08:26:50 -0700 (PDT) Received: by 10.229.105.68 with HTTP; Tue, 26 Oct 2010 08:26:50 -0700 (PDT) Date: Tue, 26 Oct 2010 17:26:50 +0200 Message-ID: From: Monthadar Al Jaberi To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: FreeBSD on RouterStation Pro X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2010 15:53:41 -0000 Hi, I have been trying to run FreeBSD on a RouterStation pro board for a while now. I have been following Adrian Chadd's instructions. But have some problems with the filesystem mounting. I tried to tftpboot the kernel + filesystem over NFS I have cross compiled from FreeBSD 9 snaphost 201010 with the following script: setenv SRCROOT /usr/src setenv TARGET mips setenv KERNCONF AR71XX setenv MAKEOBJDIRPREFIX /mynfs/usr/obj/mips set NFSROOT=/mynfs/usr/src set TFTPBOOT=/mynfs/tftpboot set MAKEFLAGS=(-DWITHOUT_CDDL \ -DWITHOUT_GAMES \ -DWITHOUT_DOCS \ -DWITHOUT_KERBEROS \ -DWITHOUT_ACPI \ -DWITHOUT_KERBEROS \ -DWITHOUT_RESCUE \ -DWITHOUT_MAN \ -DWITHOUT_PROFILE \ -DWITHOUT_BSNMP \ -DWITHOUT_NIS \ -DWITHOUT_IPX \ -DWITHOUT_ATM) cd ${SRCROOT} make ${MAKEFLAGS} kernel-toolchain make ${MAKEFLAGS} buildkernel make ${MAKEFLAGS} DESTDIR=${TFTPBOOT} installkernel make ${MAKEFLAGS} buildworld make DESTDIR=${NFSROOT} ${MAKEFLAGS} installworld make DESTDIR=${NFSROOT} ${MAKEFLAGS} distribution I only changed the ipaddress for the nfs boot in the /usr/src/sys/mips/conf/AR71XX configuration file: options ROOTDEVNAME=\nfs:192.168.1.100:/mnt/bsd\" I think I have setup the DHCP server correct: option root-path "192.168.1.100:/mnt/bsd"; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.100 192.168.1.200; option domain-name-servers 208.67.220.220, 208.67.220.222; option routers 192.168.1.1; option broadcast-address 192.168.1.255; default-lease-time 600; max-lease-time 7200; } host client1 { hardware ethernet XX:XX:XX:XX:XX:XX; #mac address of the RSPRO board fixed-address 192.168.1.20; } I also exported the filsystem: /mnt/bsd 192.168.1.20(rw,no_subtree_check,async,insecure,no_root_squash) The kernel boots from TFTP correct but panics when trying to mount filesystem [?]: Received DHCP Offer packet on arge0 from 192.168.1.100 (accepted) (no root path) Received DHCP Offer packet on arge0 from 192.168.1.100 (ignored) (no root path) Received DHCP Offer packet on arge0 from 192.168.1.100 (ignored) (no root path) Sending DHCP Request packet from interface arge0 (XX:XX:XX:XX:XX:XX) Received DHCP Ack packet on arge0 from 192.168.1.100 (accepted) (got root path) arge0 at 192.168.1.20 server 192.168.1.100 subnet mask 255.255.255.0 router 192.168.1.1 rootfs 192.168.1.100:/ Adjusted interface arge0 panic: nfs_boot: mountd root, error=72 KDB: enter: panic [ thread pid 0 tid 100000 ] Stopped at kdb_enter+0x50: lui at,0x804a db> when I check syslog: Oct 26 17:14:03 hamren mountd[3298]: authenticated mount request from 192.168.1.20:1023 for /mnt/bsd (/mnt/bsd) Any help is much appreciated! I also tried the other way of loading both kernel and filesystem to the board through TFTP (using mkfwimage) and also load them manually in redboot but I fail once again in load the filesystem, loading the kernel is ok. br, -- //Monthadar Al Jaberi From owner-freebsd-mips@FreeBSD.ORG Tue Oct 26 17:10:52 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 33D6E1065695 for ; Tue, 26 Oct 2010 17:10:52 +0000 (UTC) (envelope-from gonzo@launchpad.bluezbox.com) Received: from launchpad.bluezbox.com (hq.bluezbox.com [70.38.37.145]) by mx1.freebsd.org (Postfix) with ESMTP id C4E4C8FC1D for ; Tue, 26 Oct 2010 17:10:51 +0000 (UTC) Received: from [140.242.16.2] (helo=[172.23.2.112]) by launchpad.bluezbox.com with esmtpsa (SSLv3:DES-CBC3-SHA:168) (Exim 4.71 (FreeBSD)) (envelope-from ) id 1PAmoK-00028Z-Tn; Tue, 26 Oct 2010 09:55:45 -0700 Message-ID: <4CC7080C.5060208@bluezbox.com> Date: Tue, 26 Oct 2010 09:55:40 -0700 From: Oleksandr Tymoshenko User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.11) Gecko/20101013 Thunderbird/3.1.5 MIME-Version: 1.0 To: Monthadar Al Jaberi References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: gonzo@launchpad.bluezbox.com X-Spam-Level: ---- X-Spam-Report: Spam detection software, running on the system "hq.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: On 10/26/2010 8:26 AM, Monthadar Al Jaberi wrote: > Hi, > > > I also exported the filsystem: > /mnt/bsd > 192.168.1.20(rw, no_subtree_check, async, insecure, no_root_squash) I believe FreeBSD's exports file format differs from linux. My /etc/exports file looks like this: [...] Content analysis details: (-4.5 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] -0.1 AWL AWL: From: address is in the auto white-list Cc: freebsd-mips@freebsd.org Subject: Re: FreeBSD on RouterStation Pro X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2010 17:10:52 -0000 On 10/26/2010 8:26 AM, Monthadar Al Jaberi wrote: > Hi, > > > I also exported the filsystem: > /mnt/bsd > 192.168.1.20(rw,no_subtree_check,async,insecure,no_root_squash) I believe FreeBSD's exports file format differs from linux. My /etc/exports file looks like this: /src/FreeBSD/tftproot -maproot=root -network 192.168.10/24 /usr/ports -ro -network 192.168.10/24 > > Received DHCP Ack packet on arge0 from 192.168.1.100 (accepted) (got root path) > arge0 at 192.168.1.20 server 192.168.1.100 > subnet mask 255.255.255.0 router 192.168.1.1 rootfs 192.168.1.100:/ Is ther some part of the path missing or it's actual rootfs value: "192.168.1.100:/ "? From owner-freebsd-mips@FreeBSD.ORG Wed Oct 27 06:07:41 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE277106566B for ; Wed, 27 Oct 2010 06:07:41 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 96DC28FC17 for ; Wed, 27 Oct 2010 06:07:41 +0000 (UTC) Received: by qyk7 with SMTP id 7so3272676qyk.13 for ; Tue, 26 Oct 2010 23:07:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=3n6Bc3yQvoazxDdth2etfQpaeiLw73/yGaFVA3mwT4A=; b=QLpqqdLRiNtkJ861yqx3GSczdAw66XQNc0i9UYHwOLDCM34qIAUXRZSgEiYhCMqCTJ m337kX1vwgym0lUMCUTAPk+fZEkfoN/dcrmLk3LXP8NWPwviTmHt7VZQBn5I3m+zIGWB wedAxdlqVYzcOM/3KSVtYZ1VQ8mcVq6sI6Xuc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Rrk5K7+HbJQdkwrwFeYCfRxZklggfS8bKwVAjo+dPd5+MoTWWbYkV/waZbbVXVPvFR gO3qopdWkfDWfI4BJ9DdQbGLOI2n3wL1ks8jbogLXU1G72TCWcHfp0AVru/MqRXrdqsX LDA1LkdiePjQcux+bn9q19NLU18Chdvwvkwhw= MIME-Version: 1.0 Received: by 10.229.212.82 with SMTP id gr18mr8296412qcb.177.1288159660554; Tue, 26 Oct 2010 23:07:40 -0700 (PDT) Received: by 10.229.105.68 with HTTP; Tue, 26 Oct 2010 23:07:40 -0700 (PDT) In-Reply-To: <4CC7080C.5060208@bluezbox.com> References: <4CC7080C.5060208@bluezbox.com> Date: Wed, 27 Oct 2010 08:07:40 +0200 Message-ID: From: Monthadar Al Jaberi To: Oleksandr Tymoshenko Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: FreeBSD on RouterStation Pro X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2010 06:07:41 -0000 On Tue, Oct 26, 2010 at 6:55 PM, Oleksandr Tymoshenko wrote: > On 10/26/2010 8:26 AM, Monthadar Al Jaberi wrote: >> >> Hi, >> >> >> I also exported the filsystem: >> /mnt/bsd >> 192.168.1.20(rw,no_subtree_check,async,insecure,no_root_squash) > > =A0 =A0I believe FreeBSD's exports file format differs from linux. My > /etc/exports file looks like this: > > /src/FreeBSD/tftproot -maproot=3Droot -network 192.168.10/24 > /usr/ports -ro -network 192.168.10/24 > I am running FreeBSD on VirtualBox, so I compiled the code there and moved it to Ubuntu. So DHCP and NFS server are running on Ubuntu. Will it only work on FreeBSD? >> >> Received DHCP Ack packet on arge0 from 192.168.1.100 (accepted) (got roo= t >> path) >> arge0 at 192.168.1.20 server 192.168.1.100 >> subnet mask 255.255.255.0 router 192.168.1.1 rootfs 192.168.1.100:/ > > =A0 =A0Is ther some part of the path missing or it's actual rootfs value: > "192.168.1.100:/ "? > Sorry my mistake, copy paste error should be 192.168.1.100:/mnt/bsd. I was trying different settings. A question if I may should both DHCP root-path and Kernel ROOTDEVNAME be pointing to the same path? br, --=20 //Monthadar Al Jaberi From owner-freebsd-mips@FreeBSD.ORG Wed Oct 27 18:12:04 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCE231065672 for ; Wed, 27 Oct 2010 18:12:04 +0000 (UTC) (envelope-from gonzo@launchpad.bluezbox.com) Received: from launchpad.bluezbox.com (hq.bluezbox.com [70.38.37.145]) by mx1.freebsd.org (Postfix) with ESMTP id 93D868FC1C for ; Wed, 27 Oct 2010 18:12:04 +0000 (UTC) Received: from localhost ([127.0.0.1]) by launchpad.bluezbox.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.71 (FreeBSD)) (envelope-from ) id 1PBATh-000Abs-JH; Wed, 27 Oct 2010 11:12:02 -0700 Message-ID: <4CC86B6B.7070802@bluezbox.com> Date: Wed, 27 Oct 2010 11:11:55 -0700 From: Oleksandr Tymoshenko User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.11) Gecko/20101013 Thunderbird/3.1.5 MIME-Version: 1.0 To: Monthadar Al Jaberi References: <4CC7080C.5060208@bluezbox.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: gonzo@launchpad.bluezbox.com X-Spam-Level: ---- X-Spam-Report: Spam detection software, running on the system "hq.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: On 10/26/2010 11:07 PM, Monthadar Al Jaberi wrote: > I am running FreeBSD on VirtualBox, so I compiled the code there and > moved it to Ubuntu. > So DHCP and NFS server are running on Ubuntu. > Will it only work on FreeBSD? It should though I never tested it. [...] Content analysis details: (-4.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Cc: freebsd-mips@freebsd.org Subject: Re: FreeBSD on RouterStation Pro X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2010 18:12:04 -0000 On 10/26/2010 11:07 PM, Monthadar Al Jaberi wrote: > I am running FreeBSD on VirtualBox, so I compiled the code there and > moved it to Ubuntu. > So DHCP and NFS server are running on Ubuntu. > Will it only work on FreeBSD? It should though I never tested it. I think I ran into that problem couple of days ago though hadn't got time to investigate it further. Do you have rpcbind running on Ubuntu and is access allowed for RS's IP address in /etc/hosts.allow? I tried to get NFS root working but access to rpcbind was denied which resulted in NFS port to be 0 and endless loop of so_setup failing with EADDRNOTAVAIL (which is 49). Editing hosts.allow fixed the problem. From owner-freebsd-mips@FreeBSD.ORG Thu Oct 28 10:16:05 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D852106564A for ; Thu, 28 Oct 2010 10:16:05 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 03FA38FC17 for ; Thu, 28 Oct 2010 10:16:04 +0000 (UTC) Received: by qyk2 with SMTP id 2so718191qyk.13 for ; Thu, 28 Oct 2010 03:16:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=AjWEL1ut8SDztywZxBNAWiQ6YLEY76LrRY2ktzUTVxY=; b=GeYrZ4oe/n3ViGmrnU8J6kOt6OjRYOtxAN6C9LmweMm3wLAJB3EwLDkwwXtKYwfabb OhFzWRW1jToHB8gTj+6/h9UlNZuX7PN3ZMx4b49DcjpQrBAvxY1ezpNcwhv/wwC11d0h hr5zZXsyZj1nSDvlxGmHxhjXfcZGGmv1anTiY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=BQjmQ/y041HgvGX0obpnOS7m+0v49ozl1FHh/+6ukIw9Va+E3YEDQt2p30G0apnZ6/ +AopjxwE0Fx1Q0alUpo+mb8IBGWqwn5UUo3AaN9pKV7hbO4ipd6Szroy+ZBKWg6iP5xv 8jWcT+lp08+72FkFUpf5amQinpmb5uBClEWzo= MIME-Version: 1.0 Received: by 10.224.127.211 with SMTP id h19mr3569200qas.42.1288260964300; Thu, 28 Oct 2010 03:16:04 -0700 (PDT) Received: by 10.229.182.77 with HTTP; Thu, 28 Oct 2010 03:16:04 -0700 (PDT) In-Reply-To: <4CC86B6B.7070802@bluezbox.com> References: <4CC7080C.5060208@bluezbox.com> <4CC86B6B.7070802@bluezbox.com> Date: Thu, 28 Oct 2010 12:16:04 +0200 Message-ID: From: Monthadar Al Jaberi To: Oleksandr Tymoshenko Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: FreeBSD on RouterStation Pro X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Oct 2010 10:16:05 -0000 On Wed, Oct 27, 2010 at 8:11 PM, Oleksandr Tymoshenko wrote: > On 10/26/2010 11:07 PM, Monthadar Al Jaberi wrote: > >> I am running FreeBSD on VirtualBox, so I compiled the code there and >> moved it to Ubuntu. >> So DHCP and NFS server are running on Ubuntu. >> Will it only work on FreeBSD? > > =A0 =A0It should though I never tested it. > > =A0 =A0I think I ran into that problem couple of days ago though hadn't > got time to investigate it further. Do you have rpcbind running on > Ubuntu and is access allowed for RS's IP address in /etc/hosts.allow? > > =A0 =A0I tried to get NFS root working but access to rpcbind was > denied which resulted in NFS port to be 0 and endless loop > of so_setup failing with EADDRNOTAVAIL (which is 49). Editing > hosts.allow fixed the problem. > My /etc/hosts.allow and /etc/hosts.deny are both empty. I dont have rpcbind installed, when I try to install it I get: ... The following packages will be REMOVED: nfs-common nfs-kernel-server portmap ... Does that mean I should not be using nfs-kernel-server? Never the less I tried a different configuration, kept the DHCP server on Ubuntu and enabled NFS on FreeBSD. And used your export file and bridged the network card in VBox so the board communicate directly with FreeBSD and it booted! Thnx =3D) But something I noticed that if I export a path that is binded by mount_nullfs I get the same error as before... br, --=20 //Monthadar Al Jaberi