Android install guild NG: различия между версиями

Материал из Toshiba AC100 wiki
Перейти к навигации Перейти к поиску
Нет описания правки
 
м (fix links)
 
Строка 9: Строка 9:
** add simple guide for linux
** add simple guide for linux
* Download android zip and recovery
* Download android zip and recovery
** [[@https://drive.google.com/file/d/0BzHUnWusu2ztVy1kRGludjd1c2c/edit?usp=sharing|recovery.img]]
** [https://drive.google.com/file/d/0BzHUnWusu2ztVy1kRGludjd1c2c/edit?usp=sharing recovery.img]
** [[@https://drive.google.com/file/d/0BzHUnWusu2ztQXpyeFlmT0JCMlU/edit?usp=sharing|cm 10.1.zip]]
** [https://drive.google.com/file/d/0BzHUnWusu2ztQXpyeFlmT0JCMlU/edit?usp=sharing cm 10.1.zip]
*** Copy them to external sd-card
*** Copy them to external sd-card
* Download nvflash or tegrarcm for you pc platform
* Download nvflash or tegrarcm for you pc platform
** [[@http://mirror.yandex.ru/debian/pool/non-free/t/tegrarcm/|tegrarcm]]
** [http://mirror.yandex.ru/debian/pool/non-free/t/tegrarcm/ tegrarcm]
** <span style="line-height: 1.5;">[[@http://ac100.grandou.net/nvflash#debian_ubuntu_package|nvflash (deb)]]</span>
** <span style="line-height: 1.5;">[http://ac100.grandou.net/nvflash#debian_ubuntu_package nvflash (deb)]</span>
** <span style="line-height: 1.5;">[[@https://www.dropbox.com/s/8dwnsj4m2ksb4bw/linux4tegra.zip|nvflash (linux4tegra)]]</span>
** <span style="line-height: 1.5;">[https://www.dropbox.com/s/8dwnsj4m2ksb4bw/linux4tegra.zip nvflash (linux4tegra)]</span>
** <span style="line-height: 1.5;">[[@file:ac100/nvflash-win.zip|nvflash (win)]]</span>
** <span style="line-height: 1.5;">[[Файл:Nvflash-win.zip|nvflash (win)]]</span>
* Download latest sosboot image
* Download latest sosboot image
** [[@https://dl.dropboxusercontent.com/u/40761340/Test/sos-uboot-r5-2013-09-23.bin|sosboot.image]]
** [https://dl.dropboxusercontent.com/u/40761340/Test/sos-uboot-r5-2013-09-23.bin sosboot.image]
* Download gapps for this version
* Download gapps for this version
** [[@http://goo.im/devs/tonyp/non-neon-gapps|Google app (play, gmail)]]
** [http://goo.im/devs/tonyp/non-neon-gapps Google app (play, gmail)]


==Switch to U-Boot bootloader and GPT part table==  
==Switch to U-Boot bootloader and GPT part table==  

Текущая версия от 15:19, 16 января 2015

New Android install guide draft


Looking for testers, who can extend this guide

Prepare

Switch to U-Boot bootloader and GPT part table

  • !!IMPORTANT!! Insert external sd-card into AC100 with install files on it
  • Connect your AC100 with mini-usb cable to pc
  • Start AC100 with CTRL+ESC+POWER key combo to recovery mod
    • Power led will become on, screen is black
      • Linux syslog output in recovery mode
2013-10-25T01:29:24.572096+04:00 stallion kernel: [ 9708.625836] usb 2-1.2: USB disconnect, device number 19
2013-10-25T01:39:24.294010+04:00 stallion kernel: [10308.101230] usb 2-1.2: new high-speed USB device number 20 using ehci-pci
2013-10-25T01:39:24.380000+04:00 stallion kernel: [10308.187310] usb 2-1.2: New USB device found, idVendor=0955, idProduct=7820
2013-10-25T01:39:24.380050+04:00 stallion kernel: [10308.187331] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
2013-10-25T01:39:24.380057+04:00 stallion kernel: [10308.187335] usb 2-1.2: Product: APX
2013-10-25T01:39:24.380061+04:00 stallion kernel: [10308.187338] usb 2-1.2: Manufacturer: NVIDIA Corp.
  • Load sosboot with tegrarcm or nvflash
    • Nvflash startup command
nvflash --bl /path/to/sosboot.image --go

Tegrarcm startup command

tegrarcm --bct=/path/to/your/bct --bootloader=/path/to/sosboot.image --loadaddr=0x108000
  • You will see U-Boot welcome screen menu, choose Boot Kernel
  • Linux shell prompt will appear after, run switch-to-uboot command
/# ./switch-to-uboot
  • Say yes to question prompt

Check that switch went fine

  • Run parted
/# parted /dev/mmcblk1 print
  • Output
Model: MMC SEM08G (sd/mmc)
Disk /dev/mmcblk1: 7944MB
Sector size (logical/physical): 512B/512B
Partition table: gpt
Disk Flags:

Number  Start   End      Size    File system  Name   Flags
 1      3670kB  8913kB   5343kB  ext2         SOS
 2      8913kB  17.3MB   8389kB  ext2         LNX
 3      18.4MB  556MB    537MB   ext4         APP
 4      556MB   975MB    419MB   ext4         CAC
 5      975MB   977MB    2097kB               MSC
 6      978MB   5172MB   4194MB  ext4         UDA
 7      5173MB  7942MB   2769MB               UDB

Create new partition table

  • If you plan to use only Android
parted /dev/mmcblk1 -s mkpart primary 7168s 132168s 
parted /dev/mmcblk1 -s mkpart primary 132169s 257169s
parted /dev/mmcblk1 -s mkpart primary 257170s 1257170s
parted /dev/mmcblk1 -s mkpart primary 1257171s 2257171s
parted /dev/mmcblk1 -s mkpart primary 2257172s 2261078s
parted /dev/mmcblk1 -s mkpart primary 2261079s 15513695s
parted /dev/mmcblk1 -s name 1 SOS name 2 LNX name 3 APP name 4 CAC name 5 MSC name 6 UDA
parted /dev/mmcblk1 unit s print
  • If you plan to use Android and Linux in multiboot
parted /dev/mmcblk1 -s mkpart primary 7168s 132168s 
parted /dev/mmcblk1 -s mkpart primary 132169s 257169s
parted /dev/mmcblk1 -s mkpart primary 257170s 1257170s
parted /dev/mmcblk1 -s mkpart primary 1257171s 2257171s
parted /dev/mmcblk1 -s mkpart primary 2257172s 2261078s
parted /dev/mmcblk1 -s mkpart primary 2261079s 7698579s
parted /dev/mmcblk1 -s mkpart primary 7698580s 15513695s
parted /dev/mmcblk1 -s name 1 SOS name 2 LNX name 3 APP name 4 CAC name 5 MSC name 6 UDA name 7 UDB
parted /dev/mmcblk1 unit s print
  • Format new partitions
mkfs.ext2 /dev/mmcblk1p1
mkfs.ext2 /dev/mmcblk1p2
mkfs.ext4 /dev/mmcblk1p3
mkfs.ext4 /dev/mmcblk1p4
mkfs.ext4 /dev/mmcblk1p6
mkfs.ext4 /dev/mmcblk1p7

Install CWM recovery

Manual install

  • Make temporary folders
/# mkdir /tmp/1
/# mkdir /tmp/sd
  • Mount internal and external media
/# mount /dev/mmcblk1p1 /tmp/1
/# mount /dev/mmcblk0p1 /tmp/sd
  • Unzip recovery.img to /tmp/1/boot
/# mkdir /tmp/1/boot
/# unzip /tmp/sd/recovery.img -d /tmp/1/boot
/# sync
/# umount /tmp/sd
/# umount /tmp/1
output example

Run system install

  • Turn your AC100 off then on
  • U-Boot welcome screen boot menu will appear
    • Choose Boot SOS CM-10.1
  • Then install system image as always
    • install zip->choose zip from sdcard->choose file->Yes