By this trivial toss for three days, the original is because I use the memory card + card sleeve of the way to burn, has been unsuccessful, the results today borrowed a large SD card on the success, record a burn write process. tiny6410 CD does not provide a button to burn the SD
The reading and writing of SD cards is the most common operation in the development of Android applications. The following describes the SD card read and write operation mode:
1. Get the root directory of SD card
Copy Code code as follows:
String sdcardroot
My cell phone SD card needs to be divided into two partitions, under the WINDOWXP.
The main problem is that Windows only knows the first partition of the SD card.
Someone used to modify the driver, let Windows recognize SD card as
Mounted SD card for Android simulator in Linux
1. Create an SD card:
~ /Gingerbread $ mksdcard-l mysdcard 256 m mysdcard. img
Create an SD card image file in the current directory named mysdcard. IMG. 256 MB indicates that the
I. Burn the bootloader into the SD card1. Format SD card (not mounted): fdisk/dev/sdx-d Delete-N New partition-W save exit 6~default sdx1Two ways to format: Mkfs-t vfat/dev/sdx1Mkfs.vfat/dev/sdx12. Burn the bootloader into the SD card: NOTE-no
Now the application is getting heavier, for example, and so on, a little bit of time, will occupy dozens of MB or even hundreds of megabytes of space. And sometimes even the phone will appear "no response" phenomenon, you need to choose "continue to wait" or "forcibly shut down", before the number of times, no response I directly to the forced restart, the results found that after the restart, "SD card is c
1String status =environment.getexternalstoragestate ();2 if(Status.equalsignorecase (environment.media_mounted)) {3Toast.maketext (Techolite. This, "SD card exists", Toast.length_long). Show ();4 //the SD is readable and writable at this time5}Else if(Status.equalsignorecase (environment.media_mounted_read_only)) {6Toast.maketext (Techolite. This, "Although
the underlying function is sd_init.
Simply let it return 0 in Disk_status, indicating success.
Disk_read can see that the input has four parameter values, namely the device type PDRV, the data buffer pointer buff, the sector address sector, and the number of sectors count. This shows that Disk_read can read more than one sector at a time, adding in the function body
for (cnt=0; cnt
Res =sd_readsingleblock (sector+cnt, buff+cnt*512);
if (res! = RES_OK) return res_error;
}
Similarly, this is also
The SD card contains four types:
SDSC: Standard capacity Card, sd1.1/1.0 specification, capacity 1MB-2GB, file format FAT32
SDHC: High capacity SD card, SD2.0 specification, capacity 4g-32g, file format is FAT32
SDXC: Capacity-enlarged secure memory
$WORK _dir/sunxi-tools/fex2bin Cubieboard2.fex Script.bin
So that the production of the necessary things are ready, the next is to put these copies to the TF card
When the A20 chip is on, it will read the 1M content in front of the SD card to get bootloader, so we need to write u-boot to the first 1M interval of the SD
When there is a built-in SD card and the shared SDcard feature is not turned on, some customer resources need to be provisioned in the SD card.These resources end user visible and can also be deleted. After the resource has been deleted by user, the factory reset function is performed and the provisioned resources need to be restored.1. Pre-provision the same res
will be SD card is inserted via card reader Virtual in-Machine , perform the following command detection Hanging on location. Mount | Grep/mediaUninstalling the SD cardsudo umount/dev/sdxxUse the "dd" command to clear the MRB and partition information:sudo dd if=/dev/zero of
Use SD card in Google Android SimulatorFrom the perspective of this document, the android simulator allows us to use a disk image in the FAT32 format as a simulation of the SD card. Today, I tried to record the process and share it with you:1. Go to the tools subdirectory under the android SDK directory and runMksdcard
An error occurred while mounting the SD card-Linux general technology-Linux technology and application information. For details, refer to the following. The SD card is inserted and the following information is detected:
Mmc0: new SD car
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.