[U-Boot] [PATCH v3 0/7] add support for the etamin draco board variant.

Heiko Schocher hs at denx.de
Tue Jun 7 08:55:38 CEST 2016


In the draco CPU board family, etamin is a new variant
with bigger flash and more RAM. Due to new flash that
uses larger pages (4K) some changes are necessary because
it impacts the MTD partition layout and the ubi mount
parameters.

special here is:
- adding MTD concat support for nand flashs
- add UBI Fastmap support for the siemens boards
- fix a bug in dfu/nand when erasing remaining blocks on
  ubi partitions.
- nand on etamin uses eccstrength bch16, so support
  switch to bch16 also.
- read the ecc type from the config in i2c eeprom, so
  no need to use a define.

$ ./tools/buildman/buildman arm -se
boards.cfg is up to date. Nothing to do.
Summary of current source for 561 boards (8 threads, 1 job per thread)
       arm:  +   Cubietruck omap3_logic omap3_overo gwventana
+arm-linux-gnueabi-ld.bfd: u-boot-spl section `.data' will not fit in region `.sram'
+arm-linux-gnueabi-ld.bfd: region `.sram' overflowed by 236 bytes
+make[2]: *** [spl/u-boot-spl] Error 1
+make[1]: *** [spl/u-boot-spl] Error 2
+make: *** [sub-make] Error 2
+arm-linux-gnueabi-ld.bfd: region `.sram' overflowed by 944 bytes
+arm-linux-gnueabi-ld.bfd: region `.sram' overflowed by 620 bytes
+common/spl/spl_ext.c: In function 'spl_load_image_ext_os':
+common/spl/spl_ext.c:125:20: error: 'CONFIG_SPL_FS_LOAD_ARGS_NAME' undeclared (first use in this function)
+common/spl/spl_ext.c:125:20: note: each undeclared identifier is reported only once for each function it appears in
+common/spl/spl_ext.c:139:4: error: 'CONFIG_SPL_FS_LOAD_KERNEL_NAME' undeclared (first use in this function)
+make[3]: *** [spl/common/spl/spl_ext.o] Error 1
+make[2]: *** [spl/common/spl] Error 2
w+common/spl/spl_ext.c:140:1: warning: control reaches end of non-void function [-Wreturn-type]
$

No new errors/warnings

- news for the v2 version:
  as Scott Wood posted a "mtd, nand sync with Linux v4.6"
  patchserie, I rebased this patchset to his series, so my
  patches are based on the patches:

  [U-Boot,1/7] mtd: nand: Remove jz4740 driver
  http://patchwork.ozlabs.org/patch/627922/
  [U-Boot,2/7] mtd: nand: Remove docg4 driver and palmtreo680 flashing tool
  http://patchwork.ozlabs.org/patch/627924/
  [U-Boot,3/7] mtd: nand: Remove nand_info_t typedef
  http://patchwork.ozlabs.org/patch/627923/
  [U-Boot,4/7] nand: Embed mtd_info in struct nand_chip
  http://patchwork.ozlabs.org/patch/627925/
  [U-Boot,5/7] mtd: nand: Add+use mtd_to/from_nand and nand_get/set_controller_data
  http://patchwork.ozlabs.org/patch/627926/
  [U-Boot,6/7] mtd: nand: Add page argument to write_page() etc.
  http://patchwork.ozlabs.org/patch/627927/
  [U-Boot,7/7] mtd: nand: Sync with Linux v4.6
  http://patchwork.ozlabs.org/patch/627928/

Last but not least, tbot results for the etamin module
(UBI/UBIFS and a lot of DFU tests)

xeidos.ddns.net/tests/test_db_auslesen.php#42
http://xeidos.ddns.net/tbot/id_42/html_log.html


Changes in v2:
- rebase to current mainline commit id:
  e4a94ce4ac77396b181663c0493c50bc2d5b9143
- add comments from Scott Wood:
  - correct spelling error "dettach" -> "detach"
  - use "oss at buserror.net" as email address for Scott
- rebase to current mainline commit id:
  e4a94ce4ac77396b181663c0493c50bc2d5b9143
- add comments from Scott Wood:
  - move c_mtd_name from file scope to local
  - use nand_info instead mtd_nand_list
  - use oss at buserror.net as email address for Scott
- rebase to current mainline commit id:
  e4a94ce4ac77396b181663c0493c50bc2d5b9143
  and the "mtd: nand Sync with Linux v4.6" patches:
  [U-Boot,1/7] mtd: nand: Remove jz4740 driver
  http://patchwork.ozlabs.org/patch/627922/
  [U-Boot,2/7] mtd: nand: Remove docg4 driver and palmtreo680 flashing tool
  http://patchwork.ozlabs.org/patch/627924/
  [U-Boot,3/7] mtd: nand: Remove nand_info_t typedef
  http://patchwork.ozlabs.org/patch/627923/
  [U-Boot,4/7] nand: Embed mtd_info in struct nand_chip
  http://patchwork.ozlabs.org/patch/627925/
  [U-Boot,5/7] mtd: nand: Add+use mtd_to/from_nand and nand_get/set_controller_data
  http://patchwork.ozlabs.org/patch/627926/
  [U-Boot,6/7] mtd: nand: Add page argument to write_page() etc.
  http://patchwork.ozlabs.org/patch/627927/
  [U-Boot,7/7] mtd: nand: Sync with Linux v4.6
  http://patchwork.ozlabs.org/patch/627928/
Series-changes: 3
- add comment from Scott Wood
  build an array for none NULL-devices. While at it
  move the nand mtd concat code into a seperate
  function.
- rebase to "Prepare v2016.07-rc1"
  b104b3dc1dd90cdbf67ccf3c51b06e4f1592fe91
  and the "mtd: nand Sync with Linux v4.6" patches:
  [U-Boot,1/7] mtd: nand: Remove jz4740 driver
  http://patchwork.ozlabs.org/patch/627922/
  [U-Boot,2/7] mtd: nand: Remove docg4 driver and palmtreo680 flashing tool
  http://patchwork.ozlabs.org/patch/627924/
  [U-Boot,3/7] mtd: nand: Remove nand_info_t typedef
  http://patchwork.ozlabs.org/patch/627923/
  [U-Boot,4/7] nand: Embed mtd_info in struct nand_chip
  http://patchwork.ozlabs.org/patch/627925/
  [U-Boot,5/7] mtd: nand: Add+use mtd_to/from_nand and nand_get/set_controller_data
  http://patchwork.ozlabs.org/patch/627926/
  [U-Boot,6/7] mtd: nand: Add page argument to write_page() etc.
  http://patchwork.ozlabs.org/patch/627927/
  [U-Boot,7/7] mtd: nand: Sync with Linux v4.6
  http://patchwork.ozlabs.org/patch/627928/

Heiko Schocher (6):
  ubi: add new ubi command "ubi detach"
  nand: add nand mtd concat support
  mtd: nand: omap: allow to switch to BCH16
  am335x, dxr2: get ECC sType from I2C eeprom
  dfu, nand, ubi: fix erasing after write finish
  siemens,am33x: add draco etamin board

Samuel Egli (1):
  siemens,am33x: add ubi fastmap support

 arch/arm/Kconfig                       |   5 +
 arch/arm/cpu/armv7/omap3/board.c       |   6 +-
 board/siemens/common/board.c           |   4 +
 board/siemens/draco/Kconfig            |  16 ++
 board/siemens/draco/MAINTAINERS        |   1 +
 board/siemens/draco/board.c            |  84 ++++++++++-
 board/siemens/draco/mux.c              |   2 +-
 cmd/ubi.c                              |  38 +++--
 configs/etamin_defconfig               |  17 +++
 drivers/dfu/dfu_nand.c                 |  12 +-
 drivers/mtd/nand/nand.c                |  41 ++++++
 drivers/mtd/nand/omap_gpmc.c           |   4 +
 include/configs/draco.h                |   1 +
 include/configs/etamin.h               | 261 +++++++++++++++++++++++++++++++++
 include/configs/pxm2.h                 |   1 +
 include/configs/rastaban.h             |   1 +
 include/configs/rut.h                  |   1 +
 include/configs/siemens-am33x-common.h |   7 +-
 include/configs/thuban.h               |   1 +
 19 files changed, 484 insertions(+), 19 deletions(-)
 create mode 100644 configs/etamin_defconfig
 create mode 100644 include/configs/etamin.h

-- 
2.5.5



More information about the U-Boot mailing list