Hi,

On 02/24/2015 10:15 AM, Siarhei Siamashka wrote:
On Tue, 24 Feb 2015 04:18:40 +0200
Siarhei Siamashka <[email protected]> wrote:

This is the fix for the previously non-working 'fel spl' command
on Allwinner A13. And some other improvements.

Also available at:
     https://github.com/ssvb/sunxi-tools/commits/20150223-fel-fixes

BTW, it would be great if somebody could test this branch on A23
hardware before we move on (because I don't have A23 to test it
myself). The USB FEL boot usage instructions are here:

     http://linux-sunxi.org/FEL/USBBoot

Please paste the output of 'fel -v spl u-boot-sunxi-with-spl.bin'. It
should check and report some information about the MMU setup, which may
be important for additional tuning.

[hans@localhost sunxi-tools]$ sudo ./fel -v spl 
~/projects/sunxi/u-boot/u-boot-sunxi-with-spl.bin
Reading the MMU translation table from 0x00008000
Disabling I-cache, MMU and branch prediction... done.
=> Executing the SPL... done.
Setting write-combine mapping for DRAM.
Setting cached mapping for BROM.
Writing back the MMU translation table.
Enabling I-cache, MMU and branch prediction... done.

This is with the attached patch, with this patch the A23 works fine.

Regards,

Hans

--
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
>From e95db2d9c8d97393749edae6638306c035294460 Mon Sep 17 00:00:00 2001
From: Hans de Goede <[email protected]>
Date: Tue, 24 Feb 2015 19:15:14 +0100
Subject: [PATCH] Add fel spl support for A23

Signed-off-by: Hans de Goede <[email protected]>
---
 fel.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/fel.c b/fel.c
index 9ab0fe1..8126498 100644
--- a/fel.c
+++ b/fel.c
@@ -388,6 +388,11 @@ soc_sram_info soc_sram_info_table[] = {
 		.swap_buffers = a10_a13_a20_sram_swap_buffers,
 	},
 	{
+		.soc_id       = 0x1650, /* Allwinner A23 */
+		.thunk_addr   = 0x46E00, .thunk_size = 0x200,
+		.swap_buffers = a31_sram_swap_buffers,
+	},
+	{
 		.soc_id       = 0x1633, /* Allwinner A31 */
 		.thunk_addr   = 0x46E00, .thunk_size = 0x200,
 		.swap_buffers = a31_sram_swap_buffers,
-- 
2.3.0

Reply via email to