Project

General

Profile

How to load Linux Kernel and files system with no Ethernet port

Added by Vivek Ponnani almost 7 years ago

Hi,

I have a custom board with
1) MityDspl-138F module (with FPGA)
2) No Ethernet port
3) UART,USB,SD CARD interface

I have built VM with MityDSP-L138_SDK_2012_06_13.ova file from critical link.

I connect the board with serial port xds200 JTAG emulator. I use teraterm application from windows with 1115200 baud to receive information from the board. when I power on the board,I get following info (MityDspl-138 Uboot.txt).

OMAP-L138/AM-1808/AM-1810 initialization passed!
Configuring 128MB mDDR
Booting TI User Boot Loader
UBL Version: 1.65:2.28.1 BuiltJul 11 2011 12:49:53
UBL Flashtype: SPI
Starting SPI Memory Copy...
Valid magicnum, 0x55424CBB, found at offset 0x00010000.
DONE
Jumping to entry point at 0xC1080000.

U-Boot 2009.11-00002-gc6adda5 (May 01 2015 - 11:42:37)

I2C: ready
DRAM: 128 MB
NAND: 256 MiB
MMC: davinci: 0
In: serial
Out: serial
Err: serial
ARM Clock : 300000000 Hz
DDR Clock : 150000000 Hz
EMIFA CLock : 100000000 Hz
DSP Clock : 300000000 Hz
ASYNC3 Clock : 150000000 Hz
Enet config : 2
MMC 0 Enable : 1
Resetting ethernet phy
Net: No ETH PHY detected!!!

U-Boot >

I understand that I have to load Linux kernal and .jffs2 file systems on board with SD card interface.Followings are my questions.

1) Can anyone explain me how to load Linux kernal and .jffs2 file systems on board with SD card interface from Linux or Windows.
2) In Linux VM (MityDSP-L138 SDK) which serial port communication application I can use to communicate with board?
3) I have connected test LEDs at GP01 and GP04 on my board for test purpose.Is there any way that without loading kernel and filesystem,I can toggle test LEDs on my board with CCS.

Thanks.

- Vivek


Replies (33)

RE: How to load Linux Kernel and files system with no Ethernet port - Added by Vivek Ponnani almost 7 years ago

Jonathan Cormier wrote:

I've not really tried to send files over the terminal. But it should be possible using xmodem. The L138 filesystem has the rx program which is used to receive xmodem file streams. sx would be used on the other side. I'm not sure exactly how to run these commands though to get them working.

https://www.systutorials.com/docs/linux/man/1-sz/

Do you have an sd card slot which you could use to transfer files? Or usb?

Yes, I have SD card slot and USB. So in that case I have to copy application .out file to sd card/USB in Linux VM and then which command we could use to copy that file to /tmp folder on board?

RE: How to load Linux Kernel and files system with no Ethernet port - Added by Jonathan Cormier almost 7 years ago

The sd card if formated ext3 or fat32, it should automount to /dev/mmcblk0p1.

root@mityomapl138:~# mount
...
/dev/mmcblk0p1 on /media/mmcblk0p1 type ext3 (rw,relatime,errors=continue,user_xattr,barrier=1,data=writeback)

You can then copy files

cp /media/mmcblk0p1/file /tmp/

RE: How to load Linux Kernel and files system with no Ethernet port - Added by Vivek Ponnani almost 7 years ago

Jonathan Cormier wrote:

The sd card if formated ext3 or fat32, it should automount to /dev/mmcblk0p1.
[...]

You can then copy files
[...]

Hi Jonathan,

I am trying to copy application .out file to SD card in Linux VM, but it is not allowing me to copy. The SD card I prepared for Linux rootfs, the same can be used for the copying application .out files? If yes, How to copy it? I want to copy Hello Word application image files for ARM and DSP to the board. Please explain the procedure. Thanks.

RE: How to load Linux Kernel and files system with no Ethernet port - Added by Jonathan Cormier almost 7 years ago

Vivek Ponnani wrote:

Jonathan Cormier wrote:

The sd card if formated ext3 or fat32, it should automount to /dev/mmcblk0p1.
[...]

You can then copy files
[...]

Hi Jonathan,

I am trying to copy application .out file to SD card in Linux VM, but it is not allowing me to copy. The SD card I prepared for Linux rootfs, the same can be used for the copying application .out files? If yes, How to copy it? I want to copy Hello Word application image files for ARM and DSP to the board. Please explain the procedure. Thanks.

What error message are you getting? My best guess would be that you are trying to copy files to the sd card which is owned by user root. In that case you need to use sudo to copy with root permissions.

sudo cp testfile /media/rootfs/home/root/

RE: How to load Linux Kernel and files system with no Ethernet port - Added by Vivek Ponnani almost 7 years ago

Jonathan Cormier wrote:

Vivek Ponnani wrote:

Jonathan Cormier wrote:

The sd card if formated ext3 or fat32, it should automount to /dev/mmcblk0p1.
[...]

You can then copy files
[...]

Hi Jonathan,

I am trying to copy application .out file to SD card in Linux VM, but it is not allowing me to copy. The SD card I prepared for Linux rootfs, the same can be used for the copying application .out files? If yes, How to copy it? I want to copy Hello Word application image files for ARM and DSP to the board. Please explain the procedure. Thanks.

What error message are you getting? My best guess would be that you are trying to copy files to the sd card which is owned by user root. In that case you need to use sudo to copy with root permissions.
[...]

I am attaching screenshot for the error message I got.

RE: How to load Linux Kernel and files system with no Ethernet port - Added by Jonathan Cormier almost 7 years ago

In this case you need to determine where the sd card was mounted. If you prefer the using the gui, then you can right click in the mounted rootfs folder and go to properties. It should show that it was mounted in /media/mitydsp/.

So your copy command should be

sudo cp /home/mitydsp/HelloWorldARM /media/mitydsp/rootfs/home/root/

To determine where a disk is mounted using terminal, you can run the mount command

mitydsp@vagrantup:~$ mount
/dev/mapper/vagrantup--vg-root on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
/dev/sda1 on /boot type ext2 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
nfsd on /proc/fs/nfsd type nfsd (rw)
/dev/sdb1 on /media/mitydsp/rootfs type ext3 (rw,nosuid,nodev,uhelper=udisks2)

The important line here happens to be the last one. Here we see that disk /dev/sdb1 is mounted at /media/mitydsp/rootfs.

/dev/sdb1 on /media/mitydsp/rootfs type ext3 (rw,nosuid,nodev,uhelper=udisks2)

RE: How to load Linux Kernel and files system with no Ethernet port - Added by Vivek Ponnani almost 7 years ago

Hi Jonathan,

Thanks for all your support. I am able to run helloWorld and testled programs on my custom board with SD card. Now, I am trying to connect my board with xds200 as I will need it to debug my future developments. As I run test connection, it is not successful. I am attaching screenshot for it. I installed drivers also as below.

mitydsp@vagrantup:/$ cd opt
mitydsp@vagrantup:/opt$ cd ti
mitydsp@vagrantup:/opt/ti$ cd ccsv5
mitydsp@vagrantup:/opt/ti/ccsv5$ cd install_scripts
mitydsp@vagrantup:/opt/ti/ccsv5/install_scripts$ sudo ./install_drivers.sh
Uninstalling /etc/udev/rules.d/71-ti-permissions.rules
TI XDS100 installation completed successfully. Some versions of Linux
require a reboot in order for the driver to function properly. For other
versions restarting udev is sufficient. Restarting udev now ...
udev stop/waiting
udev start/running, process 2536
mitydsp@vagrantup:/opt/ti/ccsv5/install_scripts$

The response is showing TI XDS100 installation completed successfully. Is this ok even if I use XDS200? I found ti_xds100_linux_install.sh file in install_scripts but not for XDS200.

Thanks.

(26-33/33) Go to top
Add picture from clipboard (Maximum size: 1 GB)