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.