Feb

20

Mini2440 environment tools configuration

By admin

In order to configure your workspace, you have to follow this links :
- Mini2440 & uboot downloader setting up :

Google project at http://wiki.linuxmce.org/index.php/Mini2440

Tuto + wondefull video at http://narnia.cs.ttu.edu/drupal/node/131

http://wiki.linuxmce.org/index.php/Mini2440

http://blog.leshak.ru/english/pages/how-to-install-u-boot-linux-2629-rootfsjffs2-busybox-1132-into-nand-qq2440/

http://docwiki.gumstix.org/index.php/Uboot

http://wiki.openembedded.net/index.php/Getting_Started

- Cross-compilator configuration :

- tftptboot :

sudo apt-get install tftpd-hpa tftp-hpa xinetd

Debian / Ubuntu

With the Debian / Ubuntu distributions, the TFTP server configuration file is /etc/default/tftpd-hpa and by default it instructs the TFTP daemon to use the/var/lib/tftpboot directory to store its files. Also by default, the daemon is disabled.

Another thing to remember is that the tftpd-hpa server daemon runs independently of xinetd and has its own startup script in the /etc/init.d directory. By default, the daemon is started at boot time, but the configuration file’s default configuration setting disables it by forcing the daemon to exit prematurely.

This example enables the daemon in the configuration file and then starts the TFTP server:

root@u-bigboy:/tmp# vi /etc/default/tftpd-hpa
...
...
...
#
# File: /etc/default/tftpd-hpa
#
#Defaults for tftpd-hpa
RUN_DAEMON="yes"
OPTIONS="-l -s /var/lib/tftpboot"
...
...
...
root@u-bigboy:/tmp# /etc/init.d/tftpd-hpa start
Starting HPA's tftpd: in.tftpd.
root@u-bigboy:/tmp#

Note: With both Redhat and Debian distributions, you can test whether the TFTP process is running with the netstat command which is used to check the TCP/UDP ports on which your server is listening. If it isn’t running then there will be no response.

[root@bigboy tmp]# netstat -a | grep tftp
udp        0      0 *:tftp                  *:*
[root@bigboy tmp]#

Preparing TFTP Server Files

The TFTP server will not create files in its transfer directory if they don’t already exist. Each device must have a pre-existing configuration file in the tftpboot directory. The files also need to have their permissions adjusted to allow them to be updated by the TFTP daemon.

[root@bigboy tmp]# touch /tftpboot/pixfw-config
[root@bigboy tmp]# chmod 666 /tftpboot/pixfw-config
[root@bigboy tmp]# ll /tftpboot/
total 1631
-rw-rw-rw- 1 root root 3011 Oct 29 14:09 pixfw-config
[root@bigboy tmp]#

/****************/
Have a look to these good links/tutorials:Tutoriel intéressant 2440
http://www.friendlyarm.net/downloads
http://www.pobot.org/-La-Mini2440-de-FriendlyARM-.html
http://forum.pobot.org/topic81.html
http://code.google.com/p/friendlyarm/wiki/Linux_Tutorial
intersting videos : http://farm2440.blogspot.fr/
/***************/