setup Stb225 under Ubuntu 9.10

1. ELDK安装
mount -o loop mips-2007-01-21.iso ~/tmp
cd ~/tmp
./install -d /opt/eldk
ln -s /opt/eldk /usr/local/eldk
ln -s /opt/eldk /eldk

2. tuxbuilder-1.0 安装
cd /opt
tar -xvf tuxbuilder.tar

3. tools for build stb225
gawk, libncurses-dev, bison, flex, doxygen, imagemagick ...
gettext, g++,texi2html,patch
expect, libreadline

4. sudoers
/etc/sudoers
%users  ALL=(ALL)       NOPASSWD: ALL

5. got Permission issue
cp: cannot access `/opt/tuxbuilder-1.0/mipsel-unknown-linux-gnu/rootfs/root': Permission denied

use chown and chmod to correct this.

6. set Static IP address
from NetworkManager Applet

7. Set ftp server

sudo apt-get install xinetd tftpd tftp

Create /etc/xinetd.d/tftp as below
service tftp
{
    disable        = no
    protocol    = udp
    port        = 69
    socket_type    = dgram
    wait        = yes
    user        = root
    server        = /usr/sbin/in.tftpd
    server_args    = -s /home/qianjiang/tftpboot
    cps        = 100 2
    flags        = IPv4
}

sudo mkdir /home/qianjiang/tftpboot
sudo chmod -R 777 /home/qianjiang/tftpboot
sudo /etc/init.d/xinetd restart

8. Setup nfs server

sudo apt-get install nfs-kernel-server nfs-common portmap

add to /etc/exports below lines:
/home/qianjiang/nfsroot/rootfs_stb225 *(rw,no_root_squash,no_all_squash,sync,nohide,no_subtree_check)

sudo exportfs -ra
sudo /etc/init.d/portmap restart
sudo /etc/init.d/nfs-kernel-server restart


9. apt-get install libglib2.0-dev only for Huangpu case

10.
vim /etc/sudoers
qianjiang ALL=(ALL) ALL


你可能感兴趣的:(ubuntu,职场,休闲)