Skip to contentSkip to conversation

can: How to set bitrate

MeeGo-Dev Masayuki Ohtake 2 participants 3 messages Oct 18, 2010 – Oct 19, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I want to test our Socket CAN driver(for Topcliff) on Meego1.0.

For setting bitrate, I tried to install "iproute2". But the build failed.

================================================
[root@localhost iproute2-2.6.33]# make
sh configure
TC schedulers
ATM no
IPT using iptables
make[1]: Entering directory `/root/iproute2-2.6.33/lib'

<omission>

ude -o arpd arpd.c ../lib/libnetlink.a ../lib/libutil.a -ldb -lpthread arpd.c:19:20: error: db_185.h: No such file or directory
arpd.c:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token arpd.c: In function 'do_one_request':
arpd.c:304: error: 'DBT' undeclared (first use in this function) arpd.c:304: error: (Each undeclared identifier is reported only once arpd.c:304: error: for each function it appears in.)
arpd.c:304: error: expected ';' before 'dbkey'
arpd.c:308: error: 'dbase' undeclared (first use in this function) arpd.c:338: error: 'dbkey' undeclared (first use in this function) arpd.c:341: error: 'dbdat' undeclared (first use in this function) arpd.c: In function 'get_arp_pkt':
arpd.c:485: error: 'DBT' undeclared (first use in this function) arpd.c:485: error: expected ';' before 'dbkey'
arpd.c:517: error: 'dbkey' undeclared (first use in this function) arpd.c:520: error: 'dbase' undeclared (first use in this function) arpd.c:520: error: 'dbdat' undeclared (first use in this function) arpd.c: In function 'main':
arpd.c:670: error: 'dbase' undeclared (first use in this function) arpd.c:670: warning: implicit declaration of function 'dbopen' arpd.c:670: error: 'DB_HASH' undeclared (first use in this function) arpd.c:680: error: 'DBT' undeclared (first use in this function) arpd.c:680: error: expected ';' before 'dbkey'
arpd.c:682: error: 'dbkey' undeclared (first use in this function) arpd.c:712: error: 'dbdat' undeclared (first use in this function) arpd.c:728: error: expected ';' before 'dbkey'
arpd.c:730: error: 'R_NEXT' undeclared (first use in this function) make[1]: *** [arpd] Error 1
make[1]: Leaving directory `/root/iproute2/misc'
make: *** [all] Error 2
[root@localhost iproute2]#
================================================

Do you know how to set bitrate on Meego?

Thanks, Ohtake(OKISemi)

#1 lore raw
Quoted 38 lines · Masayuki Ohtake

I want to test our Socket CAN driver(for Topcliff) on Meego1.0.

For setting bitrate, I tried to install "iproute2". But the build failed.

================================================
[root@localhost iproute2-2.6.33]# make
sh configure
TC schedulers
ATM no
IPT using iptables
make[1]: Entering directory `/root/iproute2-2.6.33/lib'

<omission>

ude -o arpd arpd.c ../lib/libnetlink.a ../lib/libutil.a -ldb -lpthread arpd.c:19:20: error: db_185.h: No such file or directory
arpd.c:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token arpd.c: In function 'do_one_request':
arpd.c:304: error: 'DBT' undeclared (first use in this function) arpd.c:304: error: (Each undeclared identifier is reported only once arpd.c:304: error: for each function it appears in.)
arpd.c:304: error: expected ';' before 'dbkey'
arpd.c:308: error: 'dbase' undeclared (first use in this function) arpd.c:338: error: 'dbkey' undeclared (first use in this function) arpd.c:341: error: 'dbdat' undeclared (first use in this function) arpd.c: In function 'get_arp_pkt':
arpd.c:485: error: 'DBT' undeclared (first use in this function) arpd.c:485: error: expected ';' before 'dbkey'
arpd.c:517: error: 'dbkey' undeclared (first use in this function) arpd.c:520: error: 'dbase' undeclared (first use in this function) arpd.c:520: error: 'dbdat' undeclared (first use in this function) arpd.c: In function 'main':
arpd.c:670: error: 'dbase' undeclared (first use in this function) arpd.c:670: warning: implicit declaration of function 'dbopen' arpd.c:670: error: 'DB_HASH' undeclared (first use in this function) arpd.c:680: error: 'DBT' undeclared (first use in this function) arpd.c:680: error: expected ';' before 'dbkey'
arpd.c:682: error: 'dbkey' undeclared (first use in this function)

Quoted 8 lines

arpd.c:712: error: 'dbdat' undeclared (first use in this function) arpd.c:728: error: expected ';' before 'dbkey' arpd.c:730: error: 'R_NEXT' undeclared (first use in this function) make[1]: *** [arpd] Error 1
make[1]: Leaving directory `/root/iproute2/misc'
make: *** [all] Error 2
[root@localhost iproute2]#
================================================

On my system I get:

~$ rpm -qf /usr/include/db_185.h
db4-devel-4.7.25-13.fc12.i686

Which means you need db4 devel to fully build iproute2.

Quoted 1 line

Do you know how to set bitrate on Meego?

ip from iproute2 is the right tool.

Wolfgang.

#2 lore raw
Quoted 4 lines · Wolfgang Grandegger

~$ rpm -qf /usr/include/db_185.h
db4-devel-4.7.25-13.fc12.i686

Which means you need db4 devel to fully build iproute2.

Thank you for your information.

Using the following command,
"yum install db4*"
I could confirm building iproute2 is success and
set bitrate.

Thanks, Ohtake(OKISemi)