Re: [linux-sunxi] Re: U-boot fails to read my SD cards

2015-08-21 Thread Tapio Valli
I was seeing probably the same issue with my ITEAD Core A20 board. The ITEAD image is able to read uImage successfully. The sunxi u-boot reads small files ok but fails on kernel/any other larger file. I would be very interested to find a fix here. I'll try the solutions Hans suggested as I

[linux-sunxi] Re: [PATCH 1/2] sunxi-tools: prevent possible out-of-bounds memory access

2015-08-21 Thread Bernhard Nortmann
Am 21.08.2015 03:34, schrieb Siarhei Siamashka: My compiler happens to be anal about this: fel.c: In function ‘aw_fel_process_spl_and_uboot’: fel.c:838:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (size SPL_LEN_LIMIT) ^ This warning

[linux-sunxi] [PATCH] mtd: nand: sunxi: rely on nand_dt_init initialization

2015-08-21 Thread Boris Brezillon
nand_dt_init(), called from nand_scan_ident(), is already parsing the generic MTD/NAND DT properties, and initializing the nand_chip struct accordingly. Rely on this initialization instead of manually parsing those properties. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com ---

Re: [linux-sunxi] Re: U-boot fails to read my SD cards

2015-08-21 Thread Tapio Valli
I tried both suggestions: 1) My u-boot was quite old, now it should be updated 2) Changed the axp209 power_failed voltages to match values in my script.fex Re-compiled and re-build SD card. I still get the same issue with uImage loading failed, the log is below. I have tested the system through

[linux-sunxi] Re-using sun5i-a13.dtsi for the r8 ?

2015-08-21 Thread Hans de Goede
Hi Maxime, I just realized that I never answered your question about the need for a tvencoder simplefb node in sun5i-a13.dtsi, like the one from the ARM: dts: sun5i: Add simplefb node for tvencoder output I think the real question is do we want to use sun5i-a13.dtsi for the r8 ? I would expect

Re: [linux-sunxi][PATCH] ARM: sun7i: dt: Add new Olimex A20 EVB device

2015-08-21 Thread Hans de Goede
Hi, On 21-08-15 07:36, Code Kipper wrote: On 20 August 2015 at 17:45, Maxime Ripard maxime.rip...@free-electrons.com wrote: Hi, On Wed, Aug 19, 2015 at 06:43:16PM +0200, codekip...@gmail.com wrote: From: Marcus Cooper codekip...@gmail.com The A20-SOM-EVB is a reference design of a 2-layer

Re: [linux-sunxi] Re: U-boot fails to read my SD cards

2015-08-21 Thread Hans de Goede
Hi, On 20-08-15 15:14, Stefan Monnier wrote: IIUC there's a general sentiments that most SD cards are crap (and indeed mine are all oldcheap), but I find it striking that they work everywhere *except* for U-boot reading a large file. What sunxi board(s) are you using ? I have a Mele A2000, a

Re: [linux-sunxi] Complete Mali Device Driver Stack

2015-08-21 Thread 'Simos Xenitellis' via linux-sunxi
On Thu, Aug 20, 2015 at 5:59 PM, huziqin 13537828...@163.com wrote: Hello, Sina Dogru, I am Johnny hu. I can not answer your question. But I am interesting on your subject, I suggest you can try it on first, and tell us what you have tried(what message you got from the system). Then maybe

Re: [linux-sunxi] Re: [PATCH 1/2] sunxi-tools: prevent possible out-of-bounds memory access

2015-08-21 Thread Hans de Goede
Hi, On 21-08-15 03:34, Siarhei Siamashka wrote: On Thu, 20 Aug 2015 14:24:33 +0200 Bernhard Nortmann bernhard.nortm...@web.de wrote: This patch is to prevent the call to aw_fel_write_uboot_image() with insufficient file size. If a user passes a boot file smaller than 32K, e.g. on fel spl

Re: [linux-sunxi][PATCH] ARM: sun7i: dt: Add new Olimex A20 EVB device

2015-08-21 Thread Hans de Goede
Hi, On 21-08-15 09:42, Hans de Goede wrote: Hi, On 21-08-15 07:36, Code Kipper wrote: On 20 August 2015 at 17:45, Maxime Ripard maxime.rip...@free-electrons.com wrote: Hi, On Wed, Aug 19, 2015 at 06:43:16PM +0200, codekip...@gmail.com wrote: From: Marcus Cooper codekip...@gmail.com The