Date: Tue, 3 Jan 2012 16:00:28 +0100 From: Aleksander Dutkowski <adutkowski@gmail.com> To: Olivier Houchard <mlfbsd@ci0.org>, freebsd-arm@freebsd.org Subject: Re: porting freebsd to at91sam9g45 ( SBC6045 board) Message-ID: <CABkKHSZear9Mbky=8DAe_uk5Jz%2BJZyhT6Zaix27UtL3YOCnczw@mail.gmail.com> In-Reply-To: <20120103104814.GA95533@ci0.org> References: <CABkKHSbVEi6-0L%2BTX4tQSV2pa1Kp1RtkVKKPDe1rOF3oatfGGQ@mail.gmail.com> <20120103104814.GA95533@ci0.org>
index | next in thread | previous in thread | raw e-mail
Hi Oliver! On Tue, Jan 3, 2012 at 11:48 AM, Olivier Houchard <mlfbsd@ci0.org> wrote: > Hi Aleksander, > > On Tue, Jan 03, 2012 at 01:37:24AM +0100, Aleksander Dutkowski wrote: >> hi! >> >> Ive just come from linux world to FreeBSD and I have SBC6045 board >> based on at91sam9g45 SoC so Ive decided to try and port FBSD on it ;) >> I have quite good knowledge in x86 processor internals like paging, >> protected mode etc, but I haven't been programing low level on arm >> arch yet. >> >> Somebody created port for SAM9G20EK, so I tried to compile and run it: >> >> cd /usr/arm // my own copy from svn >> export TARGET=arm >> export TARGET_ARCH=arm >> export MAKEOBJDIRPREFIX=/usr/arm/obj >> make buildkernel KERNCONF=SAM9G20EK >> make installkernel KERNCONF=SAM9G20EK DESTDIR=/arm-kernel INSTALL_NODEBUG=t >> >> file /arm-kernel/boot/kernel/kernel >> kernel: ELF 32-bit LSB executable, ARM, version 1 (FreeBSD), >> dynamically linked (uses shared libs), not stripped >> >> And this is output from board's debug console: >> ---------------------------------------------------------------------------------------------- >> Start AT91Bootstrap... >> >> U-Boot 1.3.4 (May 15 2011 - 11:23:14) >> >> DRAM: 256 MB >> ## Unknown FLASH on Bank 1 - Size = 0x00000000 = 0 MB >> Flash: 0 kB >> NAND: 256 MiB >> Error: 8 bit/pixel mode, but BMP has 32 bit/pixel >> In: serial >> Out: serial >> Err: serial >> Net: macb0 >> Hit any key to stop autoboot: 0 >> U-Boot> tftp 0x20000000 fbsd >> macb0: Starting autonegotiation... >> macb0: Autonegotiation complete >> macb0: link up, 100Mbps full-duplex (lpa: 0x4de1) >> Using macb0 device >> TFTP from server 192.168.3.1; our IP address is 192.168.3.2 >> Filename 'fbsd'. >> Load address: 0x20000000 >> Loading: ################################################################# >> ################################################################# >> ################################################################# >> ############################################################### >> done >> Bytes transferred = 3775383 (399b97 hex) >> U-Boot> go 0x200000C0 > > > I'm not sure u-boot works that way, I think you should either use > "bootelf 0x20000000", or load kernel.bin, instead of just kernel, and > just "go 0x20000000". > > Regards, > > Olivier I sent kernel.bin via tftp but the effect is the same. Maybe I will be able to borrow J-TAG, so I could check, when it fails. -- Regards, Aleksander Dutkowskihelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABkKHSZear9Mbky=8DAe_uk5Jz%2BJZyhT6Zaix27UtL3YOCnczw>
