Zedboard

From CLONWiki
Revision as of 12:46, 28 January 2016 by Boiarino (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
# mounting *.bin on clonpc0:
mkdir tmp1
mkdir tmp2
mkdir tmp3
mkdir tmp5
mkdir tmp5
/sbin/kpartx -l zed_2013_11_14.bin
/sbin/kpartx -a -v zed_2013_11_14.bin
mount /dev/mapper/loop0p1 tmp1/
mount /dev/mapper/loop0p2 tmp2/
mount /dev/mapper/loop0p3 tmp3/
mount /dev/mapper/loop0p5 tmp5/
mount /dev/mapper/loop0p6 tmp6/
# now you see contants (R-only !!!???)
# after you are done:
umount tmp1
umount tmp2
umount tmp3
umount tmp5
umount tmp6
/sbin/kpartx -d -v zed_2013_11_14.bin
# burn to sd card:
# sdcard can be /dev/sdd, or /dev/sde, or something ...
dd if=zed_2013_11_14.bin of=/dev/sdd bs=1M


=====================================
/sbin/kpartx -a -v /dev/sdd
mount /dev/mapper/sdd1 tmp1/
mount /dev/mapper/sdd2 tmp2/
mount /dev/mapper/sdd3 tmp3/
mount /dev/mapper/sdd5 tmp5/
mount /dev/mapper/sdd6 tmp6/


umount partitions from clonpc0:
umount tmp1
umount tmp2
umount tmp3
umount tmp5
umount tmp6
if was mounted automatically:
umount /media/BOOT
umount /media/ARCHLINUX
umount /media/RTEMS
umount /media/USER
umount /media/disk
#our zedboard mac address:
# 00:0a:35:00:01:22
# slac mac address
# 08:00:56:00:88:99
====================
129 login: root
password: root
hostnamectl set-hostname zedboard1
ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT 
   link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN mode DEFAULT qlen 1000
   link/ether 08:00:56:00:88:99 brd ff:ff:ff:ff:ff:ff
ip link set eth0 down
###ip link set eth0 address 00:0a:35:00:01:22
ip link set eth0 up
ip addr add 129.57.86.63/24 dev eth0
ip route add default via 129.57.86.1
nano /etc/resolv.conf
nameserver 129.57.167.5
nameserver 129.57.167.14
nameserver 129.57.32.100
search jlab.org acc.jlab.org
systemctl stop dhcpcd.service
systemctl disable dhcpcd.service
export http_proxy="jprox.jlab.org:8082"
  1. first update package list
pacman -Sy
  1. now install what you need
pacman -S autofs
> In autofs5 --ghost option isn't valid. In order to start autofs you
> must remove that option from your /etc/conf.d/autofs.
# set /etc/autofs/auto.master and auto.misc


# start autofs
systemctl stop autofs
systemctl start autofs
# to start on boot
systemctl disable autofs
systemctl enable autofs
# see /usr/lib/systemd/system/autofs.service
pacman -S yp-tools ypbind-mt
ypdomainname CCCHP
#fix yp.conf 
# reboot here !!!
systemctl start rpcbind <- need only this for NFS ???
systemctl start ypbind
systemctl enable rpcbind
systemctl enable ypbind
pacman -S gcc


# git repository for CODA
git clone https://github.com/boiarino17/coda
# install GIT
pacman -S git


# ntp
systemctl start ntpd
systemctl enable ntpd
ntpd -q
ntpq -p
##ln -s /usr/share/zoneinfo/America/New_York localtime
#
pacman -S tcsh make openmotif libxpm
#  gtk2OA


# following does not work
pacman -Syu
# following does not work
pacman -S emacs
#
# mysql already there ???
#
## following instead of mysql ??? (installs mariadb)
#pacman -S mysql
#


# find /usr/include -name iostream -type f -print
# /usr/include/c++/4.7.2/iostream
# dec 3, 2013 on Ryan advise:
export http_proxy="jprox.jlab.org:8082"
pacman -Syu # update the archlinux packages
pacman -S nfs-utils # install nfs-utils
pacman -S adduser # correct version of adduser (useradd does not work)
mount -t nfs -o nolock clonfs1:/vol/apps/Linux_armv7l /apps
mount -t nfs -o nolock clonfs1:/vol/local/Linux_armv7l /usr/local
mount -t nfs -o nolock clonfs1:/vol/clas12 /usr/clas12
mount -t nfs -o nolock clonfs1:/vol/home /home
mount -t nfs -o nolock clonfs1-old:/vol/work /work