Jailhouse .cell file format

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Jailhouse .cell file format

2,756 Views
Ahelion
Contributor IV

Hello all,

looking into the L5.36 Linux for imx8mp i can see the /usr/share/jailhouse folder, where there are some .cell files.

is the format explained somewhere? Nxp specific?

i want to allocate the display port of my board to the inmate linux.

br,

mircea

0 Kudos
Reply
5 Replies

2,719 Views
Ahelion
Contributor IV

Can you be more specific? I need exact page number, I was also reading them and found no "how to setup up jailhouse cell".

I want to make a cell for android, and the precious few information I can find about jailhouse and cell seem to be made for people who already know a bunch about jailhouse out of the box, not beginners like me.

Br, Mircea

0 Kudos
Reply

2,704 Views
jimmychan
NXP TechSupport
NXP TechSupport

Hello,

 

There are demo/examples for the cell configuration.

https://github.com/siemens/jailhouse/tree/master/configs

 

Please read the https://github.com/siemens/jailhouse/blob/master/README.md

"Configurations for additional (non-root) cells currently require manual creation. To study the structures, use one of the demo cell configurations files as reference, e.g. configs/x86/apic-demo.c or configs/x86/e1000-demo.c."

 

Best regards,

Jimmy

0 Kudos
Reply

2,698 Views
Ahelion
Contributor IV

Hello Jimmy,

I am going over all of these, but to be hones, it is like trying to reverse engineer a bread recipe only from crumbs. 

The android 11 needs a screen, how do I tell it in the jailhouse cel config to use a screen?

Or which one of the available demos is closer to android?

Br, Mircea

 

0 Kudos
Reply

2,692 Views
Peng_Fan
NXP Employee
NXP Employee
  1. Configure booting from SD.
  2. 'run jh_mmcboot' or 'run jh_netboot' in U-Boot stage
  3. Wait linux boots up and login in
  4. modprobe jailhouse
  5. jailhouse enable /usr/share/jailhouse/cells/imx8mp.cell
  6. export PATH=$PATH:/usr/share/jailhouse/tools/
  7. jailhouse cell linux /usr/share/jailhouse/cells/imx8mp-linux-demo.cell /run/media/boot-mmcblk1p1/Image -d /run/media/boot-mmcblk1p1/imx8mp-evk-inmate.dtb -c "clk_ignore_unused console=ttymxc3,115200 earlycon=ec_imx6q,0x30890000,115200 root=/dev/mmcblk2p2 rootwait rw"

You may update step 6 Image and dtb path if not match your release. The upper step has been tested on 6.1 release.

The inmate linux use a different uart, not the root linux one. You need open the uart to see console output. Currently the linux inmate cell only has uart and emmc peripherals.

I suppose you wanna to bringup android 11 in inmate cell with display support. Then you need assign most multilmedia peripherals to inmate cell, this needs some work.

Kernel & Virtualization Engineer
0 Kudos
Reply

2,726 Views
jimmychan
NXP TechSupport
NXP TechSupport

FYI.

IMXVIRTUG -- i.MX Virtualization User's Guide 

The source code : https://github.com/nxp-imx/imx-jailhouse

Harpoon are based on Jailhouse. Harpoon is an IoT & Industrial Enablement SW platform, providing an RTOS and application specific drivers and software stacks running in Jailhouse hypervisor environment along with Linux.  https://www.nxp.com/docs/en/user-guide/Harpoon_USERS_GUIDE.pdf

 

0 Kudos
Reply