In article <beejm0$3m8$1@inn.qnx.com>, john.h.eddy@lmco.com says…
John,
Well, it is a good result You saw the wrong size font because I forgot to include font selection
sequence in string, sorry. Here is attached ‘ipl-diskpc2-ser’ and winzip archive ‘john.zip’ which
include another copy of loader (for case of unsafe attachments filtering). This time I put the
command “0x1f,0x28,0x67,0x40,0x02,0x02” in the greeting string, but in order to save some space I
had to remove section outputting the dots during the boot process. So, it won’t be so fun anymore.
Error messages about wrong image signature or disk IO error will still go out through serial port.
It can’t continue booting if you used just dd like you did. dloader puts disk drive parameters in
the header of loader. It depends on which device you are initializing. Also, it is mandatory to give
a right name for the loader, because loaders name gives some important information for dloader I
guess, about is it primary or secondary loader. So,
dloader -v /dev/fd0 /boot/sys/ipl-diskpc2-serial
should work if you put ipl-diskpc2-serial (not mrts.ipl) into directory /boot/sys/
ed1k
P.S. Don’t try disassemble my code, it could selfdestroy upon disassembling BTW, I sent you
loader by email also.
begin 600 ipl-diskpc2-ser
MZR^0V@``````````````````&T,&T
,‘RAG0("(%-405)424Y'("
@4UE3
M5$5-.@``%Z![C0
#A^X8".P#'_N0
!\Z4&N$T4,L.'PX7O``(^QXQP([8 MBQ8
!!)TG3^0D)“L(/Z[DIL#N2K
&[D)"0K#[DI*,,#N0D)"L
/N^[X2
M*P(P'0%Z$(!Z_:_``8QP+D8
/.KN(
F;!#';O0
(Z0OH
"BTPPO00 M,=N+1!R+5!ZC``2)%@($Q@8(!
&!QA0ZR.!Q@@
@X(!'49H0$BQ8"!%53 MO0
*,=N0#H8P!;7;X0!(L$BU0"BWP$Z%,``?B!T@``*7P$P><)
?V!TP M@7P$
!UX>*WNP"9KKK?O\
N0@9CL7=
J!PP0XO6P4^L8BT<@
=@%:) M1RC'1RH1`+@
5QP%#+Z(4
Z_Y64%%24RT!(':```#!@0
$Q8&/<V#@"( MQ8CAP,D"B="9]C80
(C&”.’^P;!(GXNP
(BA81+0"S1.P1'*[6[X
!L=$
M$/__QD05D=$$@.QD04
,=$&/__QD0=DXEL&HA<’(!$’!&)^<'A"+2’S16 M^P%W!XA<'+2'S15:65A>PU)0'C'
CMB+%@$'X'"!0#L)$!T^T+L)!!T^X'J &!@!8[EK#
end
begin 600 john.zip
M4$L#!!0@`(`#N=Z"XYS+Z3WP$
/L!```2````:7!L+61I<VMP8S(M<V5R
M:6%L55!-:–P’‘W_[-^8#0GI/KJJ=0VXPQ3$!60716J(%(N3VD39APY!G0<]
M28>7(@TB-@:&L-…HI[TD,/UMHNM9@B8R#S,NRINQC,Z&4XI\76%
3QQSN
M#CQ>-Z)IU_PWQV*[?<1’;L=8QA1U<ZFM/,7XZ(HJM.J=FX2+C"G-T^“C^:O
M8]&6.@60G9=L?A+)-3[*#[#UQJ1[,5-,P0:[=U(MV59MA[^:B82%IH)BVUV
M=8\OQ^V_M%7NQVO.3@=<F7B[JVENQ#&SJL\@^55
JE>N>^0#G+F!?&2Q"D MNJE$3&WD.:@18JC#<I3HSB"\([K#H<US=.'
,U#3SRZK)?1)=?^+>P.SU\H”
M-:FI,6:&NBK(GKX!’,W0RM=>\EO#.@9"BPTMMX4P<R_]1YT4(X?VHXW:=7 M*;:^6ZH7-N,BV0R
->)CM?BQ(/(@2<E.KKF/X+6O)"^EU.,$NC]J#TLQ$&+Q
M8X)’[D.N87]DC$+NQ,"<@[7:%?\4L9>$=R34!KS/J
I=PKSI;!UA2ATW&4
MH:6:T@>40914)=Y_“2<?=@[FHDJT2"QL]*@UMYO#Z4;9’[^WRSRV>FI^:J
MJ>2_^?7W6R/QM(M>7M42+?T;RRFFC/5T[=N2G?._
%02P$”%4
("``[ MG>@N.<R^D]\!``#[
0$@```````````"
MH$:7!L+61I<VMP8S(M <<V5R:6%L4$L%!@
!``$0`````\"`````($
`
end
ed1k,
Ok, I got the attachment, and tried putting it on a floppy to test boot on
the system.
I couldn’t get dloader or dinit to work, so did a “dd if=mrts.ipl
of=/dev/fd0 bs=512 count=1” and got it over to the floppy.
When it booted, I saw “starting system” in the wrong size font, and then it
hung.
I tried copying it to the flash hard drive on the test box, and got the same
results.
Here is what came out the port when I tried capturing it on boot up:
00 ff ff 1b 40 0c 1b 40 0c 20 53 54 41 52 54 49 4e 47 20 20 20 53 59 53 54
45 4d
I assume the 00 ff ff is noise on bootup or something like that. It should
be:
1b 40 0c 1b 40 0c 1f 28 67 40 02 02 20 53 54 41 52 54 49 4e 47 20 20 20 53
59 53 54 45 4d
The missing string is the part that sets the font to larger size, so it did
the right thing.
If I spatch mrts.ipl, I can see that the string is missing those bytes in
the data section at the beginning of the file.
Can you send me the syntax you finally used to get dloader to work for you.
Also… any idea why it won’t continue booting after the serial message goes
out?
I tried disassembling the code with ndisasm -k2,0x29 mrts.ipl, but it was a
bit hard to follow without comments.
Thanks,
John