LiveNation/BoardProvision
Prepare Android System[edit | edit source]
This section presents the steps to prepare Android System for the VR Linux Board 5.0.
Prepare[edit | edit source]
The required tools include:
- Variscite development board - VAR_STK-MX6_V2-AO
- Recovery sd card, which comes with the development board
- Multi-function sd card reader with USB cable
- Parts waiting for flash: CPU module - VAR-SOM-MX6 REV2.11, Micro sd card - Sandisk Industrial 8G
- Linux computer
Check the device node of the attached SD card, which is in the form of /dev/sdbx. All steps below assume the usb device node is /dev/sdb
sudo sfdisk -l
Update Recovery SD card[edit | edit source]
Go to the top building output folder like "release-sd-2016-04-01T13:32:51". Insert the recovery sd card into the sd card reader. Copy all required files to the recovery sd card:
sudo ./var-mkemmc-vr.sh /dev/sdb2
Flash Variscite VAR-SOM-MX6[edit | edit source]
Put the updated recovery card to the development board, hold the center black button and turn on power switch. Then the development board will boot from the recovery card. After the system boots up, login as “root” without password.
If you have a brand new VAR-SOM-MX6 CPU module, you need partition, format first and then flash SPL.nand, u-boot-var-imx6-sd.img, boot- som-mx6q-vsc.img:
mksd_android_vr.sh
Flash Micro SD Card[edit | edit source]
As to a brand new micro sd card, you need to partition and format first, then flash files:
sudo ./var-mksdcard.sh -f som-mx6q-vsc /dev/sdb
As to an used micro sd card, if you want to keep current user data, just copy new-built files without partition and format:
sudo ./var-mksdcard-vr.sh som-mx6q-vsc /dev/sdb
First Boot[edit | edit source]
After you successfully flash mx6 module and sd card, at the first time when you boot up the Android system from the board, please run the command to do some settings:
vr-firstrun.sh
Flash MAC Address[edit | edit source]
After login the Android system from terminal, you need flash the MAC address on the board.
First to remount the Android file system to change from read only to read/write:
mount -o remount,rw /dev/block/mmcblk1p5 /system/
Then flash the MAC address, where "00:50:c2:7c:5f:6a" below is the MAC address as an example:
calibrator set nvs_mac /system/etc/firmware/ti-connectivity/wl1271-nvs.bin 00:50:c2:7c:5f:6a
Last, check the flashed new MAC address:
calibrator get nvs_mac /system/etc/firmware/ti-connectivity/wl1271-nvs.bin
Hostname[edit | edit source]
To get the hostname of the board, run the command from the terminal:
getprop | grep hostname
The result shows like:
[net.hostname]: [android-beb83184647d558]
The name in the second square bracket is the hostname.
To assign a new hostname to the device, you need remount the Android file system to change from read only to read/write:
mount -o remount,rw /dev/block/mmcblk1p5 /system/
then assign the new hostname:
echo "net.hostname=NEWHOSTNAME" >> /system/build.prop
where NEWHOSTNAME is the name you want to assign.
NXP NFC Test[edit | edit source]
Make sure the NFC tag reader is connected to the VR Linux board through the I2C connector - "FRONT" on board. The NFC driver and settings are initialized automatically while the system boots up.
From the home page of Android UI, enter App menu and open the app named TagInfo. Hold your test NFC card and approaching the tag reader, the app will update the tag information once it reads successfully.
MagTek Credit Card Swiper Test[edit | edit source]
Make sure the credit card swiper is connected to the VR Linux board through a standard USB port on board. The driver is loaded automatically.
From the home page of Android UI, enter App menu and open the app named MagTek. Select the "USB" label on the top right of the screen, then click connect. Now you can use the swiper. Swipe your test credit card. Then all information will be displayed on screen.
Configure Android[edit | edit source]
It will take a bit longer at the first time to boot Android.