Discussion:
compiling genode with Virtual box tiny core Linux
Janardhan
2017-04-20 07:10:03 UTC
Permalink
Hi,

I am trying to compile genode with the support of virtual box and tiny core Linux .While compiling i am getting below error

library dependencies...
Library cxx
Library alarm
Library timed_semaphore
Library config
Library startup-nova
Library base-nova-common
Library base-nova
Library ldso-startup
Library ld-nova
Program lib/ld/nova/ld-nova
Program kernel/nova/hypervisor
make[1]: Leaving directory `/home/janardhan/genode/build/nova_x86_64'
genode build completed
using 'ld-nova.lib.so' as 'ld.lib.so'
using 'nova_timer_drv' as 'timer'
cp: cannot stat ‘bin/virtualbox-nova’: No such file or directory
while executing
"exec cp bin/[kernel_specific_binary $binary] [run_dir]/genode/$binary"
(procedure "copy_and_strip_genode_binaries_to_run_dir" line 4)
invoked from within
"copy_and_strip_genode_binaries_to_run_dir $modules"
(procedure "build_core_image" line 8)
invoked from within
"build_core_image $binaries"
(procedure "run_boot_dir" line 12)
invoked from within
"run_boot_dir $binaries"
(procedure "build_boot_image" line 2)
invoked from within
"build_boot_image $boot_modules"
(file "/home/janardhan/genode/repos/ports/run/virtualbox.run" line 181)
invoked from within
"source $include_name"
("foreach" body line 6)
invoked from within
"foreach include_name [get_cmd_arg --include ""] {
# first check if the include name is absolute
if {[string first "/" $include_name] == 0} {
puts ..."
(file "/home/janardhan/genode/tool/run/run" line 809)
make: *** [run/virtualbox] Error 1

Can any one help?
Christian Helmuth
2017-04-20 08:46:53 UTC
Permalink
Hello Janardhan,

welcome to the list. Please find my answer below the quoted text.

On Thu, Apr 20, 2017 at 07:10:03AM +0000, Janardhan wrote:
> I am trying to compile genode with the support of virtual box and tiny core Linux .While compiling i am getting below error
>
> library dependencies...
> Library cxx
> Library alarm
> Library timed_semaphore
> Library config
> Library startup-nova
> Library base-nova-common
> Library base-nova
> Library ldso-startup
> Library ld-nova
> Program lib/ld/nova/ld-nova
> Program kernel/nova/hypervisor
> make[1]: Leaving directory `/home/janardhan/genode/build/nova_x86_64'
> genode build completed
> using 'ld-nova.lib.so' as 'ld.lib.so'
> using 'nova_timer_drv' as 'timer'
> cp: cannot stat ‘bin/virtualbox-nova’: No such file or directory

Unfortunately, your log is incomplete but I expect it states some
skipped targets. The reason may be a missing repository (like you also
experienced with x86emu). In this case, you may enable the ports
repository in etc/build.conf, prepare the virtualbox port, and
rebuild. If it still not works please post a complete build log.

Regards
--
Christian Helmuth
Genode Labs

https://www.genode-labs.com/ · https://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Janardhan
2017-04-20 11:30:34 UTC
Permalink
Hi Christian Helmuth,


I enabled ports repository in etc/build.conf file,but still i am getting below error.


Program core/nova/core
make[1]: Leaving directory `/home/janardhan/genode/build/nova_x86_64'
genode build completed
building targets: lib/ld/nova kernel
spawn make lib/ld/nova kernel
make[1]: Entering directory `/home/janardhan/genode/build/nova_x86_64'
checking library dependencies...
Library cxx
Library alarm
Library timed_semaphore
Library config
Library startup-nova
Library base-nova-common
Library base-nova
Library ldso-startup
Library ld-nova
Program lib/ld/nova/ld-nova
Program kernel/nova/hypervisor
make[1]: Leaving directory `/home/janardhan/genode/build/nova_x86_64'
genode build completed
using 'ld-nova.lib.so' as 'ld.lib.so'
using 'nova_timer_drv' as 'timer'
cp: cannot stat ‘bin/virtualbox-nova’: No such file or directory
while executing
"exec cp bin/[kernel_specific_binary $binary] [run_dir]/genode/$binary"
(procedure "copy_and_strip_genode_binaries_to_run_dir" line 4)
invoked from within
"copy_and_strip_genode_binaries_to_run_dir $modules"
(procedure "build_core_image" line 8)
invoked from within
"build_core_image $binaries"
(procedure "run_boot_dir" line 12)
invoked from within
"run_boot_dir $binaries"
(procedure "build_boot_image" line 2)
invoked from within
"build_boot_image $boot_modules"
(file "/home/janardhan/genode/repos/ports/run/virtualbox.run" line 181)
invoked from within
"source $include_name"
("foreach" body line 6)
invoked from within
"foreach include_name [get_cmd_arg --include ""] {
# first check if the include name is absolute
if {[string first "/" $include_name] == 0} {
puts ..."
(file "/home/janardhan/genode/tool/run/run" line 809)
make: *** [run/virtualbox] Error 1


Regards,

Janardhan.V


________________________________
From: Christian Helmuth <***@genode-labs.com>
Sent: Thursday, April 20, 2017 2:16:53 PM
To: genode-***@lists.sourceforge.net
Subject: Re: compiling genode with Virtual box tiny core Linux

Hello Janardhan,

welcome to the list. Please find my answer below the quoted text.

On Thu, Apr 20, 2017 at 07:10:03AM +0000, Janardhan wrote:
> I am trying to compile genode with the support of virtual box and tiny core Linux .While compiling i am getting below error
>
> library dependencies...
> Library cxx
> Library alarm
> Library timed_semaphore
> Library config
> Library startup-nova
> Library base-nova-common
> Library base-nova
> Library ldso-startup
> Library ld-nova
> Program lib/ld/nova/ld-nova
> Program kernel/nova/hypervisor
> make[1]: Leaving directory `/home/janardhan/genode/build/nova_x86_64'
> genode build completed
> using 'ld-nova.lib.so' as 'ld.lib.so'
> using 'nova_timer_drv' as 'timer'
> cp: cannot stat ‘bin/virtualbox-nova’: No such file or directory

Unfortunately, your log is incomplete but I expect it states some
skipped targets. The reason may be a missing repository (like you also
experienced with x86emu). In this case, you may enable the ports
repository in etc/build.conf, prepare the virtualbox port, and
rebuild. If it still not works please post a complete build log.

Regards
--
Christian Helmuth
Genode Labs

https://www.genode-labs.com/ · https://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
GeschÀftsfÌhrer: Dr.-Ing. Norman Feske, Christian Helmuth

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
genode-main mailing list
genode-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main
Christian Helmuth
2017-04-20 12:42:09 UTC
Permalink
Hello Janardhan,

On Thu, Apr 20, 2017 at 11:30:34AM +0000, Janardhan wrote:
> I enabled ports repository in etc/build.conf file,but still i am getting below error.

Again, please post a complete build log incl. your "make" command
line.

Greets
--
Christian Helmuth
Genode Labs

https://www.genode-labs.com/ · https://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Janardhan
2017-04-20 12:54:30 UTC
Permalink
Hi Christian Helmuth,


The complete log is


make run/virtualbox
including /home/janardhan/genode/tool/run/power_on/qemu
including /home/janardhan/genode/tool/run/log/qemu
including /home/janardhan/genode/tool/run/image/iso
including /home/janardhan/genode/tool/run/boot_dir/nova
including /home/janardhan/genode/repos/ports/run/virtualbox.run
building targets: core init drivers/framebuffer drivers/timer virtualbox drivers/input server/log_terminal drivers/rtc drivers/platform drivers/acpi server/report_rom drivers/platform/spec/x86/device_pd
spawn make core init drivers/framebuffer drivers/timer virtualbox drivers/input server/log_terminal drivers/rtc drivers/platform drivers/acpi server/report_rom drivers/platform/spec/x86/device_pd
make[1]: Entering directory `/home/janardhan/genode/build/nova_x86_64'
checking library dependencies...
Skip target drivers/framebuffer/spec/exynos because it requires exynos
Skip target drivers/framebuffer/spec/imx53 because it requires imx53
Skip target drivers/framebuffer/spec/omap4 because it requires omap4
Skip target drivers/framebuffer/spec/pl11x/pbxa9 because it requires pl11x pbxa9
Skip target drivers/framebuffer/spec/rpi because it requires rpi
Skip target drivers/framebuffer/spec/sdl because it requires linux sdl
Skip target drivers/input/spec/imx53 because it requires imx53
Skip target drivers/input/spec/ps2/pl050 because it requires pl050
Skip target drivers/platform/spec/arndale because it requires arndale
Skip target drivers/platform/spec/imx53 because it requires imx53
Skip target drivers/platform/spec/odroid_x2 because it requires odroid_x2
Skip target drivers/platform/spec/rpi because it requires rpi
Skip target drivers/timer/fiasco because it requires fiasco
Skip target drivers/timer/foc because it requires foc
Skip target drivers/timer/hw because it requires hw
Skip target drivers/timer/linux because it requires linux
Skip target virtualbox/muen because it requires muen
Library-description file libc.mk is missing
Library-description file libm.mk is missing
Library-description file libc-mem.mk is missing
Library-description file stdcxx.mk is missing
Library-description file pthread.mk is missing
Library-description file libc_terminal.mk is missing
Library-description file libc_pipe.mk is missing
Library-description file libiconv.mk is missing
Library-description file qemu-usb.mk is missing
Library ldso-startup
Library ld
Library base
Program drivers/acpi/spec/x86/acpi_drv
Program drivers/input/dummy/dummy_input_drv
Program drivers/input/spec/ps2/x86/ps2_drv
Library startup-nova
Library base-nova-common
Library cxx
Library base-nova
Program drivers/platform/spec/x86/device_pd/device_pd
Program drivers/platform/spec/x86/platform_drv
Program drivers/rtc/spec/x86/rtc_drv
Library alarm
Library timeout
Program drivers/timer/nova/nova_timer_drv
Program drivers/timer/pit/pit_timer_drv
Program init/init
Program server/log_terminal/log_terminal
Program server/report_rom/report_rom
Library core-nova
COMPILE version.o
MERGE core-nova.lib.a
Program core/nova/core
make[1]: Leaving directory `/home/janardhan/genode/build/nova_x86_64'
genode build completed
building targets: lib/ld/nova kernel
spawn make lib/ld/nova kernel
make[1]: Entering directory `/home/janardhan/genode/build/nova_x86_64'
checking library dependencies...
Library cxx
Library alarm
Library timed_semaphore
Library config
Library startup-nova
Library base-nova-common
Library base-nova
Library ldso-startup
Library ld-nova
Program lib/ld/nova/ld-nova
Program kernel/nova/hypervisor
make[1]: Leaving directory `/home/janardhan/genode/build/nova_x86_64'
genode build completed
using 'ld-nova.lib.so' as 'ld.lib.so'
using 'nova_timer_drv' as 'timer'
cp: cannot stat ‘bin/virtualbox-nova’: No such file or directory
while executing
"exec cp bin/[kernel_specific_binary $binary] [run_dir]/genode/$binary"
(procedure "copy_and_strip_genode_binaries_to_run_dir" line 4)
invoked from within
"copy_and_strip_genode_binaries_to_run_dir $modules"
(procedure "build_core_image" line 8)
invoked from within
"build_core_image $binaries"
(procedure "run_boot_dir" line 12)
invoked from within
"run_boot_dir $binaries"
(procedure "build_boot_image" line 2)
invoked from within
"build_boot_image $boot_modules"
(file "/home/janardhan/genode/repos/ports/run/virtualbox.run" line 181)
invoked from within
"source $include_name"
("foreach" body line 6)
invoked from within
"foreach include_name [get_cmd_arg --include ""] {
# first check if the include name is absolute
if {[string first "/" $include_name] == 0} {
puts ..."
(file "/home/janardhan/genode/tool/run/run" line 809)
make: *** [run/virtualbox] Error 1


Regards,


Janardhan.V


________________________________
From: Christian Helmuth <***@genode-labs.com>
Sent: Thursday, April 20, 2017 6:12:09 PM
To: genode-***@lists.sourceforge.net
Subject: Re: compiling genode with Virtual box tiny core Linux

Hello Janardhan,

On Thu, Apr 20, 2017 at 11:30:34AM +0000, Janardhan wrote:
> I enabled ports repository in etc/build.conf file,but still i am getting below error.

Again, please post a complete build log incl. your "make" command
line.

Greets
--
Christian Helmuth
Genode Labs

https://www.genode-labs.com/ · https://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
GeschÀftsfÌhrer: Dr.-Ing. Norman Feske, Christian Helmuth

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
genode-main mailing list
genode-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main
Christian Helmuth
2017-04-20 13:06:41 UTC
Permalink
Hello,

the log helps much to identify the issue...

On Thu, Apr 20, 2017 at 12:54:30PM +0000, Janardhan wrote:
> make run/virtualbox
[...]
> Library-description file libc.mk is missing
> Library-description file libm.mk is missing
> Library-description file libc-mem.mk is missing
> Library-description file stdcxx.mk is missing
> Library-description file pthread.mk is missing
> Library-description file libc_terminal.mk is missing
> Library-description file libc_pipe.mk is missing
> Library-description file libiconv.mk is missing
> Library-description file qemu-usb.mk is missing

The missing libraries are suspicious and because virtualbox depends on
libc etc. it will not be built due to unresolved dependencies. I
suggest you edit etc/build.conf and (as a shortcut) enable all stated
repositories. Also, please be aware that Qemu is really slow when
emulating hardware-virtualization features.

Regards
--
Christian Helmuth
Genode Labs

https://www.genode-labs.com/ · https://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Chris Rothrock
2017-04-20 13:38:06 UTC
Permalink
I know that the libc is definitely needed. For some time, I was having
issues doing the prepare_port on libc because it was not finding the
repository but that began working for me again after a few days. Try doing
a make clean then prepare_port on these: nova x86emu libusb qemu-usb
dde_linux libc

Also when you prepare these ports, make sure all of them complete without
error.

Chris Rothrock

On Thu, Apr 20, 2017 at 9:06 AM, Christian Helmuth <
***@genode-labs.com> wrote:

> Hello,
>
> the log helps much to identify the issue...
>
> On Thu, Apr 20, 2017 at 12:54:30PM +0000, Janardhan wrote:
> > make run/virtualbox
> [...]
> > Library-description file libc.mk is missing
> > Library-description file libm.mk is missing
> > Library-description file libc-mem.mk is missing
> > Library-description file stdcxx.mk is missing
> > Library-description file pthread.mk is missing
> > Library-description file libc_terminal.mk is missing
> > Library-description file libc_pipe.mk is missing
> > Library-description file libiconv.mk is missing
> > Library-description file qemu-usb.mk is missing
>
> The missing libraries are suspicious and because virtualbox depends on
> libc etc. it will not be built due to unresolved dependencies. I
> suggest you edit etc/build.conf and (as a shortcut) enable all stated
> repositories. Also, please be aware that Qemu is really slow when
> emulating hardware-virtualization features.
>
> Regards
> --
> Christian Helmuth
> Genode Labs
>
> https://www.genode-labs.com/ · https://genode.org/
> https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/
>
> Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
> GeschÀftsfÌhrer: Dr.-Ing. Norman Feske, Christian Helmuth
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> genode-main mailing list
> genode-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/genode-main
>



--


Thank You,

Chris Rothrock
Senior System Administrator
(315) 308-1637
Janardhan
2017-04-21 06:03:24 UTC
Permalink
Hi Christain Helmuth,


I installed all required packages expect libc.While installing libc it's showing below error.


./tool/ports/prepare_port libc
libc download http://svn.freebsd.org/base/release/8.2.0/lib/libc
svn: E175002: Unable to connect to a repository at URL 'http://svn.freebsd.org/base/release/8.2.0/lib/libc'
svn: E175002: Unexpected HTTP status 400 'Bad Request' on '/base/release/8.2.0/lib/libc'

make[2]: *** [libc.svn] Error 1
make[1]: *** [_install_in_port_dir] Error 2
make: *** [libc] Error 2



And also i tried to download manually but it's not downloaded.


is there any other way to install libc package in genode?


Regards,


Janardhan.V


________________________________
From: Chris Rothrock <***@gmail.com>
Sent: Thursday, April 20, 2017 7:08:06 PM
To: Genode OS Framework Mailing List
Subject: Re: compiling genode with Virtual box tiny core Linux

I know that the libc is definitely needed. For some time, I was having issues doing the prepare_port on libc because it was not finding the repository but that began working for me again after a few days. Try doing a make clean then prepare_port on these: nova x86emu libusb qemu-usb dde_linux libc

Also when you prepare these ports, make sure all of them complete without error.

Chris Rothrock

On Thu, Apr 20, 2017 at 9:06 AM, Christian Helmuth <***@genode-labs.com<mailto:***@genode-labs.com>> wrote:
Hello,

the log helps much to identify the issue...

On Thu, Apr 20, 2017 at 12:54:30PM +0000, Janardhan wrote:
> make run/virtualbox
[...]
> Library-description file libc.mk<http://libc.mk> is missing
> Library-description file libm.mk<http://libm.mk> is missing
> Library-description file libc-mem.mk<http://libc-mem.mk> is missing
> Library-description file stdcxx.mk<http://stdcxx.mk> is missing
> Library-description file pthread.mk<http://pthread.mk> is missing
> Library-description file libc_terminal.mk<http://libc_terminal.mk> is missing
> Library-description file libc_pipe.mk<http://libc_pipe.mk> is missing
> Library-description file libiconv.mk<http://libiconv.mk> is missing
> Library-description file qemu-usb.mk<http://qemu-usb.mk> is missing

The missing libraries are suspicious and because virtualbox depends on
libc etc. it will not be built due to unresolved dependencies. I
suggest you edit etc/build.conf and (as a shortcut) enable all stated
repositories. Also, please be aware that Qemu is really slow when
emulating hardware-virtualization features.

Regards
--
Christian Helmuth
Genode Labs

https://www.genode-labs.com/ · https://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
GeschÀftsfÌhrer: Dr.-Ing. Norman Feske, Christian Helmuth

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
genode-main mailing list
genode-***@lists.sourceforge.net<mailto:genode-***@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/genode-main



--


Thank You,

Chris Rothrock
Senior System Administrator
(315) 308-1637

[https://docs.google.com/uc?id=0B2xyRpsbQtDNVGlnSV9BWFBlUm8&export=download]
Christian Helmuth
2017-04-21 08:45:40 UTC
Permalink
Hello Janardhan,

On Fri, Apr 21, 2017 at 06:03:24AM +0000, Janardhan wrote:
> I installed all required packages expect libc.While installing libc it's showing below error.
>
> ./tool/ports/prepare_port libc
> libc download http://svn.freebsd.org/base/release/8.2.0/lib/libc
> svn: E175002: Unable to connect to a repository at URL 'http://svn.freebsd.org/base/release/8.2.0/lib/libc'
> svn: E175002: Unexpected HTTP status 400 'Bad Request' on '/base/release/8.2.0/lib/libc'
>
> make[2]: *** [libc.svn] Error 1
> make[1]: *** [_install_in_port_dir] Error 2
> make: *** [libc] Error 2
>
> And also i tried to download manually but it's not downloaded.
>
> is there any other way to install libc package in genode?

This looks like an issue with one of the FreeBSD SVN mirrors (see [1]
for a description). I double checked just now that it principally
works. I suggest you give it another try. Another issue could be your
local netowrk environment and you may check that SVN over HTTP works
for other repositories outside your local network.

[1] https://www.freebsd.org/doc/handbook/svn.html#svn-mirrors

Regards
--
Christian Helmuth
Genode Labs

https://www.genode-labs.com/ · https://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Janardhan
2017-04-25 05:32:59 UTC
Permalink
Hi Christian Helmuth,


while booting tiny core Linux in virtual box its showing below message getting continuously.


[init -> virtualbox] Warning: invalid gueststate continuously.

Here tinycore linux iso image i renamed as test.iso and copied to bin folder.

Regards,

Janardhan.V


________________________________
From: Christian Helmuth <***@genode-labs.com>
Sent: Friday, April 21, 2017 2:15:40 PM
To: genode-***@lists.sourceforge.net
Subject: Re: compiling genode with Virtual box tiny core Linux

Hello Janardhan,

On Fri, Apr 21, 2017 at 06:03:24AM +0000, Janardhan wrote:
> I installed all required packages expect libc.While installing libc it's showing below error.
>
> ./tool/ports/prepare_port libc
> libc download http://svn.freebsd.org/base/release/8.2.0/lib/libc
> svn: E175002: Unable to connect to a repository at URL 'http://svn.freebsd.org/base/release/8.2.0/lib/libc'
> svn: E175002: Unexpected HTTP status 400 'Bad Request' on '/base/release/8.2.0/lib/libc'
>
> make[2]: *** [libc.svn] Error 1
> make[1]: *** [_install_in_port_dir] Error 2
> make: *** [libc] Error 2
>
> And also i tried to download manually but it's not downloaded.
>
> is there any other way to install libc package in genode?

This looks like an issue with one of the FreeBSD SVN mirrors (see [1]
for a description). I double checked just now that it principally
works. I suggest you give it another try. Another issue could be your
local netowrk environment and you may check that SVN over HTTP works
for other repositories outside your local network.

[1] https://www.freebsd.org/doc/handbook/svn.html#svn-mirrors

Regards
--
Christian Helmuth
Genode Labs

https://www.genode-labs.com/ · https://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
GeschÀftsfÌhrer: Dr.-Ing. Norman Feske, Christian Helmuth

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
genode-main mailing list
genode-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main
Christian Helmuth
2017-04-25 08:22:09 UTC
Permalink
Hello Janardhan,

On Tue, Apr 25, 2017 at 05:32:59AM +0000, Janardhan wrote:
> while booting tiny core Linux in virtual box its showing below message getting continuously.
>
>
> [init -> virtualbox] Warning: invalid gueststate continuously.
>
> Here tinycore linux iso image i renamed as test.iso and copied to bin folder.

From this little information, it is hard to identify the cause of the
issue. Please always provide thorough information about your test
scenario including used hardware platform resp. Qemu version, make
command line, and complete log output.

Greets
--
Christian Helmuth
Genode Labs

https://www.genode-labs.com/ · https://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Janardhan
2017-04-25 09:08:55 UTC
Permalink
Hi Christian Helmuth,


I am going to compile genode with virtual box.for that purpose i installed nova hypervisor and downloaded Linux tiny core iso and copied to bin folder in build directory and renamed as test.iso .

while running make run/virtualbox after some time its get stoppped with below message in qemu.


Loading /boot/vmlinuz.....

Loading /boot/core.gz...........ready

early console in extract_kernel

input_data: 0x005c5114

input_len: 0x003a3c1d

output: 0x00100000

output_len: 0x0075e70c

kernel_total_size :0x00882000


Decompessing Linux....Pasrsing ELF...No relocation needed...done.

Booting the Kernel [ qemu stopped here]


And in my ubuntu system its printing below message


[init -> virtualbox] using the pipe libc plugin

[init -> virtualbox] Warning: issetugid called, not yet implemented, returning 1

[init -> virtualbox] Warning: issetugid called, not yet implemented, returning 1

[init -> virtualbox] Error: fcntl(): command 2 not supported

[init -> virtualbox] Log created: 2017-04-25T06:41:00.000000000Z

[init -> virtualbox] main Executable: /virtualbox

[init -> virtualbox] Error: SystemProperties : Cannot determine default Guest Additions ISO location. Most likely they are not available

[init -> virtualbox] main genodeConsole = 000000000018f510

[init -> fb_drv] Found: VESA BIOS version 3.0

[init -> fb_drv] OEM: SeaBIOS VBE(C) 2011

[init -> fb_drv] Found: physical frame buffer at 0xfc000000 size: 4194304

[init -> fb_drv] fb mapped to 0x400000

[init -> fb_drv] using video mode: ***@16

[init -> virtualbox] Warning: _fpathconf: _fpathconf not implemented

[init -> virtualbox] Warning: statfs provides bogus values for '//test.iso' (probably a shared folder)

[init -> virtualbox] Warning: fcntl(): command 4 args 4 not supported - terminal

[init -> virtualbox] Warning: _sigaction: _sigaction not implemented

[init -> virtualbox] Using SVM virtualization extension.

[init -> virtualbox] Error: fireRuntimeErrorEvent : 0 DrvHostSerialFail Ioctl failed for serial host device '/dev/terminal' (VERR_NOT_SUPPORTED). The device will not work properly

[init -> virtualbox] Warning: heap could not free memory block

[init -> virtualbox] fb resize : ***@16 -> ***@0

[init -> virtualbox] fb resize : ***@16 -> ***@32

[init -> virtualbox] fb resize : ***@16 -> ***@0

[init -> virtualbox] Warning: invalid gueststate
[init -> virtualbox] Warning: invalid gueststate
[init -> virtualbox] Warning: invalid gueststate
[init -> virtualbox] Warning: invalid gueststate
[init -> virtualbox] Warning: invalid gueststate
[init -> virtualbox] Warning: invalid gueststate
[init -> virtualbox] Warning: invalid gueststate
[init -> virtualbox] Warning: invalid gueststate
[init -> virtualbox] Warning: invalid gueststate
[init -> virtualbox] Warning: invalid gueststate
[init -> virtualbox] Warning: invalid gueststate
[init -> virtualbox] Warning: invalid gueststate
[init -> virtualbox] Warning: invalid gueststate
[init -> virtualbox] Warning: invalid gueststate
[init -> virtualbox] Warning: invalid gueststate
[init -> virtualbox] Warning: invalid gueststate
[init -> virtualbox] Warning: invalid gueststate
[init -> virtualbox] Warning: invalid gueststate
[init -> virtualbox] Warning: invalid gueststate
[init -> virtualbox] Warning: invalid gueststate
[init -> virtualbox] Warning: invalid gueststate


Regards,


Janardhan.V


________________________________
From: Christian Helmuth <***@genode-labs.com>
Sent: Tuesday, April 25, 2017 1:52:09 PM
To: genode-***@lists.sourceforge.net
Subject: Re: compiling genode with Virtual box tiny core Linux

Hello Janardhan,

On Tue, Apr 25, 2017 at 05:32:59AM +0000, Janardhan wrote:
> while booting tiny core Linux in virtual box its showing below message getting continuously.
>
>
> [init -> virtualbox] Warning: invalid gueststate continuously.
>
> Here tinycore linux iso image i renamed as test.iso and copied to bin folder.

From this little information, it is hard to identify the cause of the
issue. Please always provide thorough information about your test
scenario including used hardware platform resp. Qemu version, make
command line, and complete log output.

Greets
--
Christian Helmuth
Genode Labs

https://www.genode-labs.com/ · https://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
GeschÀftsfÌhrer: Dr.-Ing. Norman Feske, Christian Helmuth

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
genode-main mailing list
genode-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main
Alexander Boettcher
2017-04-26 11:29:20 UTC
Permalink
Hello,

On 25.04.2017 11:08, Janardhan wrote:
> From: Christian Helmuth <***@genode-labs.com>
>
> From this little information, it is hard to identify the cause of the
> issue. Please always provide thorough information about your test
> scenario including used hardware platform resp. Qemu version, make
> command line, and complete log output.

as written already by Christian, there are still information missing to
make a useful guess:

- which Qemu version you are using (beginning with 2.5 until 2.8 there
are known issues)
- which Genode (release/master/staging .. branch) you are using
- which Tinycore image (core/tinycore/coreplus) and which version
7.1,7.2, 8.* you are using ...

Beside all that missing information, running this setup in Qemu is at
this point of no real value to you (especially if it happen that you
running your Qemu on your developer Linux distro as VM).

You would need to have a patience of a saint until it boots to a usable
state.

Just copy the generated iso (build/x86_*/var/run/*.iso) to your favorite
usb stick (via dd) and boot it on some Intel based test machine.

Cheers,

Alex.

>
> Greets
> --
> Christian Helmuth
> Genode Labs
>
> https://www.genode-labs.com/ · https://genode.org/
> https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/
>
> Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
> Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> genode-main mailing list
> genode-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/genode-main
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> genode-main mailing list
> genode-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/genode-main
>

--
Alexander Boettcher
Genode Labs

http://www.genode-labs.com - http://www.genode.org

Genode Labs GmbH - Amtsgericht Dresden - HRB 28424 - Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Johannes Kliemann
2017-04-26 13:00:35 UTC
Permalink
Hi,

how are modules in dde_linux loaded exactly? For example the i915 driver
seems to be loaded with `module_i915_init` which somehow connects to
`module_init(i915_init)` but I can't see how this is done.

I want to add a new driver which is loaded by
`module_platform_driver(...)`. What steps are required to add this
driver besides adding the declaration in main.cc?

JK
Josef Söntgen
2017-04-26 13:45:16 UTC
Permalink
Hello Johannes,

* Johannes Kliemann <***@tu-dresden.de> [2017-04-26 15:00:35 +0200]:
> how are modules in dde_linux loaded exactly? For example the i915 driver
> seems to be loaded with `module_i915_init` which somehow connects to
> `module_init(i915_init)` but I can't see how this is done.

Please take a look at 'repos/dde_linux/src/include/lx_emul/module.h'
which defines the macros used by the vanilla sources. In this case
we just generated a function that can be called directly.

> I want to add a new driver which is loaded by
> `module_platform_driver(...)`. What steps are required to add this
> driver besides adding the declaration in main.cc?

Until now the usb_drv on ARM was the only dde_linux driver that needed
this macro, hence it is defined in its private Linux emulation header
(see 'repos/dde_linux/src/lib/usb/include/spec/arm/platform/lx_emul.h').
Normally we only move definitions or rather emulation code to the somewhat
generic lx_kit/lx_emul locations if used by more than one driver.

For now I suggest to implement the macro privately in the intel_fb
driver as well and we will come up with a better solution later on.


Regards,
Josef

--
Josef Söntgen
Genode Labs

http://www.genode-labs.com/ · http://genode.org/
Johannes Kliemann
2017-04-27 06:21:35 UTC
Permalink
Hallo Josef,

thanks for your tips. I went through the code and found the dwc3 driver
which uses `module_platform_driver`. In the source it gets called with
`module_platform_driver(dwc3_driver)` and the declaration in Genode is
`extern "C" void module_dwc3_driver_init();`.
The efifb framebuffer driver I try to include gets called with
`module_platform_driver(efifb_driver)` so the corresponding declaration
should be `extern "C" void module_efifb_driver_init();`. I tried both
the macros of
'repos/dde_linux/src/lib/usb/include/spec/arm/platform/lx_emul.h' as you
said and of 'repos/dde_linux/src/lib/usb/include/lx_emul.h' (which gets
included by 'repos/dde_linux/src/lib/usb/spec/arndale/platform.cc' which
uses the dwc3 driver.
None of these macros worked, I always got a undefined reference error
from the linker. Did I miss something?

Regards,
JK

Am 26.04.2017 um 15:45 schrieb Josef Söntgen:
> Hello Johannes,
>
> * Johannes Kliemann <***@tu-dresden.de> [2017-04-26 15:00:35 +0200]:
>> how are modules in dde_linux loaded exactly? For example the i915 driver
>> seems to be loaded with `module_i915_init` which somehow connects to
>> `module_init(i915_init)` but I can't see how this is done.
>
> Please take a look at 'repos/dde_linux/src/include/lx_emul/module.h'
> which defines the macros used by the vanilla sources. In this case
> we just generated a function that can be called directly.
>
>> I want to add a new driver which is loaded by
>> `module_platform_driver(...)`. What steps are required to add this
>> driver besides adding the declaration in main.cc?
>
> Until now the usb_drv on ARM was the only dde_linux driver that needed
> this macro, hence it is defined in its private Linux emulation header
> (see 'repos/dde_linux/src/lib/usb/include/spec/arm/platform/lx_emul.h').
> Normally we only move definitions or rather emulation code to the somewhat
> generic lx_kit/lx_emul locations if used by more than one driver.
>
> For now I suggest to implement the macro privately in the intel_fb
> driver as well and we will come up with a better solution later on.
>
>
> Regards,
> Josef
>
Janardhan
2017-04-27 09:15:54 UTC
Permalink
Hi Christian Helmuth,


I want to run Virtual Box and Seoul VMM on top of Genode/NOVA. Seoul executes Tinycore Linux as guest OS and Virtual Box executes Windows7.


Can you please explain how to achieve above functionality with steps.


Regards,


Janardhan.V

________________________________
From: Alexander Boettcher <***@genode-labs.com>
Sent: Wednesday, April 26, 2017 4:59:20 PM
To: Genode OS Framework Mailing List
Subject: Re: compiling genode with Virtual box tiny core Linux

Hello,

On 25.04.2017 11:08, Janardhan wrote:
> From: Christian Helmuth <***@genode-labs.com>
>
> From this little information, it is hard to identify the cause of the
> issue. Please always provide thorough information about your test
> scenario including used hardware platform resp. Qemu version, make
> command line, and complete log output.

as written already by Christian, there are still information missing to
make a useful guess:

- which Qemu version you are using (beginning with 2.5 until 2.8 there
are known issues)
- which Genode (release/master/staging .. branch) you are using
- which Tinycore image (core/tinycore/coreplus) and which version
7.1,7.2, 8.* you are using ...

Beside all that missing information, running this setup in Qemu is at
this point of no real value to you (especially if it happen that you
running your Qemu on your developer Linux distro as VM).

You would need to have a patience of a saint until it boots to a usable
state.

Just copy the generated iso (build/x86_*/var/run/*.iso) to your favorite
usb stick (via dd) and boot it on some Intel based test machine.

Cheers,

Alex.

>
> Greets
> --
> Christian Helmuth
> Genode Labs
>
> https://www.genode-labs.com/ · https://genode.org/
> https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/
>
> Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
> GeschÀftsfÌhrer: Dr.-Ing. Norman Feske, Christian Helmuth
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> genode-main mailing list
> genode-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/genode-main
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> genode-main mailing list
> genode-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/genode-main
>

--
Alexander Boettcher
Genode Labs

http://www.genode-labs.com - http://www.genode.org

Genode Labs GmbH - Amtsgericht Dresden - HRB 28424 - Sitz Dresden
GeschÀftsfÌhrer: Dr.-Ing. Norman Feske, Christian Helmuth

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
genode-main mailing list
genode-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main
Janardhan
2017-04-29 08:48:42 UTC
Permalink
Hi Christian Helmuth,


When i am installing dde_linux its showing below error.


./tool/ports/prepare_port dde_linux

dde_linux update src/lib/usb/drivers/usb/host/dwc_otg
dde_linux extract linux-4.4.3.tar.xz (usb)
dde_linux extract linux-4.4.3.tar.xz (intel_fb)
dde_linux extract linux-4.4.3.tar.xz (lxip)
dde_linux extract linux-4.4.3.tar.xz (wifi)
Error: Hash sum check for libnl failed
make[2]: *** [libnl.file] Error 1
make[1]: *** [_install_in_port_dir] Error 2
make: *** [dde_linux] Error 2


Regards,


Janardhan.V


________________________________
From: Janardhan <***@uniksys.co.in>
Sent: Thursday, April 27, 2017 2:45:54 PM
To: Genode OS Framework Mailing List
Subject: Re: compiling genode with Virtual box tiny core Linux


Hi Christian Helmuth,


I want to run Virtual Box and Seoul VMM on top of Genode/NOVA. Seoul executes Tinycore Linux as guest OS and Virtual Box executes Windows7.


Can you please explain how to achieve above functionality with steps.


Regards,


Janardhan.V

________________________________
From: Alexander Boettcher <***@genode-labs.com>
Sent: Wednesday, April 26, 2017 4:59:20 PM
To: Genode OS Framework Mailing List
Subject: Re: compiling genode with Virtual box tiny core Linux

Hello,

On 25.04.2017 11:08, Janardhan wrote:
> From: Christian Helmuth <***@genode-labs.com>
>
> From this little information, it is hard to identify the cause of the
> issue. Please always provide thorough information about your test
> scenario including used hardware platform resp. Qemu version, make
> command line, and complete log output.

as written already by Christian, there are still information missing to
make a useful guess:

- which Qemu version you are using (beginning with 2.5 until 2.8 there
are known issues)
- which Genode (release/master/staging .. branch) you are using
- which Tinycore image (core/tinycore/coreplus) and which version
7.1,7.2, 8.* you are using ...

Beside all that missing information, running this setup in Qemu is at
this point of no real value to you (especially if it happen that you
running your Qemu on your developer Linux distro as VM).

You would need to have a patience of a saint until it boots to a usable
state.

Just copy the generated iso (build/x86_*/var/run/*.iso) to your favorite
usb stick (via dd) and boot it on some Intel based test machine.

Cheers,

Alex.

>
> Greets
> --
> Christian Helmuth
> Genode Labs
>
> https://www.genode-labs.com/ · https://genode.org/
> https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/
>
> Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
> GeschÀftsfÌhrer: Dr.-Ing. Norman Feske, Christian Helmuth
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> genode-main mailing list
> genode-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/genode-main
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> genode-main mailing list
> genode-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/genode-main
>

--
Alexander Boettcher
Genode Labs

http://www.genode-labs.com - http://www.genode.org

Genode Labs GmbH - Amtsgericht Dresden - HRB 28424 - Sitz Dresden
GeschÀftsfÌhrer: Dr.-Ing. Norman Feske, Christian Helmuth

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
genode-main mailing list
genode-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main
Christian Helmuth
2017-05-02 09:02:34 UTC
Permalink
Hello,

On Sat, Apr 29, 2017 at 08:48:42AM +0000, Janardhan wrote:
> When i am installing dde_linux its showing below error.
>
> ./tool/ports/prepare_port dde_linux
>
> dde_linux update src/lib/usb/drivers/usb/host/dwc_otg
> dde_linux extract linux-4.4.3.tar.xz (usb)
> dde_linux extract linux-4.4.3.tar.xz (intel_fb)
> dde_linux extract linux-4.4.3.tar.xz (lxip)
> dde_linux extract linux-4.4.3.tar.xz (wifi)
> Error: Hash sum check for libnl failed
> make[2]: *** [libnl.file] Error 1
> make[1]: *** [_install_in_port_dir] Error 2
> make: *** [dde_linux] Error 2

Please remove the contrib/dde_linux-<hash> directory and run
prepare_port again. It seems yur stuck in some intermediate state.

Regards
--
Christian Helmuth
Genode Labs

https://www.genode-labs.com/ · https://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Janardhan
2017-05-03 05:47:05 UTC
Permalink
Dear Genode community,

I want to run Virtual Box and Seoul VMM on top of Genode/NOVA. Seoul executes Tinycore Linux as guest OS and Virtual Box executes Windows7.

Can any one please explain how to achieve above functionality with steps.

Regards,

Janardhan.V


________________________________
From: Christian Helmuth <***@genode-labs.com>
Sent: Tuesday, May 2, 2017 2:32:34 PM
To: genode-***@lists.sourceforge.net
Subject: Re: compiling genode with Virtual box tiny core Linux

Hello,

On Sat, Apr 29, 2017 at 08:48:42AM +0000, Janardhan wrote:
> When i am installing dde_linux its showing below error.
>
> ./tool/ports/prepare_port dde_linux
>
> dde_linux update src/lib/usb/drivers/usb/host/dwc_otg
> dde_linux extract linux-4.4.3.tar.xz (usb)
> dde_linux extract linux-4.4.3.tar.xz (intel_fb)
> dde_linux extract linux-4.4.3.tar.xz (lxip)
> dde_linux extract linux-4.4.3.tar.xz (wifi)
> Error: Hash sum check for libnl failed
> make[2]: *** [libnl.file] Error 1
> make[1]: *** [_install_in_port_dir] Error 2
> make: *** [dde_linux] Error 2

Please remove the contrib/dde_linux-<hash> directory and run
prepare_port again. It seems yur stuck in some intermediate state.

Regards
--
Christian Helmuth
Genode Labs

https://www.genode-labs.com/ · https://genode.org/
Genode - Genode Operating System Framework<https://genode.org/>
genode.org
The book "Genode Foundations" describes the Genode OS Framework in a holistic and comprehensive way. It equips the reader with a thorough understanding of the ...

Genode Labs - Welcome<https://www.genode-labs.com/>
www.genode-labs.com
Company. Genode Labs is the driving force behind the Genode OS Framework - an open-source operating-system technology that aligns highly dynamic workloads with ...


https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
GeschÀftsfÌhrer: Dr.-Ing. Norman Feske, Christian Helmuth

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
genode-main mailing list
genode-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main
genode-main Info Page - lists.sourceforge.net<https://lists.sourceforge.net/lists/listinfo/genode-main>
lists.sourceforge.net
To see the collection of prior postings to the list, visit the genode-main Archives. Using genode-main: To post a message to all the list members ...
Loading...