Re: Net Booting...
Anders Hjalmarsson <hjalmar <at> hjalmar.to>
2006-01-19 20:43:45 GMT
>
> Maybe it is no problem of the boot code. It may be in mopd(8) or
> mopcopy(1)...
>
I have this patch to mopcopy, I do not remember where I got it,
either from this list or a bug report.
With it I can mopcopy an ELF-format bootprogram to a format that works.
The mopd internal ELF conversion is still broken though.
For those who have forgotten, mop booting got broken with the switch to
ELF (quite some time ago)
-hjalmar
Index: mopcopy/mopcopy.c
===================================================================
RCS file: /cvsroot/src/usr.sbin/mopd/mopcopy/mopcopy.c,v
retrieving revision 1.3
diff -u -r1.3 mopcopy.c
--- mopcopy/mopcopy.c 5 Nov 2002 05:06:05 -0000 1.3
+++ mopcopy/mopcopy.c 19 Jan 2006 20:36:57 -0000
<at> <at> -141,6 +141,7 <at> <at>
dl.a_lseek = 0;
dl.count = 0;
dl.dl_bsz = 512;
+ dl.xferaddr = 0;
mopFilePutLX(header,IHD_W_SIZE,0xd4,2); /* Offset to ISD section. */
mopFilePutLX(header,IHD_W_ACTIVOFF,0x30,2);/* Offset to 1st section.*/
(Continue reading)