*BSD News Article 64299


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!newshost.nla.gov.au!act.news.telstra.net!imci3!imci4!newsfeed.internetmci.com!swrinde!howland.reston.ans.net!EU.net!Portugal.EU.net!news.rccn.net!scsing.switch.ch!swsbe6.switch.ch!surfnet.nl!tuegate.tue.nl!news.IAEhv.nl!news
From: cees@iaehv.nl (Hans Zuidam)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: m68360 bdm driver?
Date: 26 Mar 1996 16:54:14 GMT
Organization: Brand Innovators
Lines: 22
Message-ID: <4j97fm$col@news.IAEhv.nl>
NNTP-Posting-Host: pm2d23.iaehv.nl
Mime-Version: 1.0
X-Newsreader: WinVN 0.99.2

Hi,

For an embedded systems project we are using a Motorola M68360 cpu.  This 
cpu has a nice feature called Background Debug Mode (BDM.)  With it you 
can debug the cpu through a specialised serial protocol without any 
additional software on the target system.  Interfacing goes through the 
parallel port on the PC.  With they aid of some special hardware and a 
special parallel port driver gdb could be made to talk to the target.

What would be the ``right'' way to implement such a driver: tack the code
for the BDM driver on the lp driver and add some code to lock-out lpt? if
the corresponding BDM device is in use, or write a new driver?  While on 
the subject: how do you write an ``lkm'' driver and how do I load and 
unload drivers?

Thanks in advance,
					Hans

P.S.  I have the code for a bdm driver for Linux, but I'm not willing to
switch for all the obvious reasons ;-)