ASD-EMAC

From VentureResearchWiki
Jump to navigation Jump to search

old EMAC loading instructions[edit | edit source]

see ASD-3.5 for new load instructions[edit | edit source]

LCD Touchscreen setup[edit | edit source]

killall midori
DISPLAY=:0 xtscal -debug

Watch for the calculations to be close to the following: Point 0 ~ 974,39 Point 1 ~ 974,983 Point 2 ~ 67,980 Point 3 ~ 62,40 Point 4 ~ 516,529

initial board provisioning[edit | edit source]

bootp
setenv loadkernelimage tftp 0x70000000 uImage-som9g45.bin \; protect off 0xC0042000 0xC0251FFF \; cp.b 0x70000000 0xC0042000 0x210000
setenv loadventureimage tftp 0x70000000 asd-image-som9g45.jffs2\; nand device 0\; nand erase\; nand write.jffs2 0x70000000 0x0 \$\(filesize\)
setenv loadall run loadkernelimage \; run loadventureimage

run loadall ; reset

at prompt:

username: root
password: rfid4ever_asd
scp venture@ipk.ventureresearch.com:~/fridge-step1.sh /tmp/
sh /tmp/fridge-step1.sh

press enter and passwords as needed.

fridge base testing[edit | edit source]

scp venture@ipk.ventureresearch.com:~/testscript.sh /tmp/
sh /tmp/testscript.sh

if the file transfer fails, try this (with ETH plugged in)

scp /tmp/<LATEST TEST FILE> venture@192.168.19.128:/home/venture/checkscript-logs

password: "0291", press enter and passwords as needed.

fridge final testing[edit | edit source]

scp -P 2222 venture@ipk.ventureresearch.com:~/fridge-final.sh /tmp/
sh /tmp/fridge-final.sh

password: "0291", press enter and passwords as needed.

Re-print fridge label Use putty to log on to lab-ubuntu pc (ssh on port 22; username: venture, password: 0291)

/home/venture/asd-fridge-test-label-print.sh "HOSTNAME" "INITIALS" date -u +%Y%m%d "v1.4"

Replace HOSTNAME with fridge hostname (ex. asd-e6604f) and INITIALS with your initials (ex. AAA)

fridge box testing[edit | edit source]

scp -P 2222 venture@ipk.ventureresearch.com:~/fridge-box.sh /tmp/
sh /tmp/fridge-box.sh

password: "0291", press enter and passwords as needed.

Re-print fridge label Use putty to log on to lab-ubuntu pc (ssh on port 22; username: venture, password: 0291)

/home/venture/asd-fridge-test-label-print-box.sh "HOSTNAME" "INITIALS" date -u +%Y%m%d "v1.4"

Replace HOSTNAME with fridge hostname (ex. asd-e6604f) and INITIALS with your initials (ex. AAA)

sync fridge public keys with ASD server[edit | edit source]

run sync script on lab-ubuntu

 ~/fridge-pubkeys/sync-pubkeys-cubixx.sh 

password: "Password1"

edit authorized keys on cubixx3 to add new/updated keys (script coming)

setup cubixx tunnel and download software[edit | edit source]

First, log on to the fridge remotely using SSH

ssh asd-xxxxxx.openvpn –p 443 –l root
type “yes” to continue
password: rfid4ever_asd

Now from the fridge, log on to ASD’s server

ssh cubixx3.asdhealthcare.com -l tunnel
Type ‘yes’ to continue
verify that it doesn't ask for a password
Then type 'exit' to log off from ASD's server.

Do the following from the current fridge to get the root directory.

cd /root
rsync -e ssh -vrpc tunnel@cubixx3.asdhealthcare.com:release/root/* .
chmod +s bin/*.sh
/./root/bin/run-update.sh
/etc/init.d/browse.sh stop
/srv/www/cgi-bin/./dolock.sh

Then reboot the fridge to get the updates.

to see all the fridges on the VPN[edit | edit source]

on vm-linux-prod

sudo cat /var/log/openvpn-tcp-status.log