Thread 中讨论的其他器件:TPS62873
工具与软件:
您好!
我尝试在 J784S4定制电路板的 OSPI NOR 闪存上刷写 U-boot。
我执行了以下步骤:
1. I changed the CONFIG_TI_SECURE_DEVICE=y to CONFIG_TI_SECURE_DEVICE=n in configs/j784s4_evm_a72_defconfig and configs/j784s4_evm_r5_defconfig
2. We have MT35XU02GCBA1G12-0AAT so, I added in drivers/mtd/spi/spi-nor-core.c
#ifdef CONFIG_SPI_FLASH_MT35XU
- if (!strcmp(nor->info->name, "mt35xu512aba"))
+ if (!strcmp(nor->info->name, "mt35xu512aba") || !strcmp(nor->info->name, "mt35xu02g"))
nor->fixups = &mt35xu512aba_fixups;
#endif
3. I rebuilt the u-boot
4. I flashed the OSPI NOR in UART mode with below commands:
=> sf probe 0
=> loadb 0x82000000
Sending the tiboot3.bin via Kermit
=> sf erase 0x0 +$filesize
=> sf update 0x82000000 0x0 $filesize
=> loadb 0x82000000
Sending the tispl.bin_unsigned via Kermit
=> sf erase 0x80000 +$filesize
=> sf update 0x82000000 0x80000 $filesize
=> loadb 0x82000000
Sending the u-boot.img_unsigned via Kermit
=> sf erase 0x280000 +$filesize
=> sf update 0x82000000 0x280000 $filesize
但当我改为 SPI 或不刷写时、它会阻塞
=> U-Boot SPL 2023.04-dirty (Sep 08 2024 - 11:24:18 +0300) Rachel EEPROM not available at 0x50, trying to read at 0x51 Reading on-board EEPROM at 0x51 failed -121 SYSFW ABI: 3.1 (firmware rev 0x0009 '9.2.4--v09.02.04 (Kool Koala)') i2c_write: error waiting for data ACK (status=0x116) tps6287x_regulator tps62873@40: CTRL2 reg read failed: -121 SPL initial stack usage: 13456 bytes Trying to boot from SPI
您能帮我弄清楚原因吗?
谢谢!
Rachel

