From owner-freebsd-arm@FreeBSD.ORG Fri Aug 15 11:17:35 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 3298177F for ; Fri, 15 Aug 2014 11:17:35 +0000 (UTC) Received: from mail-lb0-x22f.google.com (mail-lb0-x22f.google.com [IPv6:2a00:1450:4010:c04::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A7F0B2E7F for ; Fri, 15 Aug 2014 11:17:34 +0000 (UTC) Received: by mail-lb0-f175.google.com with SMTP id 10so1813819lbg.20 for ; Fri, 15 Aug 2014 04:17:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=9/lW3DeAhjCYsiGp3rd4nYUQKKF+kzHil7KbfAfASEc=; b=mjpn1C9p2kCV4KSbzlx7VAchD2HB3H8u9rCDE/xnGpmsxEJvQMyMJN4MoEuP7kJsdU /tA51lznGK1YesEdB1Ea/3yRKZuctNBmrihhP7U9+220Y152clPk7Xz/D8/3WOG6W0dF 54Ehvs1dDrqV1aP1/uAXdS2PGJbvsnN/OIZZBjqThESmKmS1/N4DSI1y20fb1HSmaD2x jvb8mwpfy3evSgFm4AxhrPNSNoBWKs30CKATyn5ET7PU8nJL65fpovLxpLLwTFu80jBQ 5GZcinuMekXAb2KbPsyoX8IO/TcRtTtT9uUSWCxN/u6a2zXBlPF+aI1ve5iO3fsZV/QI n1eg== X-Received: by 10.112.91.196 with SMTP id cg4mr10548415lbb.42.1408101452488; Fri, 15 Aug 2014 04:17:32 -0700 (PDT) Received: from ?IPv6:2001:1620:ff0:c51:8d08:7ad3:4934:e608? ([2001:1620:ff0:c51:8d08:7ad3:4934:e608]) by mx.google.com with ESMTPSA id lh6sm4826956lab.17.2014.08.15.04.17.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Aug 2014 04:17:32 -0700 (PDT) Message-ID: <53EDEC4B.8070502@gmail.com> Date: Fri, 15 Aug 2014 13:17:31 +0200 From: Mattia Rossi 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: <53EB40BC.8070506@toomeek.waw.pl> <53EB41EC.1080507@toomeek.waw.pl> <53EB8994.9080801@toomeek.waw.pl> <1407947691.56408.507.camel@revolution.hippie.lan> <53EBDA95.8000604@toomeek.waw.pl> <53EC8D1A.2000005@toomeek.waw.pl> <53EC95EE.20708@toomeek.waw.pl> <53ED6286.9000307@toomeek.waw.pl> In-Reply-To: <53ED6286.9000307@toomeek.waw.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 11:17:35 -0000 > > Then I've tried different combinations, like: > gpart add -b 1m -s 64m -t fat16 md0 > newfs_msdos -F 16 /dev/md0s1 > > gpart add -b 1m -s 64m -t '\!12' md0 > newfs_msdos -F 16 /dev/md0s1 > > gpart add -b 1m -s 64m -t '\!14' md0 > newfs_msdos -F 16 /dev/md0s1 > I'm on a different board, but I use -t fat32 (no -b either) and newfs_msdos without any options. > And still getting "Error reading cluster" on kernel file. > I've compared file on SD card and compiled one and they are match (as > diff is not giving any output). > I've also checked fragmentation and kernel file is one piece.. > > If I replace kernel with kernel.bin, then: > kernel.bin needs to be loaded witout the 100 offset I think. see below. > U-Boot SPL 2014.04-10700-g4e19806 (Aug 13 2014 - 14:44:36) > Board: Bananapi > DRAM: 1024 MiB > CPU: 960000000Hz, AXI/AHB/APB: 3/2/2 > spl: not an uImage at 1600 > > > > U-Boot 2014.04-10700-g4e19806 (Aug 13 2014 - 14:44:36) Allwinner > Technology > > CPU: Allwinner A20 (SUN7I) > Board: Bananapi > I2C: ready > DRAM: 1 GiB > MMC: SUNXI SD/MMC: 0 > *** Warning - bad CRC, using default environment > > In: serial > Out: serial > Err: serial > Net: dwmac.1c50000 > Hit any key to stop autoboot: 2  1  0 > reading uEnv.txt > ** Unable to read file uEnv.txt ** > Failed to mount ext2 filesystem... > ** Unrecognized filesystem type ** > Failed to mount ext2 filesystem... > ** Unrecognized filesystem type ** > reading boot.scr > 119 bytes read in 21 ms (4.9 KiB/s) > Jumping to boot.scr > ## Executing script at 44000000 > reading kernel > Error reading cluster > ** Unable to read file kernel ** > ## Starting application at 0x40200100 ... > data abort > pc : [<40200108>] lr : [<7ff8667c>] > sp : 7fb65b38 ip : 00000000 fp : 00000000 > r10: 00000002 r9 : 7fb65f0c r8 : 7fb79bd0 > r7 : 7ffbc628 r6 : 00000001 r5 : 7fb79bd4 r4 : 40200100 > r3 : 00000000 r2 : 7fb79bd4 r1 : 7fb79bd4 r0 : 00000001 > Flags: nZCv IRQs off FIQs off Mode SVC_32 > Resetting CPU ... > > resetting ... > > It looks like file is loaded, because output is different and says > it's data. > > In file /usr/src/sys/arm/conf/BANANAPI I have additional: > ident BANANAPI > options ROOTDEVNAME=\"ufs:/dev/da0s2\" > options INCLUDE_CONFIG_FILE > options EXT2FS #EXT2 filesystem > > but no MMC ? (same as Cubieboard2 config) > # MMC/SD/SDIO card slot support > #device mmc # mmc/sd bus > #device mmcsd # mmc/sd flash cards > Uncommented changes nothing. > > file bananapi.dts match cubieboard2.dts except: > < model = "Lemaker BananaPi"; > < compatible = "allwinner,a20-bananapi", "allwinner,sun7i-a20"; > --- > > model = "Cubietech Cubieboard2"; > > compatible = "cubietech,a20-cubieboard", "allwinner,sun7i-a20"; > > Changing boot.cmd from: > fatload mmc 0 0x40200000 kernel; go 0x40200100 > to: > fatload mmc 0 0x40200000 kernel > go 0x40200100 > > Gives nothing.. > I believe it should be fatload mmc 0 0x40200000 kernel.bin go 0x40200000 You don't have the loader part then though.. Cheers, Mat