Setting up an AT91RM9200 based board (KB9202B) with FreeBSD

Björn König bkoenig at alpha-tierchen.de
Tue Dec 4 04:07:02 PST 2007


> 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





More information about the freebsd-arm mailing list