Part Number: AM6442
Other Parts Discussed in Thread: UNIFLASH,
Tool/software:
I want to install our tiboot3.bin SBL secondary bootloader on the emmc0 drive.
The boot configuration of our target hardware will be: emmc0 first, SD second.
first I tested this emmc0 bootcfg configuration:
(PLL 25MHz default)
Bootcfg[0] = 1
Bootcfg[1] = 1
Bootcfg[2] = 0
(primary emmc0 boot mode)
Bootcfg[3] = 1
Bootcfg[4] = 0
Bootcfg[5] = 0
Bootcfg[6] = 1
(do not change)
Bootcfg[7] = 0
Bootcfg[8] = 1
Bootcfg[9] = 1
(secondary MMC1/SD)
Bootcfg[10] = 1
Bootcfg[11] = 0
Bootcfg[12] = 1
(MMC1 4-bit mode)
Bootcfg[13] = 1
Booting the tiboot3.bin from secondary bootdevice SD is no problem. But as I have tried, I am not able to get this tiboot3.bin to the emmc0 device and load it from there as primary boot device.
I have also used your flashtools (python uart_uniflash.py together with a hopefully suitable cfg file:
--flash-writer=sbl_prebuilt/am64x-evm/sbl_uart_uniflash.release.hs_fs.tiimage
--file=tiboot3.bin --operation=flash-emmc --flash-offset=0x0
However, no success. The Rombootloader does not load anything from emmc0.
I have also tested the emmc0 UDA mode:
emmc0 Bootloader Configuration (UDA mode):
(PLL 25MHz default)
Bootcfg[0] = 1
Bootcfg[1] = 1
Bootcfg[2] = 0
(primary emmc0 boot mode UDA)
Bootcfg[3] = 0
Bootcfg[4] = 0
Bootcfg[5] = 0
Bootcfg[6] = 1
(fileio & 8-bit emmc0)
Bootcfg[7] = 0
Bootcfg[8] = 1
Bootcfg[9] = 0
(secondary MMC1/SD)
Bootcfg[10] = 1
Bootcfg[11] = 0
Bootcfg[12] = 1
(MMC1 4-bit mode)
Bootcfg[13] = 1
by using an R5 program to create a primary Fat32 partition using FatFS on the emmc0 and creating a copy of /sd0/tiboot3.bin to a targetfile /emmc0/tiboot3.bin.
Again without success. The Rom Bootloader does not load the SBL from emmc0.
What am I doing wrong?
We don't want to have a linux system on Am6442. We want to use only the R5F cores and PRUSS cores for our project.