"uboot boot failed" with board modify base on 01Studio CanMV Board

Viewed 67

重现步骤

I design board base on 01Studio CanMV.
About Hardware:

  • I edit PQ pin Lpddr4 (I edited lpddr4_init_32_swap_2667.c and rebuild u-boot).
  • Memory eMMC ->MMC0
  • SDCard > MMC1

期待结果和实际结果

When i config boot from MMC1 (SD card , BOOT0=1 BOOT1=1), i get error boot:

U-Boot SPL 2022.10 (Apr 23 2025 - 21:23:28 +0700)
lpddr4 2660 - SilverAI-2
00000000: PMU Major Msg: End of CA training
00000000: PMU Major Msg: End of initialization
00000000: PMU Major Msg: End of read enable training
00000000: PMU Major Msg: End of fine write leveling
00000000: PMU Major Msg: End of read dq deskew training
00000000: PMU Major Msg: End of MPR read delay center optimization
00000000: PMU Major Msg: End of Write leveling coarse delay
00000000: PMU Major Msg: End of write delay center optimization
00000000: PMU Major Msg: End of read delay center optimization
00000000: PMU Major Msg: End of max read latency training
00000000: PMU Major Msg: Firmware run has completed
sdhci_transfer_data: Transfer data timeout
sdhci_transfer_data: Transfer data timeout
sdhci_transfer_data: Transfer data timeout
sdhci_transfer_data: Transfer data timeout
pfh->magic 0x0 != 0x3033324b blk=0x1000 buff=0xa500000 sys 8 load error ret=5
uboot boot failed
spl_board_init_f() failed: 5

reboot system

软硬件版本信息

HW: Modify from 01Studio CanMV
FW: Modify from K230_Linux_SDK for 01Studio CanMV

错误日志

尝试解决过程

补充材料

image.png
image.png
image.png

3 Answers

image.png
Comment out the code I marked in red,Because 01 board force boot from SDIO0.

I modify as same picture (marked in red).
make uboot-rebuild
make
reflash to SD card
But it still get log with error as same above.
Do I need to edit somewhere else?

image.png

dts need add

&mmc1 {
status = "okay";
};
(dongshanpai support emmc and tf card,you can refer dongshanpai)

Thank you for your suggestion.
But, dongshanpai use lpddr3 and my board use lpddr4 2667.
So, how i can add lpddr4_init for dongshanpai?
image.png

It's better to refer to 01. For the device tree part, you can refer to Dongshanpi.