Android install guild NG

Материал из Toshiba AC100 wiki
Перейти к: навигация, поиск

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