Tool/software: Linux
Hi,
I have AM5708 based custom board and I had released revision A of that with 1GB of RAM with 532Mhz DDR frequency. Now I have reduced the size of DDR from 1GB to 512 MB and all the other components are same. Just DDR is changed with 2 Chips of 512 to 2 Chips of 256. I have changed Row size and Page size and LISA register according to DDR datasheet and Device tree node for memory in kernel. But When I power up the Board it hangs at ** Starting kernel **
I have changed :
In file arch/arm/boot/dts/am570x-custom-board.dts
memory {
device_type =
"memory"
;
reg = <0x0 0x80000000 0x0 0x40000000>;
/* 1024 MB */
};
And I tried to modify reg to
"reg = <0x0 0x80000000 0x0 0x20000000>;"
In Board file I have changed Registers for DDR :
const struct emif_regs j6e_emif_2_regs_ddr3_532_mhz_1cs_dra_es1 = { .sdram_config_init = 0x61851AB2, .sdram_config = 0x61851AB2, .sdram_config2 = 0x00000000, };
I have tried to modify .sdram_config_init from "0x618522B2" to "0x61851AB2" and sdram_config from "0x618522B2" to "0x61851AB2"
const struct dmm_lisa_map_regs j6e_lisa_map_4G_x_2_x_2 = { .dmm_lisa_map_0 = 0x0, .dmm_lisa_map_1 = 0x0, .dmm_lisa_map_2 = 0x0, .dmm_lisa_map_3 = 0x80500100, .is_ma_present = 0x1 }; Modified .dmm_lisa_map_3 from "0x80600100" to "0x80500100"
U-Boot SPL EDGE DRA722-GP ES2.0 Trying to boot from MMC1 U-Boot: CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1 : u-boot.img SPL: trying to load u-boot.img from secondry partition!! reading u-boot.img reading u-boot.img reading u-boot.img reading u-boot.img U-Boot 2016.05-00333-ge1198ea-dirty (Jan 17 2018 - 11:33:14 +0530) CPU : DRA722-GP ES2.0 Model: TI AM5708 EDGE Board: AM570x EDGE REV Watchdog enabled DRAM: 512 MiB MMC: no pinctrl for sdr104 no pinctrl for ddr50 no pinctrl for sdr50 no pinctrl for sdr25 no pinctrl for sdr12 no pinctrl for hs200_1_8v OMAP SD/MMC: 0, OMAP SD/MMC: 1 reading uboot.env ** Unable to read "uboot.env" from mmc0:1 ** Using default environment SCSI: 0 device not found ERROR: scsi device not found at drivers/block/disk-uclass.c:43/scsi_init() Net: Warning: ethernet@48484000 using MAC address from ROM eth0: ethernet@48484000 U-Boot: Loaded, undefined EEPROM reg value!! Kernel: Secondary Fail, booting from primary kernel!! FS : Booting from primary FS!! Autoboot in 2 seconds EDGE# setenv boot_fit 0 EDGE# boot switch to partitions #0, OK mmc0 is current device SD/MMC found on device 0 reading boot.scr ** Unable to read file boot.scr ** reading uEnv.txt ** Unable to read file uEnv.txt ** switch to partitions #0, OK mmc0 is current device SD/MMC found on device 0 reading zImage 3738192 bytes read in 173 ms (20.6 MiB/s) reading am570x-edge.dtb 85212 bytes read in 10 ms (8.1 MiB/s) Kernel image @ 0x82000000 [ 0x000000 - 0x390a50 ] ## Flattened Device Tree blob at 88000000 Booting using the fdt blob at 0x88000000 Loading Device Tree to 8ffe8000, end 8ffffcdb ... OK Starting kernel ...
I have followed and changed accordingly but no luck :
https://e2e.ti.com/support/arm/automotive_processors/f/1020/t/651203
and
https://e2e.ti.com/support/arm/automotive_processors/f/1020/t/652269
Is there anything I am missing in configuration? I have Enabled Early printk from kernel also but there is no console log. I have Debugged spl via Jtag and I am able to write 512MB of (whole range) DDR via jtag.
Guide me in solving this problem.
Thank you,
Chintan.