well .. I wish it was the reason !! $ ls -l out/target/product/generic/sdcard* -rwxrwxrwx 1 mankapur mankapur 67108864 2009-05-01 16:56 out/target/product/generic/sdcard.img -rw------- 1 mankapur mankapur 6 2009-05-04 11:22 out/target/product/generic/sdcard.img.lock
On Mon, May 4, 2009 at 12:55 PM, swarup <[email protected]> wrote: > > well, just a small test shows that when sdcard.img file is RO, it is > not shown in the mount list. > check the below o/p i got from my set up. > > =========================================== > [swa...@~/.android/avd/mydev.avd/]% chmod -w sdcard.img > > [swa...@~/.android/avd/mydev.avd/]% ls -l > > -r--r--r-- 1 swarup swarup 134217728 2009-04-30 23:36 sdcard.img > -rw------- 1 swarup swarup 5 2009-05-05 00:44 sdcard.img.lock > > [swa...@~/.android/avd/mydev.avd/]% emu #run emulator > > [swa...@~/.android/avd/mydev.avd/]% adb shell mount > > rootfs / rootfs ro 0 0 > tmpfs /dev tmpfs rw,mode=755 0 0 > devpts /dev/pts devpts rw,mode=600 0 0 > proc /proc proc rw 0 0 > sysfs /sys sysfs rw 0 0 > tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0 > /dev/block/mtdblock0 /system yaffs2 ro 0 0 > /dev/block/mtdblock1 /data yaffs2 rw,nosuid,nodev 0 0 > /dev/block/mtdblock2 /cache yaffs2 rw,nosuid,nodev 0 0 > > [swa...@~/.android/avd/mydev.avd/]% chmod +w sdcard.img > > [swa...@~/.android/avd/mydev.avd/]% ls -l > > -rw-r--r-- 1 swarup swarup 134217728 2009-04-30 23:36 sdcard.img > -rw------- 1 swarup swarup 6 2009-05-05 01:14 sdcard.img.lock > > [swa...@~/.android/avd/mydev.avd/]% emu #run emulator > > [swa...@~/.android/avd/mydev.avd/]% adb shell mount > > rootfs / rootfs ro 0 0 > tmpfs /dev tmpfs rw,mode=755 0 0 > devpts /dev/pts devpts rw,mode=600 0 0 > proc /proc proc rw 0 0 > sysfs /sys sysfs rw 0 0 > tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0 > /dev/block/mtdblock0 /system yaffs2 ro 0 0 > /dev/block/mtdblock1 /data yaffs2 rw,nosuid,nodev 0 0 > /dev/block/mtdblock2 /cache yaffs2 rw,nosuid,nodev 0 0 > /dev/block//vold/179:0 /sdcard vfat > > rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0700,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8 > 0 0 > > [swa...@~/.android/avd/mydev.avd/]% > > =========================================== > On May 5, 12:42 am, swarup <[email protected]> wrote: > > yes Marco, you are write, even for RO sdcard.img files, it should be > > visible for 'mount' command. > > recreation of the sdcard.img might help in resolving the issue. > > > > On May 5, 12:21 am, Marco Nelissen <[email protected]> wrote: > > > > > As long as you run the emulator as the user 'owner', it should be > writable. > > > And again: the problem is not that it's mounted read-only, it's that > it's > > > not mounted at all. > > > Your dmesg seems to indicate that no partition was found in your image. > What > > > does the system log say? (logcat) > > > > > On Mon, May 4, 2009 at 12:18 PM, swarup <[email protected]> wrote: > > > > > > check the permissions of the ./sdcard.img file. > > > > does it have write permission?? > > > > > > -rw-r--r-- 1 owner owner 134217728 2009-04-30 23:36 sdcard.img > > > > > > On May 4, 11:59 pm, dan raaka <[email protected]> wrote: > > > > > Here goes the dmesg log > > > > > > > $ adb shell dmesg > > > > > <5>Linux version 2.6.27-00110-g132305e ( > > > > [email protected]) > > > > > (gcc version 4.2.1) #6 Mon Feb 2 12:47:38 PST 2009 > > > > > <4>CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00093177 > > > > > <4>Machine: Goldfish > > > > > <4>Memory policy: ECC disabled, Data cache writeback > > > > > <7>On node 0 totalpages: 24576 > > > > > <7>free_area_init_node: node 0, pgdat c0294734, node_mem_map > c031e000 > > > > > <7> DMA zone: 24384 pages, LIFO batch:3 > > > > > <4>CPU0: D VIVT write-through cache > > > > > <4>CPU0: I cache: 4096 bytes, associativity 4, 32 byte lines, 32 > sets > > > > > <4>CPU0: D cache: 65536 bytes, associativity 4, 32 byte lines, 512 > sets > > > > > <4>Built 1 zonelists in Zone order, mobility grouping on. Total > pages: > > > > > 24384 > > > > > <5>Kernel command line: qemu=1 console=ttyS0 android.checkjni=1 > > > > > android.qemud=ttyS1 android.ndns=1 > > > > > <3>Unknown boot option `android.checkjni=1': ignoring > > > > > <3>Unknown boot option `android.qemud=ttyS1': ignoring > > > > > <3>Unknown boot option `android.ndns=1': ignoring > > > > > <4>PID hash table entries: 512 (order: 9, 2048 bytes) > > > > > <4>Console: colour dummy device 80x30 > > > > > <6>Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) > > > > > <6>Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) > > > > > <6>Memory: 96MB = 96MB total > > > > > <5>Memory: 94040KB available (2408K code, 640K data, 104K init) > > > > > <6>Calibrating delay loop... 104.65 BogoMIPS (lpj=523264) > > > > > <4>Mount-cache hash table entries: 512 > > > > > <6>CPU: Testing write buffer coherency: ok > > > > > <6>net_namespace: 288 bytes > > > > > <6>NET: Registered protocol family 16 > > > > > <7>Switched to high resolution mode on CPU 0 > > > > > <6>NET: Registered protocol family 2 > > > > > <6>IP route cache hash table entries: 1024 (order: 0, 4096 bytes) > > > > > <6>TCP established hash table entries: 4096 (order: 3, 32768 bytes) > > > > > <6>TCP bind hash table entries: 4096 (order: 2, 16384 bytes) > > > > > <6>TCP: Hash tables configured (established 4096 bind 4096) > > > > > <6>TCP reno registered > > > > > <6>NET: Registered protocol family 1 > > > > > <6>checking if image is initramfs... it is > > > > > <6>Freeing initrd memory: 142K > > > > > <4>goldfish_new_pdev goldfish_interrupt_controller at ff000000 irq > -1 > > > > > <4>goldfish_new_pdev goldfish_device_bus at ff001000 irq 1 > > > > > <4>goldfish_new_pdev goldfish_timer at ff003000 irq 3 > > > > > <4>goldfish_new_pdev goldfish_rtc at ff010000 irq 10 > > > > > <4>goldfish_new_pdev goldfish_tty at ff002000 irq 4 > > > > > <4>goldfish_new_pdev goldfish_tty at ff011000 irq 11 > > > > > <4>goldfish_new_pdev smc91x at ff012000 irq 12 > > > > > <4>goldfish_new_pdev goldfish_fb at ff013000 irq 13 > > > > > <4>goldfish_new_pdev goldfish_audio at ff004000 irq 14 > > > > > <4>goldfish_new_pdev goldfish_mmc at ff005000 irq 15 > > > > > <4>goldfish_new_pdev goldfish_memlog at ff006000 irq -1 > > > > > <4>goldfish_new_pdev goldfish-battery at ff014000 irq 16 > > > > > <4>goldfish_new_pdev goldfish_events at ff015000 irq 17 > > > > > <4>goldfish_new_pdev goldfish_nand at ff016000 irq -1 > > > > > <4>goldfish_new_pdev goldfish-switch at ff017000 irq 18 > > > > > <4>goldfish_new_pdev goldfish-switch at ff018000 irq 19 > > > > > <4>goldfish_pdev_worker registered goldfish-switch > > > > > <4>goldfish_pdev_worker registered goldfish-switch > > > > > <4>goldfish_pdev_worker registered goldfish_nand > > > > > <4>goldfish_pdev_worker registered goldfish_events > > > > > <4>goldfish_pdev_worker registered goldfish-battery > > > > > <4>goldfish_pdev_worker registered goldfish_memlog > > > > > <4>goldfish_pdev_worker registered goldfish_mmc > > > > > <4>goldfish_audio_probe > > > > > <4>goldfish_pdev_worker registered goldfish_audio > > > > > <4>goldfish_pdev_worker registered goldfish_fb > > > > > <4>goldfish_pdev_worker registered smc91x > > > > > <4>goldfish_pdev_worker registered goldfish_tty > > > > > <4>goldfish_pdev_worker registered goldfish_tty > > > > > <4>goldfish_pdev_worker registered goldfish_rtc > > > > > <4>goldfish_pdev_worker registered goldfish_timer > > > > > <4>goldfish_pdev_worker registered goldfish_device_bus > > > > > <4>goldfish_pdev_worker registered goldfish_interrupt_controller > > > > > <6>ashmem: initialized > > > > > <6>Installing knfsd (copyright (C) 1996 [email protected]). > > > > > <4>yaffs Feb 2 2009 12:47:30 Installing. > > > > > <6>msgmni has been set to 184 > > > > > <6>io scheduler noop registered > > > > > <6>io scheduler anticipatory registered (default) > > > > > <6>io scheduler deadline registered > > > > > <6>io scheduler cfq registered > > > > > <4>allocating frame buffer 320 * 480, got ffc10000 > > > > > <4>Console: switching to colour frame buffer device 40x30 > > > > > <6>console [ttyS0] enabled > > > > > <6>brd: module loaded > > > > > <6>loop: module loaded > > > > > <6>nbd: registered device at major 43 > > > > > <6>logger: created 64K log 'log_main' > > > > > <6>logger: created 256K log 'log_events' > > > > > <6>logger: created 64K log 'log_radio' > > > > > <4>smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <[email protected]> > > > > > <4>No set_type function for IRQ 12 (goldfish) > > > > > <4>eth0: SMC91C11xFD (rev 1) at c6800000 IRQ 12 [nowait] > > > > > <4>eth0: Ethernet addr: 52:54:00:12:34:56 > > > > > <7>eth0: No PHY found > > > > > <4>goldfish nand dev0: size 4000000, page 2048, extra 64, erase > 131072 > > > > > <4>goldfish nand dev1: size 4000000, page 2048, extra 64, erase > 131072 > > > > > <4>goldfish nand dev2: size 4000000, page 2048, extra 64, erase > 131072 > > > > > <6>mice: PS/2 mouse device common for all mice > > > > > <4>*** events probe *** > > > > > <4>events_probe() addr=0xc6804000 irq=17 > > > > > <4>events_probe() keymap=qwerty2 > > > > > <6>input: qwerty2 as /devices/virtual/input/input0 > > > > > <6>goldfish_rtc goldfish_rtc: rtc core: registered goldfish_rtc as > rtc0 > > > > > <6>mmc0: new SD card at address e118 > > > > > <6>mmcblk0: mmc0:e118 SU02G 65536KiB > > > > > <6> mmcblk0: > > > > > <6>IPv4 over IPv4 tunneling driver > > > > > <6>GRE over IPv4 tunneling driver > > > > > <6>TCP cubic registered > > > > > <6>NET: Registered protocol family 17 > > > > > <6>RPC: Registered udp transport module. > > > > > <6>RPC: Registered tcp transport module. > > > > > <6>802.1Q VLAN Support v1.8 Ben Greear <[email protected]> > > > > > <6>All bugs added by David S. Miller <[email protected]> > > > > > <6>VFP support v0.3: implementor 41 architecture 1 part 10 variant > 9 rev > > > > 0 > > > > > <6>goldfish_rtc goldfish_rtc: setting system clock to 2009-05-04 > 18:22:33 > > > > > UTC (1241461353) > > > > > <6>Freeing init memory: 104K > > > > > <3>init: cannot open '/initlogo.rle' > > > > > <6>yaffs: dev is 32505856 name is "mtdblock0" > > > > > <6>yaffs: passed flags "" > > > > > <4>yaffs: Attempting MTD mount on 31.0, "mtdblock0" > > > > > <4>yaffs_read_super: isCheckpointed 0 > > > > > <4>save exit: isCheckpointed 1 > > > > > <6>yaffs: dev is 32505857 name is "mtdblock1" > > > > > <6>yaffs: passed flags "" > > > > > <4>yaffs: Attempting MTD mount on 31.1, "mtdblock1" > > > > > <4>yaffs_read_super: isCheckpointed 0 > > > > > <6>yaffs: dev is 32505858 name is "mtdblock2" > > > > > <6>yaffs: passed flags "" > > > > > <4>yaffs: Attempting MTD mount on 31.2, "mtdblock2" > > > > > <4>yaffs_read_super: isCheckpointed 0 > > > > > <3>init: cannot find '/system/bin/playmp3', disabling 'bootsound' > > > > > <6>eth0: link up > > > > > <6>warning: `rild' uses 32-bit capabilities (legacy support in use) > > > > > <4>select 651 (app_process), adj 15, size 3194, to kill > > > > > <4>select 861 (app_process), adj 15, size 3547, to kill > > > > > <4>send sigkill to 861 (app_process), adj 15, size 3547 > > > > > <4>select 741 (app_process), adj 15, size 2916, to kill > > > > > <4>send sigkill to 741 (app_process), adj 15, size 2916 > > > > > <4>select 1301 (app_process), adj 15, size 4149, to kill > > > > > <4>send sigkill to 1301 (app_process), adj 15, size 4149 > > > > > > > On Mon, May 4, 2009 at 11:53 AM, Marco Nelissen < > [email protected]> > > > > wrote: > > > > > > Look in the system log or dmesg. > > > > > > > > On Mon, May 4, 2009 at 11:39 AM, dan raaka <[email protected]> > wrote: > > > > > > > >> Well the verbose output from the emulator doesn't show anything > > > > obvious > > > > > > > >> $ emulator -sdcard ./sdcard.img -scale 0.75 -verbose& > > > > > >> [2] 21528 > > > > > >> emulator: found Android build root: > > > > /home/danraaka/BuildDir/cupcakeFinal > > > > > >> emulator: found Android build out: > > > > > >> /home/danraaka/BuildDir/cupcakeFinal/out/target/product/generic > > > > > >> emulator: locking user data image at > > > > > > > /home/danraaka/BuildDir/cupcakeFinal/out/target/product/generic/userdata-qemu.img > > > > > >> emulator: locking SD Card image at ./sdcard.img > > > > > >> emulator: selecting default skin name 'HVGA' > > > > > >> emulator: autoconfig: -skin HVGA > > > > > >> emulator: autoconfig: -skindir > > > > > >> /home/danraaka/BuildDir/cupcakeFinal/development/emulator/skins > > > > > >> emulator: keyset loaded from: > /home/danraaka/.android/default.keyset > > > > > >> emulator: trying to load skin file > > > > > > > '/home/danraaka/BuildDir/cupcakeFinal/development/emulator/skins/HVGA/layout > > > > > >> ' > > > > > >> emulator: skin network speed: 'full' > > > > > >> emulator: skin network delay: 'none' > > > > > >> emulator: argv[00] = "emulator" > > > > > >> emulator: argv[01] > > > > ... > > > > read more ยป > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

