VRLinuxShelf1.0

From VentureResearchWiki
Jump to navigation Jump to search

OLD instructions[edit | edit source]

We don't use the Dora image anymore. These are now old. Please go to this page:

VRLinuxShelfFido

BOARD SETUP[edit | edit source]

VR Linux Shelf Board 1.0 loading

Yocto-dora machine = vr-am33-shelf

Initial Nand Image (u-boot,kernel,fs)[edit | edit source]

  • power-on reboot device
  • Keep pressing the space-bar until prompt "VAR-SOM-AM33 #"
save
bootp
mw.b ${loadaddr} 0xFF 0x500000
tftp ${loadaddr} uImage-vr-am33-shelf-20150812.bin
setenv serverip 10.16.0.10
setenv rootpath /srv/nfs/vr-am33-m2mreader
run netargs
bootm ${loadaddr}

filesystem[edit | edit source]

//login username: root password: rfid4ever_vr

wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-am33-shelf/vr-prefirstrun-dora.sh -O /tmp/vr-prefirstrun.sh

sh /tmp/vr-prefirstrun.sh vr-am33-shelf 20150812 venture-image-shelf vr

provisioning[edit | edit source]

wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-am33-shelf/vr-firstrun.sh -O /tmp/vr-firstrun.sh

sh /tmp/vr-firstrun.sh

login username: root password: rfid4ever_vr

SD Card reloading / reflashing[edit | edit source]

# setup sd card
grep -q mmcblk0p1 /proc/self/mounts && umount /dev/mmcblk0p1
echo 8192,,83,- | sfdisk --force -q -uS -D -H 255 -S 63 /dev/mmcblk0
# wait 5 seconds
[ ! -x /sbin/mkfs.ext4 ] && opkg install e2fsprogs-mke2fs
mkfs.ext4 -E stride=1,stripe_width=1024 -b 4096 -L opt /dev/mmcblk0p1
sed -i 's-^/dev/mmcblk0p1-#/dev/mmcblk0p1-g' /etc/fstab
echo "/dev/mmcblk0p1  /opt  auto  defaults,noatime,sync,auto  0  0" >> /etc/fstab

rm -fr /opt/
mkdir -p /opt
mount /dev/mmcblk0p1 && mkdir -p /opt/log

Wi-Fi setup[edit | edit source]

install wifi drivers and utilities

opkg install linux-firmware-wl12xx
opkg remove ti-utils
opkg install ti-wifi-utils-wl18xx

setup mac address

calibrator set nvs_mac /lib/firmware/ti-connectivity/wl1271-nvs.bin 00:50:C2:7C:57:XX
calibrator get nvs_mac /lib/firmware/ti-connectivity/wl1271-nvs.bin

rfid setup (8 PORT)[edit | edit source]

nc localhost 2020
set mux 1 2 3 4 5 6 7 8
commit
commit
exit

rfid setup (6 PORT)[edit | edit source]

nc localhost 2020
set mux 1 2 3 4 5 7
commit
commit
exit

rfid setup (4 PORT)[edit | edit source]

nc localhost 2020
set mux 1 3 5 7
commit
exit

board testing[edit | edit source]

wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-am33-shelf/BIST_SHLFRDR.sh -O /home/user/BIST_SHLFRDR.sh
sh /home/user/BIST_SHLFRDR.sh vr-am33-shelf-BIST

done with board

Beaglebone update[edit | edit source]

wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-bb-asdhelmer/vr-updateBBrun.sh -O /home/user/vr-updateBBrun.sh
sh /home/user/vr-updateBBrun.sh

wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-bb-asdhelmer/vrfrv2-linux.json -O /home/user/vrfrv2-linux.json

wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-bb-asdhelmer/vr-bbrun.sh -O /home/user/vr-bbrun.sh
sh /home/user/vr-bbrun.sh

/usr/sbin/vr-setup-gpio

JASONP STUFF[edit | edit source]

Updating Board Version (example: 5.1.4)

opkg update && opkg upgrade && opkg remove vrfrv2-linux-event-can-cont && opkg install vrfrv2-linux-event-5.1


curl -L -F hostname=$HOSTNAME http://openvpn/genclientkey | tar xzvC /etc/openvpn
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-am33-shelf/vr-bbrun.sh -O /home/user/vr-bbrun.sh
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-am33-shelf/vr-smallrun.sh -O /home/user/vr-smallrun.sh
sh /home/user/BIST_SHLFRDR.sh


wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-am33-shelf/vr-smallrun.sh -O /home/user/vr-smallrun.sh

sh /home/user/vr-smallrun.sh

wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-am33-shelf/vr-update-run.sh -O /home/user/vr-update-run.sh

sh /home/user/vr-update-run.sh

-- enter board revision when asked...

Helmer Temp interface commands[edit | edit source]

stty -F /dev/ttyO2 raw speed 9600 -crtscts cs8 -parenb -cstopb; echo $? -- setup
echo -e "\x00\x02\x0A\xA0\x01\x00\xFE\xFF\x57\xFD\x01\x03" > /dev/ttyO2 -- light on
echo -e "\x00\x02\x0A\xA0\x01\x00\xFF\xFF\x56\xFD\x00\x03" > /dev/ttyO2 -- light off

Troubleshooting[edit | edit source]

  • if VRHardwareManager fails uart, try upgrading the vr-setup-gpio
opkg update
opkg install vr-setup-gpio