RehrigPacific-3.5

From VentureResearchWiki
Jump to navigation Jump to search

BOARD SETUP[edit | edit source]

U-boot[edit | edit source]

substitute the u-boot-vrreader... file with the latest u-boot file substitute 1c0000 with the size of u-boot

bootp
mw.b 0x80000000 0xff 0x1c0000
tftp 0x80000000 u-boot-rehrig-vrreader-am35.bin
nand erase 0x80000 1c0000
nand write 0x80000000 0x80000 1c0000
reset

kernel[edit | edit source]

  • Keep pressing the space-bar until prompt "VAR-SOM-AM35 #"
---- ONLY DO THIS WHEN NEEDED ---- 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 0x300000
setenv bootargs_fs mem=256M console=ttyO2,115200n8 noinitrd root=/dev/mtdblock4 rw rootfstype=jffs2 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 "VAR-SOM-AM35 #"
bootp
mw.b 0x80000000 0xFF 0x500000
tftp 0x80000000 uImage-rehrig-vrreader-am35.bin
nand erase 0x280000 0x500000
nand write 0x80000000 0x280000 0x300000
setenv bootargs console=ttyO2,115200n8 root=/dev/nfs rw ip=dhcp nfsroot=192.168.19.128:/srv/nfs/image eth=$ethaddr consoleblank=0 omapfb.mode=lcd:1024x768@60
bootm 0x80000000

provisioning[edit | edit source]

//login username: root
//login password: rfid4ever_vr
//elsewhere password: "0291"
scp venture@192.168.19.14:/home/venture/rehrig/test-scripts/rehrig/rp-prefirstrun.sh /tmp/
sh /tmp/rp-prefirstrun.sh
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/rehrig/checkReaderCnx_RP.sh -O /home/user/checkReaderCnx_RP.sh
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/rehrig/checkINETCnx_RP.sh -O /home/user/checkINETCnx_RP.sh
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/rehrig/BIST_RP.sh -O /home/user/BIST_RP.sh

board testing[edit | edit source]

sh /home/user/BIST_RP.sh VRLAB PROVIS

done with board

Reader setup[edit | edit source]

scp venture@10.19.6.1:~/lifetech/M6eApp-1.13.1.6D.sim /home/user/m6efirmware.sim
nc localhost 2020
rfidtest fwupgrade m6e
// wait and verify the fw version (RFID INFO) once the upgrade is complete

done with reader

application specific settings[edit | edit source]

setup NetworkManager for GOBI Module

scp venture@10.19.6.1:~/rehrig/networkmanager-files/NetworkManager /etc/init.d/
scp venture@10.19.6.1:~/rehrig/networkmanager-files/WWAN /etc/NetworkManager/system-connections/
scp venture@10.19.6.1:~/rehrig/networkmanager-files/NetworkManager.conf /etc/NetworkManager/
scp venture@10.19.6.1:~/rehrig/networkmanager-files/org.freedesktop.NetworkManager.conf /etc/NetworkManager/
scp venture@10.19.6.1:~/rehrig/networkmanager-files/vr-wan-networkmanager /usr/sbin/vr-wan
cd /etc/init.d/
update-rc.d NetworkManager defaults

setup unit for M5e

  • setup reader port
vi /etc/init.d/rfid [ change "" to "-c /dev/ttyO0" ]
  • setup rfid parameters
telnet localhost 2020
SET M6EENABLED DISABLED
SET M5EENABLED ENABLED
SET ANTENNA A
COMMIT

setup dual antenna enclosure

  • setup rfid parameters to support dual antennas
SET ANTENNA AB  [M5E]
SET MUX 1 2     [M6E]

setup unit to support USB-to-TTL gps device

  • setup gps serial port
vi /etc/default/gpsd
[if using USB-to-TTL] GPS_DEVICES="/dev/ttyGPS"
  • copy the udev rule for gps
[if using USB-to-TTL] scp venture@10.19.6.1:~/rehrig/10-usb.rules /etc/udev/rules.d/
  • get the id of the gsm modem (USB760)
ls /dev/serial/by-id/

example:

usb-Novatel_Wireless_Inc._Novatel_Wireless_CDMA_091163117961000-if00-port0
  • copy over the new vr-wan file
scp venture@10.19.6.1:~/rehrig/vr-wan-newudev /usr/sbin/vr-wan
  • edit the new vr-wan file and change the GSM id to match the device's unique id
  • modify the modem in the verizon ppp file
vi /etc/ppp/peers/verizon
  • change ttyUSB0 to "serial/by-id/usb-Novatel_Wireless_Inc._Novatel_Wireless_CDMA_091155881991000-if00-port0" where the gsm id should be the device's unique id

backup important directories [if needed]

(on vm-linux-prod: nc -l -p 1234 > backup.tar.gz)

tar cz /etc /home /root /media /var | nc 10.19.6.1 1234

setup unit to support zonar device

SET ZONARENABLED ENABLED
SET ZONARCONN /dev/ttyO1
COMMIT

finished!!

IN PLACE UPDATE[edit | edit source]

DON'T USE YET...

  • update kernel
opkg install mtd-utils
scp venture@10.19.6.1:~/rehrig/vrreader-am35-3.5/* .
flashcp -v /tmp/uImage-vrreader-am35.bin /dev/mtd3

TESTING[edit | edit source]

  • DB-TESTING
sqlite3 reader.db
select * from event order by id desc limit 5;
select count(*) from event where isDelivered="false";
  • resend tags log on to vm-linux-prod and go to the appropriate backup directory
cd ~/logs-vr-00a7d1/2012-08

modify permissions

chmod 777 .

unzip the backup file

gzip -dc reader-backup_20120831T180001.db.gz > reader-backup_20120831T180001.db

send the backup db file to lab-ubuntu for delivery

scp reader-backup_20120831T180001.db venture@lab-ubuntu:/home/user

open the db

sqlite3 reader.db

reset the delivery flag

update event set isdelivered="false";

rename the delivery file to reader.db

start the forkliftreader_linux

verify the Success message