Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
backupandrestore [2011/08/11 18:27]
ggrandou
backupandrestore [2012/02/20 18:01] (current)
turbooster code highlighting
Line 12: Line 12:
 Open a terminal and change to the following directory: linux4tegra/​nvflash Open a terminal and change to the following directory: linux4tegra/​nvflash
 the following command sends the vanilla bootloader into your device RAM (it will not overwrite anything) the following command sends the vanilla bootloader into your device RAM (it will not overwrite anything)
-# LD_LIBRARY_PATH=. ./nvflash --bl ../​prebuilt/​fastboot.stock.bin --go+ 
 +''​# LD_LIBRARY_PATH=. ./nvflash --bl ../​prebuilt/​fastboot.stock.bin --go''​ 
 the following command saves your disk partitioning (very important!) the following command saves your disk partitioning (very important!)
-# LD_LIBRARY_PATH=. ./nvflash -r --getpartitiontable partitiontable.txt+ 
 +''​# LD_LIBRARY_PATH=. ./nvflash -r --getpartitiontable partitiontable.txt''​ 
 use the following command with to save the partitions one by one to your harddisk (see Partition Layout for details) use the following command with to save the partitions one by one to your harddisk (see Partition Layout for details)
-# for i in $(seq 2 14); do LD_LIBRARY_PATH=. ./nvflash -r --read $i part-$i.img;​ done+ 
 +''​# for i in $(seq 2 14); do LD_LIBRARY_PATH=. ./nvflash -r --read $i part-$i.img;​ done''​ 
  
 You should endup with part-2.img, part-3.img [...] up to part-14.img,​ and partitiontable.txt. ​ You should endup with part-2.img, part-3.img [...] up to part-14.img,​ and partitiontable.txt. ​
Line 34: Line 40:
 Open a terminal and change to the following directory: linux4tegra/​nvflash Open a terminal and change to the following directory: linux4tegra/​nvflash
 Reload the vanilla bootloader using the following command: Reload the vanilla bootloader using the following command:
-# LD_LIBRARY_PATH=. ./nvflash --bl fastboot.bin --go+ 
 +''​# LD_LIBRARY_PATH=. ./nvflash --bl fastboot.bin --go''​ 
 For earch part-[PartitionId].img you want to restore, execute the following command: For earch part-[PartitionId].img you want to restore, execute the following command:
-# LD_LIBRARY_PATH=. ./nvflash -r --rawdevicewrite [StartSector] [NumSectors] part-[PartitionId].img+ 
 +''​# LD_LIBRARY_PATH=. ./nvflash -r --rawdevicewrite [StartSector] [NumSectors] part-[PartitionId].img''​ 
 Reboot your device. Reboot your device.
 I used rawdevicewrite for part4, and my bootloader ceased to work until I also restored part2. I used rawdevicewrite for part4, and my bootloader ceased to work until I also restored part2.
Log In