Skip to content

Implement fastboot over NAND and sparse transfers

Tom Rini u-boot 2 versions New

Get series with b4
b4 am 20151020193805.GY23893@bill-the-cat

Versions newest first · linked by author and title

  1. v2 Latest posting 2/214 patches 0 repliesNew
  2. v2 posting 1/20 of 14 patches 0 repliesSuperseded

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14mtd: uboot: Add meaningful error message+0 -00 replies
2/14sparse: Move main header parsing to a function of its own+0 -00 replies
3/14sparse: Refactor chunk parsing function+0 -00 replies
4/14sparse: Simplify multiple logic+0 -00 replies
4/14sparse: Simplify multiple logic+0 -00 replies
5/14fastboot: Move fastboot response functions to fastboot core+0 -00 replies
5/14fastboot: Move fastboot response functions to fastboot core+0 -00 replies
6/14sparse: Implement storage abstraction+0 -00 replies
7/14fastboot: Implement flashing session counter+0 -00 replies
7/14fastboot: Implement flashing session counter+0 -00 replies
8/14sparse: Implement several chunks flashing+0 -00 replies
8/14sparse: Implement several chunks flashing+0 -00 replies
9/14fastboot: Implement NAND backend+0 -01 reply
9/14fastboot: Implement NAND backend+0 -00 replies
9/14fastboot: Implement NAND backend+0 -00 replies
10/14fastboot: nand: Add pre erase and write hooks+0 -00 replies
11/14sparse: Rename the file and header+0 -00 replies
11/14sparse: Rename the file and header+0 -00 replies
13/14sunxi: A13-Olinuxino: Enable the USB OTG controller+0 -00 replies
14/14sunxi: cubietruck: Enable the USB OTG controller+0 -00 replies

Reviews trailers per patch

10 of 20 patches have a Reviewed-by or Acked-by.

PatchTom Rini
1/14
2/14
3/14
4/14R-b
4/14R-b
5/14R-b
5/14R-b
6/14
7/14R-b
7/14R-b
8/14R-b
8/14R-b
9/14
9/14
9/14
10/14
11/14R-b
11/14R-b
13/14
14/14

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [U-Boot] [PATCH v2 00/14] Implement fastboot over NAND and sparse transfers
Quoted 47 lines · Tom Rini
Quoted 46 lines · Maxime Ripard
Quoted 44 lines · Hans de Goede

Hi,

Quoted 17 lines · Hans de Goede

Hi,

Quoted 14 lines · Maxime Ripard

Hi everyone,

Here is the second attempt at getting fastboot flashing functions working on top of a NAND, for arbitraly large images.

While the NAND support itself was quite easy to do, the support for the Android sparse images was quite difficult to add, and ended up being a quite huge refactoring of the sparse parse already in tree, that was tied to the MMC layer.

This serie has been tested on a CHIP and an A13-Olinuxino, two Allwinner devices, the CHIP for the NAND, and the Cubietruck to test the MMC.

Quoted 5 lines
Quoted 2 lines

Let me know what you think,
Maxime

Thanks, I've applied the 3 sunxi patches (12 - 14) to u-boot-sunxi/next, with the commit msg fixup suggested by Ian.

Looks like I've spoken too soon, the patch for enabling otg on the cubietruck causes build errors:

arm-linux-gnu-ld.bfd: error: /usr/lib/gcc/arm-linux-gnueabi/5.2.1/libgcc.a(_udivmoddi4.o) uses VFP register arguments, u-boot does not arm-linux-gnu-ld.bfd: failed to merge target specific data of file /usr/lib/gcc/arm-linux-gnueabi/5.2.1/libgcc.a(_udivmoddi4.o) Makefile:1173: recipe for target 'u-boot' failed
make: *** [u-boot] Error 1

Usually this means that some code is using 64 bit int division without using the proper macros for this.

For some reason I'm not seeing the same on the A13-OlinuxIno, that patch for that seems to be missing the id pin, which could have something to do with this.

I think this is caused by some 64 bit math in the fastboot code somewhere ...

For now I've dropped these 2 patches from u-boot-sunxi/next

Quoted 8 lines
Quoted 3 lines

Which 2 patches then? Cubietruck and this one?

Do you have a toolchain tarball for this so that I can test easily?

The arm-none-eabi toolchain that's apt-get'able should show this. You could even fudge this by (I _think_) forcing U-Boot to build with -march=armv5te rather than armv7. I _might_ even be able to spot it in the patch review :)

... I take it back, I couldn't locally reproduce this with the arm-none-eabi toolchain I have around and 12-14 applied in a local branch. Hans, last time I saw this error (last night even) there was a bit more in the log about which file/function was doing the mis-match. Do you have the full error log handy? Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151020/6c0c4489/attachment.sig>