[uClinux-dev] Would you help me about bdm driver in linux??

Huang Elizabeth-r65069 r65069 at freescale.com
Sun Aug 28 21:59:56 EDT 2005

I have a trouble of installing bdm driver in linux. I am developing under ColdFire5249C3 board. And I want to burn u-boot.bin to board flash by BDM. So I have to install a bdm driver in linux first. My linux version is Fedora core 2 and I use 2 versions of bdm package (m68k-bdm-1.3.0 and gdb-bdm-20010901.tar.gz), but both of them didn't work in Fedora core 2.
1. Install m68k-bdm-1.3.0.tar.bz2
I have done the process according to README as following:
# cd driver/linux
# make all install
# mknod /dev/bdmcpu320 c 34 4
adding to /etc/modprobe.conf the line:
     alias char-major-34 bdm
adding 4 lines to /etc/rc.d/rc.local:
# /sbin/rmmod lp
# /sbin/rmmod parport_pc
# /sbin/rmmod parport
# /sbin/insmod bdm
# cd m68k-bdm-1.3.0
# ./local_scripts/MAKEDEV
$ mkdir build
$ cd build
$ ../configure(in README that is "$ ../gdb-bdm-xx/m68k/configure",but there is no the directory of "/gdb-bdm-xx/m68k/"in m68k-bdm-1.3.0,so I use "../configure")
$ make
$ make install
and then restart the computer, but when I enter the linux again, using the command "#lsmod", I found the bdm module didn't load in the kernel. I have written a little program to test it.
I use the function: open ("/dev/bdmcf0", O_RDWR), the device couldn't be open.
2. install gdb-bdm-20010901.tar.gz
# cd driver/linux
# make install
the error message is the following:
/lib/modules/2.6.5-1.358/build/include/asm/irq.h:16:25: irq_vectors.h: 
No such file or directory
/lib/modules/2.6.5-1.358/build/include/linux/irq.h:70: error: `NR_IRQS' 
undeclared here (not in a function)
3. install in RedHat 9
At last I install these two bdm packages in another computer whose linux version is RedHat 9, the package of m68k-bdm-1.3.0 couldn't load bdm module in the kernel either. But the package of gdb-bdm-20010901 could load bdm module ( it works! ).
So I don't know how could I do to load bdm module in Fedora core 2 and why the late version m68k-bdm-1.3.0.tar.bz2 (there is only this version of bdm driver on internet) couldn't work both in RedHat and Fedora?
Thanks and B.R
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20050829/bd60e09c/attachment.html>

More information about the uClinux-dev mailing list