Difference between revisions of "Rock/backup"
< Rock
(→Backup nand partitions) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{rock_header}} | ||
{{Languages|rock/backup}} | {{Languages|rock/backup}} | ||
Line 7: | Line 8: | ||
sudo apt-get install libusb-1.0-0-dev | sudo apt-get install libusb-1.0-0-dev | ||
git clone https://github.com/linux-rockchip/rkflashtool | git clone https://github.com/linux-rockchip/rkflashtool | ||
+ | cd rkflashtool | ||
make | make | ||
Line 13: | Line 15: | ||
sudo ./rkflashtool p > parameter #fetch parameters | sudo ./rkflashtool p > parameter #fetch parameters | ||
− | open parameter file and check out all the partitions. It's like this mtdparts=rk29xxnand:0x00008000@0x00002000(boot),-@0x0000A000(linuxroot) | + | open parameter file and check out all the partitions. It's like this mtdparts=rk29xxnand:0x00008000@0x00002000('''boot'''),-@0x0000A000('''linuxroot''') |
rkflashtool r boot > boot.img | rkflashtool r boot > boot.img | ||
Line 19: | Line 21: | ||
Now you have the parameter and the image for all partitions. | Now you have the parameter and the image for all partitions. | ||
+ | |||
+ | A more step by step backup and restore guide can be found at [[Backup_and_deploy]]. | ||
== Android Backup == | == Android Backup == | ||
Check out [[Rock/Android_backup | Android backup]] | Check out [[Rock/Android_backup | Android backup]] | ||
+ | |||
+ | [[Category:Rock]] |
Latest revision as of 09:35, 24 June 2015
Backup nand partitions
We can backup the nand flash partitions on PC via the USB otg port with rkflashtool.
sudo apt-get install libusb-1.0-0-dev git clone https://github.com/linux-rockchip/rkflashtool cd rkflashtool make
Put your device into Loader Mode and run the following command
sudo ./rkflashtool p > parameter #fetch parameters
open parameter file and check out all the partitions. It's like this mtdparts=rk29xxnand:0x00008000@0x00002000(boot),-@0x0000A000(linuxroot)
rkflashtool r boot > boot.img rkflashtool r linuxroot > linuxroot.ext4 # This will take a long time
Now you have the parameter and the image for all partitions.
A more step by step backup and restore guide can be found at Backup_and_deploy.
Android Backup
Check out Android backup