SliTaz SliTaz Forum

You are not logged in.

#1 2014-02-04 18:56:08

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

New CANBus issues

Hello,

I am still working on getting my CAN interface operational.

I am using Intel EG20T chipset and I now have the i2c-eg20t module loaded on boot. It does appear when I type lsmod so this is good.

I managed to install can-utils and now I must install can modules for linux.

I have downloaded them from the linux-can project [https://gitorious.org/linux-can/] but receive an error when running make (I attached output and error as text files)

If I attempt to make directly from the driver folder, I receive the error

"/usr/src/linux/include/linux/linkage.h:5:25: fatal error: asm/linkage.h: No such file or directory"

I updated kernel source via /usr/bin/get-linux-source and receive same error.

Not sure how to proceed.

Any suggestions?

Offline

#2 2014-02-04 19:07:54

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

Re: New CANBus issues

I was under the impression that these CAN modules should be included in this kernel (3.2.53)

however, when I type

modprobe can

or any variant (can-dev, can-raw)

I receive error that the module cannot be found.

if I try to set can0 via

iplink set can0 up type can bitrate 250000

I receive error "iplink: either "dev" is duplicate, or "type" is garbage"

Hopefully this is helpful

Offline

#3 2014-02-05 17:46:22

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

Re: New CANBus issues

I found that CAN modules were not included in the kernel.

I downloaded sources, made necessary changes using menuconfig, and am now having issues with making bzImage...

I type make bzImage and it runs ~30 minutes and then I receive errors on

drivers/block/loop.c

This error appears for several functions within loop.c

"error: 'struct loop_device' has no member named 'lo_backing_virt_file'"

Followed by

make[2]: *** [drivers/block/loop.o] Error 1

make[1]: *** [drivers/block] Error 2

make: *** [drivers] Error 2

Not sure what I am doing wrong.

Offline

#4 2014-02-05 21:09:37

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

Re: New CANBus issues

I set up a VM on a more powerful computer so I can compile faster and try different things to get going.

I seem to receive kernel compile error no matter what I do...

This is a fresh install of SliTaz Cooking Core.

Recharged and updated all packages.

Installed slitaz-toolchain, ncurses-dev, perl, linux-source.

Ran get-linux-source

make oldconfig && make prepare

make menuconfig

At this stage I just set =m on the few CANbus network devices I require

then I've tried just make or make bzImage, both give same error.

I am lost :C

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

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