Felhasználói eszközök

Eszközök a webhelyen


it:hackberry

metatag-robots=()

Hackberry A10

Video output

Firmware backup

./adb shell mkdir /sdcard/dump
./adb shell su -c "cat /dev/block/nanda > /sdcard/dump/bootloader.img"
./adb shell su -c "cat /dev/block/nandc > /sdcard/dump/boot.img"
./adb shell su -c "cat /dev/block/nandg > /sdcard/dump/recovery.img"
./adb shell su -c "cd /vendor && busybox tar cvf - * | gzip -c > /sdcard/dump/vendor.tgz"
./adb shell su -c "cd /dev && busybox tar cvf - * | gzip -c > /sdcard/dump/dev.tgz"
./adb shell su -c "cd /etc && busybox tar cvf - * | gzip -c > /sdcard/dump/etc.tgz"
./adb shell su -c "cd /sys && busybox tar cvf - * | gzip -c > /sdcard/dump/sys.tgz"
./adb shell su -c "cd /cache && busybox tar cvf - * | gzip -c > /sdcard/dump/cache.tgz"
./adb shell su -c "cd /acct && busybox tar cvf - * | gzip -c > /sdcard/dump/acct.tgz"
./adb shell su -c "cd /proc && busybox tar cvf - * | gzip -c > /sdcard/dump/proc.tgz"
./adb shell su -c "cd /sbin && busybox tar cvf - * | gzip -c > /sdcard/dump/sbin.tgz"
./adb shell su -c "cd /system && busybox tar cvf - * | gzip -c > /sdcard/dump/system.tgz"
./adb shell su -c "cd /data && busybox tar cvf - * | gzip -c > /sdcard/dump/data.tgz"
./adb pull /sdcard/dump dump

ADB

Install

  1. Install Java (OpenJDK 6 will do).
  2. Download SDK from [http://developer.android.com/sdk/index.html|Android Developer Site]
  3. create ~/Android
  4. extract tgz here
  5. rename android-sdk-linux to somethings short, e.g. sdk
  6. execute Android SDK Manager sdk/tools/android
  7. untick everything other than “Tools” :
  8. Click Install 2 packages

Use

ADB will be /platform-tools/adb

Wireless ADB

No USB connection needed.

Search for adb wireless on Google Play.

App named USB manager something has ADB Wireless option in Settings.

Fix MAC address

Start ADB Wireless on Hacberry, connet, get and mount nanda image:

 
 adb connect <ip:port>
 adb shell su -c "mkdir /sdcard/dump"
 adb shell su -c "cat /dev/block/nanda > /sdcard/dump/bootloader.img"
 adb pull /sdcard/dump/bootloader.img bootloader.img
 

Create a backup of athe bootloader.img, then mount it:

 
 sudo mount bootloader.img /mnt -t vfat -o loop=/dev/loop3
 

Download the A10 Linux Tools

Convert the script.bin to script.fex using the bin2fex tool.

Grab the currently generated MAC in Hackberry.

Edit script.fex file to hardcode a MAC address for the Ethernet interface: at the very end of the file where it says

[dynamic] 
 MAC = "000000000000" 

Change it to something like:

[dynamic]

MAC = "9E5264CD5822"

Reconvert the script.fex to script.bin with fex2bin.

Unmount image

 sudo umount /mnt 

Copy image back to device, and update nanda

 
 adb push bootloader.img /sdcard/dump/bootloader.img2
 adb shell su -c "cat /sdcard/dump/bootloader2.img > /dev/block/nanda"

OS Images for Allwinner A10

it/hackberry.txt · Utolsó módosítás: 2017/01/05 21:58 szerkesztette: rblst