From owner-freebsd-arm@FreeBSD.ORG Thu Aug 14 01:55:31 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 AC22B432 for ; Thu, 14 Aug 2014 01:55:31 +0000 (UTC) Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) (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 78EA82D26 for ; Thu, 14 Aug 2014 01:55:31 +0000 (UTC) Received: by mail-ig0-f169.google.com with SMTP id r2so13066002igi.0 for ; Wed, 13 Aug 2014 18:55:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/zIruIhrCRgBCWlYQfvgQ9myDE0xERwa23yJd1Zx4BE=; b=mzX3Ted8HjY5J7lHOJy7xStzs2rvlbuVMj0TTbP/PpQW9/rS6Z0h99s53z2o6XCL+k 7Ddd7zXXmn65jtX1mecQLO0ec5Gs8mIwJoUfY839VDxrQJ6GzM0Ec866trlQ0ZbGHeYc 7RA7QkbC+YsV9RC7u35LQtGOwmzHjjwk45tOrjIJ3rpbkUHzOhTEVOoqnxxa+Zvk6pXY vF+N88IBFvPSWyqWLADb+Muc4CsiID0vg/WkYqe1inZ0eVDMoP2n5+4swTAz040AcQuR u01+6OlrHA1rIi8+U5/ex91i+zjb0yORUvIGwMgCoVZWjLZZek6EuOfDTV4Tdfi1AbFN KN/A== MIME-Version: 1.0 X-Received: by 10.42.91.200 with SMTP id q8mr1756510icm.63.1407981330811; Wed, 13 Aug 2014 18:55:30 -0700 (PDT) Received: by 10.64.111.104 with HTTP; Wed, 13 Aug 2014 18:55:30 -0700 (PDT) In-Reply-To: <53EBDA95.8000604@toomeek.waw.pl> 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> Date: Thu, 14 Aug 2014 09:55:30 +0800 Message-ID: Subject: Re: U-boot for Banana Pi From: Ganbold Tsagaankhuu To: TooMeeK Admin Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-arm@freebsd.org" 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: Thu, 14 Aug 2014 01:55:31 -0000 TooMeeK, On Thu, Aug 14, 2014 at 5:37 AM, TooMeeK Admin wrote: > Thank You Ian, > > but still not booting: > 1. case one: echo "fatload mmc 0 0x43000000 script.bin; fatload mmc 0 > 0x48000000 kernel; dcache off; dcache flush; go 0x48000100" > boot.cmd > 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 > 182 bytes read in 21 ms (7.8 KiB/s) > Jumping to boot.scr > ## Executing script at 44000000 > reading script.bin > 51072 bytes read in 243 ms (205.1 KiB/s) > > reading kernel > Error reading cluster > ** Unable to read file kernel ** > Unknown command 'dcache' - try 'help' > Unknown command 'dcache' - try 'help' > ## Starting application at 0x48000100 ... > > 2. case two: echo "fatload mmc 0 0x43000000 script.bin; fatload mmc 0 > 0x48000000 kernel; go 0x48000100" > boot.cmd > > 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 > 156 bytes read in 21 ms (6.8 KiB/s) > Jumping to boot.scr > ## Executing script at 44000000 > reading script.bin > 51072 bytes read in 243 ms (205.1 KiB/s) > > reading kernel > Error reading cluster > ** Unable to read file kernel ** > ## Starting application at 0x48000100 ... > boot,scr, script.bin, uEnv.txt etc are not really matters now. script.bin is needed for linux, so you don't really need it. I think boot.scr, uEnv etc are related to u-boot, so for now you can leave them. I hope you have SD card and it is FAT formatted and you put there kernel. You can try as I said before: fatload mmc 0 0x40200000 kernel; go 0x40200100 Because if you look /usr/src/sys/arm/allwinner/a20/std.a20 there are lines that defines addresses like KERNPHYSADDR which is 0x40200000. Please try above command. I hope you didn't change anything in dts file. Ganbold > > Bootm doesn't work since it cannot be used with this kind of kernel. > > W dniu 2014-08-13 18:34, Ian Lepore pisze: > > >> The 'go' command has to have an addres 0x100 higher than the load >> adddress (to skip the elf headers and start at the true entry point). >> >> Also, if you're using a modern u-boot that enables data caches, it won't >> automatically disable them on a 'go' command (it does on bootm or >> bootelf), so use this sequence: dcache off; dcache flush; go nnnnnnnn >> >> -- Ian >> >> > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >