Good Afternoon
If got a problem:
I've setup the boot by sd card an can startup the evm.
I'm building the helloworld regarding the "DM814x AM387x EZ 5.02 Software Developers Guide".
I put the helloworld* into the folder regarding the description there:
host $ mkdir ${HOME}/targetfs/home/root/dm814x host $ cp helloworld ${HOME}/targetfs/home/root/dm814xAt the target I'm entering
root@dm814x-evm:~# /home/root/dm814x/helloworldand get the answer
-sh: /home/root/dm814x/helloworld: not foundFrom host and target side I can ping at get the right result.tftp file transfer is not possible. For these commands I get "tftf timed out."timeout ist set to 60.iptables was called with "iptables -F" before. So it should allow data handling in ay way. Aswell I switch of the windows firewall.What is wrong for calling the helloworld?Many thanks and best regardsOliver
You create directory on host and after boot board you try run application from this directory, I am right?
If you must run application on your board you must copy it on board or mount directory with application, e.g. on NFS.
Hi Oliver,
Make sure that your copied location (directory) and accessing from the target are same.
I have some questions here,
Which file system you are using? NFS/SD/JFFS2?
Does tftp server is running on your virtual machine (ubuntu)? Do you copy the helloworld application to tftp folder?
Regards
AnilKumar
Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question. Thanks!
Many thanks for your prompt reply. Yougave me the inspiration not to take a timeout.
What I basically not understand is theway how the target can find the “path” to the folder where the wantedapplication is located. What do I have to mount?
What I did until now is the following:
./setup.sh
iptables –F
windows 7 firewall all to off
File system nfs.
For the SD-card I was using
host$ sudo ${EZSDK}/bin/mksdboot.sh --device /dev/sdb --sdk ${EZSDK}” as shown inthe manuals
On host xinet is used:
host:~$ ps aux | egrep '[xi]netd'
root 1018 0.0 0.0 2492 888? Ss 07:15 0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat-inetd_ipv6
/etc/default/aftftpd
#USE_INETD=true
USE_INETD=false
OPTIONS="--tftpd-timeout 300 --retry-timeout 5--mcast-port 1758 --mcast-addr 239.239.239.0-255 --mcast-ttl 1 --maxthread 100--verbose=5 /tftpboot"
at “etc/xinet.d/tftp”
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = -s -c /tftpboot
disable = no
}
I’m restarting
/etc/init.d/xinetd restart
/tftpboot is
drwxrwxrwx 2 nobody root 4096 2012-04-17 15:43 tftpboot/
Test tftp
echo "Hello, embedded world" > /tftpboot/hello.txt
ll /tftpboot
drwxrwxrwx 2 nobody root 4096 2012-04-18 07:51 ./
drwxr-xr-x 23 root root 4096 2012-04-18 07:50 ../
-rw-r--r-- 1 nobody owilhelm 222012-04-18 07:51 hello.txt
-rwxr-xr-x 1 nobody owilhelm 5686 2012-04-1714:27 helloworld
host:~$ tftp localhost
tftp> get hello.txt
Received 23 bytes in 0.0 seconds
tftp> quit
~/targetfs
drwxr-xr-x 18 owilhelmowilhelm 4096 2012-04-12 07:22 targetfs/
drwxrwsrwx 3 owilhelm owilhelm 4096 2011-12-0913:52 home/
drwxrwsrwx 3 owilhelm owilhelm 4096 2012-04-1611:39 root/
drwxrwsrwx 2 owilhelm owilhelm 4096 2012-04-16 11:40 dm814x/
and at dm814x
-rwxrwxrwx 1 owilhelm owilhelm 5686 2012-04-16 11:40 helloworld*
On target via putty or minicom
Dm814x-evm login: root
root@ Dm814x-evm:~# /home/root/dm814x/helloworld
-sh; /home/root/dm814x/helloworld: not found
Many thanks
Oliver
What I basically not understand is theway how the target can find the “path” to the folder where the wantedapplication is located. Do I have to mount anything?
Why the file is helloworld* instead of helloworld?
Can you do tftp from target?
$ tftp -g <tftp server ip> -r hello.txt
and
$ tftp -g <tftp server ip> -r helloworld
Hello Anil
Thanks for your answer.
This command I've tried on target yesterday, too.
I do "ifconfig eth0 192.168.0.154 netmask 255.255.255.0" on target
The exact command I've set on target is "tftp -g 192.168.0.154 -r hello.txt". The ip is the what I get with windows command ipconfig at the host.
For that I get "tftp: timeout".
Can you answer to my first question in my previous post?
ipaddress should be get from ubuntu not from windows, because your tftp server is running on ubuntu not on windows.
Another way is you can install tftp server in windows and you can tftp from there.
I think you missed out the Network bridge connection in virtualbox.
helloworld is "helloworld*" after make. I'm just using the examples out of the manual "DM814x AM387x EZ 5.02 Software Developers Guide"
Can you try building with static keyword?
linux-host$ arm-arago-linux-gnueabi-gcc -static -o helloworld helloworld.c
Hi Anil
nothing changed. The file is just 10 times larger.
I've changed the network ip of ubuntu to 192.168.0.155 with netmask 255.255.255.0.
by using command tftp -g 192.168.0.155 -r helloworld I get tftp timeout
Can try these commands in you host machine (ubuntu)? You should call these from any where except /tftpboot
linux-host$ sudo tftp 192.168.0.155
tftp > bin
tftp > get helloworld
tftp > quit
linux-host$
the server works:
host$ sudo tftp 192.168.0.155
tftp> bin
tftp> get helloworld
Received 5686 bytes in 0.1 seconds
Hello
When I was following the intrduction of "DM814x AM387x EZ5.02Software Developers Guide" and starting setup.sh and using the outputs at the end of script I could start communication with the eval board.
I got same problem.
How did you fix it???
chshin@chshin-desktop:~$ sudo tftp 192.168.0.189[sudo] password for chshin: tftp> bintftp> get helloworldReceived 5686 bytes in 0.0 secondstftp> quit
Hi Shin,
Have you followed the exact steps specified in "DM814x AM387x EZ5.02Software Developers Guide"?
Can you try this command on board?