Hi, On 10/22/20 12:09 PM, Andrea Bastoni wrote: > Hi, > > On 20/10/2020 12:19, Jari Ronkainen wrote: >> I noticed that dmesg gives me >> >> jailhouse: not as system configuration > > I'm hitting likely the same with Ubuntu 20.04, but not under Debian testing. > > It seems that the .note.gnu.property section is interfering with objcpy and > causes the "JHSYST" identification to be removed from the .cell. > > Removing the section while copying the .o fixes the issue: > > objcopy --version > GNU objcopy (GNU Binutils for Ubuntu) 2.34 > > readelf -a jailhouse/configs/x86/qemu-x86.o > ... > Displaying notes found in: .note.gnu.property > Owner Data size Description > GNU 0x00000010 NT_GNU_PROPERTY_TYPE_0 > Properties: x86 feature: IBT, SHSTK > > hexdump -C jailhouse/configs/x86/qemu-x86.cell > 00000000 04 00 00 00 10 00 00 00 05 00 00 00 47 4e 55 00 |............GNU.|
And the Gnu comes around and drops its own magic cowpat. ;-) Jan, maybe it's time to use a linker script for configs? This should avoid such errors in the future. I think we have already seen something similar in the past. > > > objcopy -O binary --remove-section=.note.gnu.property > jailhouse/configs/x86/qemu-x86.o jailhouse/configs/x86/qemu-x86.cell > > 00000000 4a 48 53 59 53 54 0d 00 01 00 00 00 00 00 00 3a |JHSYST.........:| This reminds me that I wanted to write an extension for file(1). It'd really be helpful if file would be able do determine if a file actually is a configuration, and then if it is system or a cell config. Ralf > > Maybe related to: > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906414 > > Thanks, > Andrea > >> >> , but this is the example .cell file that builds >> with the source code and is used as an example >> in the README.md? >> On Tuesday, October 20, 2020 at 12:56:36 PM UTC+3 Jari Ronkainen wrote: >> >> Hi, >> >> I'm interested in running ROS2 in a Linux cell, first through >> QEMU and later on Up Xtreme board. Apologies for stupid >> questions, and please refer me to a more appropriate forum >> if this is the wrong place for them. >> >> First I have built a fresh virtual machine and installed Ubuntu >> 20.04 LTS, then installed linux headers, build tools and python >> through apt. >> >> The compilation and installing seems to work fine, but when I >> get to the point where I should do >> >> # jailhouse enable jailhouse/configs/qemu-x86.cell >> >> I get an error message >> >> JAILHOUSE_ENABLE: Invalid argument >> >> I do not know how to get past this, any help? >> >> >> Other things is it seems like the documentation is not entirely >> up to date, and I noticed things like experimental virtio support >> and IPC reworkings in 0.12 release notes, is there any more info >> about those in the wild or should I just dig through git commits? >> >> -- >> 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] >> <mailto:[email protected]>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jailhouse-dev/b4510771-f6f0-4771-9fe8-50a39589bd88n%40googlegroups.com >> <https://groups.google.com/d/msgid/jailhouse-dev/b4510771-f6f0-4771-9fe8-50a39589bd88n%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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/3f1b6c78-46f8-424e-7114-11d29103b325%40oth-regensburg.de.
