Partition Layout

From AVIC Hacking
Jump to navigation Jump to search

SD Card type[edit | edit source]

Our devices use conventional full-size (not microSD) SD cards. SD cards is password-locked, but can be unlocked using different methods.

Head unit uses 50 MHz quad SPI for internal SD card and 25 MHz quad SPI for external SD card. So theoretical SD card read/write speed is limited to 25 MB/s and 12.5 MB/s respectively.

SD Card sizes[edit | edit source]

4GB SD cards are used for entry-level device models without navigation software, 8GB and 16GB SD card sizes are used for mid and high-level device models (with navigation software).

Partition table contains:

  • two regular Android boot partitions (side A and side B), 10MB each. Contains contents of BOOT/PJ1x0BOT.PRG file from firmware.
  • two recovery Android boot partitions (side A and side B), 30MB each. Contains contents of RECOVERY/PJ1x0REC.PRG file from firmware.
  • /system partition, 512MB, mounted as read-only. Contains contents of PLATFORM/PJ1x0PLT.PRG file from firmware.
  • /cache partition, 128MB
  • /data partition, 512MB Contains contents of USEDATA/PJ1x0DAT.PRG file from firmware.
  • /extdata partition, 1900MB, 5600MB and 13000MB for 4, 8 and 16 GB SD cards respectively.

First 512MB of SD card data contains unpartitioned space where special data stored (WARP hibernation driver for uboot, firmware versions table, two sides (A and B) of WARP snapshot headers and data)

under construction: how to read and write sd card images[edit | edit source]

Write about Win32DiskImager, dd and other tools used to create and restore backups.


Using DD (Tested on Mac OS X 10.11.6): sudo dd bs=1m if=/path/to/image-file-name of=/dev/path/to/sdcard/device

NOTE: Use the "rdisk" version of the SD card and not the "disk" version (Example: Use: /dev/rdisk3). This makes for significantly faster writes. Details here: [1].

Typical partition layout for devices with 4GB SD card[edit | edit source]

File size: 4025483264, file: 4000NEX.img
MBR signature: OK:55aa, MBR table:
Partition 0: type: Linux, start: 0x20100000, length: 0x00a00000, content: ANDROID! boot partition
Partition 1: type: Linux, start: 0x20b00000, length: 0x00a00000, content: ANDROID! boot partition
Partition 2: type: Extended, start: 0x21500000, length: 0x4bc00000
 EBR signature: OK:55aa, type: Linux, start: 0x21500200, length: 0x01dffe00, content: ANDROID! boot partition
 EBR signature: OK:55aa, type: Linux, start: 0x23300200, length: 0x01dffe00, content: ANDROID! boot partition
 EBR signature: OK:55aa, type: Linux, start: 0x25100200, length: 0x1ffffe00, content: label: [NA], last mounted: [NA]
 EBR signature: OK:55aa, type: Linux, start: 0x45100200, length: 0x07fffe00, content: label: CACHE, last mounted: [NA]
 EBR signature: OK:55aa, type: Linux, start: 0x4d100200, length: 0x1ffffe00, content: label: DATA, last mounted: /data
Partition 3: type: Linux, start: 0x6d100000, length: 0x76c00000, content: label: [NA], last mounted: /media/osboxes/57f8f4bc-abf4-655f-bf67-946fc0f9f25b
Firmware partitions:
Partition signature: OK:a55a5aa5, size: 0x00416800, CRC: 0xe3ebfe31, version: 1.09.06.00, name: PJ140BOT
Partition signature: OK:a55a5aa5, size: 0x00416800, CRC: 0xa1d1d27e, version: 1.08.01.00, name: PJ140BOT
Partition signature: OK:a55a5aa5, size: 0x0099d000, CRC: 0xd8b1bac8, version: 1.09.06.00, name: PJ140REC
Partition signature: OK:a55a5aa5, size: 0x0099d000, CRC: 0x9d942b3b, version: 1.08.01.00, name: PJ140REC
Partition signature: OK:a55a5aa5, size: 0x1ffff000, CRC: 0xcfc44767, version: 1.09.06.00, name: PJ140PLT
Partition signature: OK:a55a5aa5, size: 4G, CRC: 0x00000000, version: 1.03.00.00, name: CWW9611-, CWW version: CWW9611-, Data version: PJDZ1-1-D
Partition signature: OK:a55a5aa5, size: 0x0ffe0000, CRC: 0xa6a44f3a, version: 1.09.06.00, name: SNAPSHOT
Partition signature: OK:a55a5aa5, size: 0x0ffe0000, CRC: 0xa6a44f3a, version: 1.09.06.00, name: SNAPSHOT
Partition signature: OK:a55a5aa5, size: 0x00020000, CRC: 0x3adf7af1, version: 1.09.06.00, name: HIBENDIR
Partition signature: OK:a55a5aa5, size: 0x1ffffe00, CRC: 0x8df01ad0, version: 1.09.06.00, name: PJ140DAT
WARP HIBENDIR bootloader driver, signature: W4HD, start: 0x00100000, length 0x000087e8
WARP W4BF header side A start: 0x00120000, length: 0x00000200, header: W4BF
WARP W4BF header side B start: 0x00120200, length: 0x00000200, header: W4BF
WARP W4S0 snapshot side A start: 0x00120400, length: 0x0ffdfe00, header: W4S0
WARP W4S0 snapshot side B start: 0x10110200, length: 0x0ffdfe00, header: W4S0

Typical partition layout for devices with 8GB SD card[edit | edit source]

File size: 8068792320, file: F960BT_RU.img
MBR signature: OK:55aa, MBR table:
Partition 0: type: Linux, start: 0x20100000, length: 0x00a00000, content: ANDROID! boot partition
Partition 1: type: Linux, start: 0x20b00000, length: 0x00a00000, content: ANDROID! boot partition
Partition 2: type: Extended, start: 0x21500000, length: 0x4bc00000
 EBR signature: OK:55aa, type: Linux, start: 0x21500200, length: 0x01dffe00, content: ANDROID! boot partition
 EBR signature: OK:55aa, type: Linux, start: 0x23300200, length: 0x01dffe00, content: ANDROID! boot partition
 EBR signature: OK:55aa, type: Linux, start: 0x25100200, length: 0x1ffffe00, content: label: [NA], last mounted: /home/zhouyou/img/dio/full_model/tmp
 EBR signature: OK:55aa, type: Linux, start: 0x45100200, length: 0x07fffe00, content: label: CACHE, last mounted: [NA]
 EBR signature: OK:55aa, type: Linux, start: 0x4d100200, length: 0x1ffffe00, content: label: DATA, last mounted: /data
Partition 3: type: Linux, start: 0x6d100000, length: 0x15e000000, content: label: [NA], last mounted: /extdata
Firmware partitions:
Partition signature: OK:a55a5aa5, size: 0x00416800, CRC: 0x809b7532, version: 1.07.04.00, name: PJ140BOT
Partition signature: OK:a55a5aa5, size: 0x00416800, CRC: 0x84b6577e, version: 1.06.00.00, name: PJ140BOT
Partition signature: OK:a55a5aa5, size: 0x0099d000, CRC: 0x2740840f, version: 1.07.04.00, name: PJ140REC
Partition signature: OK:a55a5aa5, size: 0x0099d000, CRC: 0x888b43d0, version: 1.06.00.00, name: PJ140REC
Partition signature: OK:a55a5aa5, size: 0x1ffff000, CRC: 0xd311ae54, version: 1.07.04.00, name: PJ140PLT
Partition signature: OK:a55a5aa5, size: 8G, CRC: 0x00000000, version: 1.00.00.00, name: CWW8076-, CWW version: CWW8076-, Data version: PJCR1-1-F
Partition signature: OK:a55a5aa5, size: 0x0ffe0000, CRC: 0x03ad3f66, version: 1.07.04.00, name: SNAPSHOT
Partition signature: OK:a55a5aa5, size: 0x0ffe0000, CRC: 0x03ad3f66, version: 1.07.04.00, name: SNAPSHOT
Partition signature: OK:a55a5aa5, size: 0x00020000, CRC: 0x3adf7af1, version: 1.07.04.00, name: HIBENDIR
Partition signature: OK:a55a5aa5, size: 0x1ffffe00, CRC: 0x1f833a56, version: 1.07.04.00, name: PJ140DAT
WARP HIBENDIR bootloader driver, signature: W4HD, start: 0x00100000, length 0x000087e8
WARP W4BF header side A start: 0x00120000, length: 0x00000200, header: W4BF
WARP W4BF header side B start: 0x00120200, length: 0x00000200, header: W4BF
WARP W4S0 snapshot side A start: 0x00120400, length: 0x0ffdfe00, header: W4S0
WARP W4S0 snapshot side B start: 0x10110200, length: 0x0ffdfe00, header: W4S0

Typical partition layout for devices with 16GB SD card[edit | edit source]

File size: 16130244608, file: F960BT_EU.img
MBR signature: OK:55aa, MBR table:
Partition 0: type: Linux, start: 0x20100000, length: 0x00a00000, content: ANDROID! boot partition
Partition 1: type: Linux, start: 0x20b00000, length: 0x00a00000, content: ANDROID! boot partition
Partition 2: type: Extended, start: 0x21500000, length: 0x4bc00000
 EBR signature: OK:55aa, type: Linux, start: 0x21500200, length: 0x01dffe00, content: ANDROID! boot partition
 EBR signature: OK:55aa, type: Linux, start: 0x23300200, length: 0x01dffe00, content: ANDROID! boot partition
 EBR signature: OK:55aa, type: Linux, start: 0x25100200, length: 0x1ffffe00, content: label: [NA], last mounted: /system
 EBR signature: OK:55aa, type: Linux, start: 0x45100200, length: 0x07fffe00, content: label: CACHE, last mounted: [NA]
 EBR signature: OK:55aa, type: Linux, start: 0x4d100200, length: 0x1ffffe00, content: label: DATA, last mounted: /data
Partition 3: type: Linux, start: 0x6d100000, length: 0x32c800000, content: label: [NA], last mounted: /extdata
Firmware partitions:
Partition signature: OK:a55a5aa5, size: 0x00416800, CRC: 0x6827e07d, version: 1.11.07.00, name: PJ140BOT
Partition signature: OK:a55a5aa5, size: 0x00416800, CRC: 0x809b7532, version: 1.07.04.00, name: PJ140BOT
Partition signature: OK:a55a5aa5, size: 0x0099d000, CRC: 0x3dfada72, version: 1.11.07.00, name: PJ140REC
Partition signature: OK:a55a5aa5, size: 0x0099d000, CRC: 0x2740840f, version: 1.07.04.00, name: PJ140REC
Partition signature: OK:a55a5aa5, size: 0x1ffff000, CRC: 0xc9403ebf, version: 1.11.07.00, name: PJ140PLT
Partition signature: OK:a55a5aa5, size: 16G, CRC: 0x00000000, version: 1.03.00.00, name: CWW9607-, CWW version: CWW9607-, Data version: PJCE1-1-G
Partition signature: OK:a55a5aa5, size: 0x0ffe0000, CRC: 0x34f95688, version: 1.11.07.00, name: SNAPSHOT
Partition signature: OK:a55a5aa5, size: 0x0ffe0000, CRC: 0x34f95688, version: 1.11.07.00, name: SNAPSHOT
Partition signature: OK:a55a5aa5, size: 0x00020000, CRC: 0x3adf7af1, version: 1.11.07.00, name: HIBENDIR
Partition signature: OK:a55a5aa5, size: 0x1ffffe00, CRC: 0x6e7f9b4f, version: 1.11.07.00, name: PJ140DAT
WARP HIBENDIR bootloader driver, signature: W4HD, start: 0x00100000, length 0x000087e8
WARP W4BF header side A start: 0x00120000, length: 0x00000200, header: W4BF
WARP W4BF header side B start: 0x00120200, length: 0x00000200, header: W4BF
WARP W4S0 snapshot side A start: 0x00120400, length: 0x0ffdfe00, header: W4S0
WARP W4S0 snapshot side B start: 0x10110200, length: 0x0ffdfe00, header: W4S0