FlashAndroidImage

From VentureResearchWiki
Jump to navigation Jump to search

This page introduces the steps to flash Android image files on a SD card. The steps are tested on the Linux computer: lab14

Image History[edit | edit source]

The zipped image files are saved at the M drive: m/$$-CUSTOMERS/LifeTechnologies/Android/Images.

The Linux Board 5.2a [Rev A] uses iMX6Q and Android Lollipop:

  • ThermoFisher Logo - thermofisher-release-sd-2021-09-01T15-23-11.tar.gz (Latest Version, 5.0.2.3, fix the issue of can_reset.sh, working for Premier V2, SC-Express2 and Ultra Slim Trak)
  • General Linux Logo - thermofisher-release-sd-2021-07-22T13-00-19.tar.gz (Latest Version, 5.0.2.2, update RFID service)
  • ThermoFisher Logo - thermofisher-release-sd-2021-07-22T13-20-26.tar.gz (5.0.2.2, update RFID service)
  • ThermoFisher Logo - thermofisher-release-sd-2018-04-17T13-00-03.tar.gz
  • General Linux Logo - thermofisher-release-sd-2021-07-16T10-48-42.tar.gz (5.0.2.1)

The Linux Board 5.2a [Rev B] uses iMX6QP and Android Oreo:

  • ThermoFisher Logo - thermofisher-release-sd-o8-2024-04-09T11-02-31.tar.gz (Latest Version, 8.0.0.13, update RFID service to the revision r7048)
  • VR Logo - thermofisher-release-sd-o8-2024-10-14T09-50-44.tar.gz (Latest Version, 8.0.0.13, update RFID service to the revision r7048)
  • General Linux Logo - thermofisher-release-sd-o8-2021-07-22T12-34-55.tar.gz (Latest Version, 8.0.0.6, update RFID service)
  • ThermoFisher Logo - thermofisher-release-sd-o8-2023-01-12T09-12-36.tar.gz (Latest Version, 8.0.0.12, support resolution 1280x800 for hdmi, working for Premier V2, SC-Express2, Ultra Slim Trak and Breeze-Eastern Cabinet)
  • ThermoFisher Logo - thermofisher-release-sd-o8-2023-01-04T11-51-18.tar.gz (8.0.0.11, add and enable libevdev for gpio-keys trig events, update RFID service to the revision r6663)
  • ThermoFisher Logo - thermofisher-release-sd-o8-2022-12-28T16-20-01.tar.gz (8.0.0.10, fix the issue that cannot export TR1 to TR4)
  • ThermoFisher Logo - thermofisher-release-sd-o8-2022-06-08T10-52-50.tar.gz (8.0.0.8, fix the issue of vr-uc-pwmled)
  • ThermoFisher Logo - thermofisher-release-sd-o8-2022-03-16T13-59-47.tar.gz (8.0.0.7, update RFID service to the revision r6241)
  • ThermoFisher Logo - thermofisher-release-sd-o8-2021-07-22T12-09-19.tar.gz (8.0.0.6, update RFID service)
  • ThermoFisher Logo - thermofisher-release-sd-o8-2021-07-19T10-22-12.tar.gz (8.0.0.5, update wlan pinout settings)
  • General Linux Logo - thermofisher-release-sd-o8-2021-07-15T21-48-38.tar.gz (8.0.0.5, update wlan pinout settings)
  • thermofisher-release-sd-o8-2020-07-29T15-09-14.tar.gz (8.0.0.4, setup venture ntp server, update vr scripts)
  • thermofisher-release-sd-o8-2020-02-27T16-12-37.tar.gz (8.0.0.3, remove libssl2 from forkliftreader_linux)
  • thermofisher-release-sd-o8-2020-02-10T16-19-14.tar.gz (8.0.0.3, update forkliftreader_linux)
  • thermofisher-release-sd-o8-2019-10-03T09-27-20.tar.gz (8.0.0.2, rebuilt to fix the issue of boot: Wrong CRC)
  • thermofisher-release-sd-o8-2019-09-16T14-21-37.tar.gz (8.0.0.2)
  • thermofisher-release-sd-o8-2019-08-14T08-08-42.tar.gz (8.0.0.1)
  • thermofisher-release-sd-o8-2019-07-29T15-37-27.tar.gz
  • thermofisher-release-sd-o8-2019-06-28T10-57-25.tar.gz

Download and Unzip Image Files[edit | edit source]

If you already have it, skip and move to the next step - Flash.

Go to the default working folder.

cd ~/Android_Images

Copy the latest image zip file to the working folder and unzip it.

  • As to the Linux Board 5.2a [Rev A]:
cp /mnt/m/\$\$-CUSTOMERS/LifeTechnologies/Android/Images/thermofisher-release-sd-2018-04-17T13-00-03.tar.gz ./
tar zxvf thermofisher-release-sd-2018-04-17T13-00-03.tar.gz
mv home/venture/android-out/thermofisher-release-sd-2018-04-17T13-00-03 ./
rm -rf home
  • As to the Linux Board 5.2a [Rev B]:
cp /mnt/m/\$\$-CUSTOMERS/LifeTechnologies/Android/Images/thermofisher-release-sd-o8-2020-02-27T16-12-37.tar.gz ./
tar zxvf thermofisher-release-sd-o8-2020-02-27T16-12-37.tar.gz
mv home/venture/android-out/thermofisher-release-sd-o8-2020-02-27T16-12-37 ./
rm -rf home

Flash[edit | edit source]

Go to the image folder.

  • As to the Linux Board 5.2a [Rev A]:
cd ~/Android_Images/thermofisher-release-sd-2018-04-17T13-00-03
  • As to the Linux Board 5.2a [Rev B]:
cd ~/Android_Images/thermofisher-release-sd-o8-2020-02-27T16-12-37

Insert the SD card into the card reader and check its mounting location by:

sudo sfdisk -l

You will find the mounting location of the SD card like /dev/sdb. Flash the image on a new SD card where you need to partition and format the card first by

sudo bash build-android-vr.sh -f sd /dev/sdb

If you reflash a old SD card which is already partitioned before, you can use the command

sudo bash build-android-vr.sh -f sd-nf /dev/sdb

Quit[edit | edit source]

After flashing, umount partitions to safely remove the SD card from the reader

sudo umount /dev/sdb?*

Then unplug the card reader.

Update Over OTA[edit | edit source]

Make sure the unit has good network connection before do the OS update over OTA.

Check the old version of the Android system installed:

getprop ro.build.display.id

Get the WiFI MAC address that was flashed:

calibrator get nvs_mac /vendor/firmware/ti-connectivity/wl1271-nvs.bin

Download the OTA update file and prepare the recovery command:

su
cd /cache/recovery
busybox wget http://downloads.ventureresearch.com/Android/Images/update-8-0-0-13.zip -O update.zip
echo "--update_package=/cache/recovery/update.zip" > command

Backup VR configure files, which will be recovered by vr-latesup.sh service:

su
mkdir -p /data/vr/patch
rm /data/vr/patch/*
cp /system/etc/hosts /data/vr/patch/hosts
cp /system/etc/hostname /data/vr/patch/hostname 
cp /system/etc/vrserial /data/vr/patch/vrserial
cp /system/etc/enclosuresn /data/vr/patch/enclosuresn
cp /system/etc/enclosureid /data/vr/patch/enclosureid
cp /system/etc/vrpkg.compat /data/vr/patch/vrpkg.compat
cp /system/etc/venture-build-info /data/vr/patch/venture-build-info

Start update reboot:

reboot recovery

The device will reboot two or three times. Then the system is updated to the version - 8.0.0.13 20240408:

getprop ro.build.display.id

Settings after patch (need use the WiFI MAC address you above):

su
busybox wget http://readonly:secret@svn.crm.ventureresearch.com/svn/linux/testing/vr-mx6-linuxboard/oreo/vr-firstrun-patch.sh -O /sdcard/Download/vr-firstrun-patch.sh
sh /sdcard/Download/vr-firstrun-patch.sh