Hello,
We have a custom board with a 66AK2G12 processor and are trying to get linux going. We used the iceK2G development kit to get familiar with the processor and are porting the key components from it. This is what we have done so far:
1. The key hardware was tested in CCS with JTAG.
2. u-boot was modified ( following this guide https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/AM335X/linux/How_to_Guides/Board_Port/U-Boot.html ) and tested on our custom board.
3. We are now trying to boot linux.
To boot linux we are using an image developed on the iceK2G board that has its Device Tree Blob (.dtb) file replaced. We replace this with the one generated for our board through building uboot. The boot process hangs at "Starting Kernel ...".
The following is what we observe during the board bring up:
U-Boot 2019.01-gededbfb329-dirty (Feb 17 2021 - 12:15:31 +0100)
CPU: 66AK2Gx-60 SR1.0
Model: <model-name-was-here>
DRAM:
Clear entire DDR3 memory to enable ECC
Clear entire DDR3 memory to enable ECC
512 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment
Net:
Warning: netcp@4000000 using MAC address from ROM
eth0: netcp@4000000
Hit any key to stop autoboot: 2 1 0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** Unable to read file boot.scr **
** Unable to read file uEnv.txt **
32832 bytes read in 6 ms (5.2 MiB/s)
K2_BM_15.07-53-ge1f885ab6dc5 SoC:k2g built:09:52:34, Oct 27 2020
## installed monitor @ 0xc0f7000, freq [25000000], status 202338304
33620 bytes read in 6 ms (5.3 MiB/s)
0 - Name:'pmmc@2900000' type:'internal memory mapped' supports: load start
Load Remote Processor 0 with data@addr=0x82000000 33620 bytes: Success!
4338176 bytes read in 207 ms (20 MiB/s)
** File not found /boot/k2-fw-initrd.cpio.gz **
8814 bytes read in 6 ms (1.4 MiB/s)
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Ramdisk to 8fbdc000, end 8ffff200 ... OK
Loading Device Tree to 8fbd6000, end 8fbdb26d ... OK
Starting kernel ...
These are some questions we have :
1. Can we drop in a linux image just like that or does it require modifications? How do we debug the hanging ?
2. Can we modify u-boot so as it generates debug information ?
3. How can we generate boot.scr and uEnv.txt ?
Thanks in advance
Luke