VRReaderImage-OM37
Jump to navigation
Jump to search
BOARD SETUP[edit | edit source]
latest RELEASE is 20131028
U-boot[edit | edit source]
bootp mw.b 0x80000000 0xff 0x1c0000 tftp 0x80000000 u-boot-vrreader-om37-20131028.bin nand erase 0x80000 1c0000 nand write 0x80000000 0x80000 1c0000 reset
kernel[edit | edit source]
- Keep pressing the space-bar until prompt "VR om3x #"
printenv ethaddr ## Do this only if there isn't one set already ## setenv ethaddr [MAC in format 00:50:c2:7c:57:01, F8:DC:7A:00:A7:C8] setenv get_kernel nand read.i 0x80000000 0x280000 0x500000 setenv bootargs_fs mem=256M console=ttyO2,115200n8 noinitrd rw rootfstype=ubifs ubi.mtd=4 root=ubi0:rootfs eth=$ethaddr setenv boot_fs run get_kernel\; setenv bootargs \$bootargs_fs\; bootm 0x80000000 setenv bootcmd run boot_fs setenv bootdelay 1 save reset
- Keep pressing the space-bar until prompt "VR om3x #"
bootp mw.b 0x80000000 0xFF 0x500000 tftp 0x80000000 uImage-vrreader-om37-20131028.bin nand erase 0x280000 0x500000 nand write 0x80000000 0x280000 0x500000 setenv bootargs console=ttyO2,115200n8 root=/dev/nfs rw ip=192.168.19.55:192.168.19.128:192.168.19.10:24:boot nfsroot=192.168.19.128:/srv/nfs/image eth=$ethaddr bootm 0x80000000
provisioning[edit | edit source]
route add default gw 192.168.19.10
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr/vr-prefirstrun.sh -O /tmp/vr-prefirstrun.sh sh /tmp/vr-prefirstrun.sh vrreader-om37 20140505 venture-image-vrreader
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr/vr-firstrun.sh -O /tmp/vr-firstrun.sh sh /tmp/vr-firstrun.sh
//type password "0291" where needed
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr/checkReaderCnx_VR.sh -O /home/user/checkReaderCnx_VR.sh wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr/checkINETCnx_VR.sh -O /home/user/checkINETCnx_VR.sh wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr/BIST_VR.sh -O /home/user/BIST_VR.sh
Login Information[edit | edit source]
username: root password: rfid4ever_vr
Test Procedure[edit | edit source]
sh /home/user/BIST_VR.sh VRLAB PROVIS
done with board
Setup with New Wi-Fi Driver[edit | edit source]
- install wifi drivers and utilities
opkg update opkg remove linux-firmware-wl12xx --force-depends opkg remove kernel-module-wl1271 --force-depends opkg remove kernel-module-wl1271-sdio --force-depends opkg install ti-compat-wireless-wl12xx opkg install wl12xx-firmware
- comment out all wlan0 settings in interfaces file
nano /etc/network/interfaces # Wireless interfaces #iface wlan0 inet dhcp # wireless_mode managed # wireless_essid any # wpa-driver wext # wpa-conf /etc/wpa_supplicant.conf ctrl-x, Y (to save and close the file)
- setup mac address
scp venture@172.19.0.1:~/wl127x-nvs.bin /lib/firmware/ti-connectivity/wl127x-nvs.bin ##edit last two digits## calibrator set nvs_mac /lib/firmware/ti-connectivity/wl127x-nvs.bin 00:50:C2:7C:57:XX calibrator get nvs_mac /lib/firmware/ti-connectivity/wl127x-nvs.bin rm /lib/firmware/ti-connectivity/wl1271-nvs.bin cd /lib/firmware/ti-connectivity/ ln wl127x-nvs.bin wl1271-nvs.bin
- copy over Wi-Fi connection file
scp venture@172.19.0.1:~/vr/system-connections/Wi-Fi-vrtest /etc/NetworkManager/system-connections/Wi-Fi chmod 600 /etc/NetworkManager/system-connections/Wi-Fi
- reboot unit
sync && sync && echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor && reboot
- CHECK NEW VERSION: wl12xx: firmware booted (Rev 6.3.10.0.135)
dmesg | grep "wl12xx: firmware"
- test wifi radio
nmcli dev wifi
Setup Analog Photoeye[edit | edit source]
- setup rfid service
nc localhost 2020 set petriggerthld 4ft set an1file /sys/bus/i2c/devices/3-0049/in4_input set triggerinput 5 set triggerlevel 1 0 0 0 1 0 0 0 set analoginputs enabled commit
setup battery info[edit | edit source]
i2c connection[edit | edit source]
- setup battery module
opkg update opkg install kernel-module-sbs-battery modprobe sbs-battery
nc localhost 2020 SET BATTERYFILE /sys/class/power_supply/sbs-battery-0 COMMIT
- test battery info via telnet API
nc localhost 2020 get bat
- test battery info
cat /sys/class/power_supply/sbs-battery-0/status cat /sys/class/power_supply/sbs-battery-0/capacity cat /sys/class/power_supply/sbs-battery-0/current_now cat /sys/class/power_supply/sbs-battery-0/voltage_now
ttl connection[edit | edit source]
set batteryconn /dev/ttyO1 set batteryenabled enabled commit
restart the service
USB connection[edit | edit source]
set batteryconn /dev/ttyUSB0 ???? set batteryenabled enabled commit
test battery[edit | edit source]
get bat
Setup GPS (optional)[edit | edit source]
opkg update
opkg install gpsd opkg install venture-gps opkg install watch-gps
Software Reboot[edit | edit source]
sync && echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor && reboot
Install vr-system-controller[edit | edit source]
opkg update opkg upgrade
opkg remove -force-removal-of-dependent-packages lighttpd opkg install vr-system-controller opkg install vr-system-controller-web