2016年11月20日 星期日

Install Android on Raspberry pi 3 from linux platform

Download and follow the instruction from there:

https://git.embedded.rwth-aachen.de/rtandroid/downloads/raspberry-pi/


Below is some minor changes:
 
Flashing RTAndroid

This section describes how to flash RTAndroid. Please use a Linux destribution for the installation process. Windows users should use a Live-CD or VirtualBox.
Once you have downloaded the package, it can be flashed as follows.
  1. Make sure you have a micro SD card with UHS speed class of 4 or higher. Slow memory cards will slow down the system significantly.
  2. Unpack the downloaded zip package.
  3. unzip rtandroid-[VERSION]-[DATE]-rpi3.zip -d .
  4. Edit the file "boot/config.txt" for desired resolution. You can find more information here or here.
  5. Insert the memory card into your computer. All data on this card will be lost.
  6. Execute the install script from the downloaded package:
    • Find the device name where the card is mounted (example: /dev/sdc)
    • sudo fdisk -l
    • Use the "-p" flag to partition your card.
    • Use the "-f" flag to format your card.
    • bush ./install.sh -p -f /dev/sdc <- read out "/dev/sdc" from command sudo fdisk -l
    • Wait for the script to terminate. If everything went fine, put the memory card into the raspberry pi and power it on.
  7. Execute the gapps script from the downloaded package, if desired.
Depending on the memory card the first system boot can take up to 15 minutes until RTAndroid will be fully functional. Feel free to use the comment section below or the RPi discussion group for feedback and further questions.

Removing partitions (or format) of a USB

So… a while back I was playing around with Linux and needed a bootable install disc. I decided to make one of my spare USB thumb drives into one. All went well, and I successfully installed Ubuntu Server on my machine. Great.
Fast forward to this morning when I needed said thumb drive to transfer some pretty hefty files. Low and behold, my 4GB thumb drive was being read as a 2MB thumb drive. No problem… just format the thing, right? Uh… no. Apparently not.
To create the install disk, I used a nice little program called Image Writer for Windows It worked great, but unfortunately it partitioned my thumb drive, and Windows 7, for some reason, couldn’t get rid of the partitions when I tried to format it. Bleh. Thankfully, Google is always there when I need it.
It turns out there’s utility in Windows 7 (and probably other Windows versions as well, but I’m using 7) called Diskpart that will fix this problem right up for you. Here’s how to use it to format a USB drive.
  1. Bring up the command prompt. Easiest way is to go to the Start menu and type in “cmd” in the search box and hit enter.
  2. In the command prompt window, type “diskpart”. That will launch another window with a DISKPART> prompt.
  3. Type “list disk” to find out which disk your USB drive is. It should be pretty obvious from the size of the disk. If it’s not, alternatively, you can search “Computer Management” under the Start menu, and then click on “Disk Management”. You should see something that says “Disk 1 Removeable” or something similar.
  4. Once you know which disk you want, in the Diskpart window, type “select disk 1” (or whatever number your thumb drive happens to be assigned to). Diskpart should tell you that this is now the selected disk,
  5. Type “clean”. This will get rid of all the old information on the disk, as well as any partitions. Diskpart will tell you when this has succeeded.
  6. Type “create partition primary”. This sets up the new partition (one big one instead of a small one) for the drive.
  7. Type “select partition 1” to select the partition you just created.
  8. Type “active” to mark the selected partition as active.
  9. Type “format fs=ntfs quick” to format the drive. This may take a few minutes depending on the size of the drive.
  10. Type “assign”.
  11. Type “exit” to leave the Diskpart program.
http://nlb-creations.com/2013/01/17/removing-partitions-from-a-usb-thumb-drive/