Android2.3: load your SD card with can't mount/dev/block/mmcblk0

Source: Internet
Author: User

After the source code of 2.3 is downloaded and compiled, the boot simulator usually does not have a storage card (SD card) mounted, which leads to a problem: many tests that require the SD card cannot be done, for example, you want to use traceview to track your program (you need to generate a traceview file), operate images (How do you push images without a memory card), and some applications, such as camera, cannot be used.

Let's talk about the process:

First create your sdcard file: mksdcard 20 m sdcard_20m.img
Then open your start. sh file (you will download the source code, that is, the shell file used to start the simulator), followed by-sdcard. /sdcard/sdcard_name.img (this is the directory of your SD card)
Run. Start. Sh to start the android2.3 simulator.

Before entering the shell environment of the simulator, run the following command:

Mount-T vfat/dev/block/mmcblk0/mnt/sdcard.

The t parameter indicates the file type (vfat here). Remember, it can only be in the ADB shell environment. Otherwise, a series of problems such as Mount: mount point/mnt/sdcar does not exist may occur, this is because the system can only find the/mnt/sdcard directory under the operating system and directory. Many people will see the error "can't mount/dev/block/mmcblk0", that is, the file "/devblock/mmcblk0" is not found in the ADB shell environment, because there is also a Dev file in Linux, but there is no mmcblko file.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.