From owner-freebsd-arm@FreeBSD.ORG Fri Aug 15 15:13:44 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8FCB48D5 for ; Fri, 15 Aug 2014 15:13:44 +0000 (UTC) Received: from poczta.toomeek.waw.pl (unknown [IPv6:2001:67c:232c:1000::fd9b:4fb4]) by mx1.freebsd.org (Postfix) with ESMTP id 4DD4B2B95 for ; Fri, 15 Aug 2014 15:13:44 +0000 (UTC) Received: from [192.168.137.1] (afqd159.neoplus.adsl.tpnet.pl [178.42.159.159]) by poczta.toomeek.waw.pl (Postfix) with ESMTPSA id 9EA99C601A1 for ; Fri, 15 Aug 2014 11:13:41 -0400 (EDT) Message-ID: <53EE23B1.2020403@toomeek.waw.pl> Date: Fri, 15 Aug 2014 17:13:53 +0200 From: TooMeeK Admin User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: "freebsd-arm@freebsd.org" Subject: Re: U-boot for Banana Pi References: <53EE0F93.6060407@toomeek.waw.pl> In-Reply-To: <53EE0F93.6060407@toomeek.waw.pl> X-Forwarded-Message-Id: <53EE0F93.6060407@toomeek.waw.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.3.9 (poczta.toomeek.waw.pl [0.0.0.0]); Fri, 15 Aug 2014 11:13:43 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.98.1 at a8d2ba546e X-Virus-Status: Clean X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2014 15:13:44 -0000 To update this, "Error reading sector" is definitely caused by compiled file: /usr/src/u-boot-sunxi/u-boot.bin because when: dd if=sunxi-spl.bin conv=notrunc of=banana.img bs=1024 seek=8 dd if=/usr/src/u-boot-sunxi/u-boot.bin conv=notrunc of=banana.img bs=1024 seek=32 It reports sector error on reading kernel, but with u-boot.bin from Cubieboard2 Wiki it works.. I didn't changed anything in u-boot-sunxi sources. Let's see differences in boards.cfg: Active arm armv7 sunxi - sunxi Bananapi sun7i:BANANAPI,SPL,SUNXI_GMAC,RGMII,MACPWR=SUNXI_GPH(23),STATUSLED=244,STATUSLED1=245,FAST_MBUS Active arm armv7 sunxi - sunxi Cubieboard2 sun7i:CUBIEBOARD2,SPL,SUNXI_GMAC,STATUSLED=244,STATUSLED1=245,FAST_MBUS There are little differences in: diff board/sunxi/dram_bananapi.c board/sunxi/dram_cubieboard2.c 7c7 < .clock = 432, --- > .clock = 480, But even after changing this to match clock from Cubieboard2 it's not working.. Kernel isn't booting with mmc, mmcsd enabled in kernel config and memory addressing to: memory { device_type = "memory"; reg = < 0x40000000 0x00000000 >; /* 1024MB RAM */ }; Probably I missunderstood memory addressing?? hex 40000000 is 1073741824 decimal ~1024MB or should be here reg = < 0x40000000 0x40000000 >; Regarding: | You are now very close, check usb flash, if you followed Cubieboard instruction (https://wiki.freebsd.org/FreeBSD/arm/Cubieboard) you have to change da0s2 to da0 in kernel config. I cannot do this, because I'm using internal SD card second slice for booting, not external USB flash. My goal is to fit FreeBSD 10.x on 1GB SD card as base OS ;) Cheers, TooMeeK