All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Bachman Kharazmi <bahkha@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] serial module problems
Date: Sat, 08 Sep 2007 23:04:27 +0200	[thread overview]
Message-ID: <1189285467.6013.20.camel@domain.hid> (raw)
In-Reply-To: <1ce16a2c0709081159y62fbb73bwb16d2cae7a931774@domain.hid>

On Sat, 2007-09-08 at 20:59 +0200, Bachman Kharazmi wrote:
> Hi
> I'm a new xenomai user and would like to get the serial module working.
> 

Which Xenomai version, which kernel release, which Adeos/I-pipe release?

> I've 'builtin' serial support in my kernel, and tried to add a new
> modified kernel line according to the docs which looks like:
> 

Make sure CONFIG_XENO_DRIVERS_16550A is enabled in your kernel
configuration, and vanilla serial support disabled.

> kernel          /boot/maikern2 8250.nr_uarts=0
> xeno_16550A.ioaddr=0x03f8,0xbc00,0xbc08,0xb800 xeno_16550A.irq=4,3,3,3
> xeno_16550A.baud_base=115200,115200,115200,115200 root=/dev/hda3 ro
> 
> But when I boot my dmesg sais:
> Kernel command line: 8250.nr_uarts=0
> xeno_16550A.ioaddr=0x03f8,0xbc00,0xbc08,0xb800 xeno_16550A.irq=4,3,3,3
> xeno_16550A.baud_base=115200,115200,115200,115200 root=/dev/hda3 ro
> Unknown boot option `xeno_16550A.ioaddr=0x03f8,0xbc00,0xbc08,0xb800': ignoring
> 
> 
> the serial example gives:
> sandbox:/usr/src/xenomai/examples/rtdm/profiles/serial# ./cross-link
> main : can't open rtser0 (write), No such device
> 
> 
> I've tried to build the Serial support as a module instead, but it ends up in:
> ERROR: "per_cpu__ipipe_percpu_daddr"
> [drivers/xenomai/serial/xeno_16550A.ko] undefined!
> when doing make bzImage modules.
> 

I guess you might be using the latest Xenomai trunk/ with the latest
Adeos/x86 patches from the 2.6.22/1.10 series then. Some new symbols
have not been exported as they should in the latest Adeos release. The
patch below fixes that.

index 4d5bf61..08f4c33 100644
--- a/kernel/ipipe/core.c
+++ b/kernel/ipipe/core.c
@@ -1577,6 +1577,7 @@ EXPORT_SYMBOL(ipipe_control_irq);
 EXPORT_SYMBOL(ipipe_suspend_domain);
 EXPORT_SYMBOL(ipipe_alloc_virq);
 EXPORT_PER_CPU_SYMBOL(ipipe_percpu_domain);
+EXPORT_PER_CPU_SYMBOL(ipipe_percpu_darray);
 EXPORT_SYMBOL(ipipe_root);
 EXPORT_SYMBOL(ipipe_stall_pipeline_from);
 EXPORT_SYMBOL(ipipe_test_and_stall_pipeline_from);
@@ -1597,6 +1598,7 @@ EXPORT_SYMBOL(__ipipe_lock_irq);
 EXPORT_SYMBOL(__ipipe_unlock_irq);
 #ifndef CONFIG_SMP
 EXPORT_SYMBOL(__ipipe_root_status);
+EXPORT_PER_CPU_SYMBOL(ipipe_percpu_daddr);
 #endif
 EXPORT_SYMBOL(ipipe_register_domain);
 EXPORT_SYMBOL(ipipe_unregister_domain);

This fix is now part of the next Adeos/x86 release:

http://download.gna.org/adeos/patches/v2.6/i386/adeos-ipipe-2.6.22-i386-1.10-03.patch


> Any help is welcome
> /Bachman
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
-- 
Philippe.




  parent reply	other threads:[~2007-09-08 21:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-08 18:59 [Xenomai-help] serial module problems Bachman Kharazmi
2007-09-08 21:02 ` Jan Kiszka
2007-09-08 21:04 ` Philippe Gerum [this message]
2007-09-09 14:30   ` Bachman Kharazmi
2007-09-09 14:51     ` Jan Kiszka
2007-09-09 15:09       ` Bachman Kharazmi
2007-09-09 15:29         ` Jan Kiszka
2007-09-09 16:13           ` Bachman Kharazmi
2007-09-09 16:17             ` Bachman Kharazmi
2007-09-09 16:42             ` Jan Kiszka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1189285467.6013.20.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=bahkha@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.