usb: dfu: nand: drop ffs from the image

Signed-off-by: Bo Shen <voice.shen@atmel.com>
usb: dfu: decrease dfu->r_left along with the transfer

The value of dfu->r_left need decrease along with the transfer

Signed-off-by: Bo Shen <voice.shen@atmel.com>
usb: dfu: correct dfu buffer inited value

After dfu buffer is initialized, the buffer should be all available,
while not 0. Initialize its value to min(dfu_buf_size, dfu->r_left).

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
usb: dfu: make nand upload working

Nowhere pass a value to len, which always 0, make no transfer which
cause uploading failed.

This patch make nand upload working. However it needs enough malloc
buffer to store read data, that means the buffer at least equal to
the upload partition size, or else it doesn't work.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
arm: atmel: sama5d3: enlarge the mem malloc size

Signed-off-by: Bo Shen <voice.shen@atmel.com>
arm: atmel: sama5d3: add ext4 file system support

Add ext4 file system support and also support ext4 write command

Signed-off-by: Bo Shen <voice.shen@atmel.com>
arm: atmel: sama5d3: add fatwrite support

Signed-off-by: Bo Shen <voice.shen@atmel.com>
arm: atmel: sama5d3: add ubi support

Signed-off-by: Bo Shen <voice.shen@atmel.com>
arm: atmel: sama5d3: add dfu support

Signed-off-by: Bo Shen <voice.shen@atmel.com>