notes about crosstool,uboot,mysql and some tools in linux(ubuntu)

/****************

 

install gcc-3.3.6

 

patch -Np1 -i ../gcc-3.3.6-no_fixincludes-1.patch &&
patch -Np1 -i ../gcc-3.3.6-linkonce-1.patch &&
mkdir ../gcc-build &&
cd ../gcc-build &&
../gcc-3.3.6/configure --prefix=/opt/gcc-3.3.6 /
    --enable-shared --disable-multilib --enable-languages=c,c++ --enable-threads=posix &&
make bootstrap

sudo make install &&
sudo mv -v /opt/gcc-3.3.6/lib/libstdc++.so.5* /usr/lib &&
sudo ln -v -sf /usr/lib/libstdc++.so.5.0.7 /opt/gcc-3.3.6/lib &&
sudo ln -v -sf libstdc++.so.5.0.7 /opt/gcc-3.3.6/lib/libstdc++.so.5 &&
sudo chown -v -R root:root /
    /opt/gcc-3.3.6/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include

 

 

***************************************************************************************************************/

 

 

/

install tftp

 

 

sudo apt-get install tftp tftpd xinetd
and
vim /etc/xinetd.conf
add following  line to the end of file
#tftp dgram wait root /usr/bin/in.tftpd /usr/sbin/in.tftpd -s /tftpboot

//

 

**********************************************************************

install nfs

 

 

sudo apt-get install nfs-kernel-server
and
vim /etc/exports
add
/share *(rw,no_root_squash)
quit and run
sudo /etc/init.d/nfs-kernel-server restart

now change to root directory and
sudo mkdir -p share nfs
sudo chmod -R 777 share
sudo chmod -R 777 nfs

return to the home directory and run
mount -t nfs ip_address:/share /nfs
to test whether the nfs has mount successfully....


***************************************************************

 

install crosstool arm-linux-

 

***************************************************************
crosstool

sudo apt-get install patch bison flex

sudo dpkg-reconfigure -plow dash

and answering "No" to the question if you want to install dash as /bin/sh.
Then run the crosstool build.

 

******************************************************************************************

 

install code::block

 

first install the compiler environment ,C/C++ library,boost

sudo apt-get install build-essential

sudo apt-get install libc6 libc6-dbg libc6-dev glibc-doc libstdc++6 libstdc++6-4.2-dbg libstdc++6-4.2-dev libstdc++6-4.2-doc libboost*

 

second: and the sources list in  /etc/apt/sources.list  to update the software

add following two lines at the end of file..

 

deb http://apt.tt-solutions.com/ubuntu/
 edgy main
deb http://apt.tt-solutions.com/ubuntu/
 feisty main

 

save and quit ,run sudo apt-get update ;sudo apt-get dist-upgrade at terminated...

third:install public key

wget -q http://apt.wxwidgets.org/key.asc -O- | sudo apt-key add -
   wget -q http://lgp203.free.fr/public.key -O- | sudo apt-key add -
   wget http://www.tt-solutions.com/vz/key.asc
   sudo apt-key add key.asc

 

now you can install the newest version of code::blocks and wxWidgets

 

sudo apt-get install libwxbase2.8-0 libwxbase2.8-dbg libwxbase2.8-dev libwxgtk2.8-0 libwxgtk2.8-dbg libwxgtk2.8-dev wx2.8-doc wx2.8-examples wx2.8-headers wx2.8-i18n wx-common
sudo apt-get install codeblocks codeblocks-contrib libcodeblocks0 libwxsmithlib0

 

/

 

**********************************************************

install mysql-server and connect the mysql with C language

 

sudo apt-get install mysql-server

sudo apt-get install libmysql++-dev libmysqlclient15-dev libmysqlclient15off

and then compiler the V source files like this...

gcc source file list [other option] `mysql_config --cflags --libs`

notices: the **` `** between ** is the button above TAB...

 

**************************************************************************************************

 

//

compiler uboot1.6 and linux kernel

 

To compile the uboot,yiu need to run
sudo smdk2410_config
in terminate first,after you did this,turn into the uboot root directory and
vim Makefile
to modify the CROSS_COMPILE like this(make sure you found the right line,it looks likes this:
ifed($ARCH),arm)
CROSS_COMPILE = arm-linux-
and you modify it like this:

ifed($ARCH),arm)
CROSS_COMPILE = /you/crosstool/install/directory/bin/arm-9tdmi-linux-gnu-

save and quit.then run
make
so you can generate the 'mkimage' in ubootx.x.x/tools directory.

so how to use mkimage...

run
mkimage
to see tow to use,and then run
mkimage -A arm -O linux -T kernel -C none -a 30008000  -e 30008000 -n leeco zImage leeco
to make the leeco(linux-2.x.xx) image.

 

************************************************************************************************************

你可能感兴趣的:(OS(Linux))