phytec / phytec-eeprom-flashtool

MIT License
3 stars 3 forks source link

BSP-Yocto-Ampliphy-AM62x-PD23.2.0 - meta-phytec/recipes-devtools/eeprom-flashtool/phytec-eeprom-flashtool_3.00.00.bb #6

Open tloanPhytec opened 8 months ago

tloanPhytec commented 8 months ago

Seeing the following when testing on my PCM-071-5432DE11I.A0 dev kit:

""" root@phyboard-lyra-am62xx-3:\~# dd if=/dev/zero of=/sys/bus/i2c/devices/0-0050/eeprom bs=256 count=1 1+0 records in 1+0 records out 256 bytes copied, 0.0374682 s, 6.8 kB/s root@phyboard-lyra-am62xx-3:~# python3 /usr/bin/phytec-eeprom-flashtool/tool/phytec_eeprom_flashtool.py -o write -som PCM-071 -kit 5432DE11I -bom A0 CRC8-Checksum : a7

PCM-071-5432DE11I.A0 EEPROM contents.

API version : 2 SOM PCB revision : 0 0 Optiontree revision : 0 SoM type : PCM Base article number KSX number low : 0x47 KSX number high : 0x0

Verbose kit options: AM62nx : AM625x AM62xn : AM62x4 PRU : 2 PRUs DDR-Ram : 2 GB (DDR4) eMMC : 32GB eMMC NOR-Flash : 128MB Ethernet : 10/100/1000MBit Ethernet Phy

EEPROM flash successful! root@phyboard-lyra-am62xx-3:~# python3 /usr/bin/phytec-eeprom-flashtool/tool/phytec_eeprom_flashtool.py -o read -som PCM-071

PCM-071-5432DE1.A0 EEPROM contents.

API version : 2 SOM PCB revision : 0 0 Optiontree revision : 0 SoM type : PCM Base article number KSX number low : 0x47 KSX number high : 0x0

Verbose kit options: AM62nx : AM625x AM62xn : AM62x4 PRU : 2 PRUs DDR-Ram : 2 GB (DDR4) eMMC : 32GB eMMC NOR-Flash : 128MB Ethernet : 10/100/1000MBit Ethernet Phy

CRC8-Checksum correct if 0: 0 """

I believe some bugs are present:

PCM-071-5432DE11I.A0 has (according to BOM lookup):

The output of the 'read' operation is reporting:

Please advise if I'm doing something incorrectly if you notice anything 🙂

dnltz commented 7 months ago

@tloanPhytec new eeprom-flashtool version is on kirkstone-next and should be public within the next days. I fixes all your findings.

However, to write the correct PCB rev, please add -rev 2 as argument.