[U-Boot] [linux-sunxi] [UBOOT NAND] [PATCH 0/4] Add nand reading support to u-boot

Hans de Goede hdegoede at redhat.com
Tue Jan 6 13:07:09 CET 2015


Hi,

On 06-01-15 12:57, Yassin Jaffer wrote:
>
> Hi Hans
>
> I was working on utilizing the DM framework for the nand driver, but this
> is going to take sometime , anyway I will try to submit the driver based on
> bbrezillon work.

Ok, thanks. I'm looking forward to the posting of the next version of your
series.

> I'm quite happy if Daniel wants to pickup my work,

It looks to me like Daniel may have more time to work on this atm then you,
so that might be a good idea. Either way please coordinate with each other
to avoid double work. You can use private mail to Daniel for the coordination
stuff if you prefer, it would be nice if you could send a short summary of
who plans to do what once that is clear.

 > besides Daniel patches are for the SPL nand driver.

We should be able to use your adaption of Boris' work in the SPL too, for
mmc we are also using the same driver in both SPL and regular u-boot, and I
assume that Daniel's patches are also capable of loading say a kernel from
nand, right Daniel ?

Regards,

Hans


>
> Regards
>
> On Tuesday, January 6, 2015 12:08:48 AM UTC+11, Hans de Goede wrote:
>>
>> Hi,
>>
>> On 02-01-15 09:53, Daniel Kochmański wrote:
>>> This is a series of patches to enable nand read functionality on sunxi
>>> devices. It uses DMA and is able to read from syndrome partitions and
>>> normal ones. Additionaly mksunxiboot tool is patched to be able to
>>> format resulting binary to be able to read from BROM, so NAND SPL builds
>>> are now possible. a20_nandread command is added for conveniance.
>>>
>>> Afaik DMA controller doesn't vary between a10 and a20, so this should
>>> work on a10 devices, but due to no a10 hardware it wasn't tested.
>>
>> First of all many thanks for working on this!
>>
>> I see that this is against linux-sunxi/u-boot-sunxi.git, that is not
>> (really) being actively developed anymore, see:
>>
>>
>> https://www.marshut.net/kuispp/linux-sunxi-u-boot-sunxi-is-no-longer-supported-time-to-switch-to-upstream-u-boot.html
>>
>> Can you please rebase on top of upstream u-boot, on top of the next
>> branch:
>> http://git.denx.de/?p=u-boot/u-boot-sunxi.git;a=shortlog;h=refs/heads/next
>> ?
>>
>> Your patches all seem to only have a subject and not a proper commit
>> message,
>> please add a commit message to all of them describing the changes in
>> somewhat
>> more detail then you do in the subject, you could e.g. re-use bits of your
>> coverletter. Also for upstream u-boot we require a Signed-off-by as part
>> of the
>> commit message, so please add a line like this one to all your commit
>> messages:
>>
>> Signed-off-by: Daniel Kochmański <dkoch... at antmicro.com <javascript:>>
>>
>> You can make git do this automatically by specifying the -s option when
>> committing,
>> also please send further versions of this patch-set to the upstream u-boot
>> list.
>>
>> Besides all the above, which is easily fixed, unfortunately we also have
>> the problem
>> (or luxury) that Yassin Jaffer (added to the CC) has also been working on
>> nand support,
>> re-using the upstream kernel code Boris Brezillon has been working on,
>> see:
>>
>> https://github.com/yassinjaffer/u-boot/commits/sunxi-nand
>>
>> I believe that Yassin's version is better then yours because it re-uses
>> existing
>> nand infrastructure rather then more or less starting from scratch.
>>
>> But Yassin has not been very active on this, and has been reluctant to
>> submit
>> his work upstream because it has not been tested a lot yet.
>>
>> The best way forward may very well be you picking up Yassin's work (in
>> coordination
>> with Yassin), and submitting that to upstream u-boot.
>>
>> Yassin, I notice that the patches in your git repo do not have a
>> Signed-off-by,
>> can you please reply to this mail with your Signed-off-by to indicate that
>> it is
>> ok for us to add your Signed-off-by to your patches ?
>>
>> Regards,
>>
>> Hans
>>
>>
>>
>>
>>
>>>
>>> Daniel Kochmański (4):
>>>     sunxi: nand: add minimal nand driver (reading flash only).
>>>     sunxi: mksunxiboot: increase block size, so checksum is correct on
>>>       nand
>>>     sunxi: nand: add nand spl boot option
>>>     sunxi: nand: add a20_nandread command
>>>
>>>    arch/arm/cpu/armv7/sunxi/board.c |   4 +
>>>    board/sunxi/Makefile             |   1 +
>>>    board/sunxi/nand.c               | 252
>> +++++++++++++++++++++++++++++++++++++++
>>>    common/Makefile                  |   1 +
>>>    common/cmd_a20_nandread.c        |  26 ++++
>>>    common/spl/spl_nand.c            |  23 +++-
>>>    include/configs/sunxi-common.h   |  25 ++--
>>>    tools/mksunxiboot.c              |   2 +-
>>>    8 files changed, 322 insertions(+), 12 deletions(-)
>>>    create mode 100644 board/sunxi/nand.c
>>>    create mode 100644 common/cmd_a20_nandread.c
>>>
>>
>


More information about the U-Boot mailing list