LifeTechGingerbreadLoad

From VentureResearchWiki
Jump to navigation Jump to search

Old loading instructions for use with Android 2.3 Gingerbread[edit | edit source]

SD card[edit | edit source]

plugin SD card into lab-ubuntu, run dmesg and see what it comes up as. then run:

cd ~/android-sd-image/image_folder_om37
sudo ./prepare-sd.sh --dev /dev/sdf --config config_om37_lt-20121115-embedded-dev.sd
//response:
//RootFS is a .TAR archive
//Using the following software:
//X-Loader:
//        Texas Instruments X-Loader 1.46 (May 11 2011 - 19:19:54)
//U-Boot:
//        U-Boot 2009.11 (May 16 2012 - 19:03:07)
//Boot.scr:
//        Image Name:   Boot script
//        Created:      Wed Aug  1 19:35:01 2012
//Kernel:
//        Image Name:   Linux-2.6.37+
//        Created:      Wed Aug  1 21:36:46 2012
//
//Creating partition table ... done.
//Formatting the 1st partition ... done.
//Formatting the 2nd partition ...
sync
sync
//Put a green dot sticker on the programmed SD card and write the image build date on it.

Board Setup[edit | edit source]

1. u-boot install at u-boot prompt on board:

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

2. kernel install

//written directly to sd card

3. file system install

//written directly to sd card

4. rfid service install

//written directly to sd card

5. initial provisioning

  • first run script
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/lifetech/firstrun_LT.sh -O /var/run/vrgpio/firstrun_LT.sh
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/lifetech/getGobiInfo_LT.sh -O /mnt/sdcard/getGobiInfo_LT.sh
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/lifetech/getSIMInfo_LT.sh -O /mnt/sdcard/getSIMInfo_LT.sh
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/lifetech/checkGobiCnx_LT.sh -O /mnt/sdcard/checkGobiCnx_LT.sh
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/lifetech/checkINETCnx_LT.sh -O /mnt/sdcard/checkINETCnx_LT.sh
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/lifetech/checkReaderCnx_LT.sh -O /mnt/sdcard/checkReaderCnx_LT.sh
wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/lifetech/BIST_LT.sh -O /mnt/sdcard/BIST_LT.sh
busybox ash /var/run/vrgpio/firstrun_LT.sh 463
//wait 60 seconds
//once the board reboots
busybox ash /mnt/sdcard/BIST_LT.sh VRLAB
  • setup RFID parameters
//please plug in ANY m6e RFID reader to the board in order to proceed with the following commands
//login to RFID service
nc localhost 2020
//once logged into the RFID service, send following commands one at a time and very that each responds with an "ACK"
set antenna tmmuxabcd-manual
set antennapower 1 28 28 2 28 28 3 28 28 4 28 28 5 28 28 6 28 28 7 28 28 8 28 28 9 28 28 10 28 28 11 28 28 12 28 28 13 28 28 14 28 28 15 28 28 16 5 5
set readtimeout 1000
set target a
set sessionval 1
set qval 16
rfid tagtable enabled
set filtertable enabled
set tagpersist 0
set tagresend 0
set TEMPCPU1FILE /sys/devices/platform/dm3730_temp/temp1_input
set TEMPCPU2FILE /sys/devices/platform/omap2_mcspi.1/spi1.0/temp2
set echo disabled
commit
set m6elicensekey 0c 59 e4 fa d3 eb 22 96 40 dd 0e a2 e7 39 b9 83
  • verify version numbers
// get software info
busybox uname -a
//response: Linux lt-010484 2.6.37+ #1 Wed Oct 31 21:41:12 CDT 2012 armv7l GNU/Linux
// get wifi mac address
echo $(calibrator get nvs_mac /system/etc/firmware/ti-connectivity/wl1271-nvs.bin) | busybox egrep -o \([0-9a-f]{2}:?\){6}
//response : value should match sticker on variscite module will be of the form (00:50:c2:7c:XX:XX)
//get Android System revision number
ls -l /system/framework/framework.jar
//response: -rwxrwxrwx root     root      2953166 2012-11-15 21:00 framework.jar

RFID (M6e) Reader Setup[edit | edit source]

Note: this has to done for the M6E reader that is part of the enclosure

  • Verify M6e Firmware version
//get rfid version number
busybox echo rfid info | busybox nc localhost 2020 | busybox egrep rfid
//response: 01.13.01.6D-20.12.07.30-BL10.11.16.00
//if version numbers do not match please upgrade as directed below
  • upgrade m6e firmware if needed
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
echo rfid info | busybox nc localhost 2020 | busybox egrep rfid

Board Testing[edit | edit source]

  • Print QA Checklist
M:\LifeTechnologies\Design\Hardware\QA
  • login to rfid service
nc localhost 2020
  • test temperature
get temp1
get temp2
get temp3
  • test inputs
get inputs
  • test outputs
set extled aux1 on
set extled aux2 on
set extled buzzer1 on
  • log out of rfid service
exit
  • test USB (with HP USB Drive):
dmesg | busybox grep HP
  • test GSM (with antenna and SIM installed):
picocom /dev/ttyUSB1 -b 115200

test gsm module communication:

ATI

expected response:

Manufacturer: Option nv
Model: Option GTM689W
Revision: D3200-STSUGN-1575  1  [Nov 22 2010 09:00:00]
SVN: 02
IMEI: 356144040160216
+GCAP: +CGSM,+DS
OK

test sim card:

AT+COPS?

expected response:

+COPS: 0,0,"T-Mobile",0

end gsm serial session: ctrl+a+q

  • WiFi
tbd
  • Clock

Check the clock on the home screen, it should be correct!!!

board installation into computer box[edit | edit source]

computer panel testing[edit | edit source]

  • use extension cables for testing
  • lock, door switch, annunciator out, defrost, compressor sense,
  • temp, rfid, lcd, touch screen, buzzer
  • com-panel test script
scp venture@192.168.19.14:/home/venture/lifetech/test-scripts/lifetech/lt-comp-panel.sh /var/run/vrgpio/
busybox ash /var/run/vrgpio/lt-comp-panel.sh
  • get the computer panel sticker from the printer once the scripts is complete

fridge door testing[edit | edit source]

  • use extension cables for testing
  • lock, door switch, annunciator out, defrost, compressor sense,
  • temp, rfid, lcd, touch screen, buzzer
  • door test script
scp venture@192.168.19.14:/home/venture/lifetech/test-scripts/lifetech/lt-door.sh /var/run/vrgpio/
busybox ash /var/run/vrgpio/lt-door.sh
  • get the door sticker from the printer once the scripts is complete

fridge testing[edit | edit source]

  • verify that all the electronics are connected starting from the door & computer panel to the power supply enclosure at the bottom.
  • full fridge test script
scp venture@192.168.19.14:/home/venture/lifetech/test-scripts/lifetech/lt-fridge.sh /var/run/vrgpio/
busybox ash /var/run/vrgpio/lt-fridge.sh
  • get the final sticker from the printer once the scripts is complete

final fridge testing[edit | edit source]

  • verify that all the electronics are connected starting from the door & computer panel to the power supply enclosure at the bottom.
  • final test script
scp venture@192.168.19.14:/home/venture/lifetech/test-scripts/lifetech/lt-final.sh /var/run/vrgpio/
busybox ash /var/run/vrgpio/lt-final.sh
  • get the final sticker from the printer once the scripts is complete
  • done! ship it!

Remote updates[edit | edit source]

on vm-linux-prod[edit | edit source]

copy the latest update
XXX fix the date first!!! XXX scp venture@lab-ubuntu:/mnt/m/LifeTechnologies/Deployment/RFIDEnclosure/20120913/RFIDEnclosure.apk ~

login to remote device[edit | edit source]

ssh lt-xxxxxx.openvpn (root, password rfid4ever_lt)

pm uninstall com.ventureresearch.lifetech.rfidenclosure
scp venture@10.19.6.1:~/RFIDEnclosure.apk /data/app/RFIDEnclosure.apk

forkliftreader_linux v265 and higher require the following libevent library:

scp venture@192.168.19.33:/home/android/rowboat-android/out/target/product/omap3evm/system/lib/libevent.so /system/lib/libevent.so
ln -s /system/lib/libevent.so /system/lib/libevent-2.0.so.5

LifeTechInPlaceUpdate LifeTechRecoveryStick LifeTechVRBootLaptop