Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 125491

Forum Post: RE: Linux-c6x and TMDSEVM6472

$
0
0

At the moment I have the following:

1. In the folder /linux-c6x-2.0.0.63/linux-c6x-project executed command
./prj config
received file
/linux-c6x-2.0.0.63/linux-c6x-project/setenv

2. Edited file /linux-c6x-2.0.0.63/linux-c6x-project/setenv
export KERNELS_TO_BUILD="evmc6472"
export BUILD_BOOTLOADERS=yes
export CGT_BIOS_DIR=/home/stolyarov/ti/ccsv5/tools/compiler/c6000_7.4.4
export CGT_LINUX_DIR=/home/stolyarov/ti/ccsv5/tools/compiler/c6000_7.4.4

3. Executed commands
source setenv
./prj config

4. Edited file /linux-c6x-2.0.0.63/linux-c6x-project/kbuilds/evmc6472.mk
changed CMDLINE
CMDLINE = console=ttySI0,115200 ip=dhcp root=/dev/nfs nfsroot=192.168.255.11:/home/stolyarov/linux-c6x/src/linux-c6x-2.0.0.63/product/min-root-c6x,nolock rw mem=32M,earlyprintk rootdelay=20

5. Edited file /linux-c6x-2.0.0.63/projects/ibl/src/util/iblConfig/src/device.c
changed
SETIP(ibl.bootModes[0].u.ethBoot.ethInfo.ipAddr,    192,168,255,42);
SETIP(ibl.bootModes[0].u.ethBoot.ethInfo.serverIp,  192,168,255,11);
SETIP(ibl.bootModes[0].u.ethBoot.ethInfo.gatewayIp, 192,168,255,1);
SETIP(ibl.bootModes[0].u.ethBoot.ethInfo.netmask,   255,255,255,0);

6. Edited file /linux-c6x-2.0.0.63/projects/ibl/src/util/i2cConfig/i2cConfig.gel
changed
SETIP(ibl.bootModes[0].u.ethBoot.ethInfo.ipAddr,    192,168,255,42);
SETIP(ibl.bootModes[0].u.ethBoot.ethInfo.serverIp,  192,168,255,11);
SETIP(ibl.bootModes[0].u.ethBoot.ethInfo.gatewayIp, 192,168,255,1);
SETIP(ibl.bootModes[0].u.ethBoot.ethInfo.netmask,   255,255,255,0);

6. Compiled kernel
./prj build
received two files
/linux-c6x-2.0.0.63/product/vmlinux-2.6.34-evmc6472.el-dev-stolyarov-20131226.bin
/linux-c6x-2.0.0.63/product/min-root-c6x.cpio.gz

7. In the folder /linux-c6x-2.0.0.63/program_evm executed commands
export DSS_SCRIPT_DIR=/home/stolyarov/ti/ccsv5/ccs_base/scripting/bin
export PROGRAM_EVM_TARGET_CONFIG_FILE=/home/stolyarov/ti/CCSTargetConfigurations/c6472.ccxml
$DSS_SCRIPT_DIR/dss.sh program_evm.js evm6472l-le

The operation was successful:

I2C Bus address is = 80
I2C writing has started
Please be Patient
I2C write complete, reading data
I2C read complete, comparing data
Data compare passed

8. Joined the board in CCSv5
loaded file /linux-c6x-2.0.0.63/Build/ibl-evmc6472.el/src/make/bin/i2cparam_0x50_c6472_le_0x500.out
pressed Run
loaded file /linux-c6x-2.0.0.63/Build/ibl-evmc6472.el/src/util/i2cConfig/i2cConfig.gel
Menu CCSv5->Scripts->EVM c6472 IBL->setConfig_c6472
Window CCSv5 console pressed Enter

The operation was successful:

I2c table write complete

Look: http://linux-c6x.org/wiki/index.php/Little_Endian_C6472

9. In the folder /linux-c6x-2.0.0.63/product make directory min-root-c6x and copied it min-root-c6x.cpio.gz.
executed commands
sudo gunzip min-root-c6x.cpio.gz
sudo cpio -idmv < min-root-c6x.cpio
sudo chown nobody:nogroup -R min-root-c6x/

10. Set up nfs server (/home/stolyarov/linux-c6x/src/linux-c6x-2.0.0.63/product/min-root-c6x)

11. Set up tftp server (/home/stolyarov/tftpboot)

12. Copied the kernel vmlinux-2.6.34-evmc6472.el-dev-stolyarov-20131226.bin in tftpboot folder and renamed it c6472-le.bin

13. Open minicom. Reset board and in the minicom went kernel boot, then the NFS file system. Finally got access to a command line board.

14. In minicom executed command
cat /proc/mtd
received
dev:    size   erasesize  name
mtd0: 38441000 00001000 "ROMfs"
mtd1: 00200000 00020000 "bootloader"
mtd2: 01000000 00020000 "kernel"
mtd3: 06e00000 00020000 "filesystem"

15. In minicom executed commands
cd /var/local
tftp -g -r vmlinux-2.6.34-evmc6472.el-dev-stolyarov-20131226.bin 192.168.255.11
flash_eraseall /dev/mtd2
nandwrite -p /dev/mtd2 vmlinux-2.6.34-evmc6472.el-dev-stolyarov-20131226.bin

16. SW1 pin 1 switches between TFTP boot mode and NAND boot mode.
For TFTP boot mode SW1 pin 1 should be OFF
For NAND boot mode SW1 pin 1 should be ON
Set up SW1 pin 1 for NAND boot mode. In minicom nothing appears.

My i2cConfig.gel file (Please visit the site to view this file)

Any help is appreciated

Alexander


Viewing all articles
Browse latest Browse all 125491

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>