From owner-freebsd-arm@FreeBSD.ORG Tue Jan 3 15:00:29 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C49B0106566B for ; Tue, 3 Jan 2012 15:00:29 +0000 (UTC) (envelope-from adutkowski@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 91E018FC0C for ; Tue, 3 Jan 2012 15:00:29 +0000 (UTC) Received: by iadj38 with SMTP id j38so38989482iad.13 for ; Tue, 03 Jan 2012 07:00:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=ifzLX0G4TftKR1os3krgwkwWuf/kZKaU/GPWAJqh9Q0=; b=N+a3WPnhqakpAyhCMMKPZicsLB4A2k/qVLKnJT3aXPhqcy08lVJO53kKGH85zv8DH5 wjc0up89ZwfELqEUchc0A7IvzrxH8Po68DQupirB789g31UrdizxddZ+zUcwBC40dM3q bt3W8AnQMYlTrdk2FTNh9iWvy+XBkvkd48sls= MIME-Version: 1.0 Received: by 10.42.243.2 with SMTP id lk2mr51218871icb.8.1325602828969; Tue, 03 Jan 2012 07:00:28 -0800 (PST) Received: by 10.50.89.165 with HTTP; Tue, 3 Jan 2012 07:00:28 -0800 (PST) In-Reply-To: <20120103104814.GA95533@ci0.org> References: <20120103104814.GA95533@ci0.org> Date: Tue, 3 Jan 2012 16:00:28 +0100 Message-ID: From: Aleksander Dutkowski To: Olivier Houchard , freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: porting freebsd to at91sam9g45 ( SBC6045 board) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jan 2012 15:00:29 -0000 Hi Oliver! On Tue, Jan 3, 2012 at 11:48 AM, Olivier Houchard 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