For image 20130513, how to backup NAND to SD, and make SD bootable?
2013-08-03 11:05
375 查看
转载自pcduino官网pcduino.com
features:
One of the most useful feature is that it allows us to backup the contents (program and data) in NAND to a SD card when the flash is full, and make the SD bootable. So we can easily move to a bigger SD card and continue our work.
The key function we are going to use is:
make_mmc_boot “Clone system from nand to mmc card”
This function will copy the entire content in NAND to a SD card. This is equivalent to flash a mmc-boot image. The benefit is that users still keep their own program/data. When the space of NAND is not enough,we can use the SD card to replace the system in
NAND.
In the original image 20130513, the above mentioned function is not there in board-config. We need to do an update in board-config to make it available.
There are two ways to run board-config. One is to run that after reset. The other is to run it in terminal.
In the following, we are going to use the second approach. We type:
$sudo board-config.sh
Next, we are going to choose ‘Update’:
Then we choose ‘config’:
After that, pcDuino will check for update:
Press ‘Y’, and after the update is down, exit and re-run:
$sudo board-config.sh
The option “make_mmc_boot” will display in the menu:
Plug in a SD card (16GB) to the SD slot, and press “ENTER”:
It takes some time to backup:
After a long wait, we will get the following message:
We reboot pcDuino, and check the storage space using
$df -h
“:
In the above figure, we can see that although the SD card is of capacity 16GB, it only shows up as 2GB.
We are going to use a script to expand the file system to the whole SD card
$wget https://s3.amazonaws.com/pcduino/SampleCode/System/expandFS/expand_sdcard_rootfs.s
$sudo bash ./expand_sdcard_rootfs.sh
After the expansion, we reboot pcDuino by:
$sudo reboot
After reboot, we run:
$ sudo resize2fs /dev/mmcblk0p2
Check the storage space again using
$df -h
We can see that we get a full access to the SD card.
相关文章推荐
- How to create and use SDCard image for Android emulator
- [Backup] How to build and use Pansenti / meta-pansenti for Gumstix Overo Ironstorm
- How To Install and Configure PHD Virtual Backup For Citrix XenServer
- [GUIDE] How to make a nandroid backup directly to your computer without using sdcard
- How to avoid common errors and make program efficient.
- a survey about how to make a file dynamically and offer it to download,but still not save the file!
- How to Make Portable Class Libraries Work for You
- How to upload and download image from habase?
- How to Modify the Password for SYSMAN and other Enterprise Manager Users at the OMS Level and Reposi
- How to Configure iOS for iPhone and iPad to Use So
- How to add a user and set environments for the user?
- An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to S
- How to Use JSONKit for iOS and the Rotten Tomatoes API
- How to reset password for cisco router and switch
- How to make a mask on a image
- How to make SD Card world wide writable
- Harder Monsters and More Levels: How To Make A Simple iPhone Game with Cocos2D Part 3
- RMAN-06025: no backup of archived log for thread X with sequence Y and starting SCN of Z found to re
- How to extract controlfiles, datafiles, and archived logs from SMR backupsets without using RMAN
- 转:Oracle how-to backup and recovery with RMAN