Am Wed, 17 Jan 2018 08:34:24 -0800 schrieb <assila.belhouic...@ensi-uma.tn>:
> Le mercredi 17 janvier 2018 17:26:29 UTC+1, Henning Schild a écrit : > > Am Wed, 17 Jan 2018 07:59:34 -0800 > > schrieb <assila.belhouic...@ensi-uma.tn>: > > > > > Hi, > > > > > > i've been trying to run the inter-cell communication on the > > > bananapi since the patchs were posted by Jonas, but i've been > > > facing some problems, finally when i saw the comments of Henning > > > about the potential problems i restarted all over from the > > > beginning and i applied the corrections that Henning told about: > > > > Meanwhile i sent a patch-series that also takes care of enabling > > that feature. It is based on the patches from Jonas. > > https://groups.google.com/forum/#!topic/jailhouse-dev/TeGZNtfOV1Y > > > > then > > jailhouse enable bananapi.cell > > jailhouse cell create bananapi-linux-demo.cell > > jailhouse cell load 1 ivshmem-demo.bin -s "pci-cfg-base=0x02000000 > > irq=155" -a 0x100 > > jailhouse cell start 1 > > > > You could try that or stay with the patches from Jonas. > > One trick to make sure you get the config right is to use the > > bananapi-linux-demo.cell, which is known to work. If "cell create" > > does not work, make sure both cells have the same ".shmem_protocol". > > > > > 1- i added all the patchs (except the bpi-ivshmem.c in the configs > > > directory) 2- i changed the the memory region in > > > "configs/bananapi-ivshmem-demo.c" as Henning indicated: > > > > > > - .phys_start = 0x7c000000, > > > - .virt_start = 0x7c000000, > > > + .phys_start = 0x7bf00000, > > > + .virt_start = 0x7bf00000, > > > > > > 3- i added the following configuration entries (in the .cell > > > member), which are missing in bananapi-ivshmem-demo.c: : > > > + .pio_bitmap_size = 0, > > > + .vpci_irq_base = 123, > > > > > > ===> Results: when i execute "jailhouse cell start ivshmem-demo" > > > i got this ERROR : > > > > > > FATAL: instruction abort at 0xcf06c > > > FATAL: forbidden access (exception class 0x20) > > > pc=0x000cf45c cpsr=0x00000153 hsr=0x80000007 > > > r0=0x00001358 r1=0x0000000d r2=0x00000000 r3=0x00006f02 > > > r4=0x00349031 r5=0x000326be r6=0x000cf45d r7=0x000036bb > > > r8=0x00001565 r9=0x0002c558 r10=0x0034906d r11=0x000326c0 > > > r12=0x00000000 r13=0x00007070 r14=0x0000040d > > > Parking CPU 1 (Cell: "ivshmem-demo") > > > > > > - am i doing sth wrong? if not, what could be the problem? > > > > Maybe you are missing some parameters when loading the cell? like > > the "-a 0x100" > > > > Henning > > Hi Henning, > > yes i've just paid attention to that :), but the problem now is that > i don't have this /ivshmem-utils folder in any directory on my > bananapi. https://github.com/henning-schild-work/ivshmem-guest-code You will have to clone this repo as well. It contains the uio driver and the utils, and a jailhouse specific README. Make sure to checkout the "jailhouse" branch! So i guess the test did find a device and is sending interrupts already? Or if you are using the one from Jonas, it is now waiting for an interrupt? Henning > PS: i don't have jailhouse under /usr/share/ it's simply under > my /root > -- 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 jailhouse-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.