On Mon, 2015-10-12 at 13:52 +0200, Piotr Król wrote:
> Hi all,
> I'm trying to utilize method of flashing NAND used by CHIP developers
> [1] on
> my Cubietruck. In short they boot in FEL, write SPL, U-Boot and
> rootfs
> to RAM and then after booting to U-Boot write those information to
> NAND.
> This give ability to avoid {Live,Phoenix}Suit.

> 
> Because CHIP u-boot based on 2015.07 release and it lacks DT for
> Cubietruck in private chat Boris suggested Hans sunxi-wip U-Boot tree
> [2]. sunxi-wip based on 2015.10-rc4 and I see a lot of difference
> with
> CHIP tree. I'm not sure what is exactly needed to enable NAND flashig
> on
> Cubietruck.
> 
> One thing that is missing in sunxi-wip but used by CHIP is sunxi_nand
> config command, second is suxi_nand_spl.c. But I would like to avoid
> brainless porting of code that can lead nowhere. Especially that I
> don't
> know what it exactly does.
> 
> What I tried so far:
> 
> * booting sunxi-wip using FEL - works fine
> * successful nand write of padded and not padded SPL - at least it
>   returens OK
> * nand write of U-Boot [3]
> 
> CT NAND chip is H27UCG8T2ATR-BC (Page Size : 8192 + 640(Spare), Block
> Size : 2M + 160K bytes).
> 
> Unfortunately after reboot nothing happens no single message from
> SPL. When
> trying after SPL write U-Boot I get [3].
> 
> Did anyone tried nand write on Cubietruck ? If yes then how it was
> tested ?
> Any reason why despite no errors during nand write SPL was not
> flashed?
> Or any reason why flashed SPL doesn't boot ?
> 
> Any suggestions or comments are welcome.
> 
> [1] https://github.com/NextThingCo/CHIP-tools/blob/chip/stable/chip-f
> el-flash.sh
> [2] https://github.com/jwrdegoede/u-boot-sunxi/tree/sunxi-wip
> [3] https://gist.github.com/pietrushnic/b2eeb1f8c4e40d687939
> 

I have successfully done it via mainline kernel from Hans's WIP branch
using mdt-utils like this: http://lists.denx.de/pipermail/u-boot/2015-M
ay/214959.html

Päikest,
Priit Laes :)

-- 
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.

Reply via email to