bdpart and qemu
Simon Perreault
simon.perreault at viagenie.ca
Thu Dec 2 21:38:04 UTC 2010
Hello,
I'm trying to mount a filesystem from inside qemu. I run qemu exactly as
described on the wiki [1]:
$ qemu -hda fat:/home/simon/qemu/hd ...
In my code I do this:
==============
static void *
POSIX_Init(void *arg UNUSED)
{
rtems_status_code status;
if ((status = rtems_bdpart_register_from_disk("/dev/ide0"))
!= RTEMS_SUCCESSFUL) {
printf("cannot read partition table from /dev/ide0\n");
exit(-1);
}
...
#define CONFIGURE_APPLICATION_NEEDS_IDE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_LIBBLOCK
...
==============
And I see this when I execute:
==============
Initialized console on port COM1 9600-8-N-1
IDE0:master:QEMU HARDDISK, 516.0M (16/1152/56), max blk size:8192
cannot read partition table from /dev/ide0
==============
I verified that the /dev/ide0 device exists.
Any idea what might be going on? Does qemu create a partition table with
these flags?
Thanks,
Simon
[1] http://rtems.org/wiki/index.php/QEMU#Running_RTEMS_TCP.2FIP_Applications
--
DTN made easy, lean, and smart --> http://postellation.viagenie.ca
NAT64/DNS64 open-source --> http://ecdysis.viagenie.ca
STUN/TURN server --> http://numb.viagenie.ca
More information about the users
mailing list