Hi, My colleague met a very strange problem today, so I ask for help. There is an error when he run "make run/demo” in build directory, however, when he run "qemu-system-i386 -no-kvm -m 256 -serial mon:stdio -cdrom var/run/demo.iso" directly, it works successfully. Do you know why it happened? What should I do to fix that? Here is the details.
genode build completed using fiasco kernel /home/jimmy/work/os/genode/build/kernel/fiasco.oc/fiasco using sigma0/bootstrap at /home/jimmy/work/os/genode/build/l4 creating ISO image... spawn qemu-system-i386 -no-kvm -m 256 -serial mon:stdio -cdrom var/run/demo.iso
L4 Bootstrapper Build: #1 2014: spawn id exp6 not open while executing "expect { -i $running_spawn_id -re $wait_for_re { } eof { puts stderr "Error: Spawned process died unexpectedly"; exit -3 } timeout { puts ..." (procedure "wait_for_output" line 11) invoked from within "wait_for_output $wait_for_re $timeout_value $qemu_spawn_id" (procedure "spawn_qemu" line 51) invoked from within "spawn_qemu $wait_for_re $timeout_value" (procedure "run_genode_until" line 18) invoked from within "run_genode_until forever" (file "/home/jimmy/work/os/genode/genode-13.05/os/run/demo.run" line 139) invoked from within "source $include_name" ("foreach" body line 3) invoked from within "foreach include_name [get_cmd_arg --include ""] { puts "using run script $include_name" source $include_name }" (file "/home/jimmy/work/os/genode/genode-13.05/tool/run" line 730)
Cheers, keqin
Hello keqin,
Mon, Apr 28, 2014 at 08:52:21PM +0800, Sun Keqin wrote:
My colleague met a very strange problem today, so I ask for help. There is an error when he run "make run/demo” in build directory, however, when he run "qemu-system-i386 -no-kvm -m 256 -serial mon:stdio -cdrom var/run/demo.iso" directly, it works successfully. Do you know why it happened?
I'm not sure, but I guess the issue is related to your locale settings. I expect most developers to use some flavor of "en_*.utf8". What is your locale (run 'locale' in a shell please)?
What should I do to fix that?
Please try to run
LC_ALL=en_US.utf8 make run/printf
Does it work then?
Here is the details.
genode build completed using fiasco kernel /home/jimmy/work/os/genode/build/kernel/fiasco.oc/fiasco using sigma0/bootstrap at /home/jimmy/work/os/genode/build/l4 creating ISO image... spawn qemu-system-i386 -no-kvm -m 256 -serial mon:stdio -cdrom var/run/demo.iso
L4 Bootstrapper Build: #1 2014: spawn id exp6 not open
I just tried to reproduce what may happen with a Chinese locale und ran
LC_ALL=zh_CN.utf8 make run/printf
with the following output
L4 Bootstrapper Build: #1 2014年 04月 28日 星期一 16:45:05 CEST, x86-64, 4.7.2 ...
The character after '2014' is a Chinese symbol, which may confuse the expect tool or some other component of the run environment. But as I wrote before: I'm just guessing...
Regards
Hello,
I have a few question regarding genodes block cache in 14.02.
If understand it correctly on x86-based computers genode starts on top of linux. Therefore multiple caches will be used before something goes to genode a) the cache on a hdd b) cache on a drive controller c) the linux block cache d) qemu
The first one is about the scenario in which the block cache is used. Is the block cache only thought for embedded devices where genode runs nativly? Are all embeded devices usable with the cache?
Is there a way to mount a partition in genode with qemu without using caches from c) and d) ? Or is there a x86 hardware where genode can directly operate on?
As far as I have seen so far the disc cache of Linux does not seem to be disablable. I have only foudn ways to flush linux cache (like sync && echo 3
/proc/sys/vm/drop_caches).
Best regards, Wolfgang
Hi,
I tried to prepare a sd card for raspberry pi.
I used the commands from http://genode.org/documentation/release-notes/13.11 , and additionally installed fist lex, bison and svn (otherwise make -C libports prepare PKG=libc didn't work).
Now I'm a bit stuck. The Pi does not boot the image. It only shows a very colorful screen (the one which is normally shown if no os is on a sd card or no sd card is entered.
I used the archlinux iso and set in config the created genode.img.
Is there a way to find out what happens?
Best regards, Wolfgang
Hi Wolfgang,
On 04/28/2014 08:27 PM, w_schmidt@...181... wrote:
Hello,
I have a few question regarding genodes block cache in 14.02.
If understand it correctly on x86-based computers genode starts on top of linux.
well, that's not true. Yes, Genode is able to run on top of Linux, mostly for development purposes. But Genode runs also directly on x86 hardware using the NOVA kernel, or Fiasco.OC kernel, or the OKL4 kernel, or Pistachio kernel.
Therefore multiple caches will be used before something goes to genode a) the cache on a hdd b) cache on a drive controller c) the linux block cache
If running on Linux yes, but normally it wouldn't make much sense to use an additional block cache here.
d) qemu
As already said: you don't need to use Qemu. Most run scripts are starting Qemu by default, for convenience reasons only.
The first one is about the scenario in which the block cache is used. Is the block cache only thought for embedded devices where genode runs nativly? Are all embeded devices usable with the cache?
The block cache uses the block session of Genode. It uses exactly one block device, and serves exectly one client. As all block device drivers of Genode are implementing the block session interface, the block cache can be used on top of all block drivers, whether its a x86 AHCI driver, or MMC card driver of an ARM SoC, or whatever.
Is there a way to mount a partition in genode with qemu without using caches from c) and d) ? Or is there a x86 hardware where genode can directly operate on?
Qemu allows to define the caching policy of a hard drive (cache=none). I don't know whether it's possible to circumvent Linux block cache. I assume that's hard. But as mentioned above, you can use conventional x86 PC hardware.
Regards Stefan
As far as I have seen so far the disc cache of Linux does not seem to be disablable. I have only foudn ways to flush linux cache (like sync && echo 3
/proc/sys/vm/drop_caches).
Best regards, Wolfgang
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available. Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Genode-main mailing list Genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main