Question about Build & Installation

61 views
Skip to first unread message

Yoshikado Nakao

unread,
Jun 13, 2017, 11:08:38 PM6/13/17
to jailho...@googlegroups.com

Hello.

 

After extract a source (jailhouse-0.7.zip), and carrying out make, three errors were given as follows.

Please tell me a cause and the measures.

 

My environment is CPU=x86_64, Ubuntu 14.04 LTS with VirtualBox.

 

/home/user/jailhouse-0.7> make

 

/home/user/jailhouse-0.7/driver/pci.c: In function ‘jailhouse_pci_add_device’:

/home/user/jailhouse-0.7/driver/pci.c:84:4: error: implicit declaration of function ‘pci_lock_rescan_remove’ [-Werror=implicit-function-declaration]

    pci_lock_rescan_remove();

    ^

/home/user/jailhouse-0.7/driver/pci.c:87:4: error: implicit declaration of function ‘pci_unlock_rescan_remove’ [-Werror=implicit-function-declaration]

    pci_unlock_rescan_remove();

    ^

/home/user/jailhouse-0.7/driver/pci.c: In function ‘jailhouse_pci_remove_device’:

/home/user/jailhouse-0.7/driver/pci.c:98:3: error: implicit declaration of function ‘pci_stop_and_remove_bus_device_locked’ [-Werror=implicit-function-declaration]

   pci_stop_and_remove_bus_device_locked(l_dev);

 

Jan Kiszka

unread,
Jun 14, 2017, 1:27:05 AM6/14/17
to Yoshikado Nakao, jailho...@googlegroups.com
On 2017-06-14 05:08, Yoshikado Nakao wrote:
> Hello.
>
> After extract a source (jailhouse-0.7.zip), and carrying out make, three
> errors were given as follows.
>
> Please tell me a cause and the measures.
>
> My environment is CPU=x86_64, Ubuntu 14.04 LTS with VirtualBox.
>

What is your target execution environment? Will you only build Jailhouse
inside VirtualBox? If you plan to run it, you should know that we never
tested VirtualBox as platform. QEMU/KVM is known work fine, but
VirtualBox may still lack some features or have bugs in order to
emulated everything in the way Jailhouse needs it from real hardware as
well.

>
>
> /home/user/jailhouse-0.7> make
>
>
>
> /home/user/jailhouse-0.7/driver/pci.c: In function
> ‘jailhouse_pci_add_device’:
>
> /home/user/jailhouse-0.7/driver/pci.c:84:4: error: implicit declaration
> of function ‘pci_lock_rescan_remove’ [-Werror=implicit-function-declaration]
>
> pci_lock_rescan_remove();
>
> ^
>
> /home/user/jailhouse-0.7/driver/pci.c:87:4: error: implicit declaration
> of function ‘pci_unlock_rescan_remove’
> [-Werror=implicit-function-declaration]
>
> pci_unlock_rescan_remove();
>
> ^
>
> /home/user/jailhouse-0.7/driver/pci.c: In function
> ‘jailhouse_pci_remove_device’:
>
> /home/user/jailhouse-0.7/driver/pci.c:98:3: error: implicit declaration
> of function ‘pci_stop_and_remove_bus_device_locked’
> [-Werror=implicit-function-declaration]
>
> pci_stop_and_remove_bus_device_locked(l_dev);
>

That comes from using a way too old kernel. Ubuntu 14.04 was on 3.13,
but you should rather have a 4.x kernel. To exploit all features, the
queue on
http://git.kiszka.org/?p=linux.git;a=shortlog;h=refs/heads/queues/jailhouse
is recommended.

If you only use Ubuntu as compilation environment, specify the kernel
you built for the target via "make KDIR=/path/to/kernel/build".

Jan

--
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux

Henning Schild

unread,
Jun 14, 2017, 8:51:29 AM6/14/17
to an Kiszka, Yoshikado Nakao, jailho...@googlegroups.com
Am Wed, 14 Jun 2017 07:27:02 +0200
schrieb "[ext] Jan Kiszka" <jan.k...@siemens.com>:
In addition, ubuntu 14.04 comes with gnu make 3.81, you will need
3.82+. Best install a more recent distro, that will solve the kernel
and tools problem at once.

Henning

> Jan
>

Yoshikado Nakao

unread,
Jun 15, 2017, 1:20:24 AM6/15/17
to jailho...@googlegroups.com
Thank you for an answer.
The target has not yet arrived.

Build & Installation was finished normally by making Ubuntu 16.04 LTS.
However, it becomes the error when I execute Jailhouse command.
This understood that it was caused by VirtualBox.

By the way, will it become the error even if I install Jailhouse in a PC (I do not use VirtualBox)
which Ubuntu 16.04 LTS was installed in equally when I execute Jailhouse command?
In other words does the Jailhouse command not work on a target normally if there is not it?

The following is a practice example of the Jailhouse command.

root@YN-VirtualBox:/home/panda/work/jailhouse-0.7# jailhouse config create sysconfig.c
Traceback (most recent call last):
File "/usr/local/libexec/jailhouse/jailhouse-config-create", line 1164, in <module>
mmconfig = MMConfig.parse()
File "/usr/local/libexec/jailhouse/jailhouse-config-create", line 1066, in parse
f = input_open('/sys/firmware/acpi/tables/MCFG', 'rb')
File "/usr/local/libexec/jailhouse/jailhouse-config-create", line 154, in input_open
raise e
IOError: [Errno 2] No such file or directory: '//sys/firmware/acpi/tables/MCFG'

root@YN-VirtualBox:/home/panda/work/jailhouse-0.7# jailhouse hardware check SYSCONFIG
Traceback (most recent call last):
File "/usr/local/libexec/jailhouse/jailhouse-hardware-check", line 163, in <module>
config = Sysconfig(sys.argv[1])
File "/usr/local/libexec/jailhouse/jailhouse-hardware-check", line 120, in __init__
self.config = open(path, 'rb')
IOError: [Errno 2] No such file or directory: 'SYSCONFIG'

I confirm it for sense, as for this result, may Build & Installation not be performed normally?
Reply all
Reply to author
Forward
0 new messages