Date: Thu, 3 Apr 2008 23:25:03 +0900 (JST) From: nao <nao@tom-yam.or.jp> To: freebsd-mips@freebsd.org Subject: adm5120 support Message-ID: <200804031425.m33EP3Px035933@miffy.tom-yam.or.jp>
next in thread | raw e-mail | index | archive | help
Hello, guys! I was so much impressed by Warner's talk at ASIA BSDCON held last sunday, so I decided to try to run FreeBSD/mips on my BBR-4MG, a cheap (about $30 in Japan) router which employs ADM5120P SoC. Following modifications are needed to generate a kernel for configuration "ADM5120". I have not tried it yet on the router, since I have to build a serial console adapter and find a way to boot it. By the way, I had to ask my friend who is a FreeBSD comitter to obtain a set of mips2-jnpr source code. I tried accessing the archive via p4web, but I found it not a very convenient method. Is there a nifty way to access p4 server? Regards, Naoki Hamada nao@tom-yam.or.jp diff -ur src-jnpr-20080331/src/sys/mips/mips32/adm5120/adm5120_machdep.c src-jnpr/src/sys/mips/mips32/adm5120/adm5120_machdep.c --- src-jnpr-20080331/src/sys/mips/mips32/adm5120/adm5120_machdep.c 2008-03-31 15:55:56.000000000 +0900 +++ src-jnpr/src/sys/mips/mips32/adm5120/adm5120_machdep.c 2008-04-02 21:15:58.000000000 +0900 @@ -65,7 +65,6 @@ #include <machine/md_var.h> #include <machine/pte.h> #include <machine/sigframe.h> -#include <machine/tlb.h> #include <machine/trap.h> #include <machine/vmparam.h> diff -ur src-jnpr-20080331/src/sys/mips/mips32/adm5120/obio.c src-jnpr/src/sys/mips/mips32/adm5120/obio.c --- src-jnpr-20080331/src/sys/mips/mips32/adm5120/obio.c 2008-03-31 15:55:56.000000000 +0900 +++ src-jnpr/src/sys/mips/mips32/adm5120/obio.c 2008-04-02 21:36:05.000000000 +0900 @@ -321,7 +321,8 @@ event = sc->sc_eventstab[irq]; if (event == NULL) { error = intr_event_create(&event, (void *)irq, 0, - (void (*)(void *))NULL, "obio intr%d:", irq); + (mask_fn)mips_mask_irq, (mask_fn)mips_unmask_irq, + (mask_fn)mips_unmask_irq, NULL, "obio intr%d:", irq); sc->sc_eventstab[irq] = event; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804031425.m33EP3Px035933>