[U-Boot] [PATCH v5 0/8] those series patches for add ben nanonote board

Xiangfu Liu xiangfu at openmobilefree.net
Sun Jan 9 17:18:37 CET 2011


Hi Wolfgang
  those patches are for add xburst jz4740 and Ben NanoNote(named qi_lb60) to U-Boot

some info about xburst jz4740:
  the xburst jz4740 is recently added to linux 2.6.36
  and it's support the device Ben NanoNote out of box,

  this xburst jz4740 cpu have one feature is Boot From USB, there is a 
  small rom in jz4740, but LOW some PIN, the cpu will boot to this small
  rom, then init cpu and USB module, then we can send 8KB bin file to 
  the cpu by USB(by using 'xbboot' or 'usbboot'[1]).

  which means if your bootloader is borken,(the first few KBs in NAND)
  you can always boot the device from usb, then reflash the nand.

  in OpenMoko FreeRunner, there are NOR and NAND. when people broken the 
  nand bootloader, it's must boot from NOR, reflash the bootloader back
  when people broken the NAND and NOR, he(she) must reflash by using JTAG
  but in Ben NanoNote, we just need boot from usb. flash the nand again :)

  BTW:there are a lot of PMP, Audio device in China use the Xburst cpu,
  but I think they are all base on u-boot 1.1.6. by working on
  Ben NanoNote (http://en.qi-hardware.com) one year, we try to
  update the u-boot to last version and send it to upstream. :)

for more info about Ingenic Xburst JZ4740
  http://www.ingenic.cn/eng/default.aspx
  http://www.linux-mips.org/wiki/Ingenic

====
FIXED in [PATCH v3]
  1. describe what Jz4740 SoC
  2. remove the ENDIANNESS in config.mk
  3. don't breaks the 80-charcter-wide rule
  4. get rid of #if 0
  5. use proper I/O accessors to access registers.
  6. remove C++ comments, cleanup code style.

FIXED in [PATCH v4]
  1. add Entry to MAINTAINERS and boards.cfg
  2. add ben nanonote(qi_lb60) to Makefile
  3. tested with CROSS_COMPILE=mips_4KCle- ./MAKEALL mips_el

FIXED in [PATCH v5]
  1. remove nand_spl/nand_boot_jz4740.c
  2. some cleanup

====
Xiangfu Liu (8):
  those files are jz4740 base files
  this is jz4740 head file
  jz4740 nand spl files
  jz4740 nand driver
  add Ben NanoNote board
  add entry to MAINTAINERS and boards.cfg
  modify files for ben nanonote board
  add software usbboot

 MAINTAINERS                               |    4 +
 MAKEALL                                   |    4 +-
 Makefile                                  |   10 +
 arch/mips/cpu/xburst/Makefile             |   50 +
 arch/mips/cpu/xburst/config.mk            |   33 +
 arch/mips/cpu/xburst/cpu.c                |  160 ++++
 arch/mips/cpu/xburst/jz4740.c             |  266 ++++++
 arch/mips/cpu/xburst/jz_serial.c          |  128 +++
 arch/mips/cpu/xburst/start.S              |  164 ++++
 arch/mips/cpu/xburst/start_spl.S          |   63 ++
 arch/mips/cpu/xburst/timer.c              |  172 ++++
 arch/mips/cpu/xburst/usbboot.S            |  841 ++++++++++++++++++
 arch/mips/include/asm/global_data.h       |    9 +
 arch/mips/include/asm/jz4740.h            | 1380 +++++++++++++++++++++++++++++
 arch/mips/lib/board.c                     |    8 +
 arch/mips/lib/time.c                      |    2 +
 board/xburst/nanonote/Makefile            |   45 +
 board/xburst/nanonote/config.mk           |   31 +
 board/xburst/nanonote/nanonote.c          |   96 ++
 board/xburst/nanonote/u-boot-nand.lds     |   63 ++
 boards.cfg                                |    1 +
 drivers/mtd/nand/Makefile                 |    1 +
 drivers/mtd/nand/jz4740_nand.c            |  327 +++++++
 include/configs/nanonote.h                |  206 +++++
 include/configs/qi_lb60.h                 |   28 +
 nand_spl/board/xburst/nanonote/Makefile   |  106 +++
 nand_spl/board/xburst/nanonote/u-boot.lds |   63 ++
 27 files changed, 4260 insertions(+), 1 deletions(-)
 create mode 100644 arch/mips/cpu/xburst/Makefile
 create mode 100644 arch/mips/cpu/xburst/config.mk
 create mode 100644 arch/mips/cpu/xburst/cpu.c
 create mode 100644 arch/mips/cpu/xburst/jz4740.c
 create mode 100644 arch/mips/cpu/xburst/jz_serial.c
 create mode 100644 arch/mips/cpu/xburst/start.S
 create mode 100644 arch/mips/cpu/xburst/start_spl.S
 create mode 100644 arch/mips/cpu/xburst/timer.c
 create mode 100644 arch/mips/cpu/xburst/usbboot.S
 create mode 100644 arch/mips/include/asm/jz4740.h
 create mode 100644 board/xburst/nanonote/Makefile
 create mode 100644 board/xburst/nanonote/config.mk
 create mode 100644 board/xburst/nanonote/nanonote.c
 create mode 100644 board/xburst/nanonote/u-boot-nand.lds
 create mode 100644 drivers/mtd/nand/jz4740_nand.c
 create mode 100644 include/configs/nanonote.h
 create mode 100644 include/configs/qi_lb60.h
 create mode 100644 nand_spl/board/xburst/nanonote/Makefile
 create mode 100644 nand_spl/board/xburst/nanonote/u-boot.lds



More information about the U-Boot mailing list