home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / bsd / 4454 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  3.7 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!ames!elroy.jpl.nasa.gov!usc!wupost!gumby!destroyer!ncar!noao!amethyst!organpipe.uug.arizona.edu!afthree.as.arizona.edu!tom
  2. From: tom@afthree.as.arizona.edu (Thomas J. Trebisky)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: 680x0 version of 386BSD?? [Was: Re: Mac version of 386BSD??]
  5. Message-ID: <1992Aug19.222443.13741@organpipe.uug.arizona.edu>
  6. Date: 19 Aug 92 22:24:43 GMT
  7. References: <1992Aug18.174205.23671@news.iastate.edu> <1992Aug19.093937.14857@olymp.informatik.uni-bonn.de> <1992Aug19.155359.629@athena.mit.edu>
  8. Sender: news@organpipe.uug.arizona.edu
  9. Organization: University of Arizona, Tucson, AZ
  10. Lines: 56
  11.  
  12. A number of people have posting queries about porting 386BSD to 680x0
  13. boxes.  I have been fiddling with this for some time and am still hot
  14. on the trail.
  15.  
  16. There are a number of things to think about.  First is the target system.
  17. How well documented is it down at the nitty gritty level?  Can you get all
  18. the i/o port addresses, bit definitions, and nasty ugly detail level docs
  19. that you need.  (You think you can, but don't believe it till you have them.)
  20. Gather up data books on all the i/o controller chips you think you will need
  21. to deal with, etc.  I rule out sun3 machines because no-one I know has the
  22. nasty level docs on these (but you can just run SunOS, so who cares).
  23.  
  24. Second is the cross-compiler and what kind of system you will use to host
  25. the development.  Can you use the native machine and partition the disk or
  26. something (not me baby, for half a dozen reasons)? I have settled on using
  27. gcc and hosting things on a sparc.  Well actually, I do that, and also use
  28. a cross-compiler gcc/bsd environment I set up on a 3b1, so I can work at
  29. home.
  30.  
  31. Next issue is cross-development tools.  How can you write a bootable disk
  32. or in some way get executables into your target system.  How well do
  33. you understand how the boot roms on your target work. How can you build
  34. a filesystem floppy and put files into it (I have set up a cross-mkfs and
  35. mkproto to do this, I think others have had compatible filesystems so they
  36. could just use the native mkfs on their host system and mount the resulting
  37. floppy and copy files into it, this wouldn't work for me).
  38.  
  39. Given the appropriate set of cross development tools (did I forget to
  40. mention a cross linker -- I have used the gnu binutils "ld" program),
  41. you might want to think about kgdb (I have thought about it, haven't taken
  42. the time to set up a cross - gdb - remote debugger, but it can be done and
  43. folks recommend it enthusiastically).  You will somewhere along the way
  44. need to start writing the standalone device drivers.  This is about where
  45. I am now.  I can generate a floppy that has a BSD filesystem and some
  46. standalone stuff in it (including a standalone boot, and a hard drive
  47. formatter -- there is something else to think about, disk formatters).
  48.  
  49. And I can boot a stubbed out "kernel" -- well at least it has some of
  50. locore.s and can field interrupts from a variety of sources.  Now I am
  51. looking hard at the Mach vm/* stuff and thinking about how to recode
  52. pmap.c for my machine.  Not to mention, I want to *understand* the stuff
  53. in the mach vm/ directory (like what are maps, objects, pagers, ....).
  54. This would be a non-issue if I was targetting the 68030 -- as I intend to
  55. eventually, but I am working on a system with a custom MMU.
  56.  
  57. Once the vm/ stuff settles down (well, kindof alongside if you want to
  58. do any swapping), you will start needing device drivers....
  59.  
  60. Also, you will probably want to beat the config program into shape for
  61. your chosen target (you could hand edit the makefiles and put this off
  62. till later).
  63. --
  64.     Tom Trebisky    ttrebisky@as.arizona.edu
  65. ...."There's no sense in being precise when you don't even
  66. .... know what you're talking about." 
  67.                        - John von Neumann  
  68.