Skip site navigation (1)Skip section navigation (2)
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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=3Darm
>> export TARGET_ARCH=3Darm
>> export MAKEOBJDIRPREFIX=3D/usr/arm/obj
>> make buildkernel KERNCONF=3DSAM9G20EK
>> make installkernel KERNCONF=3DSAM9G20EK DESTDIR=3D/arm-kernel =A0INSTALL=
_NODEBUG=3Dt
>>
>> 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: =A0256 MB
>> ## Unknown FLASH on Bank 1 - Size =3D 0x00000000 =3D 0 MB
>> Flash: =A00 kB
>> NAND: =A0256 MiB
>> Error: 8 bit/pixel mode, but BMP has 32 bit/pixel
>> In: =A0 =A0serial
>> Out: =A0 serial
>> Err: =A0 serial
>> Net: =A0 macb0
>> Hit any key to stop autoboot: =A00
>> 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: ###############################################################=
##
>> =A0 =A0 =A0 =A0 =A0#####################################################=
############
>> =A0 =A0 =A0 =A0 =A0#####################################################=
############
>> =A0 =A0 =A0 =A0 =A0#####################################################=
##########
>> done
>> Bytes transferred =3D 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.

--=20
Regards,
Aleksander Dutkowski



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABkKHSZear9Mbky=8DAe_uk5Jz%2BJZyhT6Zaix27UtL3YOCnczw>