Hi!

I have now successfully booted the mainline kernel on RPi3. 
The problem I have now instead is the pinctrl-bcm2835 driver. 
In /dev/rtdm/pinctrl-bcm2835/ are the pins in wrong numbers, 
they start at 400+ and end at 500+. 

When I looked inside /drivers/pinctrl/bcm/pinctrl-bcm2835.c 
It is very different from the one in rpi-kernel. Im guessing 
that the driver pinctrl-bcm2835.c in the mainline is for the
 older RPi's while rpi-kernel got the for the newer models.

Do you have any ideas on how I should continue?

Do you have a working pinctrl-bcm2835 driver on your RPi2?

Regards
Gustav 

 
________________________________________
From: Greg Gallagher <[email protected]>
Sent: 24 April 2018 15:34
To: Gustav Johansson
Cc: [email protected]
Subject: Re: [Xenomai] Illegal instruction/bad syscall

Have you considered using mainline?  I'm not sure if anyone has been
testing the raspberry pi tree against stable xenomai-3.  I've
validated most of the xenomai-3 stable branch against raspberry pi 2b
(mainline) so I've looked at most of the bcm code recently and i
haven't git the syscall issue.  Some of the maintainers are also
looking to test ARM64 rpi3 so if you want to try getting the 64-bit
mainline kernel running on your board I can give you some help.

-Greg

On Tue, Apr 24, 2018 at 8:38 AM, Gustav Johansson <[email protected]> wrote:
> Hi!
>
>
> I recently managed to run a cobalt core for raspberry pi 3, Im using ipipe #9 
> for arm,  kernel version 4.1.21, Xenomai 3.0.6.
>
>
> I managed to build the xenomai API but when I try every executable file, for 
> example latency test bench,  I get "illegal instruction", and in dmesg I get 
> "[Xenomai] bad syscall <0xff7000af> ...".
>
>
> The crosscompiler Im using is 
> https://github.com/raspberrypi/tools/tree/master/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian
>  and I have also tried compiling it on the RPI3 itself but Im getting the 
> same error.
>
>
> I have compared my kernel config next to Harco Kuppens  working image 
> (http://www.cs.ru.nl/lab/xenomai/) But the only difference is that I have 
> higher values in XENO_OPT_SYS_HEAP, XENO_PRIVATE_HEAPS, 
> XENO_OPT_SHARED_HEAPSZ, XENO_OPT_TIMERS.
>
>
> Im uploading a readme with the steps I have taken with the installation and 
> also my kernel config.
>
>
> Any ideas on why I get "Illegal instruction"?
>
>
> Regards
>
> Gustav Johansson
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: rpi3_cobalt_4.1.21_config
> Type: application/octet-stream
> Size: 126604 bytes
> Desc: rpi3_cobalt_4.1.21_config
> URL: 
> <http://xenomai.org/pipermail/xenomai/attachments/20180424/fd49797a/attachment.obj>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: readme.md
> Type: text/markdown
> Size: 6403 bytes
> Desc: readme.md
> URL: 
> <http://xenomai.org/pipermail/xenomai/attachments/20180424/fd49797a/attachment.bin>
> _______________________________________________
> Xenomai mailing list
> [email protected]
> https://xenomai.org/mailman/listinfo/xenomai

_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai

Reply via email to