Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Aug 2014 09:55:30 +0800
From:      Ganbold Tsagaankhuu <ganbold@gmail.com>
To:        TooMeeK Admin <maps@toomeek.waw.pl>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: U-boot for Banana Pi
Message-ID:  <CAGtf9xNPTW=VgMf69U28zArDfjzMxnMFkg3st-zufdMrB0UHoQ@mail.gmail.com>
In-Reply-To: <53EBDA95.8000604@toomeek.waw.pl>
References:  <53EB40BC.8070506@toomeek.waw.pl> <53EB41EC.1080507@toomeek.waw.pl> <D6453375-5427-406C-8399-ACBAE8E1DBBC@kientzle.com> <53EB8994.9080801@toomeek.waw.pl> <1407947691.56408.507.camel@revolution.hippie.lan> <53EBDA95.8000604@toomeek.waw.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
TooMeeK,


On Thu, Aug 14, 2014 at 5:37 AM, TooMeeK Admin <maps@toomeek.waw.pl> 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"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGtf9xNPTW=VgMf69U28zArDfjzMxnMFkg3st-zufdMrB0UHoQ>