u-boot/doc
Simon Schwarz 1648a37505 Add cmd_spl command
This adds a spl command to the u-boot.

Related config:
CONFIG_CMD_SPL
	activate/deactivate the command
CONFIG_CMD_SPL_NAND_OFS
	Offset in NAND to use

Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com>
Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Tom Rini <tom.rini@gmail.com>
CC: Wolfgang Denk <wd@denx.de>
2012-03-27 22:05:28 +02:00
..
SPL SPL: Add README.omap3 2012-03-26 23:09:25 +02:00
uImage.FIT net ppc: fix ethernet device names with spaces 2010-08-09 11:52:28 -07:00
feature-removal-schedule.txt miiphy: Note that miiphy_* API is deprecated 2011-12-05 22:17:06 +01:00
git-mailrc git-mailrc: change usb maintainer to Marek 2012-03-19 00:08:26 +01:00
I2C_Edge_Conditions
mkimage.1 doc/mkimage.1: Fix -D/-f options formatting 2011-12-23 20:11:46 +01:00
README-integrator arm: Move cpu/$CPU to arch/arm/cpu/$CPU 2010-04-13 09:13:24 +02:00
README.440-DDR-performance
README.ag101 doc/README: documents and readme for NDS32 arch 2011-10-22 00:54:45 +02:00
README.alaska8220 Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
README.AMCC-eval-boards-cleanup
README.amigaone
README.arm-caches cache: add ALLOC_CACHE_ALIGN_BUFFER macro 2011-10-25 09:23:10 +02:00
README.ARM-memory-map Rename TEXT_BASE into CONFIG_SYS_TEXT_BASE 2010-10-18 22:07:10 +02:00
README.arm-relocation Minor coding style cleanup. 2011-05-19 22:22:44 +02:00
README.ARM-SoC arm: Move cpu/$CPU to arch/arm/cpu/$CPU 2010-04-13 09:13:24 +02:00
README.at91 at91: Introduction of at91sam9g10 SOC. 2009-07-12 17:56:11 +02:00
README.at91-soc Minor coding style cleanup. 2011-09-11 21:24:09 +02:00
README.atmel_mci ATMEL: remove old atmel_mci driver 2012-03-13 12:06:42 +01:00
README.autoboot
README.AVR32
README.AVR32-port-muxing
README.bamboo
README.bedbug Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
README.bitbangMII Coding Style cleanup; update CHANGELOG, prepare -rc1 2009-10-28 00:49:47 +01:00
README.blackfin
README.bus_vcxk Prepare 2009.08-rc1 2009-07-27 00:24:55 +02:00
README.cfi mpc5200, digsy_mtc: add support for rev5 board version 2011-01-18 23:34:26 +01:00
README.cmi
README.COBRA5272 Rename TEXT_BASE into CONFIG_SYS_TEXT_BASE 2010-10-18 22:07:10 +02:00
README.commands doc: complete, typos 2012-02-14 11:02:46 -07:00
README.commands.itest
README.commands.spl Add cmd_spl command 2012-03-27 22:05:28 +02:00
README.console doc: provide a correct board_init_r definition path 2011-09-23 08:12:28 +02:00
README.davinci arm, da850evm: Add an SPL for SPI boot 2011-12-24 10:23:30 +01:00
README.davinci.nand_spl arm, davinci: add cam_enc_4xx support 2011-11-03 22:56:25 +01:00
README.db64360
README.db64460
README.designware_eth SPEAr : Network driver support added 2010-07-12 00:08:05 -07:00
README.dnp5370 Blackfin: dnp5370: new board port 2011-04-08 00:44:26 -04:00
README.dns Coding Style cleanup; update CHANGELOG. 2009-07-23 22:23:23 +02:00
README.drivers.eth Program net device MAC addresses after initializing 2010-05-03 14:52:49 -07:00
README.ebony i2c: Update references to individual i2c commands 2009-06-12 20:39:46 +02:00
README.enetaddr Program net device MAC addresses after initializing 2010-05-03 14:52:49 -07:00
README.EVB-64260-750CX
README.evb64260
README.fads
README.fdt-control fdt: ARM: Add fdtcontroladdr to set device tree address in environment 2011-10-26 21:40:16 +02:00
README.fsl-ddr powerpc/8xxx: Add support for interactive DDR programming interface 2011-10-09 17:57:53 -05:00
README.fsl-hwconfig powerpc/85xx: Specify hwconfig usage for USB controller 2011-07-11 13:24:20 -05:00
README.generic_usb_ohci
README.hawkboard Changes to move hawkboard to the new spl infrastructure 2012-02-12 10:11:33 +01:00
README.hwconfig doc: add README for CONFIG_HWCONFIG option 2010-03-12 00:09:25 +01:00
README.IceCube
README.idma2intr
README.imx5 ARM: MX51: PLL errata workaround 2011-09-04 11:36:11 +02:00
README.imx31
README.imximage imximage: Add support for i.MX6 2012-02-12 10:11:25 +01:00
README.INCA-IP
README.iomux
README.IPHASE4539 Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
README.JFFS2
README.JFFS2_NAND Fix "par[t]ition" typo. 2010-05-21 22:05:05 +02:00
README.kmeter1 net: rename "FSL UECx" net interfaces "UECx" 2010-08-09 11:52:29 -07:00
README.korat Makefile: move all Power Architecture boards into boards.cfg 2010-10-18 22:12:04 +02:00
README.kwbimage Coding Style cleanup; update CHANGELOG, prepare -rc1 2009-10-28 00:49:47 +01:00
README.LED Move lib_$ARCH directories to arch/$ARCH/lib 2010-04-13 09:13:03 +02:00
README.LED_display led_display: remove unused DISPLAY_MARK define 2010-10-21 22:25:04 +02:00
README.Lite5200B_low_power
README.lynxkdi
README.m28 M28: Document that units has to be set to sectors on SD bootcard 2011-12-09 17:30:10 +01:00
README.m68k cleanup: Fix typos and misspellings in various files. 2011-07-28 21:27:36 +02:00
README.m5253evbe
README.m5373evb net: drop !NET_MULTI code 2011-10-05 22:22:16 +02:00
README.m5475evb net: drop !NET_MULTI code 2011-10-05 22:22:16 +02:00
README.m52277evb m68k: Move cpu/$CPU to arch/m68k/cpu/$CPU 2010-04-13 09:13:24 +02:00
README.m53017evb net: drop !NET_MULTI code 2011-10-05 22:22:16 +02:00
README.m54455evb net: drop !NET_MULTI code 2011-10-05 22:22:16 +02:00
README.marubun-pcmcia
README.MBX
README.menu common, menu: show menu on startup if CONFIG_MENU_SHOW is defined 2012-02-12 10:11:24 +01:00
README.mergerbox mpc83xx: Add support for MergerBox board 2011-07-06 19:09:27 -05:00
README.mflash
README.mips
README.Modem
README.mpc5xx Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
README.mpc74xx
README.mpc83xx.ddrecc
README.mpc83xxads
README.mpc85xxads 85xx boards: Rename CONFIG_DDR_DLL to CONFIG_SYS_FSL_ERRATUM_DDR_MSYNC_IN 2011-01-14 01:32:19 -06:00
README.mpc85xxcds
README.mpc832xemds 83xx: Replace CONFIG_MPC83[0-9]X with MPC83[0-9]x 2009-06-12 20:47:17 +02:00
README.mpc837xemds 83xx: Replace CONFIG_MPC83[0-9]X with MPC83[0-9]x 2009-06-12 20:47:17 +02:00
README.mpc837xerdb 83xx: Replace CONFIG_MPC83[0-9]X with MPC83[0-9]x 2009-06-12 20:47:17 +02:00
README.MPC866
README.mpc7448hpc2 Convert ISO-8859 files to UTF-8 2011-08-04 23:34:02 +02:00
README.mpc8313erdb
README.mpc8315erdb mpc83xx: Add NAND boot support for MPC8315E-RDB boards 2010-01-07 18:33:52 -06:00
README.mpc8323erdb
README.mpc8349itx 83xx: Replace CONFIG_MPC83XX with CONFIG_MPC83xx 2009-06-12 20:47:17 +02:00
README.mpc8360emds powerpc/mpc83xx: Add 33.33MHz support for mpc8360emds 2011-11-07 18:34:40 -06:00
README.mpc8536ds Fix MPC8536DS documentation 2010-03-12 00:15:55 +01:00
README.mpc8544ds
README.mpc8569mds Prepare v2009.06 2009-06-14 21:30:39 +02:00
README.mpc8572ds
README.mpc8610hpcd
README.mpc8641hpcn
README.mvbc_p
README.mvblm7
README.mvsmr Add initial support for Matrix Vision mvSMR board based on MPC5200B. 2010-04-10 00:06:05 +02:00
README.mx6qsabrelite mx6q: mx6qsabrelite: Update the README 2012-03-26 23:09:23 +02:00
README.mx35pdk Add support for Freescale's mx35pdk board. 2011-02-02 00:54:43 +01:00
README.N1213 doc/README: documents and readme for NDS32 arch 2011-10-22 00:54:45 +02:00
README.nand nand: Introduce CONFIG_SYS_NAND_SELF_INIT 2012-01-26 16:09:06 -06:00
README.nand-boot-ppc440
README.NDS32 doc/README: documents and readme for NDS32 arch 2011-10-22 00:54:45 +02:00
README.ne2000
README.NetConsole tools/netconsole: use ncb automatically if available 2009-09-15 22:55:45 +02:00
README.nhk8815 arm nomadik: allow Nand and OneNand to coexists 2009-07-06 21:53:06 +02:00
README.ns9750dev
README.ocotea
README.ocotea-PIBS-to-U-Boot
README.OFT
README.omap-ulpi-viewport usb: ulpi: Add omap-ulpi-view port support 2012-02-12 10:11:30 +01:00
README.omap3 OMAP3: mvblx: Initial support for mvBlueLYNX-X 2011-11-04 13:54:33 -04:00
README.omap730p2
README.OXC
README.p1_p2_rdb_pc powerpc/85xx: Add support for new P102x/P2020 RDB style boards 2011-09-29 19:01:04 -05:00
README.p1022ds Minor coding style cleanup. 2011-05-19 22:22:44 +02:00
README.p1023rds powerpc/85xx: Add basic support for P1023RDS board 2011-07-11 13:24:20 -05:00
README.p2020rdb 85xx: Add support for P2020RDB board 2009-08-28 17:12:38 -05:00
README.p2041rdb powerpc/p2041rdb: Add p2041rdb board support 2011-07-17 11:03:36 -05:00
README.p3060qds Coding Style cleanup 2011-12-19 12:03:40 +01:00
README.p4080ds p4080ds: add README.p4080ds which documents the "serdes" hwconfig option 2011-04-10 11:17:32 -05:00
README.phytec.pcm030 Rename TEXT_BASE into CONFIG_SYS_TEXT_BASE 2010-10-18 22:07:10 +02:00
README.PIP405 Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
README.PlanetCore
README.POST post/i2c: Add ability to ignore I2C devices 2010-10-22 02:19:14 -05:00
README.ppc440 Remove unused CONFIG_SERIAL_SOFTWARE_FIFO feature 2010-09-23 09:02:05 +02:00
README.pxe Coding Style cleanup 2011-12-19 12:03:40 +01:00
README.qemu_mips cleanup: Fix typos and misspellings in various files. 2011-07-28 21:27:36 +02:00
README.RPXClassic Convert ISO-8859 files to UTF-8 2011-08-04 23:34:02 +02:00
README.RPXlite Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
README.s5pc1xx s5pc1xx: update the README file 2010-04-03 15:24:26 -05:00
README.sandbox sandbox: Add architecture header files 2011-10-17 22:45:50 +02:00
README.Sandpoint8240
README.sata
README.sbc8349 mpc83xx: sbc8349 - make enabling PCI more user friendly 2009-08-21 17:09:21 -05:00
README.sbc8548 sbc8548: enable support for hardware SPD errata workaround 2012-01-11 13:59:14 -06:00
README.SBC8560
README.sbc8641d
README.sched
README.scrapyard MIPS: remove broken "tb0229" board 2011-12-12 14:26:48 +01:00
README.serial_multi
README.sh
README.sh7757lcr Coding Style cleanup 2011-12-19 12:03:40 +01:00
README.sh7785lcr
README.sha1
README.silent
README.simpc8313
README.SNTP
README.spear SPEAr : Adding README.spear in doc 2010-01-23 08:15:49 -06:00
README.SPL doc: fix typos 2012-02-12 10:11:32 +01:00
README.standalone doc/README: documents and readme for NDS32 arch 2011-10-22 00:54:45 +02:00
README.stxxtc
README.timll Add support for the DevKit8000 board 2009-09-05 01:33:14 +02:00
README.TQM8260 Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
README.ubi Add UBI README 2010-10-19 23:53:45 +02:00
README.ublimage Minor coding style cleanup. 2011-09-11 21:24:09 +02:00
README.update add command fitupd to run an update from a FIT image 2011-07-26 16:58:48 +02:00
README.usb common: cosmetic: CONFIG_BOOTFILE checkpatch compliance 2011-10-22 01:21:35 +02:00
README.video video: parse the video-mode environment variable 2011-04-28 21:31:02 +02:00
README.VLAN
README.xpedite1k i2c: Update references to individual i2c commands 2009-06-12 20:39:46 +02:00
README.zeus

Storage of the board specific values (ethaddr...)
-------------------------------------------------

The board specific environment variables that should be unique
for each individual board, can be stored in the I2C EEPROM. This
will be done from offset 0x80 with the length of 0x80 bytes. The
following command can be used to store the values here:

=> setdef de:20:6a:ed:e2:72 de:20:6a:ed:e2:73 AB0001

	  ethaddr           eth1addr          serial#

Now those 3 values are stored into the I2C EEPROM. A CRC is added
to make sure that the values get not corrupted.


SW-Reset Pushbutton handling:
-----------------------------

The SW-reset push button is connected to a GPIO input too. This
way U-Boot can "see" how long the SW-reset was pressed, and a
specific action can be taken. Two different actions are supported:

a) Release after more than 5 seconds and less then 10 seconds:
   -> Run POST

   Please note, that the POST test will take a while (approx. 1 min
   on the 128MByte board). This is mainly due to the system memory
   test.

b) Release after more than 10 seconds:
   -> Restore factory default settings

   The factory default values are restored. The default environment
   variables are restored (ipaddr, serverip...) and the board
   specific values (ethaddr, eth1addr and serial#) are restored
   to the environment from the I2C EEPROM. Also a bootline parameter
   is added to the Linux bootline to signal the Linux kernel upon
   the next startup, that the factory defaults should be restored.

The command to check this sw-reset status and act accordingly is

=> chkreset

This command is added to the default "bootcmd", so that it is called
automatically upon startup.

Also, the 2 LED's are used to indicate the current status of this
command (time passed since pushing the button). When the POST test
will be run, the green LED will be switched off, and when the
factory restore will be initiated, the reg LED will be switched off.


Loggin of POST results:
-----------------------

The results of the POST tests are logged in a logbuffer located at the end
of the onboard memory. It can be accessed with the U-Boot command "log":

=> log show
<4>POST memory PASSED
<4>POST cache PASSED
<4>POST cpu PASSED
<4>POST uart PASSED
<4>POST ethernet PASSED

The DENX Linux kernel tree has support for this log buffer included. Exactly
this buffer is used for logging of all kernel messages too. By enabling the
compile time option "CONFIG_LOGBUFFER" this support is enabled. This way you
can access the U-Boot log messages from Linux too.

2007-08-10, Stefan Roese <sr@denx.de>