📄 readme.tqm8260
字号:
This file contains basic information on the port of U-Boot to TQM8260.All the changes fit in the common U-Boot infrastructure, providing anew TQM8260-specific entry in makefiles. To build U-Boot for TQM8260,type "make TQM8260_config", edit the "include/config_TQM8260.h" fileif necessary, then type "make".Common file modifications:--------------------------The following common files have been modified by this project:(starting from the ppcboot-0.9.3/ directory)MAKEALL - TQM8260 entry addedMakefile - TQM8260_config entry addedcpu/mpc8260/Makefile - soft_i2c.o module addedcpu/mpc8260/ether_scc.c - TQM8260-specific definitions added, an obvious bug fixed (fcr -> scr)cpu/mpc8260/ether_fcc.c - TQM8260-specific definitions addedinclude/flash.h - added definitions for the AM29LV640D Flash chipNew files:----------The following new files have been added by this project:(starting from the ppcboot-0.9.3/ directory)board/tqm8260/ - board-specific directoryboard/tqm8260/Makefile - board-specific makefileboard/tqm8260/config.mk - config fileboard/tqm8260/flash.c - flash driver (for AM29LV640D)board/tqm8260/ppcboot.lds - linker scriptboard/tqm8260/tqm8260.c - ioport and memory initializationcpu/mpc8260/soft_i2c.c - software i2c EEPROM driverinclude/config_TQM8260.h - main configuration fileNew configuration options:--------------------------CONFIG_TQM8260 Main board-specific option (should be defined for TQM8260).CONFIG_82xx_CONS_SMC1 If defined, SMC1 will be used as the consoleCONFIG_82xx_CONS_SMC2 If defined, SMC2 will be used as the consoleCFG_INIT_LOCAL_SDRAM If defined, the SDRAM on the local bus will be initialized and mapped at BR2.Acceptance criteria tests:--------------------------The following tests have been conducted to validate the port of U-Bootto TQM8260:1. Operation on serial console:With the CONFIG_82xx_CONS_SMC1 option defined in the main configuration file,the U-Boot output appeared on the serial terminal connected to COM1 asfollows:------------------------------------------------------------------------------=> helpgo - start application at address 'addr'run - run commands in an environment variablebootm - boot application image from memorybootp - boot image via network using BootP/TFTP protocoltftpboot- boot image via network using TFTP protocol and env variables ipaddr and serveriprarpboot- boot image via network using RARP/TFTP protocolbootd - boot default, i.e., run 'bootcmd'loads - load S-Record file over serial lineloadb - load binary file over serial line (kermit mode)md - memory displaymm - memory modify (auto-incrementing)nm - memory modify (constant address)mw - memory write (fill)cp - memory copycmp - memory comparecrc32 - checksum calculationbase - print or set address offsetprintenv- print environment variablessetenv - set environment variablessaveenv - save environment variables to persistent storageprotect - enable or disable FLASH write protectionerase - erase FLASH memoryflinfo - print FLASH memory informationbdinfo - print Board Info structureiminfo - print header information for application imageconinfo - print console devices and informationseeprom - EEPROM sub-systemloop - infinite loop on address rangemtest - simple RAM testicache - enable or disable instruction cachedcache - enable or disable data cachereset - Perform RESET of the CPUecho - echo args to consoleversion - print monitor versionhelp - print online help? - alias for 'help'=>------------------------------------------------------------------------------2. Flash driver operationThe following sequence was performed to test the "flinfo" command:------------------------------------------------------------------------------=> flinfoBank # 1: AMD 29LV640D (64 M, uniform sector) Size: 32 MB in 128 Sectors Sector Start Addresses: 40000000 40040000 (RO) 40080000 400C0000 40100000 40140000 40180000 401C0000 40200000 40240000 40280000 402C0000 40300000 40340000 40380000 403C0000 40400000 40440000 40480000 404C0000 40500000 40540000 40580000 405C0000 40600000 40640000 40680000 406C0000 40700000 40740000 40780000 407C0000 40800000 40840000 40880000 408C0000 40900000 40940000 40980000 409C0000 40A00000 40A40000 40A80000 40AC0000 40B00000 40B40000 40B80000 40BC0000 40C00000 40C40000 40C80000 40CC0000 40D00000 40D40000 40D80000 40DC0000 40E00000 40E40000 40E80000 40EC0000 40F00000 40F40000 40F80000 40FC0000 41000000 41040000 41080000 410C0000 41100000 41140000 41180000 411C0000 41200000 41240000 41280000 412C0000 41300000 41340000 41380000 413C0000 41400000 41440000 41480000 414C0000 41500000 41540000 41580000 415C0000 41600000 41640000 41680000 416C0000 41700000 41740000 41780000 417C0000 41800000 41840000 41880000 418C0000 41900000 41940000 41980000 419C0000 41A00000 41A40000 41A80000 41AC0000 41B00000 41B40000 41B80000 41BC0000 41C00000 41C40000 41C80000 41CC0000 41D00000 41D40000 41D80000 41DC0000 41E00000 41E40000 41E80000 41EC0000 41F00000 41F40000 41F80000 41FC0000=>------------------------------------------------------------------------------The following sequence was performed to test the erase command:------------------------------------------------------------------------------=> cp 0 40080000 10Copy to Flash... done=> erase 40080000 400bffffErase Flash from 0x40080000 to 0x400bffff.. doneErased 1 sectors=> md 4008000040080000: ffffffff ffffffff ffffffff ffffffff ................40080010: ffffffff ffffffff ffffffff ffffffff ................40080020: ffffffff ffffffff ffffffff ffffffff ................40080030: ffffffff ffffffff ffffffff ffffffff ................40080040: ffffffff ffffffff ffffffff ffffffff ................40080050: ffffffff ffffffff ffffffff ffffffff ................40080060: ffffffff ffffffff ffffffff ffffffff ................40080070: ffffffff ffffffff ffffffff ffffffff ................40080080: ffffffff ffffffff ffffffff ffffffff ................40080090: ffffffff ffffffff ffffffff ffffffff ................400800a0: ffffffff ffffffff ffffffff ffffffff ................400800b0: ffffffff ffffffff ffffffff ffffffff ................400800c0: ffffffff ffffffff ffffffff ffffffff ................400800d0: ffffffff ffffffff ffffffff ffffffff ................400800e0: ffffffff ffffffff ffffffff ffffffff ................400800f0: ffffffff ffffffff ffffffff ffffffff ................=> cp 0 40080000 10Copy to Flash... done=> erase 1:2Erase Flash Sectors 2-2 in Bank # 1.. done=> md 4008000040080000: ffffffff ffffffff ffffffff ffffffff ................40080010: ffffffff ffffffff ffffffff ffffffff ................40080020: ffffffff ffffffff ffffffff ffffffff ................40080030: ffffffff ffffffff ffffffff ffffffff ................40080040: ffffffff ffffffff ffffffff ffffffff ................40080050: ffffffff ffffffff ffffffff ffffffff ................40080060: ffffffff ffffffff ffffffff ffffffff ................40080070: ffffffff ffffffff ffffffff ffffffff ................40080080: ffffffff ffffffff ffffffff ffffffff ................40080090: ffffffff ffffffff ffffffff ffffffff ................400800a0: ffffffff ffffffff ffffffff ffffffff ................400800b0: ffffffff ffffffff ffffffff ffffffff ................400800c0: ffffffff ffffffff ffffffff ffffffff ................400800d0: ffffffff ffffffff ffffffff ffffffff ................400800e0: ffffffff ffffffff ffffffff ffffffff ................400800f0: ffffffff ffffffff ffffffff ffffffff ................=> cp 0 40080000 10Copy to Flash... done=> cp 0 400c0000 10Copy to Flash... done=> erase 1:2-3
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -