⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.zeus

📁 U-boot源码 ARM7启动代码
💻 ZEUS
字号:
Storage of the board specific values (ethaddr...)-------------------------------------------------The board specific environment variables that should be uniquefor each individual board, can be stored in the I2C EEPROM. Thiswill be done from offset 0x80 with the length of 0x80 bytes. Thefollowing 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 addedto make sure that the values get not corrupted.SW-Reset Pushbutton handling:-----------------------------The SW-reset push button is connected to a GPIO input too. Thisway U-Boot can "see" how long the SW-reset was pressed, and aspecific 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=> chkresetThis command is added to the default "bootcmd", so that it is calledautomatically upon startup.Also, the 2 LED's are used to indicate the current status of thiscommand (time passed since pushing the button). When the POST testwill be run, the green LED will be switched off, and when thefactory 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 endof 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 PASSEDThe DENX Linux kernel tree has support for this log buffer included. Exactlythis buffer is used for logging of all kernel messages too. By enabling thecompile time option "CONFIG_LOGBUFFER" this support is enabled. This way youcan access the U-Boot log messages from Linux too.2007-08-10, Stefan Roese <sr@denx.de>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -