VAR-SOM-SD600 fastboot: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
Variscite provides a recovery SD-card image that can be used to install the pre-built U-Boot, Linux kernel and the UBI file system into the Nand-Flash This SD card image includes a script (nand-recovery.sh) that installs all the boot images and root file-system.
== General information ==


Boot sequence and partition table consist of:


#Qualcomm's proprietary bootloaders (SBLs). Reside in the first partitions
#LK bootloader (fastboot)
#Kernel
#Android FS


<span style="color:#ff0000;">Note</span>: Bad installation of either SBLs or LK bootloader (fastboot), will result in sending SOM back to Variscite for an RMA procedure.


== Pre-built package ==


== Preparing rescue SD-Card: ==
- boot.img: Linux Kernel + Ramdisk boot
- cache.img: Android Cache partition
- emmc_appsboot.mbn: Fastboot bootloader
- flashall.sh: A script to flash images over fastboot
- persist.img: Android persist partition
- recovery.img: Recovery image
- system.img: Android system partition
- userdata.img: Android data partition


*Plug-in the supplied SD card to your Linux machine, run dmesg and see which device is added (i.e. /dev/sdX or /dev/mmcblk0)
== Flashing pre-built binaries to eMMC flash-storage ==
*Download mx6qd-som-nand-recovery-sd.v23.img.gz (or latest which is available on Variscite's FTP)
 
*For the Dual lite download mx6dl-som-nand-recovery-sd.v23.img.gz
Execute the fastboot script
*For the Solo download mx6solo-som-nand-recovery-sd.v23.img.gz
<pre>$cd /path to prebuilt imagages folder
<pre>$ gunzip mx6qd-som-nand-recovery-sd.v23.img.gz
$sudo ./flashall
$ sudo dd if=mx6qd-som-nand-recovery-sd.v23.img of=/dev/sdX bs=128k
</pre>
</pre>
== Recover Nand Flash: ==
<br/>The following should be displayed on ubuntu host:  


*Insert the SD card into the SD/MMC slot of the custom board
*Press and hold the boot-select button, power-off and power-on the board
*The board will automatically boot into Linux from SD-Card






=== Flash from GUI ===


[[File:Desktop1.png]]






*Press the right arrow on the upper right corner to change the desktop into Utilities.




<pre>"waiting for device"
</pre>
Connect device to PC:


[[File:Desktop2.png]]
*Press and hold the fastboot button
 
*Power up the device, or press the reset button
 
*Connect the OTG cable to PC
 
*Push FlashAndroid or FlashYocto icon.
 
 


=== Flash from command line ===
The following should be displayed on the host Ubuntu:


*Login as root (no password)
<br/>The following should be displayed on ubuntu host:
*From Linux command line, type: "nand-recovery.sh" (This will install Yocto/Linux on the NAND)
<br/><br/><br/><br/><br/><pre>"connected"
*To install Android type: "nand-recovery.sh -o Android".
</pre><br/><br/> <br/><br/><br/><br/><br/> <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
*Reboot and Unplug the SD card

Latest revision as of 15:20, 30 April 2014

General information

Boot sequence and partition table consist of:

  1. Qualcomm's proprietary bootloaders (SBLs). Reside in the first partitions
  2. LK bootloader (fastboot)
  3. Kernel
  4. Android FS

Note: Bad installation of either SBLs or LK bootloader (fastboot), will result in sending SOM back to Variscite for an RMA procedure.

Pre-built package

- boot.img: Linux Kernel + Ramdisk boot
- cache.img: Android Cache partition
- emmc_appsboot.mbn: Fastboot bootloader
- flashall.sh: A script to flash images over fastboot
- persist.img: Android persist partition
- recovery.img: Recovery image
- system.img: Android system partition
- userdata.img: Android data partition 

Flashing pre-built binaries to eMMC flash-storage

Execute the fastboot script

$cd /path to prebuilt imagages folder
$sudo ./flashall


The following should be displayed on ubuntu host:






"waiting for device"

Connect device to PC:

  • Press and hold the fastboot button
  • Power up the device, or press the reset button
  • Connect the OTG cable to PC

The following should be displayed on the host Ubuntu:


The following should be displayed on ubuntu host:






"connected"