[OE-core] Error running QEMU with oe-core / angstrom console-image, hwclock: can't open '/dev/misc/rtc' : No such file or directory

Khem Raj raj.khem at gmail.com
Mon Aug 8 17:23:57 UTC 2011


On Mon, Aug 8, 2011 at 2:27 AM, Samuel Stirtzel
<s.stirtzel at googlemail.com> wrote:
> 2011/8/5 Khem Raj <raj.khem at gmail.com>:
>> It means QEMUOPTIONS is empty in your case because you are sing ext2
>> image. It supports ext3 and btrfs
>>
>> but it should be easy to add ext2 to mix. Can you try something like below
>>
>> diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
>> index c15632d..64635df 100755
>> - --- a/scripts/runqemu-internal
>> +++ b/scripts/runqemu-internal
>> @@ -277,7 +277,7 @@ if [ "$MACHINE" = "qemuarm" -o "$MACHINE" =
>> "qemuarmv6" -o "$MACHINE" = "qemuarm
>>     MACHINE_SUBTYPE=versatilepb
>>     QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS"
>>     # QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS -force-pointer"
>> - -    if [ "$FSTYPE" = "ext3" -o "$FSTYPE" = "btrfs" ]; then
>> +    if [ "$FSTYPE" = "ext3" -o "$FSTYPE" = "btrfs" -o "$FSTYPE" =
>> "ext2" ]; then
>>         KERNCMDLINE="root=/dev/sda rw console=ttyAMA0,115200
>> console=tty $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY hi
>>         QEMUOPTIONS="$QEMU_NETWORK_CMD -M versatilepb -hda $ROOTFS
>> - -no-reboot $QEMU_UI_OPTIONS"
>>     fi
>>
> This patch didn't work for me, git and patch asserted that it's malformed:

ofcouse it was meant to be a hint not cooked patch

> -
> samuel at S-Stirtzel-Linux:/var/oe-core/setup-scripts/sources/openembedded-core$
> git apply /home/samuel/Downloads/runqemu-initial.diff
> fatal: patch with only garbage at line 3
> samuel at S-Stirtzel-Linux:/var/oe-core/setup-scripts/sources/openembedded-core$
> patch -p0 < /home/samuel/Downloads/runqemu-initial.diff
> patching file scripts/runqemu-internal
> patch: **** malformed patch at line 6: "qemuarmv6" -o "$MACHINE" = "qemuarm
> -
>
> After I got this done, executing runqemu shows this error:
> -
> samuel at S-Stirtzel-Linux:/var/oe-core/setup-scripts/sources/openembedded-core$
> runqemu /var/oe-core/tmp-eglibc/deploy/images/qemuarm/zImage-qemuarm.bin
> /var/oe-core/tmp-eglibc/deploy/images/qemuarm/console-image-qemuarm.ext2
> Set MACHINE to [qemuarm] based on kernel
> [/var/oe-core/tmp-eglibc/deploy/images/qemuarm/zImage-qemuarm.bin]
>
> Continuing with the following parameters:
> KERNEL: [/var/oe-core/tmp-eglibc/deploy/images/qemuarm/zImage-qemuarm.bin]
> ROOTFS: [/var/oe-core/tmp-eglibc/deploy/images/qemuarm/console-image-qemuarm.ext2]
> FSTYPE: [ext2]
> Setting up tap interface under sudo
> [sudo] password for samuel:
> Acquiring lockfile for tap0...
> /var/oe-core/setup-scripts/sources/openembedded-core/scripts/runqemu-internal:
> Line 280: [: Too many arguments.
> Error: Unable to support this combination of options
> Set 'tap0' nonpersistent
> Releasing lockfile of preconfigured tap device 'tap0'
> -
>
> Ext3 works with the script (reverted the patch), but it seems that i
> can't connect my machine (host) to the internet as long as QEMU runs.

Doesn't happen here where latest snapshot. I can access internet from both
guest and host equally well.

> Can't try if the guest can access the internet or communicate with the
> host since it looks like systemd patches broke some init related
> stuff.
>
>
> Regards
> Samuel
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>




More information about the Openembedded-core mailing list