Ok, so i realized i was declaring, on non root cell, a memory region that
belonged to non-reserved memory from root cell (3fd00000-5fffffff : System
RAM).
I've changed the memory region to reserved memory (address 0x90000000),
because on u-boot the memory reservation argument is mem=1536M, which
equals to top address 0x5fffffff.
/* RAM */ {
.phys_start = 0x90000000,
.virt_start = 0x90000000,
.size = 0x20000000,
.flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
JAILHOUSE_MEM_EXECUTE | JAILHOUSE_MEM_LOADABLE |
JAILHOUSE_MEM_DMA,
},
After issuing "jailhouse cell linux ultra96-linux-demo2.cell Image -d
inmate-zynqmp.dtb -i rootfs.cpio -c "console=ttyS0, 115200" -k 4"
The following error appears:
[ 82.987144] Created Jailhouse cell "non-root"
Cell "non-root" can be loaded
Traceback (most recent call last):
File "/usr/local/libexec/jailhouse/jailhouse-cell-linux", line 826, in
<module>
cell.load(open(linux_loader, mode='rb').read(), arch.loader_address())
File "/usr/local/lib/python2.7/dist-packages/pyjailhouse/cell.py", line
44, in load
fcntl.ioctl(self.dev, self.JAILHOUSE_CELL_LOAD, load)
IOError: [Errno 22] Invalid argument
root@xilinx-ultra96-reva-2018_2:~# \00
terça-feira, 30 de Julho de 2019 às 14:35:04 UTC+1, Jan Kiszka escreveu:
>
> On 30.07.19 14:55, João Reis wrote:
> > The rest of the dump is:
> >
> > "Parking CPU 1 (Cell: "root")"
>
> Exactly. So the problem is with the root cell, not the non-root one. Check
> what
> I wrote regarding memory reservation.
>
> Jan
>
> >
> > terça-feira, 30 de Julho de 2019 às 13:30:47 UTC+1, Jan Kiszka escreveu:
> >
> > On 30.07.19 12:32, João Reis wrote:
> > > This problem is still related to non root cell, when i issue
> jailhouse
> > cell linux.
> > >
> >
> > Which CPU & cell is stopped according to the output?
> > Your dump is missing the line "Stopped CPU x (Cell: XXX)".
> >
> > Jan
> >
> > > terça-feira, 30 de Julho de 2019 às 06:39:59 UTC+1, Jan Kiszka
> escreveu:
> > >
> > > On 30.07.19 04:18, João Reis wrote:
> > > > Ok, that's it. But now, another error related to that memory
> region
> > appears:
> > > >
> > > > FATAL: instruction abort at 0x4fffe1d0
> > > > FATAL: forbidden access (exception class 0x20)
> > > > Cell state before exception:
> > > > pc: ffffff80080971d0 lr: ffffff8008768e14 spsr: 600001c5
> EL1
> > > > sp: ffffff8008e73ea0 esr: 20 1 0000086
> > > > x0: ffffffc04d2b7a00 x1: ffffffc04cff6000 x2:
> 0000000000000000
> > > > x3: ffffff8008768de0 x4: 0000000000000015 x5:
> 00ffffffffffffff
> > > > x6: 0000000029382596 x7: 0000000000000f94 x8:
> ffffffc04ff79404
> > > > x9: 00000000000007df x10: ffffffc04ff793e4 x11:
> 0000000000001dd8
> > > > x12: 0000000000000000 x13: 00000000000094e5 x14:
> 071c71c71c71c71c
> > > > x15: ffffff8008e78000 x16: ffffff800819b1e8 x17:
> 0000007fa7da3718
> > > > x18: ffffffc04ff7a460 x19: ffffffc04cff6000 x20:
> ffffffc04cff6018
> > > > x21: ffffffc04d2b7a00 x22: 0000000000000000 x23:
> ffffffc04cff6000
> > > > x24: 00000009ed76160a x25: ffffffc04cff6000 x26:
> ffffff8008e82100
> > > > x27: 0000000000000400 x28: 0000000000df0018 x29:
> ffffff8008e73ea0
> > > >
> > > > The error happens in an address within the memory region i
> want to
> > put the
> > > Linux
> > > > images (3fd00000-5fffffff : System RAM), and that i declared
> on the
> > config
> > > file.
> > >
> > > Which cell raises this error (you cut off that information)?
> If it is
> > the root
> > > cell, it may lack LOADABLE rights for the region. If it
> happens after
> > loading,
> > > you forgot to reserve that memory via "mem=" or dtb
> reservations.
> > >
> > > Jan
> > >
> > > --
> > > Siemens AG, Corporate Technology, CT RDA IOT SES-DE
> > > Corporate Competence Center Embedded Linux
> > >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Jailhouse" group.
> > > To unsubscribe from this group and stop receiving emails from it,
> send an
> > email
> > > to [email protected] <javascript:>
> > > <mailto:[email protected] <javascript:>
> <javascript:>>.
> > > To view this discussion on the web visit
> > >
> >
> https://groups.google.com/d/msgid/jailhouse-dev/dde1cd0e-407e-45b3-ae32-97c445100824%40googlegroups.com
>
> > <
> https://groups.google.com/d/msgid/jailhouse-dev/dde1cd0e-407e-45b3-ae32-97c445100824%40googlegroups.com>
>
>
> >
> > >
> > <
> https://groups.google.com/d/msgid/jailhouse-dev/dde1cd0e-407e-45b3-ae32-97c445100824%40googlegroups.com?utm_medium=email&utm_source=footer
>
> > <
> https://groups.google.com/d/msgid/jailhouse-dev/dde1cd0e-407e-45b3-ae32-97c445100824%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups
> > "Jailhouse" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email
> > to [email protected] <javascript:>
> > <mailto:[email protected] <javascript:>>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/jailhouse-dev/39b83770-5562-437f-a25b-415d85dc7c3b%40googlegroups.com
>
> > <
> https://groups.google.com/d/msgid/jailhouse-dev/39b83770-5562-437f-a25b-415d85dc7c3b%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
>
>
> --
> Siemens AG, Corporate Technology, CT RDA IOT SES-DE
> Corporate Competence Center Embedded Linux
>
--
You received this message because you are subscribed to the Google Groups
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jailhouse-dev/43d8fdde-153f-40ec-8974-4388efab8315%40googlegroups.com.