This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728: Jailhouse example build error

Part Number: AM5728
Other Parts Discussed in Thread: SYSBIOS

Hello,

we have a setup with the Beagleboard X15 and executed jailhouse successfully on it.

Now we want to change some details in the example app and execute it again as jailhouse inmate.

Question:

How can we compile the ti-app and which environment settings we need?

When we execute the Makefile the following errors occur:

  CC      /home/dani/Downloads/am57xx-evm-linux-sdk-src-06.01.00.08/board-support/extra-drivers/jailhouse-0.10+gitAUTOINC+6044dcf564/hypervisor/arch/x86/asm-defines.s
gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mfpu=vfp’; did you mean ‘-mcpu=’?
/home/dani/Downloads/am57xx-evm-linux-sdk-src-06.01.00.08/board-support/extra-drivers/jailhouse-0.10+gitAUTOINC+6044dcf564/hypervisor/Makefile:79: recipe for target '/home/dani/Downloads/am57xx-evm-linux-sdk-src-06.01.00.08/board-support/extra-drivers/jailhouse-0.10+gitAUTOINC+6044dcf564/hypervisor/arch/x86/asm-defines.s' failed
make[3]: *** [/home/dani/Downloads/am57xx-evm-linux-sdk-src-06.01.00.08/board-support/extra-drivers/jailhouse-0.10+gitAUTOINC+6044dcf564/hypervisor/arch/x86/asm-defines.s] Error 1
scripts/Makefile.build:515: recipe for target '/home/dani/Downloads/am57xx-evm-linux-sdk-src-06.01.00.08/board-support/extra-drivers/jailhouse-0.10+gitAUTOINC+6044dcf564/hypervisor' failed
make[2]: *** [/home/dani/Downloads/am57xx-evm-linux-sdk-src-06.01.00.08/board-support/extra-drivers/jailhouse-0.10+gitAUTOINC+6044dcf564/hypervisor] Error 2
Makefile:1614: recipe for target '_module_/home/dani/Downloads/am57xx-evm-linux-sdk-src-06.01.00.08/board-support/extra-drivers/jailhouse-0.10+gitAUTOINC+6044dcf564' failed
make[1]: *** [_module_/home/dani/Downloads/am57xx-evm-linux-sdk-src-06.01.00.08/board-support/extra-drivers/jailhouse-0.10+gitAUTOINC+6044dcf564] Error 2
Makefile:40: recipe for target 'modules' failed
make: *** [modules] Error 2

Can you help us please and show how to compile the app again for jailhouse inmate?

Thank you!

  • Hi Daniel,

    The top-level build procedure is described here: http://software-dl.ti.com/processor-sdk-linux/esd/docs/06_01_00_08/linux/Foundational_Components_Virtualization.html?highlight=jailhouse_clean#building-jailhouse-from-sources

    For ti-app build, please see http://software-dl.ti.com/processor-sdk-linux/esd/docs/06_01_00_08/linux/Foundational_Components_Virtualization.html?highlight=jailhouse_clean#jailhouse-internals, 

    The jailhouse demo applications and the “ti_app” are built by jailhouse’s makefile inside the jailhouse’s source tree.

    In this same section, please see the following:

    It is more interesting to build an inmate outside of the jailhouse source tree, using independent makefile and third party libraries. This release provides led_test, a simple example of a bare-metal application, which uses prebuilt RTOS PDK libraries and is built independently on Jailhouse. It also has ports of two TI RTOS SYSBIOS test applications - pruss and icss_emac.

    Build instructions for the inmate examples are provided in this section (e.g. see build instructions for the led_test.bin example).

    These inmate examples are provided as part of Processor-SDK-RTOS, which can be downloaded here: http://software-dl.ti.com/processor-sdk-rtos/esd/AM57X/latest/index_FDS.html
    Regards,
    Frank

  • Hi Frank,

    thank you for your answer. Building the RTOS SDK is no problem, but if I want to build jailhouse I have a problem with the build arguments.

    If i execute the Makefile in the jailhouse folder, I get the following result:

     CC      /home/dani/Downloads/am57xx-evm-linux-sdk-src-06.01.00.08/board-support/extra-drivers/jailhouse-0.10+gitAUTOINC+6044dcf564/hypervisor/arch/x86/asm-defines.s
    gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
    gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
    gcc: error: unrecognized command line option ‘-mfpu=vfp’; did you mean ‘-mcpu=’?
    /home/dani/Downloads/am57xx-evm-linux-sdk-src-06.01.00.08/board-support/extra-drivers/jailhouse-0.10+gitAUTOINC+6044dcf564/hypervisor/Makefile:79: recipe for target '/home/dani/Downloads/am57xx-evm-linux-sdk-src-06.01.00.08/board-support/extra-drivers/jailhouse-0.10+gitAUTOINC+6044dcf564/hypervisor/arch/x86/asm-defines.s' failed
    make[3]: *** [/home/dani/Downloads/am57xx-evm-linux-sdk-src-06.01.00.08/board-support/extra-drivers/jailhouse-0.10+gitAUTOINC+6044dcf564/hypervisor/arch/x86/asm-defines.s] Error 1
    scripts/Makefile.build:515: recipe for target '/home/dani/Downloads/am57xx-evm-linux-sdk-src-06.01.00.08/board-support/extra-drivers/jailhouse-0.10+gitAUTOINC+6044dcf564/hypervisor' failed
    make[2]: *** [/home/dani/Downloads/am57xx-evm-linux-sdk-src-06.01.00.08/board-support/extra-drivers/jailhouse-0.10+gitAUTOINC+6044dcf564/hypervisor] Error 2
    Makefile:1614: recipe for target '_module_/home/dani/Downloads/am57xx-evm-linux-sdk-src-06.01.00.08/board-support/extra-drivers/jailhouse-0.10+gitAUTOINC+6044dcf564' failed
    make[1]: *** [_module_/home/dani/Downloads/am57xx-evm-linux-sdk-src-06.01.00.08/board-support/extra-drivers/jailhouse-0.10+gitAUTOINC+6044dcf564] Error 2
    Makefile:40: recipe for target 'modules' failed
    make: *** [modules] Error 2
    

    Which arguments I have to choose to run the build?

    Regards,
    Daniel

  • Hi Daniel,

    Seems like you miss the build env settings. Please download and install the full Processor SDK Linux package, and run the following command on the top directory of the SDK installation:

    $ make jailhouse