Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

AM57X PD19的镜像中, 默认硬件配置是

Code Block
languagebash
themeEmacs
titleuboot log
Model: PHYTEC phyCORE-AM5716 with 1GiB DDR3 (1 bank), Commercial Temp
PHYTEC: unknown board name. Defaulting to am57xx_phycore_kit,a MINIMAL AM5716 configuration.

kernel中的设备树也是根据板子的默认配置选用am5716的设备树.

Code Block
languagebash
themeEmacs
titlekernel log
[    0.000000] OF: fdt: Machine model: PHYTEC phyCORE-AM5716 with 1GiB DDR3 (1 bank), Commercial Temp

这是因为从PD19版本开始, uboot是读eeprom中的值来得到核心板的配置, 而核心板默认出厂时并没有往eeprom中写入对应板子的参数值.

在PD19的系统中, PHYTEC有个EEPROM的烧写工具, 具体使用方法需要先参考这个文档说明:

Using the PHYTEC EEPROM Flashtool

在写入eeprom之前, 需要先得到核心板的PART NUMBER, 然后可以使用这个工具的display参数可以查找该核心板的硬件参数

Code Block
languagebash
themeMidnight
root@am57xx-phycore-kit:~# export PATH=/usr/bin/phytec-eeprom-flashtool:$PATH
root@am57xx-phycore-kit:~# phytec_eeprom_flashtool.py display PCM-057-41300111I.A1 3

PCM-057-41300111I.A1 EEPROM contents and configuration [display]:

API version             0                                       
Mod version             0                                       
SOM PCB revision        3                                       
KSP style               0                                       
KSP number              0                                       
Bits set                46                                      
MAC address             74:da:ea:08:45:b0                       

Verbose kit options:
DDR                     2GB DDR3 RAM (2 Banks)                  
ECC                     256MB 8-bit ECC RAM (Bank 1)            
eMMC/NAND               8GB eMMC                                
SPI                     No SPI NOR Flash                        
Controller              TI AM5728 Controller                    
EEPROM                  4KB EEPROM                              
Ethernet                10/100/1000 ethernet PHY                
RTC                     Real-Time Clock                         
Temp                    Industrial -40C to +85C                 

然后往eeprom写入核心板的参数:

Code Block
languagebash
themeMidnight
root@am57xx-phycore-kit:~# phytec_eeprom_flashtool.py write PCM-057-41300111I.A1 3
dict_to_struct, kit_opt_str: 41300111IA1
EEPROM flash successful!

重启之后就能看到bootloader中的硬件配置已经更改为PCM-057-41300111I.A1的配置了:

Code Block
languagebash
themeEmacs
Model: PHYTEC phyCORE-AM5728 with 2GiB DDR3 (2 banks), Industrial Temp
Board: phyCORE-AM57x kit

[    0.000000] OF: fdt: Machine model: PHYTEC phyCORE-AM5728 with 2GiB (banks) DDR3, Industrial Temp