I believe this does have something to do with the permissions, and, I'd say
the init.rc script is where you should do this anyhow.

On Sun, Mar 4, 2012 at 2:39 PM, Kirtika Ruchandani <[email protected]>wrote:

> Hi,
> @Gabe: Thanks - that gives me some clarity. You are probably right about
> Android being unhappy about my device.
>
>
> I used "mount -o loop /system/sdcard.img /mnt/sdcard" in my rcS file,
> where sdcard.img has been created using the Android SDK utility. The only
> guesses I can make about why this doesn't work is lack of root permission
> while executing the rcS or that Android's mount doesn't support mounting
> something that is not a block device.
> For now, I have shifted the mount command to init.rc instead. I would be
> grateful if someone more Android savvy could help me with the right way to
> do this.
>
> Regards,
> Kirtika
>
>
>
> On Sun, Mar 4, 2012 at 4:17 PM, Gabe Black <[email protected]> wrote:
>
>> The mount system call will be implemented by Android, not by gem5. The
>> system call implementations in gem5 are only used for system call
>> emulation when you're running a program but not the OS underneath it. I
>> don't know why your app is unhappy, but it might be from how you're
>> devices are hooked up or what kind of device they look like to Android.
>>
>> Gabe
>>
>> On 03/04/12 01:49, Kirtika Ruchandani wrote:
>> > Hi,
>> > I am trying to run some Android apps on gem5 that need the sdcard, and
>> > am confused about the support for mounting the sdcard. The source code
>> > shows the mount syscall is an 'unimplementedFunc', so what does
>> > /sbin/mount in the image do? There is also a /system/bin/mount which
>> > links to the Android toolbox utility.
>> > I tried using these commands  within my rcS script to mount an sdcard
>> > image created using the 'mksdcard' utility from the Android SDK, but
>> > they seem to get ignored, since my app. still complains about no
>> > sdcard.
>> > Is there a way to fake the existence of the sdcard to keep Android
>> > happy?  Is implementing support for the mount system call a tractable
>> > task?
>> > Regards,
>> > Kirtika
>> > _______________________________________________
>> > gem5-users mailing list
>> > [email protected]
>> > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>> _______________________________________________
>> gem5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
>
>
>
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
> --
> Thanks,
> Tony
>
>  <http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users>


 <http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to