This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/DRA756: Does DRA756 support one bank with 16bit data bus using 512MB size?

Part Number: DRA756


Tool/software: Linux

Hi all,

My code base is SDK 3.02.00.03 and use DRA756 custom board.

We want to reduce DDR size, so only mount one 16bit DDR with 512MB size on EMIF1.

Then try to modify following portions as below.

1. u-boot/board/ti/dra7xx/evm.c

const struct emif_regs j6_emif_2_regs_ddr3_532_mhz_1cs_dra_es1 = {

        .sdram_config_init                 = 0x61855B32,

        .sdram_config                                 = 0x61855B32,

        .sdram_config2                               = 0x08000000,

        .ref_ctrl                                           = 0x000040F1,

        .ref_ctrl_final                                  = 0x00001035,

        .sdram_tim1                                   = 0xCCCF36B3,

        .sdram_tim2                                   = 0x308F7FDA,

        .sdram_tim3                                   = 0x027F88A8,

        .read_idle_ctrl                                = 0x00050000,

        .zq_config                                        = 0x0007190B,

        .temp_alert_config                         = 0x00000000,

        .emif_ddr_phy_ctlr_1_init              = 0x0E24400A,

        .emif_ddr_phy_ctlr_1                     = 0x0E24400A,

        .emif_ddr_ext_phy_ctrl_1              = 0x10040100,

        .emif_ddr_ext_phy_ctrl_2              = 0x00910091,

        .emif_ddr_ext_phy_ctrl_3              = 0x00950095,

        .emif_ddr_ext_phy_ctrl_4              = 0x009B009B,

        .emif_ddr_ext_phy_ctrl_5              = 0x009E009E,

        .emif_rd_wr_lvl_rmp_win              = 0x00000000,

        .emif_rd_wr_lvl_rmp_ctl               = 0x00000000,

        .emif_rd_wr_lvl_ctl                        = 0x00000000,

        .emif_rd_wr_exec_thresh              = 0x00000305

};

 

const struct dmm_lisa_map_regs j6_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

};

 

2. kernel/arch/arm/boot/dts/dra7-evm-030003.dts

memory {

                device_type = "memory";

                reg = <0x0 0x80000000 0x0 0x20000000>; /* 512 MB */

        };

After modification, I would stock at "Starting kernel ..." Please help me to clarify following queries.

1. Anything missed to modify in uboot or kernel?

2. Does DRA756 support to mount only one bank with 16bit data bus?

Console log:

==================================================

U-Boot SPL 2016.05 (Dec 23 2017 - 22:35:46)
DRA752-GP ES2.0
MMC Device 1 not found
*** Warning - No MMC card found, using default environment

Trying to boot from MMC1
MMC Device 1 not found
*** Warning - No MMC card found, using default environment

reading u-boot.img
reading u-boot.img


U-Boot 2016.05 (Dec 23 2017 - 22:35:46 +0800)

CPU : DRA752-GP ES2.0
Board: DRA74x EVM REV
I2C: ready
DRAM: 512 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Warning: fastboot.board_rev: unknown board revision
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
ERROR: cannot find partition: 'userdata'

at arch/arm/cpu/armv7/omap-common/utils.c:195/mmc_get_part_size()
Warning: fastboot.userdata_size: unable to calc
Net: Could not get PHY for cpsw: addr 2
cpsw
Hit any key to stop autoboot: 0
=>
=>
=> boot_sd
J6 ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
4303896 bytes read in 1429 ms (2.9 MiB/s)
113619 bytes read in 64 ms (1.7 MiB/s)
Booting from mmc0 ...
Kernel image @ 0x82000000 [ 0x000000 - 0x41ac18 ]
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 8ffe1000, end 8ffffbd2 ... OK
Using machid 0xfe6 (0x82000000) from environment

Starting kernel ...

==================================================

Thanks in advance.

B.R.

OC