From owner-freebsd-arm@freebsd.org Tue Apr 19 07:34:14 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3942AB1359C for ; Tue, 19 Apr 2016 07:34:14 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A817D1A5E for ; Tue, 19 Apr 2016 07:34:13 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 464c7a4a; Tue, 19 Apr 2016 09:34:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=fKWJhpQxd2lUZ+MLg+A2QwX/wuo=; b=VT4EQyIe3OTM8X3CZuKkxdPx6FSw rorGkmJ/PRqB82mPDkoaflU10wKWijTEZgyVKBmYU6gYaY1rBT5MYSClxpcU2zqS 5L3R4nFZfTt2c6I7PoiXomFeYfrHRgU4AOJl98OsQce/DNNMXAmi3wZDYhj2sMQS meninpBBmVSD84s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=Y2heQ4hBhjxSQacLLCQWFHce44Hmgw2M72wQEb75o7I5D+oAFFVVW4OB 8XQ6c7IHAmg3OaxiD1Qme4nF6MqRienvBBJSp5S97f1POz7i3/Cy5aVLih5PTZr6 wu3Zn8WIS7ox5Jc8b1GbYEg+8gPVy1Bn7uUUZuA67gWeuGVGJhY= Received: from knuckles.blih.net (ip-54.net-82-216-203.roubaix.rev.numericable.fr [82.216.203.54]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 7faf365d TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Tue, 19 Apr 2016 09:34:10 +0200 (CEST) Date: Tue, 19 Apr 2016 09:34:08 +0200 From: Emmanuel Vadot To: Milan Obuch Cc: freebsd-arm@freebsd.org, Erich Dollansky Subject: Re: Orange Pi One Message-Id: <20160419093408.2f6d8d6472b09298f1e08ecb@bidouilliste.com> In-Reply-To: <20160419092012.0ad4ad2d@zeta.dino.sk> References: <20160413232414.3a37907e@zeta.dino.sk> <20160414062820.7b907ba9@X220.alogt.com> <20160414064405.202e4eef@zeta.dino.sk> <20160418094916.10dc9ae8@zeta.dino.sk> <20160418174918.33d3d19e4105eb737d17b122@bidouilliste.com> <20160418210108.4047c526@zeta.dino.sk> <20160419092012.0ad4ad2d@zeta.dino.sk> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2016 07:34:14 -0000 On Tue, 19 Apr 2016 09:20:12 +0200 Milan Obuch wrote: > > One step further - compiled ubldr as part of buildworld, tried, and > found I need ubldr.bin to start boot process, ubldr just keeps crashing > with following: > > Booting from: mmc 0 ubldr > reading ubldr > 235312 bytes read in 63 ms (3.6 MiB/s) > ## Starting application at 0x01000098 ... > undefined instruction > pc : [<01c0f00c>] lr : [<5ff77138>] > reloc pc : [] lr : [<4a007138>] > sp : 5bf4ba70 ip : 00000030 fp : 5ff76ffc > r10: 00000001 r9 : 5bf4fee8 r8 : 00000000 > r7 : 00000001 r6 : 5bf513e0 r5 : 01000098 r4 : 00000000 > r3 : 00000001 r2 : 01c28000 r1 : 5bf513e4 r0 : 00000000 > Flags: nZCv IRQs off FIQs off Mode SVC_32 > Resetting CPU ... > > resetting ... > > but ubldr.bin works (command typed manually): > > => fatload mmc 0 0x42000000 ubldr.bin > reading ubldr.bin > 192096 bytes read in 58 ms (3.2 MiB/s) > => go 0x42000000 > ## Starting application at 0x42000000 ... > Consoles: U-Boot console > Compatible U-Boot API signature found @0x5bf504c8 > > FreeBSD/arm U-Boot loader, Revision 1.2 > (root@zeta.dino.sk, Tue Apr 19 06:33:11 CEST 2016) > > DRAM: 512MB > MMC Device 1 not found > Number of U-Boot devices: 1 > U-Boot env: loaderdev='mmc 0' > Found U-Boot device: disk > Checking unit=0 slice= partition=... good. > Booting from disk0s1: > - > can't load 'kernel' > > Type '?' for a list of commands, 'help' for more detailed help. > loader> > > Now I can type loader command, so I can try to load kernel if I had one > (I tried to build it from stock FreeBSD sources, but something was > wrong, I must figure why buildkernel did not produce kernel... just > testing now, waiting where it breaks). > > Milan For ubldr to work you need to set UBLDR_LOADADDR variable to the correct address. Could you send me your u-boot-sunxi-with-spl.bin please ? I must miss something I can get one to work on my orangepi one now. -- Emmanuel Vadot