Setting up an AT91RM9200 based board (KB9202B) with FreeBSD

Hans Petter Selasky hselasky at c2i.net
Tue Dec 4 10:04:10 PST 2007


On Tuesday 04 December 2007, Björn König wrote:
> > On Mon, 03 Dec 2007 16:46:46 -0700 (MST)
> >
> > "M. Warner Losh" <imp at bsdimp.com> wrote:
> >> u-boot should be able to boot FreeBSD, but you may need to put the
> >> kernel into the flash on the board.
> >
> > Interreting..
> > It might be that i tftp'ed the kernel into ram and then tried to
> > boot it that went wrong.
>
> For example you can do it this way:
>
> Build a kernel with 'make buildkernel', put the ELF binary into TFTP root,
> then run the following commands at u-boot prompt:
>   tftpboot 20000000 /kernel
>   erase 10040000 1043ffff
>   cp.b 20000000 10040000 0x$(filesize)
>   setenv freebsd cp.b 10040000 20000000 $(filesize)\; go 200000e0
>   saveenv
>
> Now you can boot the kernel from flash with
>   run freebsd
>
> This doesn't even require that u-boot supports ELF.
>
> Björn

Hi,

I've updated the wiki accordingly.

http://wiki.freebsd.org/FreeBSDAtmel

Let me know if I got anything wrong.

--HPS


More information about the freebsd-arm mailing list