Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
0 answers
49 views
Xenomai 3 and Xenomai 4 do not boot on Raspi CM4 due to kernel panic caused by pcie_brcmstb
I have a Raspberry Pi Compute Module 4 with an IO Board. I want to run Xenomai 3 and 4 on it. PCIe should work, so it recognizes my network adapter. I have built some Xenomai Kernels activated the Broadcom Brcmstb PCIe controller, but due to that I get a Kernel Panic during boot If I blacklist `pcie...
I have a Raspberry Pi Compute Module 4 with an IO Board. I want to run Xenomai 3 and 4 on it. PCIe should work, so it recognizes my network adapter. I have built some Xenomai Kernels activated the Broadcom Brcmstb PCIe controller, but due to that I get a Kernel Panic during boot If I blacklist pcie_brcmstb it starts Xenomai normally, but if I type lspci there is no output. I am not sure if I am missing something... This is the output during boot:
[    5.948202] lr : pci_generic_config_read+0x24/0xe0
[    5.948205] sp : ffff800010c134c0
[    5.948208] x29: ffff800010c135f0 x28: ffff3cb4429ec880
[    5.948218] x27: 0000000000000001 x26: 0000000000000000
[    5.948224] x25: 0000000000000001 x24: ffffa446dc4d5540
[    5.948230] x23: 0000000020000005 x22: ffffa446dab93c9c
[    5.948236] x21: ffff800010c13610 x20: 0000ffffffffffff
[    5.948242] x19: 0000000000000004 x18: ffffffffffffffff
[    5.948247] x17: 0000000000000005 x16: 00008a71ea304cb0
[    5.948253] x15: ffff3cb44305da1c x14: ffffa446dc4605a0
[    5.948259] x13: 0000000000000040 x12: 0000000000000000
[    5.948265] x11: 0000000000000000 x10: 0000000000000000
[    5.948270] x9 : 0000000000000228 x8 : 0000000000000000
[    5.948276] x7 : ffff3cb442b25540 x6 : ffffa446dc4633c0
[    5.948282] x5 : ffff800010b30000 x4 : ffff3cb4457fa380
[    5.948288] x3 : 0000000000000000 x2 : 0000000000008000
[    5.948294] x1 : 00000000deaddead x0 : ffff800010b38000
[    5.948300] Kernel panic - not syncing: Asynchronous SError Interrupt
[    5.948304] CPU: 0 PID: 242 Comm: (udev-worker) Not tainted 5.10.209xeno3-00256-ge2e46a0e4e4b-dirty #4
[    5.948307] Hardware name: Raspberry Pi Compute Module 4 Rev 1.1 (DT)
[    5.948309] IRQ stage: Linux
[    5.948311] Call trace:
[    5.948314]  dump_backtrace+0x0/0x1b0
[    5.948316]  show_stack+0x18/0x40
[    5.948318]  dump_stack+0xf4/0x124
[    5.948321]  panic+0x19c/0x36c
[    5.948323]  add_taint+0x0/0xc0
[    5.948325]  arm64_serror_panic+0x78/0x84
[    5.948328]  do_serror+0x38/0xac
[    5.948330]  el1_error+0x90/0x110
[    5.948332]  el1_irq+0x84/0x1c0
[    5.948335]  pci_generic_config_read+0x3c/0xe0
[    5.948338]  pci_bus_read_config_dword+0x7c/0xd0
[    5.948341]  pci_bus_generic_read_dev_vendor_id+0x34/0x1b0
[    5.948343]  pci_scan_single_device+0xa0/0x150
[    5.948346]  pci_scan_slot+0x40/0x120
[    5.948348]  pci_scan_child_bus_extend+0x54/0x2a0
[    5.948351]  pci_scan_bridge_extend+0x148/0x5c4
[    5.948353]  pci_scan_child_bus_extend+0x138/0x2a0
[    5.948356]  pci_scan_root_bus_bridge+0x64/0xdc
[    5.948358]  pci_host_probe+0x18/0xc4
[    5.948361]  brcm_pcie_probe+0x1dc/0x4e4 [pcie_brcmstb]
[    5.948364]  platform_drv_probe+0x54/0xac
[    5.948366]  really_probe+0xec/0x4e0
[    5.948369]  driver_probe_device+0x58/0xec
[    5.948371]  device_driver_attach+0xc0/0xd0
[    5.948373]  __driver_attach+0x68/0x130
[    5.948376]  bus_for_each_dev+0x70/0xd0
[    5.948378]  driver_attach+0x24/0x30
[    5.948381]  bus_add_driver+0x108/0x1fc
[    5.948383]  driver_register+0x78/0x130
[    5.948386]  __platform_driver_register+0x48/0x54
[    5.948389]  brcm_pcie_driver_init+0x24/0x1000 [pcie_brcmstb]
[    5.948391]  do_one_initcall+0x50/0x1c0
[    5.948393]  do_init_module+0x44/0x230
[    5.948396]  load_module+0x1f98/0x26f0
[    5.948398]  __do_sys_finit_module+0xa4/0xf0
[    5.948401]  __arm64_sys_finit_module+0x20/0x30
[    5.948404]  el0_svc_common.constprop.0+0xfc/0x214
[    5.948406]  do_el0_svc+0x28/0xac
[    5.948408]  el0_svc+0x1c/0x2c
[    5.948411]  el0_sync_handler+0xa4/0x12c
[    5.948413]  el0_sync+0x180/0x1c0
[    5.948449] SMP: stopping secondary CPUs
[    5.948452] Kernel Offset: 0x2446ca600000 from 0xffff800010000000
[    5.948455] PHYS_OFFSET: 0xffffc34c00000000
[    5.948457] CPU features: 0x28240022,61806000
[    5.948459] Memory Limit: none
If you need further informations feel free to ask, thanks already.
PikiTv (1 rep)
Jan 15, 2025, 09:25 AM • Last activity: Jan 21, 2025, 12:38 PM
3 votes
1 answers
759 views
Xenomai and Ubuntu
I have installed xenomai 2.4.8 in Ubuntu 11.04 with this command: apt-get install libxenomai-dev Now I want test a simple vxWorks program, but when I compile my program, I receive this message: > Xenomai: vxworksskin or CONFIG_XENO_OPT_PERVASIVE disabled > (modprobe xeno_vxworks?) ...and the output...
I have installed xenomai 2.4.8 in Ubuntu 11.04 with this command: apt-get install libxenomai-dev Now I want test a simple vxWorks program, but when I compile my program, I receive this message: > Xenomai: vxworksskin or CONFIG_XENO_OPT_PERVASIVE disabled > (modprobe xeno_vxworks?) ...and the output of modprobe xeno_vxworks is: > FATAL: Module xeno_vxworks not found My question is, how can I eanble the xeno_vxworks module?
Peacemoon (163 rep)
Jul 8, 2011, 03:12 PM • Last activity: Jan 6, 2019, 01:28 PM
3 votes
1 answers
1302 views
How to apply the xenomai kernel patch on debian?
I've been trying to install xenomai on debian and I'm confused about all the version numbers. I'm on Debian 6 (Linux debian 2.6.32-5-686 #1 SMP Tue May 13 16:33:32 UTC 2014 i686 GNU/Linux) Steps I followed, 1. installed the linux-patch-xenomai from apt via `aptitude install linux-patch-xenomai` 2. t...
I've been trying to install xenomai on debian and I'm confused about all the version numbers. I'm on Debian 6 (Linux debian 2.6.32-5-686 #1 SMP Tue May 13 16:33:32 UTC 2014 i686 GNU/Linux) Steps I followed, 1. installed the linux-patch-xenomai from apt via aptitude install linux-patch-xenomai 2. then according to /usr/share/doc/linux-patch-xenomai/README.Debian I need the kernel source. I got the kernel source via aptitude install linux-source-2.6 3. expand the source tree tar -xvf linux-source-2.6.32.tar.bz2 in /usr/src/ 4. then apply the patch as explained in the above README.Debian by /usr/src/kernel-patches/i386/apply/xenomai which fails 1 out of 4 hunks FAILED -- saving rejects to file arch/x86/kernel/process_64.c.rej 1 out of 6 hunks FAILED -- saving rejects to file arch/x86/mm/fault.c.rej 1 out of 15 hunks FAILED -- saving rejects to file kernel/sched.c.rej 1 out of 1 hunk FAILED -- saving rejects to file kernel/signal.c.rej Why is this failing even though the above README.Debian states This is intended for vanilla and Debian kernel sources? I know debian 6 is eol but any help is appreciated.
Kuravi H (51 rep)
Feb 14, 2017, 03:12 AM • Last activity: Feb 15, 2017, 03:55 PM
2 votes
0 answers
967 views
Xenomai: /dev/rtheap is missing
I tried to install Xenomai 2.5.5.2 on my Ubunto 12.04 PC following the steps in [this guide](http://www.stanley.gatech.edu/skelly/uncategorized/installing-xenomai-on-ubuntu-12-04/#comment-3379). I haven't changed any configuration options. When I run `sudo ./trivial-periodic`, I get a message saying...
I tried to install Xenomai 2.5.5.2 on my Ubunto 12.04 PC following the steps in [this guide](http://www.stanley.gatech.edu/skelly/uncategorized/installing-xenomai-on-ubuntu-12-04/#comment-3379) . I haven't changed any configuration options. When I run sudo ./trivial-periodic, I get a message saying Xenomai: /dev/rtheap is missing How can I resolve this error?
us2956 (121 rep)
Sep 27, 2014, 02:09 PM • Last activity: May 16, 2015, 11:49 AM
1 votes
1 answers
66 views
Failed to fetch 404 errors during apt-get commands
I am using Xenomai linux, and I have internet on it, but when I do `apt-get update` or `apt-get install` I get [bunch of errors][1] like this `http://security.debian.org/dists/etch/updates/contrib/source/Sources.gz 404 Not Found [IP: 212.211.132.250 80] ` I understand it has to do with unsupported r...
I am using Xenomai linux, and I have internet on it, but when I do apt-get update or apt-get install I get bunch of errors like this `http://security.debian.org/dists/etch/updates/contrib/source/Sources.gz 404 Not Found [IP: 212.211.132.250 80] ` I understand it has to do with unsupported repositories, but I googled around, but couldn't find what I need to do to fix it for Xenomai. This is my /etc/apt/sources.list: # # deb cdrom:[Debian GNU/Linux 4.0 r3 _Etch_ - Official i386 NETINST Binary-1 20080218-14:15]/ etch contrib main deb http://ftp.nl.debian.org/debian/ etch main deb-src http://ftp.nl.debian.org/debian/ etch main deb http://security.debian.org/ etch/updates main contrib deb-src http://security.debian.org/ etch/updates main contrib
user1880405 (297 rep)
Sep 16, 2014, 07:25 PM • Last activity: Sep 16, 2014, 08:32 PM
1 votes
2 answers
1447 views
How to boot xenomai on ubuntu 10.04?
I install xenomai by sudo apt-get install xenomai-* It installed dctrl-tools libxenomai-dev libxenomai1 linux-patch-xenomai xenomai-doc xenomai-runtime. But when I check `/boot/grub/grub.cfg`, it seems it didn't change anything. How do I boot `xenomai` on Ubuntu 10.04? Should I followed [Building De...
I install xenomai by sudo apt-get install xenomai-* It installed dctrl-tools libxenomai-dev libxenomai1 linux-patch-xenomai xenomai-doc xenomai-runtime. But when I check /boot/grub/grub.cfg, it seems it didn't change anything. How do I boot xenomai on Ubuntu 10.04? Should I followed Building Debian packages 's Building a Xenomai patched Linux kernel package? But it uses kernel 2.6.35, which is newer than mine (2.6.32). Thank you~
sam (1057 rep)
Oct 29, 2011, 02:28 PM • Last activity: Jan 27, 2013, 07:56 PM
1 votes
0 answers
986 views
error: implicit declaration of function ‘rt_dev_socket’
**The developer says: http://comments.gmane.org/gmane.linux.real-time.rtnet.user/2546** > > > Now how can I tell the Makefile to look for headers in > > /usr/local/rtnet/include respectively how could I set my CFLAGS? > > EXTRA_CFLAGS := -I ... > > > Sorry for that not really RTnet dependent questio...
**The developer says: http://comments.gmane.org/gmane.linux.real-time.rtnet.user/2546** > > > Now how can I tell the Makefile to look for headers in > > /usr/local/rtnet/include respectively how could I set my CFLAGS? > > EXTRA_CFLAGS := -I ... > > > Sorry for that not really RTnet dependent question, but I couldn't find > > a Makefile-howto covering this question. > > Maybe this helps, though it a bit more complicated due to serving 2.4 > and 2.6 kernels: **So, I took the makefile from here: http://svn.gna.org/viewcvs/xenomai/trunk/examples/rtdm/driver-api/ and added -I /usr/local/rtnet/include corresponding to **EXTRA_CFLAGS**** ###### CONFIGURATION ###### ### List of applications to be build APPLICATIONS = hello ### Note: to override the search path for the xeno-config script, use "make XENO=..." ### List of modules to be build MODULES = hello ### Note: to override the kernel source path, use "make KSRC=..." ###### USER SPACE BUILD (no change required normally) ###### ifeq ($(KERNELRELEASE),) ifneq ($(APPLICATIONS),) ### Default Xenomai installation path XENO ?= /usr/xenomai XENOCONFIG=$(shell PATH=$(XENO):$(XENO)/bin:$(PATH) which xeno-config 2>/dev/null) ### Sanity check ifeq ($(XENOCONFIG),) all:: @echo ">>> Invoke make like this: \"make XENO=/path/to/xeno-config\" #include #include #include #include #include #include RT_TASK demo_task; void demo(void *arg) { RT_TASK *curtask; RT_TASK_INFO curtaskinfo; printf("Hello World!\n"); curtask=rt_task_self(); rt_task_inquire(curtask,&curtaskinfo); printf("Task name : %s \n", curtaskinfo.name); ********int sockfd = rt_dev_socket(AF_INET, SOCK_DGRAM, 0);******** } int main(int argc, char* argv[]) { char str ; rt_print_auto_init(1); mlockall(MCL_CURRENT|MCL_FUTURE); printf("start task\n"); sprintf(str,"hello"); rt_task_create(&demo_task, str, 0, 50, 0); rt_task_start(&demo_task, &demo, 0); }
Aquarius_Girl (1275 rep)
Jun 25, 2012, 06:16 AM • Last activity: Jun 25, 2012, 06:21 AM
4 votes
2 answers
1702 views
Do GNUmakefile, GNUmakefile.am, and GNUmakefile.in indicate that Automake has been used?
[The source folder of rtnet contains only the above mentioned files for compilation purposes.][1] Remaining files are the source code of the examples. Question is that do these files indicate that they have been generated through automake? If yes, then where should I look to find out what settings w...
The source folder of rtnet contains only the above mentioned files for compilation purposes. Remaining files are the source code of the examples. Question is that do these files indicate that they have been generated through automake? If yes, then where should I look to find out what settings where made to configure automake for generating these files?
Aquarius_Girl (1275 rep)
Jun 23, 2012, 06:28 AM • Last activity: Jun 23, 2012, 10:53 AM
0 votes
1 answers
769 views
What is the realtime equivalent of the module r8169?
From here: http://www.xenomai.org/index.php/RTnet:Installation_%26_Testing#Testing_with_a_single_node_.28local_loopback.29 > TODO: simplify the following steps. - Then you need to edit the file rtnet.conf under the /usr/local/rtnet/etc folder for the correct setup to run RTnet. Edit the following pa...
From here: http://www.xenomai.org/index.php/RTnet:Installation_%26_Testing#Testing_with_a_single_node_.28local_loopback.29 > TODO: simplify the following steps. - Then you need to edit the file rtnet.conf under the /usr/local/rtnet/etc folder for the correct setup to run RTnet. Edit the following parameters: - Set the host up as master or slave depending on how you are going to use it. **- The RT_DRIVER should be the realtime equivalent of the module you removed nl. rt_8139too.** Kernel: 2.6.38.8 linux-y3pi:~ # ethtool -i eth0 driver: r8169 version: 2.3LK-NAPI firmware-version: bus-info: 0000:01:00.0 After RTnet installation I get: linux-y3pi:/usr/local/rtnet/modules # ls rt_8139too.ko rtcfg.ko rt_eepro100.ko rt_loopback.ko rtnet.ko rtudp.ko rtcap.ko rt_e1000.ko rtipv4.ko rtmac.ko rtpacket.ko tdma.ko How to find what corresponds to r8169?
Aquarius_Girl (1275 rep)
Jun 7, 2012, 08:13 AM • Last activity: Jun 7, 2012, 08:51 AM
4 votes
1 answers
2527 views
How to know whether the Linux driver for the real-time network device was built into the kernel?
From here: http://www.xenomai.org/index.php/RTnet:Installation_%26_Testing#Debugging_RTnet > The Linux driver for the real-time network device was built into the kernel and blocks the hardware. When I execute `rmmod 8139too` it says the module does not exist in `/proc/modules`. Kernel is `2.6.38.8 (...
From here: http://www.xenomai.org/index.php/RTnet:Installation_%26_Testing#Debugging_RTnet > The Linux driver for the real-time network device was built into the kernel and blocks the hardware. When I execute rmmod 8139too it says the module does not exist in /proc/modules. Kernel is 2.6.38.8 (64 bit). What other information should I provide for the question? --- linux-y3pi:~ # uname -a Linux linux-y3pi 2.6.38.8-12-desktop #2 SMP PREEMPT Fri Jun 1 17:27:16 IST 2012 x86_64 x86_64 x86_64 GNU/Linux linux-y3pi:~ # ifconfig eth0 Link encap:Ethernet HWaddr 00:24:8C:D9:D6:2E inet addr:192.168.16.86 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::224:8cff:fed9:d62e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:414 errors:0 dropped:0 overruns:0 frame:0 TX packets:261 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:118971 (116.1 Kb) TX bytes:35156 (34.3 Kb) Interrupt:17 Base address:0x4000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:68 errors:0 dropped:0 overruns:0 frame:0 TX packets:68 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4720 (4.6 Kb) TX bytes:4720 (4.6 Kb) linux-y3pi:~ # ethtool -i eth0 driver: r8169 version: 2.3LK-NAPI firmware-version: bus-info: 0000:01:00.0 linux-y3pi:~ # rmmod r8169 linux-y3pi:~ # ethtool eth0 Settings for eth0: Cannot get device settings: No such device Cannot get wake-on-lan settings: No such device Cannot get message level: No such device Cannot get link status: No such device No data available linux-y3pi:~ # lsmod|grep 8169 linux-y3pi:~ # lsmod|grep 8139 linux-y3pi:~ # **.config from /usr/src/linux-2.6.38.8** CONFIG_R8169=m CONFIG_R8169_VLAN=y CONFIG_8139CP=m CONFIG_8139TOO=m #CONFIG_8139TOO_PIO is not set #CONFIG_8139TOO_TUNE_TWISTER is not set CONFIG_8139TOO_8129=y #CONFIG_8139_OLD_RX_RESET is not set
Aquarius_Girl (1275 rep)
Jun 6, 2012, 10:43 AM • Last activity: Jun 7, 2012, 07:42 AM
Showing page 1 of 10 total questions