Nishadh KA

Parallella upand run

2014-12-10


####Parallellaupand_run#### 1. Ubunut image for parallella can be downloaded from this note, it was dd’d into 8GB SD card micro. 1. The BOOT foilder content was not as such of this note,these files were making problem related with rebooting of the parallella. For this there is a foruym post states that need of device tree.dtb has to be changed and there is a file was attached with that. Using that file the problem of no rebooting of parallella was solved 1. To run the xtemp utility with parallella, the ssh has to be invoked with ssh -X linaro@192.168.1.100, the ip address is duynamic and it can be detrermined by nmap -v -sP 192.168.1.0/24 |grep -v down 1. For installed xtemp and with out x window ssh, these solutions are useful, such as this about workarround and this insyalling xtemp. 1. There are test available with parallella-example and epipheny-test, inwhich all the epipheny trest were working without problem, list based this testing is notworkied instead each test was perfomed manually. Perfomred test are such ~/parallella-examples/para-para$ ./run.sh, and attempt for R based test but the openCL version was changed and it was not able to patch that with parallella provided file 1. The huge tempearuter graianet was solved by positon a wall fan into the board. ############################ ##Static IP for Parallella## ############################ 1. The SD card ubunut image installed with Parallella is having dynamic ip, this setu is problematic sometimes in doing ssh. To make the ip address from dynaimc to static carried out follwoing steps based on this 1. The SD card is munted on a laptop and edited the network/interfaces file as followes sudo nano /media/rootfs/etc/network/interfaces

                # interfaces(5) file used by ifup(8) and ifdown(8)
                # Include files from /etc/network/interfaces.d:
                source-directory /etc/network/interfaces.d

                #auto lo
                #iface lo inet loopback

                auto eth0
                iface eth0 inet static
                address 192.168.1.111
                netmask 255.255.255.0
                gateway 192.168.1.254


                #auto eth0
                #iface eth0 inet dhcp

                #auto wlan0
                #iface wlan0 inet dhcp
  1. Then removed the file by sudo rm -r /media/rootfs/etc/udev/rules.d/70-persistent-net.rules
  2. Edited another file sudo nano /media/rootfs/etc/NetworkManager/NetworkManager.conf as follows

                [main]
                plugins=ifupdown,keyfile,ofono
                #dns=dnsmasq
    
                [ifupdown]
                managed=true
    
  3. This avoided the problem of not detected by nmap and gives a static IP address ############################ ##Internet for Parallella## ############################

  4. By setting up static ip address, it is smooth in running the SSH and connecting with other computers in the network like for pinging etc.

  5. But it won’t connect with the Internet, ping www.google.com ends in no host to connect message.

  6. This problem is trival and facing similar issue with every computer I am enaged, in SERVER, Raspi etc.

  7. So made a search and found basics of defining the parameters in interfaces as per this page and again edited the interfaces file as below

                # interfaces(5) file used by ifup(8) and ifdown(8)
                # Include files from /etc/network/interfaces.d:
                source-directory /etc/network/interfaces.d
    
                auto lo eth0
                iface lo inet loopback
    
                auto eth0
                iface eth0 inet static
                        address 192.168.1.111
                        netmask 255.255.255.0
                        network 192.168.1.0
                        broadcast 192.168.1.255
                        gateway 192.168.1.1
                        dns-nameservers 192.168.1.1 8.8.8.8
    
                #auto eth0
                #iface eth0 inet dhcp
    
                #auto wlan0
                #iface wlan0 inet dhcp
    
  8. In the above parameters the gateway is crucial for Internet, gateway is the address to open the router used. So gateway is wrong the connection will be lost and so no Internet. A quick test is to ping the gateway address, if it is not pinging one error related to this can be zeroed down.

###################### ##compiling WRF CHEM## ###################### 1. For addressing the need of huge space requiered for wrf chem, a 32 GB sd card was bought and parallella ubunt was installed in it as specified earlier. 1. The sd card was mounted using the command sudo mount /dev/mmcblk0p3 /home/linaro/wrf 1. The openmpi was isnatlled by follwoing commands

wget http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.tar.bz2 tar xvf openmpi-1.6.tar.bz2 cd openmpi-1.6/

            sudo mkdir /opt/openmpi/
            sudo chown ${USER} /opt/openmpi/
            ./configure --prefix=/opt/openmpi/1.6/ --with-sge

#configure was started on 10:45 AM, make #make was started on 11:08 AM ended on 12:38 PM make install #make install started on 12:39 PM export PATH=“$PATH:/home/.openmpi/bin” export LDLIBRARYPATH=“$LDLIBRARYPATH:/home/.openmpi/lib/”