Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,743,085 Members 44,151 Now Online
XDA Developers Android and Mobile Development Forum

[Recovery][4.2.x][Allwinner A20]TWRP v2.6.3.0 Softwinners Wing-D9 (JayTech PA1051DA)

Tip us?
 
DualJoe
Old
(Last edited by DualJoe; 14th February 2014 at 07:20 PM.)
#1  
DualJoe's Avatar
Senior Member - OP
Thanks Meter 491
Posts: 1,102
Join Date: Oct 2011
Location: DE
Default [Recovery][4.2.x][Allwinner A20]TWRP v2.6.3.0 Softwinners Wing-D9 (JayTech PA1051DA)

TWRP v2.6.3.0 for Softwinners Wing-D9 (Allwinner A20)
aka JayTech PA1051DA


Warning:
This process might damage your device. Make yourself comfortable how to recover from a broken system (Livesuite, PhoenixCard..). Even though most Allwinners are unbrickable reviving might involve steps that are less suitable for beginners.

General info:
The Allwinner A20 devices are available in many variations. Use the informations below to figure out if your device might be compatible. It's important that the kernel command line (see below) includes a 'partition' section with aliases for the partitions because they are used in the filesystem table of TWRP (see below). Example: recovery@nandg -> Symlinks /dev/block/nandg to /dev/block/recovery.

Do not use on devices with resolution below 1024x600.

Installation:
Flash the image with dd to your device. Don't forget to backup your old recovery (see here):
Code:
Select Code
busybox dd if=recovery.img of=/dev/block/recovery bs=1M
Boot into recovery with either <power> + <vol+> or by 'adb reboot recovery'.

If the recovery only works partially (eg. due to wrong display or touch driver) and you're stuck in a bootloop that always starts the recovery (instead of the system) and ADB is running properly you can write the boot command string to /misc partition manually that should point the bootloader back to Android OS.
Code:
Select Code
echo -n bootloader | busybox dd of=/dev/block/misc bs=16 count=1 conv=sync; sync
It writes the string 'bootloader' and fills up the rest of the 16 char block with 0x00.

Device info:
Tablet brand name: JayTech PA1051DA (Germany 06/2013)
SoC: Allwinner A20 (sun7i)
ro.build.fingerprint=softwinners/wing_d9/wing-d9:4.2.2/JDQ39/20130619:eng/test-keys
ro.product.model=TPC-1051
ro.build.version.release=4.2.2
Dmesg info: Linux version 3.3.0+ (lpp@INGENIC-CROSS) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #16 SMP PREEMPT Tue Jun 25 10:39:48 CST 2013

ARM Cortex A7 Dual Core 1.5 GHz
ARM Mali400MP2
Display: 10,1" 1024x600
Android 4.2
RAM: 1GB
Nand: 8GB

Kernel command line:
(cat /proc/cmdline)

Code:
Select Code
console=ttyS0,115200 root=/dev/system init=/init loglevel=4 partitions=bootloader@nanda:env@nandb:boot@nandc:system@nandd:data@nande:misc@nandf:recovery@nandg:cache@nandh:databk@nandi:UDISK@nandj
cat /proc/partitions:
(Partition layout (size/position/count) doesn't matter. Kernel command line aliases handle that).
Code:
Select Code
major minor  #blocks  name

   7        0      12506 loop0
   7        1      16664 loop1
   7        2      17703 loop2
   7        3      22901 loop3
   7        4      37454 loop4
   7        5      21861 loop5
   7        6       7308 loop6
  93        0      16384 nanda
  93        8      16384 nandb
  93       16      16384 nandc
  93       24     524288 nandd  (/system 512MB)
  93       32     524288 nande  (/data 512MB)
  93       40      16384 nandf
  93       48      32768 nandg  (Recovery 32MB)
  93       56     524288 nandh
  93       64     262144 nandi
  93       72    5521408 nandj  (/sdcard 5.6GB)
 254        0      12505 dm-0
 254        1      16663 dm-1
 254        2      17703 dm-2
 254        3      22900 dm-3
 254        4      37453 dm-4
 254        5      21861 dm-5
 254        6       7308 dm-6
TWRP recovery.fstab:
Code:
Select Code
# mount point		fstype		device				device2
# /bootloader		vfat		/dev/block/bootloader
/env			emmc		/dev/block/env
/boot			emmc		/dev/block/boot			flags=backup=1
/system			ext4		/dev/block/system		flags=backup=1;wipeingui
/data			ext4		/dev/block/data			flags=backup=1;wipeduringfactoryreset;wipeingui
/misc			emmc		/dev/block/misc
/recovery		emmc		/dev/block/recovery		flags=backup=1
/databk			ext4		/dev/block/databk
/cache			ext4		/dev/block/cache		flags=backup=1;wipeduringfactoryreset;wipeingui
/sdcard			vfat		/dev/block/UDISK		flags=backup=1;storage;settingsstorage;display="Internal SDCard";wipeingui
/external_sd		vfat		/dev/block/mmcblk0p1		flags=backup=1;storage;display="External SDCard";wipeingui;removable
Drivers (lsmod):
Code:
Select Code
cdc_ether 2906 0 - Live 0x00000000
rtl8150 8154 0 - Live 0x00000000
mcs7830 4947 0 - Live 0x00000000
qf9700 5167 0 - Live 0x00000000
asix 12313 0 - Live 0x00000000
usbnet 12504 4 cdc_ether,mcs7830,qf9700,asix, Live 0x00000000
sunxi_csi1 27909 0 - Live 0x00000000
sunxi_csi0 28609 0 - Live 0x00000000
gc2035 12870 1 - Live 0x00000000
gc0308 10968 1 - Live 0x00000000
videobuf_dma_contig 3816 2 sunxi_csi1,sunxi_csi0, Live 0x00000000
videobuf_core 15283 3 sunxi_csi1,sunxi_csi0,videobuf_dma_contig, Live 0x00000000
mma7660 7318 0 - Live 0x00000000
ft5x_ts 66217 0 - Live 0x00000000  <-- Touchscreen
mali 183842 30 - Live 0x00000000 (O)
ump 29576 7 mali, Live 0x00000000 (O)
hdmi 22078 0 - Live 0x00000000
lcd 4126 0 - Live 0x00000000
disp 257984 14 mali,hdmi,lcd, Live 0x00000000
nand 132556 8 - Live 0x00000000 (O)
Source/device tree:
https://github.com/BlueMax/android_d...inners_wing_d9
Galaxy SIII I9300:
CM11 (Temasek)
Boeffla CM11 kernel
TWRP 2.7.1.0
XXUGMK6 Modem
The Following 8 Users Say Thank You to DualJoe For This Useful Post: [ Click to Expand ]
 
DualJoe
Old
(Last edited by DualJoe; 2nd November 2013 at 11:50 AM.)
#2  
DualJoe's Avatar
Senior Member - OP
Thanks Meter 491
Posts: 1,102
Join Date: Oct 2011
Location: DE
Changelog:

- v1.0: Initial release (TWRP v2.6.3.0)
- Instructions: Replaced partition names with aliases
Galaxy SIII I9300:
CM11 (Temasek)
Boeffla CM11 kernel
TWRP 2.7.1.0
XXUGMK6 Modem
 
gerstavros
Old
#3  
gerstavros's Avatar
Senior Member
Thanks Meter 96
Posts: 649
Join Date: May 2012
Location: Athens
Any way to copy stock recovery for backup?
 
DualJoe
Old
#4  
DualJoe's Avatar
Senior Member - OP
Thanks Meter 491
Posts: 1,102
Join Date: Oct 2011
Location: DE
Quote:
Originally Posted by gerstavros View Post
Any way to copy stock recovery for backup?
Yes, use this in Android.
Code:
Select Code
busybox dd if=/dev/block/recovery of=/sdcard/recovery-backup.img bs=1M
Galaxy SIII I9300:
CM11 (Temasek)
Boeffla CM11 kernel
TWRP 2.7.1.0
XXUGMK6 Modem
The Following User Says Thank You to DualJoe For This Useful Post: [ Click to Expand ]
 
gerstavros
Old
#5  
gerstavros's Avatar
Senior Member
Thanks Meter 96
Posts: 649
Join Date: May 2012
Location: Athens
Quote:
Originally Posted by DualJoe View Post
Yes, use this in Android.
Code:
Select Code
busybox dd if=/dev/block/recovery of=/sdcard/recovery-backup.img bs=1M
i found also Uberizer, for an easier way for simple users
 
dmonium
Old
#6  
dmonium's Avatar
Senior Member
Thanks Meter 145
Posts: 208
Join Date: Dec 2007
Location: Ambato

 
DONATE TO ME
Default Allwinner A20 9" 800x480

Hi mate
I have a Tablet brand name: Xtratech Tablet M905
SoC: Allwinner A20 (sun7i)
Android 4.2.2
Kernel 3.3
ARM Cortex A7 Dual Core 1.5 GHz
Display: 9" 800x480
RAM: 1GB
Nand: 16GB

Could you tell me if the information in this thread will work for my tablet?

Thanks so much...
ζΦ®d Đα®k ĐmΦηiμm.ςΦm

HTC One - 801s 64GB Black
ROM = MaximusHD 42.0.0 with Lyapota's modPack and more features DEVELOPED by myself
Base: 6.06.401.1
Android: 4.4.3
Sense: 6



HTC One X STOCK DEODEX Base 4.19.707.3
----DISCONTINUED
HTC Wildfire S EQDKP 5.0 Sense 3.5 - GB2.3.5 & Dmonium ONE RING LockScreen
HTC Wildfire DK Custom Froyo V4.7
HTC Touch HD Energy™ 6.5 & Dmonium Windows 7 Theme
HTC Touch P3450
 
DualJoe
Old
#7  
DualJoe's Avatar
Senior Member - OP
Thanks Meter 491
Posts: 1,102
Join Date: Oct 2011
Location: DE
Quote:
Originally Posted by dmonium View Post
Display: 9" 800x480
Probably too low. You might be unable to reach some buttons. Never tested that.
Galaxy SIII I9300:
CM11 (Temasek)
Boeffla CM11 kernel
TWRP 2.7.1.0
XXUGMK6 Modem
 
Quincux
Old
#8  
Quincux's Avatar
Senior Member
Thanks Meter 32
Posts: 433
Join Date: Jul 2010
Location: Santiago
Quote:
Originally Posted by DualJoe View Post
Probably too low. You might be unable to reach some buttons. Never tested that.
I have a no brand tablet with similar specifications. Any way to have a custom recovery?
HTC Inspire 4G
HTC Sensation
ASUS Transformer TF300T
HTC One
 
splatoid
Old
#9  
splatoid's Avatar
Senior Member
Thanks Meter 48
Posts: 472
Join Date: Mar 2011
Location: Vancouver
Hi there
I have been looking for something like this for my Cubietruck. There really is no one working on this on any of the Cubie forums. Here are the specs on this board.


CPU
Dual core ARM Cortex A7 processor, NEON, VFPv4, 512KB L2-Cache

GPU
Dual core ARM Mali400 MP2, 1 vertex shader, 2 fragment shaders, OpenGL ES 2.0

Memory
2GB DDR3 @480MHz

Video output
HDMI 1080p, VGA

Networking
10/100M/1G Ethernet, WiFi, Bluetooth



Internal storage
8GB NAND Flash

IO
2 x USB Host, 1 x MicroSD slot, 1 x SATA, 1 x IR sensor

Extended interfaces
54 extend pin interfaces to low level SOC functionality

Software
Android 4.2, Official Linux distribution available (not pre-installed)

Power
Requires regulated 5VDC 2A power supply with a 4.0mm(ext. diameter) x 1.7mm (int. diameter) barrel plug. Extra power may be required for some HDD
The version of Android is a striped down version. Im trying to get a custom recovery on this board. And an updated version of android.
Thanks

---------- Post added at 11:59 PM ---------- Previous post was at 11:58 PM ----------

Hi there
I have been looking for something like this for my Cubietruck. There really is no one working on this on any of the Cubie forums. Here are the specs on this board.


CPU
Dual core ARM Cortex A7 processor, NEON, VFPv4, 512KB L2-Cache

GPU
Dual core ARM Mali400 MP2, 1 vertex shader, 2 fragment shaders, OpenGL ES 2.0

Memory
2GB DDR3 @480MHz

Video output
HDMI 1080p, VGA

Networking
10/100M/1G Ethernet, WiFi, Bluetooth



Internal storage
8GB NAND Flash

IO
2 x USB Host, 1 x MicroSD slot, 1 x SATA, 1 x IR sensor

Extended interfaces
54 extend pin interfaces to low level SOC functionality

Software
Android 4.2, Official Linux distribution available (not pre-installed)

Power
Requires regulated 5VDC 2A power supply with a 4.0mm(ext. diameter) x 1.7mm (int. diameter) barrel plug. Extra power may be required for some HDD
The version of Android is a striped down version. Im trying to get a custom recovery on this board. And an updated version of android.
Thanks
 
max0r4axor
Old
#10  
Junior Member
Thanks Meter 0
Posts: 12
Join Date: Dec 2008
Default touch doesn't work

I got the recovery installed but the touch support isnt working

Tags
a20, allwinner, cwm, recovery, twrp
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes