[BusyBox] load driver can
Jean Nicollerat CHS
jean.nicollerat at chs-eng.ch
Thu Mar 3 07:25:41 UTC 2005
Hello,
I'm trying to load the driver OCAN with the tools busybox and I get an error
with the ocan_load.
I think there his a problem with then initialisation of the var MAJOR in the
ocan_load cript :
MAJOR=`awk "\\$0 ~ /$DEV/ {print \\$1}" /proc/devices`
because I get the message :
...awk: /proc/devices: No such file or directory
and MAJOR is empty
It was working well without busybox
Here the commande I execute and the message result :
bash-2.05b# ./ocan_load type=8,8 irq=8,8 base=1,2
Loading ocan device driver (./ocan.o)...Using ./ocan.o
ocan: setting up device 0, type tqm8xxl, base 00000001, irq 8
ocan: setting up device 1, type tqm8xxl, base 00000002, irq 8
ocan: loaded (debugging mode)
...awk: /proc/devices: No such file or directory
BusyBox v1.00 (2005.01.25-14:57+0000) multi-call binary
Usage: mknod [OPTIONS] NAME TYPE MAJOR MINOR
Create a special file (block, character, or pipe).
Options:
-m create the special file using the specified mode (default
a=rw)
TYPEs include:
b: Make a block (buffered) device.
c or u: Make a character (un-buffered) device.
p: Make a named pipe. MAJOR and MINOR are ignored for named
pipes.
More information about the busybox
mailing list