u-boot/doc
Heiko Schocher 8e64d6efd8 net, doc: How to setup MAC address correctly
As this seems unclear, document how the flow of setting up
the MAC address is correct.

Signed-off-by: Heiko Schocher <hs@denx.de>

Text changed slightly, adding input from Mike Frysinger.

Signed-off-by: Wolfgang Denk <wd@denx.de>
2010-03-31 15:13:32 +02:00
..
uImage.FIT doc: Fix ramdisk examples in doc/uImage.FIT/multi.its 2010-03-31 15:13:31 +02:00
feature-removal-schedule.txt Remove deprecated 'autoscr' command/variables 2009-09-22 23:03:24 +02:00
I2C_Edge_Conditions
README-i386
README-integrator
README.440-DDR-performance
README.adnpesc1
README.adnpesc1_base32
README.alaska8220
README.AMCC-eval-boards-cleanup
README.amigaone
README.ARM-memory-map
README.ARM-SoC
README.at91 at91: Introduction of at91sam9g10 SOC. 2009-07-12 17:56:11 +02:00
README.at91-soc prepare joining at91rm9200 into at91 2010-02-12 12:31:55 -06:00
README.atum8548
README.autoboot
README.AVR32
README.AVR32-port-muxing
README.bamboo
README.bedbug
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.cmi
README.COBRA5272
README.commands
README.commands.itest
README.console
README.davinci TI DaVinci: Adding a README for the DaVinci series of SOC's 2009-11-27 16:26:18 -06:00
README.db64360
README.db64460
README.dk1c20
README.dk1c20_std32
README.dk1s10
README.dk1s10_mldk20
README.dk1s10_std32
README.dk1s40_std32
README.dk20k200_std32
README.dns Coding Style cleanup; update CHANGELOG. 2009-07-23 22:23:23 +02:00
README.drivers.eth clarify eth driver halt/recv steps 2009-11-09 10:40:39 -08:00
README.ebony i2c: Update references to individual i2c commands 2009-06-12 20:39:46 +02:00
README.enetaddr net, doc: How to setup MAC address correctly 2010-03-31 15:13:32 +02:00
README.evb64260
README.EVB-64260-750CX
README.fads
README.fsl-ddr
README.generic_usb_ohci
README.hwconfig doc: add README for CONFIG_HWCONFIG option 2010-03-12 00:09:25 +01:00
README.IceCube
README.idma2intr
README.imx31
README.imximage Prepare v2010.03-rc1 2010-03-12 23:06:04 +01:00
README.INCA-IP
README.iomux
README.IPHASE4539 Remove deprecated 'autoscr' command/variables 2009-09-22 23:03:24 +02:00
README.JFFS2
README.JFFS2_NAND
README.kmeter1
README.korat
README.kwbimage Coding Style cleanup; update CHANGELOG, prepare -rc1 2009-10-28 00:49:47 +01:00
README.LED Coding style cleanup; update CHANGELOG 2009-07-07 22:35:02 +02:00
README.Lite5200B_low_power
README.lynxkdi
README.m68k
README.m5253evbe
README.m5373evb Remove deprecated 'autoscr' command/variables 2009-09-22 23:03:24 +02:00
README.m5475evb Remove deprecated 'autoscr' command/variables 2009-09-22 23:03:24 +02:00
README.m52277evb Remove deprecated 'autoscr' command/variables 2009-09-22 23:03:24 +02:00
README.m53017evb
README.m54455evb Remove deprecated 'autoscr' command/variables 2009-09-22 23:03:24 +02:00
README.marubun-pcmcia
README.MBX
README.mflash mflash: Initial mflash support 2009-04-03 23:47:06 +02:00
README.mips
README.Modem
README.modnet50
README.mpc5xx
README.mpc74xx
README.mpc83xx.ddrecc
README.mpc83xxads
README.mpc85xxads
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.mpc7448hpc2
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 83xx: Replace CONFIG_MPC83XX with CONFIG_MPC83xx 2009-06-12 20:47:17 +02: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.MPC866
README.mvbc_p
README.mvblm7
README.nand Remove legacy NAND and disk on chip code. 2009-07-16 19:07:47 -05:00
README.nand-boot-ppc440
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.nios
README.nios_CONFIG_SYS_NIOS_CPU
README.nios_DK
README.ns9750dev
README.ocotea
README.ocotea-PIBS-to-U-Boot
README.OFT
README.omap3 Coding style cleanup; update CHANGELOG 2009-07-07 22:35:02 +02:00
README.omap730p2
README.OXC
README.p2020rdb 85xx: Add support for P2020RDB board 2009-08-28 17:12:38 -05:00
README.phytec.pcm030 Coding Style cleanup; update CHANGELOG. 2009-07-23 22:23:23 +02:00
README.PIP405
README.PlanetCore
README.POST
README.ppc440 i2c: Update references to individual i2c commands 2009-06-12 20:39:46 +02:00
README.Purple
README.PXA_CF
README.qemu_mips
README.RPXClassic
README.RPXlite
README.s5pc1xx s5pc1xx: add support SMDKC100 board 2009-10-13 21:13:55 -05: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: reclaim wasted sector in boot flash 2009-09-30 08:29:47 -05:00
README.sbc8641d
README.SBC8560
README.sched
README.serial_multi
README.sh
README.sh7785lcr sh: Add support 32-Bit Extended Address Mode to sh7785lcr 2009-03-12 23:58:30 +09:00
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.standalone Blackfin: change global data register from P5 to P3 2009-09-02 05:14:02 -04:00
README.stxxtc
README.timll Add support for the DevKit8000 board 2009-09-05 01:33:14 +02:00
README.TQM8260
README.update
README.usb
README.video
README.VLAN
README.xpedite1k i2c: Update references to individual i2c commands 2009-06-12 20:39:46 +02:00
README.zeus
TODO-i386

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>