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=1402542841
Edit Summary: Modification of network configuration
@@ -36,49 +36,51 @@
service tftpd-hpa restart
</code> Don't forget to change mode of file tftpd-hpa to 755. <xterm>**$
sudo chmod 755 tftpd-hpa**</xterm>
*Network config:
*If eth* is not in desired order, modify file /etc/udev/rules.d/70
-persistent-net.rules.
- *Don't use network-manager, modify /etc/rc.local:add<code>
- service network-manager stop
- ifup eth0 eth1</code>
- *set ethernet config in /etc/network/interfaces, refer to file int
erfaces.static_ip<code>
- auto lo
- iface lo inet loopback
+ *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. Modify file /etc/udev/rules.d/70-persistent-net.rules to ensure eth0
is on-board NIC. For Ubuntu 12.04, don't edit resolv.conf directly for dn
s setting, add dns setting here.<code>
+ auto lo
+ iface lo inet loopback
- iface eth0 inet static
- address 10.99.29.92
- netmask 255.255.255.0
- broadcast 10.99.29.255
- gateway 10.99.29.1
+ iface eth0 inet static
+ address 10.99.29.87
+ netmask 255.255.255.0
+ broadcast 10.99.29.255
+ gateway 10.99.29.1
- iface eth1 inet static
- address 10.100.4.174
- netmask 255.255.255.0
- broadcast 10.100.4.255
- test@test-OptiPlex-3010:/$vi /etc/resolv.conf
- (to add)search analog.com
- nameserver 10.64.53.110
- </code>
- *If log in via ssh is slow, set UseDNS to no in /etc/ssh/sshd_config
may help.<code>
- sudo service ssh stop
- sudo service ssh start</code>
- *Ubuntu has a prompt which is too long and complicated, and makes se
rial test fail. So in /home/test/.bashrc I reset PS1 value(example is in 1
0.99.29.85):PS1='\u@\h:\W\$ '.
+ #dns setting for 12.04
+ dns-nameservers 10.64.53.110
+ dns-search analog.com
+
+ iface eth1 inet static
+ address 10.100.4.174
+ netmask 255.255.255.0
+ broadcast 10.100.4.255
+ </code>
+ *SSH config:
+ *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>
+ *Configure prompt
+ *Ubuntu has a prompt which is too long and complicated, and makes
serial test fail. So in /home/test/.bashrc I reset PS1 value(example is in
10.99.29.85): PS1='\u@\h:\W\$ '.
*Nfs server <code>
- sudo apt-get install nfs-kernel-server
- sudo vi /etc/exports
- (add) /tftpboot *(rw,sync,no_root_squash,no_subtree_check)
- sudo /etc/init.d/nfs-kernel-server start or sudo service nfs-kern
el-server start </code>
+ sudo apt-get install nfs-kernel-server
+ sudo vi /etc/exports
+ (add) /tftpboot *(rw,sync,no_root_squash,no_subtree_check)
+ sudo /etc/init.d/nfs-kernel-server start or sudo service nfs-kernel-serv
er start </code>
* samba: add configure sector in /etc/samba/smb.conf ;<code>
- [users]
- comment = All users
- browseable = yes
- path = /home
- read only = no
- create mask = 0755</code> then run command in terminel:<code>
- sudo smbpasswd -x test
- sudo smbpasswd -a test
- sudo restart smbd
- sudo restart nmbd</code>
+ [users]
+ comment = All users
+ browseable = yes
+ path = /home
+ read only = no
+ create mask = 0755</code> then run command in terminel:<code>
+ sudo smbpasswd -x test
+ sudo smbpasswd -a test
+ sudo restart smbd
+ sudo restart nmbd</code>
*There are 720p video files in FIXME on 10.99.29.85, copy that to
local machine where need to test HDMI 720p.
* USB ethernet test need to install an extra ethernet card. Check
configuration on 10.99.29.86 as an example.
* Set up node
* use ssh mode to start node.
@@ -86,16 +88,16 @@
* copy toolchain.
* copy reset_board to host PC.
* set up network.
- * To fix bug 7146.<code> apt-get install gcc-multilib
+ * To fix bug 7146.<code>apt-get install gcc-multilib
ln -sf /usr/include/i386-linux-gnu/gnu/stubs-32.h /usr/include/gnu/stubs
-32.h</code>
*How to run smart update via commond line?<code>
- apt-get update
- apt-get dist-upgrade or apt-get upgrade</code>
+ apt-get update
+ apt-get dist-upgrade or apt-get upgrade</code>
*If the kermit can't work ,please:<code>
- scp test@10.99.24.xx:/home/test/.kerm* . </code>
+ scp test@10.99.24.xx:/home/test/.kerm* . </code>
|