Date: Sat, 31 Mar 2007 09:24:24 -0600 (MDT) From: "M. Warner Losh" <imp@bsdimp.com> To: freebsd-arm@dino.sk Cc: freebsd-arm@freebsd.org Subject: Re: ARM cross compiling question Message-ID: <20070331.092424.43007518.imp@bsdimp.com> In-Reply-To: <200703311533.02429.freebsd-arm@dino.sk> References: <200703311533.02429.freebsd-arm@dino.sk>
next in thread | previous in thread | raw e-mail | index | archive | help
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@dino.sk> Milan Obuch <freebsd-arm@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070331.092424.43007518.imp>