New Revision: http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:
pc_ubuntu_setup
Old Revision: http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:
pc_ubuntu_setup&rev=1408073046
Edit Summary: udpates and add pex
@@ -3,9 +3,13 @@
*We use the latest ubuntu 12.04 system for the regression PCs.
*Find a CD which have the ubuntu 12.04 iso image, and press the F12
in the beginning to enable the PC enter the CD/DVD start. \\ In the pro
cess of install linux system, there will be serveral configuration pages f
or you to make selection. Generally we make default choices except that we
set default language to English, and set the user name as "test" and the
password also "test". \\ After finishing the installation, start the ma
chine, we get ubuntu graphics interface started, we start a shell as our t
erminal/console from which we can start our specific setting.
- Config the PC ubuntu
*Set the root password as "blackfin":<xterm>**$ sudo passwd root**</
xterm>
- *Network config:
+ *Use apt-get install to install the following packages through DHCP
allocated ipaddress. <xterm>**$ sudo apt-get install vim-nox openssh-serve
r expect default-jdk minicom ckermit gawk \
+ git-core g++ bison flex gettext texinfo libncurses5-dev subversion m
eld \
+ rsh-client mpg123 python-setuptools python-dev netperf tftpd-hpa \
+ uuid-dev genromfs samba xz-utils intltool ethtool libtool wakeonlan **</
xterm>Package mpg123 is for audio test. Package uuid-dev is for host-e2fsp
rogs. Package genromfs is for xip test. Package intltool is for linphone t
est. Package wakeonlan is for ethernet wakeup test. Install vim-nox is for
tool vimdiff. Install default-jdk is for openjdk-6-jdk
+ *Configure static network ipaddress using network interfaces instead
of DHCP ( **Notice** : 10.99.29.xx is available only in lab, before movin
g eth0 should remain the DHCP setting):
*Don't use network-manager as it handles multiple network cards ba
dly. Disable network-manager in file /etc/rc.local by adding following scr
ipts:<code>
service network-manager stop
ifup eth0 eth1</code>
*Set ethernet config in /etc/network/interfaces, bellow is an exam
ple. Usually we set eth0 to 10.99.29.xx subnet, and eth1 to 10.100.4.xx su
bnet. If eth* is not in desired order, modify file /etc/udev/rules.d/70-pe
rsistent-net.rules to ensure eth0 is on-board NIC. For Ubuntu 12.04, don't
edit resolv.conf directly for dns setting, add dns setting here.<code>
@@ -26,16 +30,12 @@
address 10.100.4.174
netmask 255.255.255.0
broadcast 10.100.4.255
</code>
- *install SSH server and config:
- *<code>sudo apt-get install openssh-server</code> this command can
install ssh server and after then we can operate the host machine remotel
y.
+ *Configure SSH server:
+ *openssh-server should have been installed in previous apt-get ins
tall command. This tool enable us operate the host machine remotely.
*If log in via ssh is slow, set UseDNS to no in /etc/ssh/sshd_conf
ig may help. Then restart ssh server.<code>
sudo service ssh restart</code>
- *Use apt-get install to install the following packages. <xterm>**$ s
udo apt-get install expect default-jdk minicom ckermit gawk \
- git-core g++ bison flex gettext texinfo libncurses5-dev subversion m
eld \
- vim-nox rsh-client mpg123 python-setuptools python-dev netperf tftpd-h
pa \
- uuid-dev genromfs samba xz-utils intltool ethtool libtool wakeonlan **</
xterm>Package mpg123 is for audio test. Package uuid-dev is for host-e2fsp
rogs. Package genromfs is for xip test. Package intltool is for linphone t
est. Package wakeonlan is for ethernet wakeup test. Install vim-nox is for
tool vimdiff. Install default-jdk is for openjdk-6-jdk.
*How to install funkload <xterm>**$ apt-get install python-setuptool
s python-webunit python-docutils gnuplot
$ sudo easy_install -U funkload **</xterm>
*Minicom setup:
*Type in command "sudo minicom -s", choose “Serial port se
tup”, set “Serial Device” to /dev/ttyS0, set Bps/Par/Bits" to 57600 8N1 and “Hardware Flow Control to No.
@@ -87,9 +87,10 @@
*When configure Capture in alsamixer, set Input Source to Front Mi
c and adjust Capture to a proper level.
* Set up node machine for Jenkins
* use ssh mode to start node.
* copy usefull tar packages to /home/test/workspace/dl to shor
ten the time for first build.
- * copy toolchain.
+ * copy toolchain. Set toolchain export command to alias "pex"
in your home directory .bash_aliases.<code>
+ alias pex='export PATH=/opt/uClinux/bfin-uclinux/bin:/opt/uClinux/bf
in-elf/bin:/opt/uClinux/bfin-linux-uclibc/bin:$PATH'</code>
* copy reset_board to host PC.
* set up network.
* To fix stubs.h missing bug (7146) in speedx.<code>apt-get instal
l gcc-multilib
|