Go to advanced search

by Zeta
Wed Oct 23, 2013 10:23 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377553

Re: CAN controller

Gerd, For the debian package, I have not yet created it, but started to look at the documentation. What I think is the easier would be to take the actual raspbian kernel package, and simply add some patches to it to include the drivers msperl wrote (and the new one too in a future version). I should...
by Zeta
Mon Oct 21, 2013 10:56 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377553

Re: CAN controller

Msperl, Gerd, I have tried to restart from scratch an install using the new drivers, given the archive Gerd provided, in order to update the wiki. It is already late in the night here, so I will finish tomorrow. However I have a question you might already have solved, so here it is : How do you do t...
by Zeta
Wed Oct 09, 2013 10:11 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377553

Re: CAN controller

Hello, Following your advices, Martin, I dug in the direction of autostarting the can interface using the spi-config module. It seems to work (not a lot of time and no can devices to test further on) with the following: First, the modules need to be loaded. They can be given parameters too. Edit the...
by Zeta
Mon Oct 07, 2013 8:31 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377553

Re: CAN controller

Hello, Perfect ! Thanks for the work Martin and Gerd ! Works like a charm with an MCP2515 with a 20MHz crystal in loopback mode. Next step for me is to find some CAN devices to plug it to and use it for real (not in loopback), maybe tomorrow. At this point I think I will need the MCP2515 driver, and...
by Zeta
Wed Aug 28, 2013 6:48 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377553

Re: CAN controller

ok it was wrong message from me that my bluetooth works. It doesn't. I used this german homepage to configure the kernel for bluetooth: Bluetooth-Guide OK. Let's first focus on CAN, then we will check this out. I don't have much experience with bluetooth on the raspi yet. It may be that the kernel ...
by Zeta
Tue Aug 27, 2013 8:49 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377553

Re: CAN controller

Hello Zeta, so the compiling didn't take a long time. Only an hour. But I'm not sure if I'm finished with the compiling. I did it only until this last entry in your tutorial : =================== You should now have the complete new kernel/modules/firmware in the "/opt/raspberrypi/build" directory....
by Zeta
Tue Aug 27, 2013 6:34 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377553

Re: CAN controller

I was so stupid. I used this command ... instead of your right command ... Don't say you are stupid, just that you have learn something new ! ;) I spent probably a year cumulatively in the last ten years figuring out these kind of traps, and I still have a lot to find... The gcc prefix are well def...
by Zeta
Mon Aug 26, 2013 9:02 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377553

Re: CAN controller

I used this command for cross-compiling from Linux (in my case: Kubuntu 13.04): "sudo apt-get install gcc-arm-linux-gnueabi make ncurses-dev" Looking at what this package provides : http://packages.ubuntu.com/raring/amd64/gcc-arm-linux-gnueabi/filelist It gives you the commands "arm-linux-gnueabi-g...
by Zeta
Mon Aug 26, 2013 8:23 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377553

Re: CAN controller

@feliks: It still doesn't show me the "Microchip MCP251x SPI CAN controllers"-entry in the menuconfig, although the SPI support is checked. It seems you are mixing two menus. The MCP251x driver should be shown under the Networking/CAN part of the menu, as you wrote in your previous message : ======...
by Zeta
Mon Aug 26, 2013 7:20 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377553

Re: CAN controller

To cross compile for arm/rpi, you have to build you own compiler. For me it was easier to do all this directly on the Pi. Just leave out all the ARCH and CROSS_COMPILE options in the tutorial. However, the kernel compilation takes some hours doing it that way. It has to be noted that for the deskto...
by Zeta
Mon Jul 29, 2013 7:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377553

Re: CAN controller

Hello Frezende, feliks already given the link, but I wanted to add that it is not really 'my' tutorial. I only put on the elinux wiki what other already presented here and in the related SPI discussion. I have not rebuilt my kernel since January, so the wiki is a bit out of date if you try to blindl...
by Zeta
Tue May 14, 2013 5:40 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377553

Re: CAN controller

Hello guyguy333, I think that out of the box mcp251x and spi drivers will work. But if you need higher performances and bus load, then it is worth going to the spi driver will msperl's patch (https://github.com/raspberrypi/linux/pull/147). If no patch is available for your kernel version, simply ext...
by Zeta
Sat Apr 13, 2013 2:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377553

Re: CAN controller

For me that's not a problem of the "horse power" of BCM2835. Maybe it's more a general linux driver structure and interrupt priority questions, or? But I don't know th linux driver achitecture good enough so far. Furthermore IMO it doesn't depend directly on one-shot-irq because I've seen the same ...
by Zeta
Sun Mar 10, 2013 11:31 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377553

Re: CAN controller

One thing I forgot: Finally, spin_lock_bh disables software interrupts before taking the lock, but leaves hardware interrupts enabled. This one may be interesting to look at for the GPIO part (probably not for the SPI), as individual input interrupts are handled as software interrupts, and the compl...
by Zeta
Sun Mar 10, 2013 11:17 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377553

Re: CAN controller

Hello maddin, I don't know yet this part of the kernel you are fighting with... here are some comments though. It looks like the only thing they do is to replace spin_lock_irqsave with a "local locking function": Looking at this patch, we can see that they replace the call to : spin_lock_irqsave(&ho...
by Zeta
Thu Mar 07, 2013 8:17 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377553

Re: CAN controller

Hello maddin, Sorry for not be able to help you more currently. It seems you already have tested a lot of things. About your conclusion : So the only possibility I see is, that the falling edge has not been recognized. You wrote some time ago: Hello, I found a thing in the mcp2515-driver, that could...
by Zeta
Sat Mar 02, 2013 11:17 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: two gpio interrupts on RPi
Replies: 10
Views: 8202

Re: two gpio interrupts on RPi

gn / 32 is a floating point number, casted to an unsigned integer. What was intended here is to get the remainder of the division. Maybe the cast just cuts of the digits after the floating point, then it would be correct. "gn/32" uses the integer division. You should write "gn/32.0" of "(float(gn))...
by Zeta
Thu Feb 28, 2013 10:28 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: two gpio interrupts on RPi
Replies: 10
Views: 8202

Re: two gpio interrupts on RPi

Hello maddin, This is an interesting but complex topic... I started to look at what these functions were doing, on my 3.6 kernel. I didn't find a lot of things new, but I think I spotted a bug in the "bcm2708_gpio_irq_mask" function. Here is what I have seen: static void bcm2708_gpio_irq_mask(struct...
by Zeta
Wed Feb 20, 2013 10:57 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377553

Re: CAN controller

maddin1234 wrote:Hello,
I tested it today with kernel 3.2.27 and had the same problem.
Hello maddin,
I still have no time to look at it, at least since the end of the month...
Did you removed the IRQF_ONE_SHOT, when doing the test with the 3.2.27 kernel ?
by Zeta
Thu Feb 14, 2013 10:42 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: CAN controller
Replies: 816
Views: 377553

Re: CAN controller

I also tried to set IRQ_TRIGGER_LOW, but had the same problem. Too bad... I have to dig how this is used, it seemed a good fallback. 1.) What is the problem with the ONE_SHOT_MODE, especially because of the interaction of two different interrupts. I remember that I read in the BCM manual, that the ...
by Zeta
Sat Feb 09, 2013 1:53 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI driver latency and a possible solution
Replies: 242
Views: 153252

Re: SPI driver latency and a possible solution

Hello maddin, The problem you have is probably more related to the MCP2515 driver and interrupt than to the SPI driver as it continues to work properly. This seems close to the problem I had with the MCP251x drivers with the kernel 3.6. This seems to be related to the IRQF_ONESHOT flag that is neede...
by Zeta
Mon Feb 04, 2013 8:30 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI driver latency and a possible solution
Replies: 242
Views: 153252

Re: SPI driver latency and a possible solution

Hello Maddin, You are writing you are using 2 CAN converters. Can you give us more details about how they are connected ? What speed are you using ? Do you use a single interrupt line shared between them, or 2 independent interrupts inputs ? Can you check the results of the commands cat /proc/interr...
by Zeta
Sun Feb 03, 2013 5:37 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI driver latency and a possible solution
Replies: 242
Views: 153252

Re: SPI driver latency and a possible solution

I'm under the impression this thread was started precisely due to that chip (or some other CAN controller) so if we fix the kernel SPI latency then maybe there is no (or less) need to dive into the kernel to add in specific drivers... You are right. While Martin was working on making the MCP2515 dr...
by Zeta
Sat Feb 02, 2013 11:16 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI driver latency and a possible solution
Replies: 242
Views: 153252

Re: SPI driver latency and a possible solution

I found the merge request posted by Martin 3 months ago : https://github.com/raspberrypi/linux/pull/147
But it concerned only the 3.6 branch.
by Zeta
Sat Feb 02, 2013 10:45 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI driver latency and a possible solution
Replies: 242
Views: 153252

Re: SPI driver latency and a possible solution

I'm working on an SPI device to connect to the Pi that may be sold... It's clear now, didn't understood your previous post that way... Like it or not, people are producing commercial product based round the Pi. e.g. me No problem for me, except that if some additional work need to be done so that _...

Go to advanced search