Skip to contentSkip to conversation

XDDP socket problem

Xenomai-help Gianni Perugini 2 participants 6 messages Jan 5, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

I would like to use XDDP-based RT/NRT threads communication on my application, but I'm having some problems. I can build successfully the file "XDDP-ECHO.C" found in the "EXAMPLES" folder, but when I start it, it fails with the following error: "socket: Address family not supported by protocol".

Please find attached config file, dmesg log and lsmod log.

I'm using kernel 2.6.35.7 and xenomai 2.5.5.2 with adeos-ipipe-2.6.35.7-x86-2.8-01.patch.

Thanks in advance for your help.

Gianni Perugini

Ilapak Italia S.p.A.

Via L.Lama 11/13

52045 - Foiano della Chiana (AR)

Phone: +39 0575 649751

Fax: +39 0575 649753

Mobile: +39 349 2377467

Email: <mailto:[email protected]> [email protected]

Web: <http://www.ilapak.com> www.ilapak.com

Initializing cgroup subsys cpuset
Linux version 2.6.35.7_LFS_67_XENO ([email protected]) (gcc version 4.5.1 (GCC) ) #6 SMP PREEMPT Mon Jan 3 15:24:13 CET 2011 Atom PSE erratum detected, BIOS microcode update recommended
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 0000000000097000 (usable)
BIOS-e820: 0000000000097000 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000003f7d0000 (usable)
BIOS-e820: 000000003f7d0000 - 000000003f7de000 (ACPI data)
BIOS-e820: 000000003f7de000 - 000000003f7f0000 (ACPI NVS)
BIOS-e820: 000000003f7f0000 - 000000003f800000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved)
Notice: NX (Execute Disable) protection cannot be enabled: non-PAE kernel!
DMI present.
AMI BIOS detected: BIOS may corrupt low RAM, working around it.
e820 update range: 0000000000000000 - 0000000000010000 (usable) ==> (reserved)
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x3f7d0 max_arch_pfn = 0x100000
MTRR default type: uncachable
MTRR fixed ranges enabled:
00000-9FFFF write-back
A0000-DFFFF uncachable
E0000-E3FFF write-protect
E4000-E7FFF write-through
E8000-FFFFF write-protect
MTRR variable ranges enabled:
0 base 000000000 mask 0C0000000 write-back
1 base 03F800000 mask 0FF800000 uncachable
2 disabled
3 disabled
4 disabled
5 disabled
6 disabled
7 disabled
x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
Warning only 895MB will be used.
Use a HIGHMEM enabled kernel.
initial memory mapped : 0 - 00c00000
found SMP MP-table at [c00ff780] ff780
init_memory_mapping: 0000000000000000-0000000037f8d000
0000000000 - 0037f8d000 page 4k
kernel direct mapping tables up to 37f8d000 @ 100000-1e3000
ACPI: RSDP 000f9630 00014 (v00 ACPIAM)
ACPI: RSDT 3f7d0000 00038 (v01 021010 RSDT1436 20100210 MSFT 00000097)
ACPI: FACP 3f7d0200 00084 (v02 021010 FACP1436 20100210 MSFT 00000097)
ACPI: DSDT 3f7d0430 04566 (v01 V06RM V06RMR10 00000001 INTL 20051117)
ACPI: FACS 3f7de000 00040
ACPI: APIC 3f7d0390 0005C (v01 021010 APIC1436 20100210 MSFT 00000097)
ACPI: MCFG 3f7d03f0 0003C (v01 021010 OEMMCFG 20100210 MSFT 00000097)
ACPI: OEMB 3f7de040 00073 (v01 021010 OEMB1436 20100210 MSFT 00000097)
ACPI: SSDT 3f7dea00 004F0 (v01 PmRef CpuPm 00003000 INTL 20051117)
ACPI: Local APIC address 0xfee00000
895MB LOWMEM available.
mapped low ram: 0 - 37f8d000
low ram: 0 - 37f8d000
Zone PFN ranges:
DMA 0x00000010 -> 0x00001000
Normal 0x00001000 -> 0x00037f8d
Movable zone start PFN for each node
early_node_map[2] active PFN ranges

    0: 0x00000010 -> 0x00000097
    0: 0x00000100 -> 0x00037f8d

On node 0 totalpages: 229140
free_area_init_node: node 0, pgdat c07a2e40, node_mem_map c1000200
DMA zone: 32 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 3943 pages, LIFO batch:0
Normal zone: 1760 pages used for memmap
Normal zone: 223405 pages, LIFO batch:31
Using APIC driver default
ACPI: PM-Timer IO Port: 0x808
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0]) IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 40
Allocating PCI resources starting at 3f800000 (gap: 3f800000:bf600000)
setup_percpu: NR_CPUS:2 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1 early_res array is doubled to 64 at [11000 - 117ff]
PERCPU: Embedded 16 pages/cpu @c1706000 s43904 r0 d21632 u65536
pcpu-alloc: s43904 r0 d21632 u65536 alloc=16*4096
pcpu-alloc: [0] 0 [0] 1
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 227348 Kernel command line: root=/dev/sda2
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done. Initializing CPU#0
Subtract (39 early reservations)
#1 [0000001000 - 0000002000] EX TRAMPOLINE
#2 [0000400000 - 000088d200] TEXT DATA BSS
#3 [000088e000 - 00008910e7] BRK
#4 [00000ff790 - 0000100000] BIOS reserved
#5 [00000ff780 - 00000ff790] MP-table mpf
#6 [0000097000 - 00000fcc20] BIOS reserved
#7 [00000fcd70 - 00000ff780] BIOS reserved
#8 [00000fcc20 - 00000fcd70] MP-table mpc
#9 [0000010000 - 0000011000] TRAMPOLINE

  #10 [0000100000 - 00001dd000]         PGTABLE
  #11 [0001000000 - 0001700000]         BOOTMEM
  #12 [0001700000 - 0001700004]         BOOTMEM
  #13 [0001700040 - 0001700100]         BOOTMEM
  #14 [0001700100 - 0001700154]         BOOTMEM
  #15 [0001700180 - 0001703180]         BOOTMEM
  #16 [0001703180 - 00017031a7]         BOOTMEM
  #17 [00017031c0 - 00017032d8]         BOOTMEM
  #18 [0001703300 - 0001703340]         BOOTMEM
  #19 [0001703340 - 0001703380]         BOOTMEM
  #20 [0001703380 - 00017033c0]         BOOTMEM
  #21 [00017033c0 - 0001703400]         BOOTMEM
  #22 [0001703400 - 0001703440]         BOOTMEM
  #23 [0001703440 - 0001703480]         BOOTMEM
  #24 [0001703480 - 00017034c0]         BOOTMEM
  #25 [00017034c0 - 0001703500]         BOOTMEM
  #26 [0001703500 - 0001703540]         BOOTMEM
  #27 [0001703540 - 000170354f]         BOOTMEM
  #28 [0001703580 - 000170358f]         BOOTMEM
  #29 [0001706000 - 0001726000]         BOOTMEM
  #30 [00017055c0 - 00017055c4]         BOOTMEM
  #31 [0001705600 - 0001705604]         BOOTMEM
  #32 [0001705640 - 0001705648]         BOOTMEM
  #33 [0001705680 - 0001705688]         BOOTMEM
  #34 [00017056c0 - 0001705740]         BOOTMEM
  #35 [0001705740 - 000170576c]         BOOTMEM
  #36 [0001726000 - 000172a000]         BOOTMEM
  #37 [000172a000 - 00017aa000]         BOOTMEM
  #38 [00017aa000 - 00017ea000]         BOOTMEM
Memory: 902892k/917044k available (2376k kernel code, 13668k reserved, 1359k data, 324k init, 0k highmem)
virtual kernel memory layout:
    fixmap  : 0xfff8f000 - 0xfffff000   ( 448 kB)
    vmalloc : 0xf878d000 - 0xfff8d000   ( 120 MB)
    lowmem  : 0xc0000000 - 0xf7f8d000   ( 895 MB)
      .init : 0xc07a7000 - 0xc07f8000   ( 324 kB)
      .data : 0xc06521b2 - 0xc07a6118   (1359 kB)
      .text : 0xc0400000 - 0xc06521b2   (2376 kB)

Checking if this processor honours the WP bit even in supervisor mode...Ok.
SLUB: Genslabs=13, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Hierarchical RCU implementation.
RCU-based detection of stalled CPUs is disabled.
Verbose stalled-CPUs detection is disabled.
NR_IRQS:320
CPU 0 irqstacks, hard=c1706000 soft=c1707000
I-pipe 2.8-01: pipeline enabled.
Console: colour VGA+ 80x25
console [tty0] enabled
Fast TSC calibration using PIT
Detected 1600.037 MHz processor.
Calibrating delay loop (skipped), value calculated using timer frequency.. 3200.07 BogoMIPS (lpj=1600037)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Atom PSE erratum detected, BIOS microcode update recommended
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
mce: CPU supports 5 MCE banks
CPU0: Thermal monitoring enabled (TM1)
Performance Events: PEBS fmt0+, Atom events, Intel PMU driver.

... version:                3
... bit width:              40
... generic registers:      2
... value mask:             000000ffffffffff
... max period:             000000007fffffff
... fixed-purpose events:   3
... event mask:             0000000700000003

Freeing SMP alternatives: 8k freed
ACPI: Core revision 20100428
Enabling APIC mode: Flat. Using 1 I/O APICs
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
..MP-BIOS bug: 8254 timer not connected to IO-APIC
...trying to set up timer (IRQ0) through the 8259A ...
..... (found apic 0 pin 2) ...
....... works.
CPU0: Intel(R) Atom(TM) CPU N270 @ 1.60GHz stepping 02
CPU 1 irqstacks, hard=c1716000 soft=c1717000
Booting Node 0, Processors #1 Ok.
Initializing CPU#1
Atom PSE erratum detected, BIOS microcode update recommended
Brought up 2 CPUs
Total of 2 processors activated (6399.59 BogoMIPS).
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: MMCONFIG for domain 0000 [bus 00-ff] at [mem 0xe0000000-0xefffffff] (base 0xe0000000)
PCI: not using MMCONFIG
PCI: PCI BIOS revision 3.00 entry at 0xf0031, last bus=3
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Executed 1 blocks of module-level executable AML code
ACPI: SSDT 3f7de190 0023C (v01 PmRef Cpu0Ist 00003000 INTL 20051117)
ACPI: Dynamic OEM Table Load:
ACPI: SSDT (null) 0023C (v01 PmRef Cpu0Ist 00003000 INTL 20051117)
ACPI: SSDT 3f7de460 00594 (v01 PmRef Cpu0Cst 00003001 INTL 20051117)
ACPI: Dynamic OEM Table Load:
ACPI: SSDT (null) 00594 (v01 PmRef Cpu0Cst 00003001 INTL 20051117)
ACPI: SSDT 3f7de0c0 000CC (v01 PmRef Cpu1Ist 00003000 INTL 20051117)
ACPI: Dynamic OEM Table Load:
ACPI: SSDT (null) 000CC (v01 PmRef Cpu1Ist 00003000 INTL 20051117)
ACPI: SSDT 3f7de3d0 00085 (v01 PmRef Cpu1Cst 00003000 INTL 20051117)
ACPI: Dynamic OEM Table Load:
ACPI: SSDT (null) 00085 (v01 PmRef Cpu1Cst 00003000 INTL 20051117)
ACPI: Interpreter enabled
ACPI: (supports S0 S5)
ACPI: Using IOAPIC for interrupt routing
PCI: MMCONFIG for domain 0000 [bus 00-ff] at [mem 0xe0000000-0xefffffff] (base 0xe0000000)
PCI: MMCONFIG at [mem 0xe0000000-0xefffffff] reserved in ACPI motherboard resources
PCI: MMCONFIG for 0000 [bus00-3f] at [mem 0xe0000000-0xe3ffffff] (base 0xe0000000) (size reduced!)
PCI: Using MMCONFIG for extended config space
PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
pci_root PNP0A08:00: host bridge window [io 0x0000-0x0cf7]
pci_root PNP0A08:00: host bridge window [io 0x0d00-0xffff]
pci_root PNP0A08:00: host bridge window [mem 0x000a0000-0x000bffff]
pci_root PNP0A08:00: host bridge window [mem 0x000d0000-0x000dffff]
pci_root PNP0A08:00: host bridge window [mem 0x3f800000-0xdfffffff]
pci_root PNP0A08:00: host bridge window [mem 0xe4000000-0xfed8ffff]
pci 0000:00:02.0: reg 10: [mem 0xfe880000-0xfe8fffff]
pci 0000:00:02.0: reg 14: [io 0xbc80-0xbc87]
pci 0000:00:02.0: reg 18: [mem 0xd0000000-0xdfffffff pref]
pci 0000:00:02.0: reg 1c: [mem 0xfe840000-0xfe87ffff]
pci 0000:00:02.1: reg 10: [mem 0xfe780000-0xfe7fffff]
pci 0000:00:1c.0: PME# supported from D0 D3hot D3cold
pci 0000:00:1c.0: PME# disabled
pci 0000:00:1c.1: PME# supported from D0 D3hot D3cold
pci 0000:00:1c.1: PME# disabled

pci 0000:00:1d.0: reg 20: [io  0xbc00-0xbc1f]
pci 0000:00:1d.1: reg 20: [io  0xb880-0xb89f]
pci 0000:00:1d.2: reg 20: [io  0xb800-0xb81f]
pci 0000:00:1d.3: reg 20: [io  0xb480-0xb49f]

pci 0000:00:1d.7: reg 10: [mem 0xfe83bc00-0xfe83bfff]
pci 0000:00:1d.7: PME# supported from D0 D3hot D3cold
pci 0000:00:1d.7: PME# disabled
pci 0000:00:1e.2: reg 10: [io 0xb000-0xb0ff]
pci 0000:00:1e.2: reg 14: [io 0xb400-0xb43f]
pci 0000:00:1e.2: reg 18: [mem 0xfe83b800-0xfe83b9ff]
pci 0000:00:1e.2: reg 1c: [mem 0xfe83b400-0xfe83b4ff]
pci 0000:00:1e.2: PME# supported from D0 D3hot D3cold
pci 0000:00:1e.2: PME# disabled
pci 0000:00:1f.0: Force enabled HPET at 0xfed00000
pci 0000:00:1f.0: quirk: [io 0x0800-0x087f] claimed by ICH6 ACPI/GPIO/TCO pci 0000:00:1f.0: quirk: [io 0x0480-0x04bf] claimed by ICH6 GPIO pci 0000:00:1f.0: ICH7 LPC Generic IO decode 1 PIO at 0a00 (mask 003f) pci 0000:00:1f.0: ICH7 LPC Generic IO decode 2 PIO at 02e0 (mask 003f)

pci 0000:00:1f.2: reg 10: [io  0x0000-0x0007]
pci 0000:00:1f.2: reg 14: [io  0x0000-0x0003]
pci 0000:00:1f.2: reg 18: [io  0x0000-0x0007]
pci 0000:00:1f.2: reg 1c: [io  0x0000-0x0003]
pci 0000:00:1f.2: reg 20: [io  0xffa0-0xffaf]

pci 0000:00:1f.2: PME# supported from D3hot
pci 0000:00:1f.2: PME# disabled
pci 0000:00:1f.3: reg 20: [io 0x0400-0x041f]
pci 0000:01:00.0: reg 10: [io 0xcc00-0xccff]
pci 0000:01:00.0: reg 18: [mem 0xfe9ff000-0xfe9fffff 64bit] pci 0000:01:00.0: reg 20: [mem 0xfdef0000-0xfdefffff 64bit pref] pci 0000:01:00.0: reg 30: [mem 0xfe9c0000-0xfe9dffff pref] pci 0000:01:00.0: supports D1 D2
pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold pci 0000:01:00.0: PME# disabled
pci 0000:00:1c.0: PCI bridge to [bus 01-01]

pci 0000:00:1c.0:   bridge window [io  0xc000-0xcfff]
pci 0000:00:1c.0:   bridge window [mem 0xfe900000-0xfe9fffff]
pci 0000:00:1c.0:   bridge window [mem 0xfde00000-0xfdefffff 64bit pref]

pci 0000:02:00.0: reg 10: [io 0xdc00-0xdcff]
pci 0000:02:00.0: reg 18: [mem 0xfeaff000-0xfeafffff 64bit] pci 0000:02:00.0: reg 20: [mem 0xfdff0000-0xfdffffff 64bit pref] pci 0000:02:00.0: reg 30: [mem 0xfeac0000-0xfeadffff pref] pci 0000:02:00.0: supports D1 D2
pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold pci 0000:02:00.0: PME# disabled
pci 0000:00:1c.1: PCI bridge to [bus 02-02]

pci 0000:00:1c.1:   bridge window [io  0xd000-0xdfff]
pci 0000:00:1c.1:   bridge window [mem 0xfea00000-0xfeafffff]
pci 0000:00:1c.1:   bridge window [mem 0xfdf00000-0xfdffffff 64bit pref]
pci 0000:03:04.0: reg 10: [mem 0xfebffc00-0xfebffc7f]
pci 0000:03:04.0: reg 18: [io  0xec80-0xecff]
pci 0000:03:04.0: reg 1c: [io  0xec00-0xec7f]
pci 0000:03:04.0: reg 20: [io  0xe880-0xe883]
pci 0000:00:1e.0: PCI bridge to [bus 03-03] (subtractive decode)
pci 0000:00:1e.0:   bridge window [io  0xe000-0xefff]
pci 0000:00:1e.0:   bridge window [mem 0xfeb00000-0xfebfffff]
pci 0000:00:1e.0:   bridge window [mem 0xfff00000-0x000fffff pref] (disabled)
pci 0000:00:1e.0:   bridge window [io  0x0000-0x0cf7] (subtractive decode)
pci 0000:00:1e.0:   bridge window [io  0x0d00-0xffff] (subtractive decode)
pci 0000:00:1e.0:   bridge window [mem 0x000a0000-0x000bffff] (subtractive decode)
pci 0000:00:1e.0:   bridge window [mem 0x000d0000-0x000dffff] (subtractive decode)
pci 0000:00:1e.0:   bridge window [mem 0x3f800000-0xdfffffff] (subtractive decode)
pci 0000:00:1e.0:   bridge window [mem 0xe4000000-0xfed8ffff] (subtractive decode)

pci_bus 0000:00: on NUMA node 0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P1._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P4._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P5._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 *7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 *5 6 7 10 11 12 14 15)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
PCI: Using ACPI for IRQ routing
PCI: pci_cache_line_size set to 64 bytes
reserve RAM buffer: 0000000000097000 - 000000000009ffff
reserve RAM buffer: 000000003f7d0000 - 000000003fffffff
hpet clockevent registered
hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
hpet0: 3 comparators, 64-bit 14.318180 MHz counter
Switching to clocksource tsc
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp 00:08: IRQ 11 override to edge, high
pnp 00:09: IRQ 10 override to edge, high
pnp: PnP ACPI: found 19 devices
ACPI: ACPI bus type pnp unregistered
system 00:01: [mem 0xfed13000-0xfed19fff] has been reserved

system 00:0a: [io  0x0a60-0x0a6f] has been reserved
system 00:0b: [io  0x04d0-0x04d1] has been reserved
system 00:0b: [io  0x0800-0x087f] has been reserved
system 00:0b: [io  0x0480-0x04bf] has been reserved

system 00:0b: [mem 0xfed1c000-0xfed1ffff] has been reserved system 00:0b: [mem 0xfed20000-0xfed3ffff] has been reserved system 00:0b: [mem 0xfed40000-0xfed8ffff] has been reserved system 00:0d: [mem 0xffc00000-0xffefffff] has been reserved system 00:0e: [mem 0xfec00000-0xfec00fff] could not be reserved system 00:0e: [mem 0xfee00000-0xfee00fff] has been reserved

system 00:10: [io  0x0a00-0x0a0f] has been reserved
system 00:10: [io  0x0a10-0x0a1f] has been reserved
system 00:10: [io  0x0a20-0x0a2f] has been reserved
system 00:10: [io  0x0a30-0x0a3f] has been reserved

system 00:11: [mem 0xe0000000-0xe3ffffff] has been reserved system 00:12: [mem 0x00000000-0x0009ffff] could not be reserved system 00:12: [mem 0x000c0000-0x000cffff] could not be reserved system 00:12: [mem 0x000e0000-0x000fffff] could not be reserved system 00:12: [mem 0x00100000-0x3f7fffff] could not be reserved system 00:12: [mem 0xfed90000-0xffffffff] could not be reserved pci 0000:00:1c.0: PCI bridge to [bus 01-01]

pci 0000:00:1c.0:   bridge window [io  0xc000-0xcfff]
pci 0000:00:1c.0:   bridge window [mem 0xfe900000-0xfe9fffff]
pci 0000:00:1c.0:   bridge window [mem 0xfde00000-0xfdefffff 64bit pref]
pci 0000:00:1c.1: PCI bridge to [bus 02-02]
pci 0000:00:1c.1:   bridge window [io  0xd000-0xdfff]
pci 0000:00:1c.1:   bridge window [mem 0xfea00000-0xfeafffff]
pci 0000:00:1c.1:   bridge window [mem 0xfdf00000-0xfdffffff 64bit pref]
pci 0000:00:1e.0: PCI bridge to [bus 03-03]
pci 0000:00:1e.0:   bridge window [io  0xe000-0xefff]
pci 0000:00:1e.0:   bridge window [mem 0xfeb00000-0xfebfffff]
pci 0000:00:1e.0:   bridge window [mem pref disabled]

pci 0000:00:1c.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
pci 0000:00:1c.0: setting latency timer to 64
pci 0000:00:1c.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
pci 0000:00:1c.1: setting latency timer to 64
pci 0000:00:1e.0: setting latency timer to 64
pci_bus 0000:00: resource 4 [io 0x0000-0x0cf7]
pci_bus 0000:00: resource 5 [io 0x0d00-0xffff]
pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff]
pci_bus 0000:00: resource 7 [mem 0x000d0000-0x000dffff]
pci_bus 0000:00: resource 8 [mem 0x3f800000-0xdfffffff]
pci_bus 0000:00: resource 9 [mem 0xe4000000-0xfed8ffff]
pci_bus 0000:01: resource 0 [io 0xc000-0xcfff]
pci_bus 0000:01: resource 1 [mem 0xfe900000-0xfe9fffff]
pci_bus 0000:01: resource 2 [mem 0xfde00000-0xfdefffff 64bit pref]
pci_bus 0000:02: resource 0 [io 0xd000-0xdfff]
pci_bus 0000:02: resource 1 [mem 0xfea00000-0xfeafffff]
pci_bus 0000:02: resource 2 [mem 0xfdf00000-0xfdffffff 64bit pref]
pci_bus 0000:03: resource 0 [io 0xe000-0xefff]
pci_bus 0000:03: resource 1 [mem 0xfeb00000-0xfebfffff]
pci_bus 0000:03: resource 4 [io 0x0000-0x0cf7]
pci_bus 0000:03: resource 5 [io 0x0d00-0xffff]
pci_bus 0000:03: resource 6 [mem 0x000a0000-0x000bffff]
pci_bus 0000:03: resource 7 [mem 0x000d0000-0x000dffff]
pci_bus 0000:03: resource 8 [mem 0x3f800000-0xdfffffff]
pci_bus 0000:03: resource 9 [mem 0xe4000000-0xfed8ffff]
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
pci 0000:00:02.0: Boot video device
PCI: CLS 32 bytes, default 64
I-pipe: Domain Xenomai registered.
Xenomai: hal/i386 started.
Xenomai: scheduling class idle registered.
Xenomai: scheduling class rt registered.
Xenomai: real-time nucleus v2.5.5.2 (Ghosts) loaded.
Xenomai: SMI-enabled chipset found, but SMI workaround disabled
(check CONFIG_XENO_HW_SMI_WORKAROUND). You may encounter
high interrupt latencies!
Xenomai: starting native API services.
Xenomai: starting POSIX services.
Xenomai: starting RTDM services.
HugeTLB registered 4 MB page size, pre-allocated 0 pages
msgmni has been set to 1763
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
ACPI: Power Button [PWRB]
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
ACPI: Power Button [PWRF]
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
agpgart-intel 0000:00:00.0: Intel 945GME Chipset
agpgart-intel 0000:00:00.0: detected 7932K stolen memory
agpgart-intel 0000:00:00.0: AGP aperture is 256M @ 0xd0000000
[drm] Initialized drm 1.1.0 20060810
i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
i915 0000:00:02.0: setting latency timer to 64
[drm] set up 7M of stolen space
[drm] initialized overlay support
fbcon: inteldrmfb (fb0) is primary device
Console: switching to colour frame buffer device 100x37
fb0: inteldrmfb frame buffer device
drm: registered panic notifier
Slow work thread pool: Starting up
Slow work thread pool: Ready
[drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
serial8250: ttyS2 at I/O 0x3e8 (irq = 11) is a 16550A
serial8250: ttyS3 at I/O 0x2e8 (irq = 10) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:07: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:08: ttyS2 at I/O 0x3e8 (irq = 11) is a 16550A
00:09: ttyS3 at I/O 0x2e8 (irq = 10) is a 16550A
ata_piix 0000:00:1f.2: version 2.13
ata_piix 0000:00:1f.2: PCI INT B -> GSI 19 (level, low) -> IRQ 19
ata_piix 0000:00:1f.2: MAP [ P0 P2 IDE IDE ]
ata_piix 0000:00:1f.2: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: SATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xffa0 irq 14
ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xffa8 irq 15
PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
cpuidle: using governor ladder
cpuidle: using governor menu
TCP cubic registered
NET: Registered protocol family 17
Using IPI Shortcut mode
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
ata2.00: ATA-0: Flash Card, 060729DA, max MWDMA2
ata2.00: 8211168 sectors, multi 0: LBA
ata2.00: configured for MWDMA2
ata2.00: configured for MWDMA2
ata2: EH complete
scsi 1:0:0:0: Direct-Access ATA Flash Card 0607 PQ: 0 ANSI: 5
sd 1:0:0:0: [sda] 8211168 512-byte logical blocks: (4.20 GB/3.91 GiB)
sd 1:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2 sda3
sd 1:0:0:0: [sda] Attached SCSI disk
EXT3-fs: barriers not enabled
kjournald starting. Commit interval 5 seconds
EXT3-fs (sda2): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) readonly on device 8:2.
Freeing unused kernel memory: 324k freed
Write protecting the kernel text: 2380k
Write protecting the kernel read-only data: 1156k
iTCO_vendor_support: vendor-support=0
i801_smbus 0000:00:1f.3: PCI INT B -> GSI 19 (level, low) -> IRQ 19
iTCO_wdt: Intel TCO WatchDog Timer Driver v1.06
iTCO_wdt: Found a ICH7-M or ICH7-U TCO device (Version=2, TCOBASE=0x0860)
iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
input: PC Speaker as /devices/platform/pcspkr/input/input3
RT-Socket-CAN 0.90.2 - (C) 2006 RT-Socket-CAN Development Team
RTCAN SJA1000 driver initialized
r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
r8169 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
r8169 0000:01:00.0: setting latency timer to 64
r8169 0000:01:00.0: no MSI. Back to INTx.
r8169 0000:01:00.0: eth0: RTL8168cp/8111cp at 0xf9106000, 00:18:7d:0b:b0:39, XID 1cb00080 IRQ 16
r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
r8169 0000:02:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
r8169 0000:02:00.0: setting latency timer to 64
r8169 0000:02:00.0: no MSI. Back to INTx.
r8169 0000:02:00.0: eth1: RTL8168cp/8111cp at 0xf910a000, 00:18:7d:0b:b0:3a, XID 1cb00080 IRQ 17
rtc_cmos 00:03: RTC can wake from S4
rtc_cmos 00:03: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one month, 114 bytes nvram, hpet irqs
pci1680: initializing device 13fe:1680
pci1680 0000:03:04.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
pci1680: base_addr=ec80 irq=16
rtcan: registered rtcan0
pci1680: base_addr=ec00 irq=16
rtcan: registered rtcan1
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_hcd 0000:00:1d.7: PCI INT A -> GSI 23 (level, low) -> IRQ 23
ehci_hcd 0000:00:1d.7: setting latency timer to 64
ehci_hcd 0000:00:1d.7: EHCI Host Controller
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:1d.7: using broken periodic workaround
ehci_hcd 0000:00:1d.7: debug port 1
ehci_hcd 0000:00:1d.7: cache line size of 32 is not supported
ehci_hcd 0000:00:1d.7: irq 23, io mem 0xfe83bc00
ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detected
Intel ICH 0000:00:1e.2: PCI INT A -> GSI 17 (level, low) -> IRQ 17
Intel ICH 0000:00:1e.2: setting latency timer to 64
uhci_hcd: USB Universal Host Controller Interface driver
intel8x0_measure_ac97_clock: measured 50348 usecs (2427 samples)
intel8x0: clocking to 48000
uhci_hcd 0000:00:1d.0: PCI INT A -> GSI 23 (level, low) -> IRQ 23
uhci_hcd 0000:00:1d.0: setting latency timer to 64
uhci_hcd 0000:00:1d.0: UHCI Host Controller
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:1d.0: irq 23, io base 0x0000bc00
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.1: PCI INT B -> GSI 19 (level, low) -> IRQ 19
uhci_hcd 0000:00:1d.1: setting latency timer to 64
uhci_hcd 0000:00:1d.1: UHCI Host Controller
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:1d.1: irq 19, io base 0x0000b880
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18
uhci_hcd 0000:00:1d.2: setting latency timer to 64
uhci_hcd 0000:00:1d.2: UHCI Host Controller
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:1d.2: irq 18, io base 0x0000b800
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.3: PCI INT D -> GSI 16 (level, low) -> IRQ 16
uhci_hcd 0000:00:1d.3: setting latency timer to 64
uhci_hcd 0000:00:1d.3: UHCI Host Controller
uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 5
uhci_hcd 0000:00:1d.3: irq 16, io base 0x0000b480
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
usb 2-1: new low speed USB device using uhci_hcd and address 2
EXT3-fs (sda2): using internal journal
input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0/input/input4 generic-usb 0003:046D:C00E.0001: input,hidraw0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:1d.0-1/input0
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
EXT3-fs: barriers not enabled
kjournald starting. Commit interval 5 seconds
EXT3-fs (sda3): using internal journal
EXT3-fs (sda3): mounted filesystem with writeback data mode
r8169 0000:01:00.0: eth0: link up
r8169 0000:01:00.0: eth0: link up

Module                  Size  Used by
xeno_rtipc             17799  0 
usbhid                 14437  0 
uhci_hcd               16150  0 
snd_intel8x0           22352  0 
snd_ac97_codec         85726  1 snd_intel8x0
ac97_bus                 858  1 snd_ac97_codec
ehci_hcd               27196  0 
snd_pcm                58815  2 snd_intel8x0,snd_ac97_codec
usbcore               101541  3 usbhid,uhci_hcd,ehci_hcd
snd_timer              14568  1 snd_pcm
snd                    43159  4 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
xeno_can_pci1680        1800  0 
soundcore               4828  1 snd
rtc_cmos                7127  0 
r8169                  29957  0 
xeno_can_sja1000        4876  1 xeno_can_pci1680
xeno_can               16356  2 xeno_can_pci1680,xeno_can_sja1000
pcspkr                  1318  0 
iTCO_wdt                8852  0 
i2c_i801                6479  0 
mii                     3470  1 r8169
evdev                   6305  0 
iTCO_vendor_support     1974  1 iTCO_wdt
snd_page_alloc          5812  2 snd_intel8x0,snd_pcm
#1 lore raw
Quoted 12 lines · Gianni Perugini

Hi,

I would like to use XDDP-based RT/NRT threads communication on my application, but I'm having some problems. I can build successfully the file "XDDP-ECHO.C" found in the "EXAMPLES" folder, but when I start it, it fails with the following error: "socket: Address family not supported by protocol".

Quoted 4 lines

Please find attached config file, dmesg log and lsmod log.

I'm using kernel 2.6.35.7 and xenomai 2.5.5.2 with adeos-ipipe-2.6.35.7-x86-2.8-01.patch.

Then you probably do not compile it correctly. Please show us the result of the command:

nm -s xddp-echo

Signature · 1 line
					    Gilles.
#2 lore raw

[Xenomai-help] R: XDDP socket problem

Hi Gilles,

Attached is the log with the result of the command you asked for.

Thank you

Gianni Perugini
Ilapak Italia S.p.A.
Via L.Lama 11/13
52045 - Foiano della Chiana (AR)
Phone: +39 0575 649751
Fax: +39 0575 649753
Mobile: +39 349 2377467
Email: [email protected]
Web: www.ilapak.com

-----Messaggio originale-----
Da: Gilles Chanteperdrix [mailto:[email protected]
Inviato: mercoledì 5 gennaio 2011 14.48
A: Gianni Perugini
Cc: [email protected]
Oggetto: Re: [Xenomai-help] XDDP socket problem

Quoted 12 lines · Gianni Perugini

Hi,

I would like to use XDDP-based RT/NRT threads communication on my application, but I'm having some problems. I can build successfully the file "XDDP-ECHO.C" found in the "EXAMPLES" folder, but when I start it, it fails with the following error: "socket: Address family not supported by protocol".

Quoted 4 lines

Please find attached config file, dmesg log and lsmod log.

I'm using kernel 2.6.35.7 and xenomai 2.5.5.2 with adeos-ipipe-2.6.35.7-x86-2.8-01.patch.

Then you probably do not compile it correctly. Please show us the result of the command:

nm -s xddp-echo

Signature · 1 line
					    Gilles.

0804a4b4 d _DYNAMIC
0804a5a8 d _GLOBAL_OFFSET_TABLE_
080492ec R _IO_stdin_used
w _Jv_RegisterClasses
0804a4a4 d __CTOR_END__
0804a4a0 d __CTOR_LIST__
0804a4ac D __DTOR_END__
0804a4a8 d __DTOR_LIST__
0804949c r __FRAME_END__
0804948c r __FUNCTION__.5179
0804a4b0 d __JCR_END__
0804a4b0 d __JCR_LIST__
0804a6a0 A __bss_start
0804a640 D __data_start
080492a0 t __do_global_ctors_aux
08048bd0 t __do_global_dtors_aux
0804a644 D __dso_handle
U [email protected] w __gmon_start__
08049295 T __i686.get_pc_thunk.bx
0804a4a0 d __init_array_end
0804a4a0 d __init_array_start
08049290 T __libc_csu_fini
08049220 T __libc_csu_init

         U [email protected] A _edata

0804a6b0 A _end
080492cc T _fini
080492e8 R _fp_hw
08048944 T _init
08048ba0 T _start
U [email protected] U [email protected] T cleanup_upon_sig
U [email protected] b completed.5522
0804a640 W data_start
0804a6a4 b dtor_idx.5524

         U [email protected] t fail

08048c30 t frame_dummy
08048fca T main
U [email protected] U [email protected] d msg
0804a6ac B nrt
U [email protected] U [email protected] U [email protected] U [email protected] U [email protected] U [email protected] U [email protected] U [email protected] U [email protected] U [email protected] U [email protected] U [email protected] T realtime_thread
U [email protected] T regular_thread
0804a6a8 B rt
U rt_print_auto_init
U rt_printf
U [email protected] U [email protected] U [email protected] U [email protected] U [email protected] U [email protected] U [email protected] U [email protected] U [email protected]

#3 lore raw

Re: [Xenomai-help] R: XDDP socket problem

Quoted 3 lines · Gianni Perugini

Hi Gilles,

Attached is the log with the result of the command you asked for.

(...)

0804a6a8 B rt
U rt_print_auto_init
U rt_printf
U [email protected]
U [email protected]
U [email protected]
U [email protected]
U [email protected]
U [email protected]
U [email protected]
U [email protected]
U [email protected]

Here, this binary is using glibc symbols, not Xenomai symbols, if it was using Xenomai symbols, you would see:

U __wrap_pthread_create
U __wrap_sendto
U __wrap_setsockopt
U __wrap_socket
U __wrap_write

etc...

In order to compile it correctly, see:
http://www.xenomai.org/index.php/Examples
If you want to understand how this works, see:
http://www.xenomai.org/index.php/Porting_POSIX_applications_to_Xenomai#Compilation_flags.

Signature · 1 line
					    Gilles.
#4 lore raw

[Xenomai-help] R: R: XDDP socket problem

Ok, now it works. My makefile was wrong.

Thank you for your assistance

Gianni Perugini
Ilapak Italia S.p.A.
Via L.Lama 11/13
52045 - Foiano della Chiana (AR)
Phone: +39 0575 649751
Fax: +39 0575 649753
Mobile: +39 349 2377467
Email: [email protected]
Web: www.ilapak.com

-----Messaggio originale-----
Da: Gilles Chanteperdrix [mailto:[email protected]
Inviato: mercoledì 5 gennaio 2011 15.09
A: Gianni Perugini
Cc: [email protected]
Oggetto: Re: R: [Xenomai-help] XDDP socket problem

Quoted 3 lines · Gianni Perugini

Hi Gilles,

Attached is the log with the result of the command you asked for.

(...)

0804a6a8 B rt
U rt_print_auto_init
U rt_printf
U [email protected]
U [email protected]
U [email protected]
U [email protected]
U [email protected]
U [email protected]
U [email protected]
U [email protected]
U [email protected]

Here, this binary is using glibc symbols, not Xenomai symbols, if it was using Xenomai symbols, you would see:

U __wrap_pthread_create
U __wrap_sendto
U __wrap_setsockopt
U __wrap_socket
U __wrap_write

etc...

In order to compile it correctly, see:
http://www.xenomai.org/index.php/Examples
If you want to understand how this works, see:
http://www.xenomai.org/index.php/Porting_POSIX_applications_to_Xenomai#Compilation_flags.

Signature · 1 line
					    Gilles.
#5 lore raw

Re: [Xenomai-help] R: R: XDDP socket problem

Quoted 3 lines · Gianni Perugini

Ok, now it works. My makefile was wrong.

Thank you for your assistance

You are welcome.

Basic netiquette:
- signature no longer than 4 lines
- separated from mail body by: linebreak dash dash space linebreak
- answers below quotes of the mail you are answering.

For more details, see RFC 1855.

Signature · 1 line
					    Gilles.