Date: Tue, 26 Oct 2010 17:26:50 +0200 From: Monthadar Al Jaberi <monthadar@gmail.com> To: freebsd-mips@freebsd.org Subject: FreeBSD on RouterStation Pro Message-ID: <AANLkTimqErGEVUKUA6BVRGDByDH264u8MgJcKVk_2oUY@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimqErGEVUKUA6BVRGDByDH264u8MgJcKVk_2oUY>