SliTaz SliTaz Forum

You are not logged in.

#1 2014-01-16 15:05:11

lricher
Member
Registered: 2014-01-16
Posts: 26

How to configure and use CAN bus?

I'm working on a small PC that will be used to collect engine data.

The chipset in use is Intel EG20T.

[c]lspci | grep -i network[/c] gives me

02:0c:3 CANBUS: Intel Corporation Platform Controller Hub EG20T Controller Area Network (CAN) Controller

So I know the bus is detected by the system.

I do not know where to proceed from here. I have read a bit online about using modprobe to start some modules (can, can-dev, can-raw) but none of these modules are detected by my system.

I have been trying to install can-utils (http://elinux.org/Can-utils) but I receive the error "autoreconf: command not found" while running autogen.sh script.

Not sure what package I'm missing for this.

Any advice to get me started is much appreciated!

Offline

#2 2014-01-16 15:16:56

lricher
Member
Registered: 2014-01-16
Posts: 26

Re: How to configure and use CAN bus?

can-utils is now installed but I still can't access the bus.

Offline

#3 2014-01-16 15:42:58

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: How to configure and use CAN bus?

This is the kernel driver:

http://cateee.net/lkddb/web-lkddb/I2C_EG20T.html

The module is i2c-eg20t

The kernel version must be > or = 3.0

The SliTaz-4.0 kernel @ 2.6.37 is too old,the option is not available.

The kernel driver option not enabled on the cooking kernel.

tux@slitaz:~$ zcat /proc/config.gz | grep -i CONFIG_I2C_EG20T

# CONFIG_I2C_EG20T is not set

Online

#4 2014-01-16 16:16:06

lricher
Member
Registered: 2014-01-16
Posts: 26

Re: How to configure and use CAN bus?

Thanks for quick reply, I will stop wasting time with this then!

Then I should find CAN device with driver supported by kernel 2.6.37

Offline

#5 2014-01-16 16:54:26

lricher
Member
Registered: 2014-01-16
Posts: 26

Re: How to configure and use CAN bus?

Is there a way to upgrade kernel to > 3.0??

Offline

#6 2014-01-17 12:44:49

Guest
Guest

Re: How to configure and use CAN bus?

Upgrading to a 3.? kernel is, (as far as I know), not possible on SliTaz, likely you would have to recompile it yourself.

Might I suggest you take a look at 'antiX base' as a possible alternative distro, comes with 3.7.10 kernel, & is quite a lightweight distro  based on Debian; which is more mainstream for doing what you seem to be wanting to do.

http://sourceforge.net/projects/antix-linux/files/Final/antiX-13.1/

#7 2014-01-17 14:42:40

lricher
Member
Registered: 2014-01-16
Posts: 26

Re: How to configure and use CAN bus?

Ok thank you for the information! Greatly appreciated

I found this link on SliTaz forum:

http://forum.slitaz.org/topic/new-cooking-is-now-kernel-3240#post-22978

Which says new cooking is 3.2.40 kernel.

Could I potentially install this?

Sorry if these are stupid questions. I am new to this

Offline

#8 2014-01-17 15:03:36

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: How to configure and use CAN bus?

Hold off I will add i2c-eg20t module to cooking.

Then build an iso which includes the module.

It takes about 4 hours to rebuild the kernel.

Online

#9 2014-01-17 16:08:05

lricher
Member
Registered: 2014-01-16
Posts: 26

Re: How to configure and use CAN bus?

You are my hero, mojo!

Offline

#10 2014-01-17 16:15:41

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: How to configure and use CAN bus?

It's too early to celebrate.

The commit or change to the kernel is here:

http://hg.slitaz.org/wok/rev/9b4ae27c0f41

You can view the log which shows the progress of the kernel build here:

http://cook.slitaz.org/cooker.cgi?pkg=linux

Stats on the build server:

http://tank.slitaz.org/graphs.php

Online

#11 2014-01-17 20:39:08

lricher
Member
Registered: 2014-01-16
Posts: 26

Re: How to configure and use CAN bus?

I really appreciate you taking the time to do that for me.

Offline

#12 2014-01-18 08:54:28

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: How to configure and use CAN bus?

I built the base iso, it's only 12MB.

Tested with qemu and virtualbox.

Login as root,password: root

Run lsmod command after booting to verify i2c-eg20t is auto loading.

If it's not auto loading:

Hit tab key at SliTaz Live on the boot menu, add modprobe=i2c-eg20t

Hit Enter to execute boot.

On an install add i2c-eg20t to /etc/rcS.conf LOAD_MODULES="i2c-eg20t"

Download: http://www.mediafire.com/download/f4q533dqosb9fug/slitaz-base.iso

Download: http://www.mediafire.com/view/69itbtemlmlau34/slitaz-base.md5

Online

#13 2014-01-21 14:00:46

lricher
Member
Registered: 2014-01-16
Posts: 26

Re: How to configure and use CAN bus?

Thank you so much for doing that.

I will let you know how it goes.

Offline

#14 2014-01-29 19:40:58

lricher
Member
Registered: 2014-01-16
Posts: 26

Re: How to configure and use CAN bus?

Thank you again for this. I finally got around to installing this iso to disk.

It does, indeed, load my module!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.023 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]