2008-05-10 07:14:23     Problem with can4linux

Document created by Aaronwu Employee on Aug 6, 2013
Version 1Show Document
  • View in full screen mode

2008-05-10 07:14:23     Problem with can4linux

Javier Herrero (SPAIN)

Message: 55712   

 

Hello,

 

I'm trying to use a external SJA1000 memory-mapped CAN controller with our BF532 based board. When I try to modprobe it, it fails register_sysctl_table, as follows. I've tried the current svn can4linux version, and also the latest version from www.port.de with same results. Any suggestion?

 

Best regards,

 

Javier

 

root:~> modprobe can

ISA-PeliCAN-memory mapped CAN Driver 3.5.2_CAN_SJA1000_H8606 (c) May 10 2008 12:

26:40

H.J. Oertel (oe@port.de)

MAX_CHANNELS 1

CAN_MAX_OPEN 1

sysctl_check_dir: failed: /Can .7 ref: /dev .7

sysctl table check failed: /Can .7 Inconsistent directory names

Hardware Trace:

   0 Target : <0x00004694> { _dump_stack + 0x0 }

     Source : <0x00024b92> { _set_fail + 0x32 }

   1 Target : <0x00024b92> { _set_fail + 0x32 }

     Source : <0x0000efb6> { _printk + 0x16 }

   2 Target : <0x0000efb2> { _printk + 0x12 }

     Source : <0x0000ee42> { _vprintk + 0x1fa }

   3 Target : <0x0000ee36> { _vprintk + 0x1ee }

     Source : <0x0000ef2e> { _vprintk + 0x2e6 }

   4 Target : <0x0000ef2e> { _vprintk + 0x2e6 }

     Source : <0x00155660> { _preempt_schedule + 0x2c }

   5 Target : <0x0015565a> { _preempt_schedule + 0x26 }

     Source : <0x00155684> { _preempt_schedule + 0x50 }

   6 Target : <0x00155678> { _preempt_schedule + 0x44 }

     Source : <0xffa09652> { _schedule + 0x1ba }

   7 Target : <0xffa09632> { _schedule + 0x19a }

     Source : <0x0000b34c> { _finish_task_switch + 0x60 }

   8 Target : <0x0000b33e> { _finish_task_switch + 0x52 }

     Source : <0x0000b324> { _finish_task_switch + 0x38 }

   9 Target : <0x0000b2ec> { _finish_task_switch + 0x0 }

     Source : <0xffa0962e> { _schedule + 0x196 }

  10 Target : <0xffa09624> { _schedule + 0x18c }

     Source : <0xffa08a02> { _new_old_task + 0x6 }

  11 Target : <0xffa089fc> { _new_old_task + 0x0 }

     Source : <0xffa089fa> { _resume + 0x2e }

  12 Target : <0xffa089cc> { _resume + 0x0 }

     Source : <0xffa09620> { _schedule + 0x188 }

  13 Target : <0xffa0961c> { _schedule + 0x184 }

     Source : <0xffa0990e> { _memcpy + 0x2e }

  14 Target : <0xffa098f4> { _memcpy + 0x14 }

     Source : <0xffa098ec> { _memcpy + 0xc }

  15 Target : <0xffa098e0> { _memcpy + 0x0 }

     Source : <0xffa09618> { _schedule + 0x180 }

Stack from 01df5d90:

        00024b84 00024b96 01df5de4 01da4c68 01da4c80 001850d0 00000008 00024e8c

        01da38fd 00000000 01da4c6c 018531a0 01df4000 00000008 00000000 01da4c7c

        01da4c84 01da4c88 01da4c90 01da4c8c 01da4c70 001850d0 01da4e50 00015a16

        01df6a24 01df6a20 0000efa0 01da4c68 00000000 00000011 019b45ac 01da4944

        0000efa0 00000000 01da14a2 01da4e48 01da4944 00000000 01da4e48 00000000

        01df5e3c 01ea717c 00000000 00000001 00000008 00000000 01da35d0 00000000

 

Call Trace:

[<0002ae0c>] _sys_init_module+0xc0/0x11dc

[<0003ca3e>] _do_mmap_pgoff+0x506/0x74c

[<0002ad4c>] _sys_init_module+0x0/0x11dc

[<00009750>] _cplb_print_entry+0x154/0x200

[<00008000>] _dma_insb+0x8/0x94

[<00009750>] _cplb_print_entry+0x154/0x200

[<00009750>] _cplb_print_entry+0x154/0x200

[<00009750>] _cplb_print_entry+0x154/0x200

[<00009750>] _cplb_print_entry+0x154/0x200

 

sysctl table check failed: /Can .7 procname does not match binary path procname

Hardware Trace:

   0 Target : <0x00004694> { _dump_stack + 0x0 }

     Source : <0x00024b92> { _set_fail + 0x32 }

   1 Target : <0x00024b92> { _set_fail + 0x32 }

... and more similar errors

QuoteReplyEditDelete

 

 

2008-05-10 07:22:01     Re: Problem with can4linux

Mike Frysinger (UNITED STATES)

Message: 55713   

 

but what kernel version ?  sysfs checks may have gotten more restrictive and CAN4LINUX hasnt been updated yet ...

QuoteReplyEditDelete

 

 

2008-05-10 07:29:53     Re: Problem with can4linux

Javier Herrero (SPAIN)

Message: 55714   

 

Sorry, forgot to include. Last svn.

 

Regards,

 

Javier

QuoteReplyEditDelete

 

 

2009-07-07 19:22:26     Re: Problem with can4linux

Ben Burleson (UNITED STATES)

Message: 76901   

 

I am running into the same failure when attempting to run "modprobe can".

 

> Linux version 2.6.24.7-ADI-2008R2-pre-svn7756

 

I also tried grabbing the latest can4linux files from SVN, but no change.  Can you explain more what you mean by sysfs checks may have gotten more restrictive and can4linux hasn't been updated yet?

 

Should I see a line for can in /proc/devices before running modprobe can? (I don't.)

 

 

 

Thanks for your help,

 

Ben

Attachments

    Outcomes