RehrigPacific-3.5-danny

From VentureResearchWiki
Jump to navigation Jump to search

BOARD SETUP[edit | edit source]

New loading scripts for yocto-danny new image...

1. 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-vr-am35-rugged-20130914.bin
nand erase 0x80000 1c0000
nand write 0x80000000 0x80000 1c0000

reset

2. kernel[edit | edit source]

//Keep pressing the space-bar until prompt "VAR-SOM-AM35 #"

//If the following cmd returns an error then do the 'setenv' cmd 
printenv ethaddr 
//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 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
printenv ethaddr
save
reset
//Keep pressing the space-bar until prompt "VAR-SOM-AM35 #"
bootp
mw.b 0x80000000 0xFF 0x500000
tftp 0x80000000 uImage-vr-am35-rugged-20130914.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
bootm 0x80000000

3. filesystem[edit | edit source]

//login username: root
//login password: rfid4ever_vr
//elsewhere password: "0291"

wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/rehrig/rp-prefirstrun-danny.sh -O - | sh

4. provisioning[edit | edit source]

//If NOT Zonar
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/rehrig/rp-firstrun.sh -O - | sh

//If Zonar
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/rehrig/rp-firstrun-zonar.sh -O - | sh

//GPS monit
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/rehrig/gpsd.monit -O /etc/monit.d/gpsd.monit

//fix for network manager in order to get GSM working
killall -9 NetworkManager
killall -9 ModemManager
/etc/init.d/NetworkManager stop
opkg install libsoup-2.4
opkg install --force-remove -force-reinstall networkmanager
/etc/init.d/NetworkManager start

Verify RFID service version to be 5.1.1

nc localhost 2020
get version

Update service to version 5.1.1

opkg update
opkg remove vrfrv2-linux-event
opkg install vrfrv2-linux-event-5.1

5. Board Testing [Old Method][edit | edit source]

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

//After provisioning
sh /home/user/BIST_RP.sh VRLAB PROVIS

//After completed assembly BUT NOT SEALED
sh /home/user/BIST_RP.sh VRLAB FINAL

//After completed assembly SEALED!!!
sh /home/user/BIST_RP.sh VRLAB FINAL SEALED

5. Board Testing [New (VRHM) Method][edit | edit source]

wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vrDevice/venture-build-info -O /etc/venture-build-info
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vrDevice/checkGPSCnx_VRD.sh -O /home/user/checkGPSCnx_VRD.sh

//If Verizon
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vrDevice/checkVerizonCnx_VRD.sh -O /home/user/checkVerizonCnx_VRD.sh
//If Gobi
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vrDevice/checkGobiCnx_VRD.sh -O /home/user/checkGobiCnx_VRD.sh

Miscellaneous[edit | edit source]

support for new usb-to-ttl converter (cp2012) for GPS on Zonar units[edit | edit source]

wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/rehrig/99-cp210x-gps.rules.danny -O /etc/udev/rules.d/99-gps.rules
sed -i 's/ttyO1/ttyGPS/g' /etc/default/gpsd
opkg update
opkg install kernel-module-cp210x
depmod
sync
reboot

support for the older usb-to-ttl converter cable (ftdi) for GPS on Zonar units[edit | edit source]

wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/rehrig/99-gps.rules.danny -O /etc/udev/rules.d/99-gps.rules
sed -i 's/ttyO1/ttyGPS/g' /etc/default/gpsd
sync
reboot
  • Then use cgps to test the gps module

fix for network manager in order to get CDMA working[edit | edit source]

killall -9 NetworkManager
killall -9 ModemManager
/etc/init.d/NetworkManager stop
opkg install libsoup-2.4
opkg install --force-remove -force-reinstall networkmanager
/etc/init.d/NetworkManager start

Setup for Telus GOBI w/ SIM card[edit | edit source]

wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/src/venture-wwan/WWAN-telus -O /etc/NetworkManager/system-connections/WWAN
/etc/init.d/NetworkManager restart
//wait for 30 sec
mmcli -L

fix for time offset[edit | edit source]

ntpdate -u time1.google.com
ntpdate -u time1.google.com
hwclock -w
hwclock -r
echo UTC > /etc/timezone
cp /usr/share/zoneinfo/UTC /etc/localtime

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

backup important directories [if needed][edit | edit source]

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

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

finished!!

Application Specific Settings[edit | edit source]

//setup rfid parameters to support dual antennas
SET MUX 1 2
COMMIT

//setup unit to support USB-to-TTL gps device
vi /etc/default/gpsd
//[if using USB-to-TTL] GPS_DEVICES="/dev/ttyGPS"
COMMIT

//copy the udev rule for gps
[if using USB-to-TTL] scp venture@10.19.6.1:~/rehrig/99-gps.rules.danny /etc/udev/rules.d/99-gps.rules
COMMIT

//setup unit to support zonar device
SET ZONARENABLED ENABLED
SET ZONARCONN /dev/ttyO1
COMMIT

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