Skip to content

mtd: Add SPI-NOR core support

Tom Rini u-boot 4 versions – New

Get series with b4
b4 am 20160328133145.GD23166@bill-the-cat

Versions newest first · linked by author and title

  1. v7 Latest posting 2/20 of 87 patches 0 repliesNew
  2. v7 posting 1/20 of 87 patches 0 repliesSuperseded
  3. v6 posting 2/20 of 76 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v6 posting 1/20 of 76 patches0 repliesSuperseded

Patches in v7 posting 2/2 No applies recorded yet

None of the 87 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.

Read the v7 thread

Cover letter [U-Boot] [PATCH v7 00/87] mtd: Add SPI-NOR core support
Quoted 23 lines · Jagan Teki
Quoted 22 lines · Tom Rini

On Tue, Mar 22, 2016 at 01:19:25PM +0530, Jagan Teki wrote:
[snip]

Quoted 13 lines

Issues:
-------
1) undefined reference to `__aeabi_ldivmod'

59: config: Enable SPI-NOR framework
arm: + nyan-big

(quoted diff) +2 -0
+drivers/mtd/spi-nor/built-in.o: In function `spi_nor_write':
+build/../drivers/mtd/spi-nor/spi-nor.c:585: undefined reference to

`__aeabi_ldivmod'
+arm-unknown-linux-gnueabi-ld.bfd: BFD (GNU Binutils) 2.24 assertion fail /home/tony/buildall/src/binutils/bfd/elf32-arm.c:7696 +arm-unknown-linux-gnueabi-ld.bfd: error: required section '.rel.plt' not found in the linker script

Review

Quoted 3 lines
(quoted diff) +3 -0
+arm-unknown-linux-gnueabi-ld.bfd: final link failed: Invalid operation
+make[1]: *** [u-boot] Error 1
+make: *** [sub-make] Error 2

So this is a 64bit division problem somewhere along the lines that needs to be using one of the normal helper functions.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

2) Build issues on dra72_evm, dra74_evm

What are they?

Build issue with spl, I guess this is because dm used for normal u-boot and not used for spl.

Yes, this is still true. It sounds like you need to make sure that the code continues to build for both cases?

Quoted 23 lines

Mugunthan, can you look in to this?

Quoted 15 lines

Review

Quoted 10 lines

3) SPL image too big

59: config: Enable SPI-NOR framework
arm: + axm

(quoted diff) +5 -0
+arm-unknown-linux-gnueabi-ld.bfd: SPL image too big
+arm-unknown-linux-gnueabi-ld.bfd: SPL image BSS too big
+make[2]: *** [spl/u-boot-spl] Error 1
+make[1]: *** [spl/u-boot-spl] Error 2
+make: *** [sub-make] Error 2

Sounds like you need to go back and take some care about how we do this in SPL. Given the current gcc issue wrt merging strings together, we may need to be more careful about what files we compile and link for SPL in this case and perhaps need to split a file or two up.

With proper commenting code for SPL build on mtdcore and changes on SPL size macros, build look fine.

+++ b/include/configs/taurus.h

Review

Quoted 4 lines
(quoted diff) +2 -2
-#define CONFIG_SPL_MAX_SIZE            (31 * SZ_512)
+#define CONFIG_SPL_MAX_SIZE            (36 * SZ_512)
-#define CONFIG_SPL_BSS_MAX_SIZE                (3 * SZ_512)
+#define CONFIG_SPL_BSS_MAX_SIZE                (4 * SZ_512)

OK, but we can't just increase the sizes here, these platforms have a small footprint we need to stick to. We need to see what can be trimmed out to make them continue to fit.

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/20160328/ea69ef0f/attachment.sig>