ARM cross compiling question

M. Warner Losh imp at bsdimp.com
Sat Mar 31 15:28:42 UTC 2007


Make sure you define both TARGET and TARGET_ARCH to be 'arm'.  I know
that works, as I've done this on 6.2 and -current dozens of times.
I'll take a look at -stable.

Of course, I also use the 'make buildenv' target to then build
kernels.

In message: <200703311533.02429.freebsd-arm at dino.sk>
            Milan Obuch <freebsd-arm at dino.sk> writes:
: Also, I have second question - from what I looked in arm kernel configs, it 
: seems one needs to set following in kernel config:
: 
: options         PHYSADDR=0x10000000
: options         KERNPHYSADDR=0x10200000
: options         KERNVIRTADDR=0xc0200000         # Used in ldscript.arm
: options         FLASHADDR=0x50000000
: options         LOADERRAMADDR=0x00000000
: 
: (taken from AVILA), but I did not find description for them. For my board, 64 
: MB SDRAM is at physicall address 0x3000000. NAND flash is accessed via NAND 
: flash controller, somehow resembling disc access (actually, I think I try to 
: make it look like disc). Any help to understand these options is greatly 
: appreciated.

This is similar the atmel parts.  You'd want PHYSADDR to be
0x30000000, with all the other addresses adjusted accordingly.  You'd
have to see where your flash controller maps the flash memory...

: If anybody already did some work with Samsung's S3C2410, I would like to know 
: about it.

There is a NetBSD port that you can crib some code from.  I've looked
at the serial controller only for this board...

Warner


More information about the freebsd-arm mailing list