Booting a DECstation via MOP
Hi!
I've needed several attempts to get my /200 booting. This box mainly has the problem of not being capable of doing tftp, which is kind of a problem (especially if you've not got a bootable hard disk drive handy).
So you need a mopd daemon and might attempt to try a 'apt-get install mopd'. Don't do it, it's not worth waiting now bandwidth. Basically, this mopd isn't capable of booting an ELF kernel (like ./linux/vmlinux), but will only accelt a.out images (or proprietary DEC images) which cannot be created in an easy manner (at least, *I* don't know how to do it...).
Instead of apt-get'ing a mopd, go to ftp://ftp.ds2.pg.gda.pl/pub/macro/mopd/ and download all of the files in this directory (this will be mopd-2.5.3 at this moment plus several patches. Extract the .tar.gz and apply all patches (you *may* need to fix some .rej's depending on the order you apply these patches).
At least on my Alpha, I had to add '-DNOAOUT' to the CFLAGS in ./mopd-2.5.3/Makefile to let it compile. For booting a Linux kernel, this is not a problem. Compile it, start it (I started it as './mopd -a'), place your ELF Linux kernel (this is what normally gets generated in ./linux/vmlinux) in /tftpboot/mop/ and be happy.
MfG, JBG
Signature · 3 lines
Jan-Benedict Glaw . [email protected] . +49-172-7608481 -- New APT-Proxy written in shell script -- http://lug-owl.de/~jbglaw/software/ap2/
Quoted 5 lines · Jan-Benedict Glaw
Instead of apt-get'ing a mopd, go to ftp://ftp.ds2.pg.gda.pl/pub/macro/mopd/ and download all of the files in this directory (this will be mopd-2.5.3 at this moment plus several patches. Extract the .tar.gz and apply all patches (you *may* need to fix some .rej's depending on the order you apply these patches).
Thanks for appreciating my effort. It's nice too see it's useful for the
others as well.
For the right order of applying the patches see the README file there.
;-) Also there are ready to use RPM packages nearby.
Quoted 5 lines
At least on my Alpha, I had to add '-DNOAOUT' to the CFLAGS in ./mopd-2.5.3/Makefile to let it compile. For booting a Linux kernel, this is not a problem. Compile it, start it (I started it as './mopd -a'), place your ELF Linux kernel (this is what normally gets generated in ./linux/vmlinux) in /tftpboot/mop/ and be happy.
Cross-platform a.out support is tricky. I'll check what is wrong with
the Alpha; otherwise that's the correct workaround.
BTW, you need not edit any Makefile to change CC, CFLAGS or LDFLAGS --
you may override them at the command line, e.g. `make "CFLAGS=-O2 -DNOAOUT"'. I've taken specific care for this to work.
Maciej
Signature · 3 lines
+ Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: [email protected], PGP key available +
On Mon, 2002-07-22 16:27:00 +0200, Maciej W. Rozycki <[email protected]> wrote in message <[email protected]>:
Quoted 7 lines · Jan-Benedict Glaw
Quoted 3 lines
Instead of apt-get'ing a mopd, go to
ftp://ftp.ds2.pg.gda.pl/pub/macro/mopd/ and download all of the files in
Thanks for appreciating my effort. It's nice too see it's useful for the
others as well.
Are you still maintaining it? I see that *one* (really useful) mopd gets more and more important (DECstations, VAXen, ...), but there are so many of them.
- One is from you (which is nicely working)
- One is on linux-vax.sourceforge.net (IIRC)
- One is 'apt-get install'able
- One is referenced on decstation.unix-ag.org (IIRC)
- Mayby others (smells like Lance implementations...)
Some of them seem to be forked off each other, so it would be a nice thing to unify them again. Anybody interested in having _one_ mopd? Anybody willing to do the job? I'll have to ask the VAX people also...
Except VAX and DECstations - who does also use MOP for booting?
MfG, JBG
Signature · 3 lines
Jan-Benedict Glaw . [email protected] . +49-172-7608481 -- New APT-Proxy written in shell script -- http://lug-owl.de/~jbglaw/software/ap2/
Quoted 3 lines · Jan-Benedict Glaw
Are you still maintaining it? I see that *one* (really useful) mopd gets more and more important (DECstations, VAXen, ...), but there are so many of them.
Yes, I am maintaining it as my time permits it. It mostly works for what
it was designed, so it's not high priority and not much happens these days. But it still needs some work -- I have a few comments with proposed fixes from a *BSD user, COFF support changes and also FDDI support is on my to-do list.
Quoted 4 lines
- One is from you (which is nicely working)
- One is on linux-vax.sourceforge.net (IIRC)
- One is 'apt-get install'able
- One is referenced on decstation.unix-ag.org (IIRC)
This one is a completely different implementation.
Quoted 1 line
- Mayby others (smells like Lance implementations...)
The PMAX/NetBSD port has one, also derived from mopd 2.5.3, actively
maintained.
Quoted 2 lines
Some of them seem to be forked off each other, so it would be a nice thing to unify them again. Anybody interested in having _one_ mopd?
Well, I started with the original 2.5.3 release, then I added fixes and
updates I found useful from the sources you quote (plus NetBSD). I filtered out questionable changes and whitespace rearrangements, the latter not to obfuscate the code until a real release happens. So as of the date of the patches I consider the version a synthesis of all available implementations.
Quoted 1 line
Anybody willing to do the job? I'll have to ask the VAX people also...
I was considering undertaking a real maintenance but I'm still unsure I
can fullfill any timeline. The future maintainer would have to get an official statement from Mats as well.
I already talked to VAX/Linux people. They didn't seem much interested
in ELF support as it would require changes to their kernel, mostly to the ld script (I even wrote an appropriate patch for them; though the syntax seems unfriendly and should probably be revised in binutils) as the VAX console seems to use physical addressing for loading images and the kernel is linked at virtual addresses (naturally). They seem to exploit a trick with faking a DEC proprietary image, by prepending 512 null bytes to a kernel image. It works because the virtual start address of the VAX/Linux kernel maps to the physical address zero and the entry point is zero as well (some head code takes care of remapping addresses) so the values fetched by mopd from the artifical header just work.
BTW, while talking to both NetBSD and VAX/Linux people I was surprised by
responses like: "MOP-boot an ELF image? That's impossible, MOP specification much predates ELF -- how could an implementation handle it?", as if there was any relevance between ELF and MOP... It looked like hardly anyone had an idea of how MOP and mopd work, yet they questioned the facts.
Quoted 1 line
Except VAX and DECstations - who does also use MOP for booting?
I don't know if anyone uses it, but essentially all DEC devices capable
of network-booting are able to use MOP for it. A subset of them may be able to use other protocols, e.g. BOOTP/TFTP. Apart from host systems, examples of such devices are terminal servers.
BTW, I use this mopd exclusively to boot my DECstations, even though one
of them supports BOOTP/TFTP just fine and I could swap ROMs to make the other work, too. I just find MOP more suitable for the task and I don't need to route BOOTP/TFTP packets across networks (which would exclude MOP from possible choices).
Maciej
Signature · 3 lines
+ Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: [email protected], PGP key available +