Towards an ARM system-building script

Ian Lepore freebsd at damnhippie.dyndns.org
Wed Oct 10 13:43:02 UTC 2012


On Tue, 2012-10-09 at 23:42 +0200, Giovanni Trematerra wrote:
> I booted a kernel with your suggestion but I get a panic during
> initialization of ue0 I think

It looks like bootpc_init() is getting called before USB has found the
ethernet adapter.  It might be fixable with a simple patch such as the
following, but I really don't know whether this will work, and even if
it does, whether it's a good idea (hopefully someone more knowledgable
will offer an opinion).  But if nothing else it's an interesting
experiment to try.

diff -r 5f2e07d3ae42 sys/nfs/bootp_subr.c
--- a/sys/nfs/bootp_subr.c	Thu Oct 04 20:42:12 2012 -0600
+++ b/sys/nfs/bootp_subr.c	Wed Oct 10 07:38:31 2012 -0600
@@ -1526,6 +1526,8 @@ bootpc_init(void)
 	int timeout;
 	int delay;
 
+	root_mount_wait();
+
 	timeout = BOOTP_IFACE_WAIT_TIMEOUT * hz;
 	delay = hz / 10;



-- Ian




More information about the freebsd-arm mailing list