MSM586SEN

I am trying to create a boot image and put on Compact Flash for a Digital
Logic MSM586SEV board.
Has anyone done this before and if they have can they help. I am looking for
the correct build file format and correct sequence for dinit.

Thanks,

Ian

“Ian Gibb” <iang@maconmgt.co.uk> wrote in message
news:a5nhnj$f7j$1@inn.qnx.com

I am trying to create a boot image and put on Compact Flash for a Digital
Logic MSM586SEV board.
Has anyone done this before and if they have can they help. I am looking
for
the correct build file format and correct sequence for dinit.

Thanks,

Ian

Not for the card you mention, but is there anything special about that
board? Did you try “generic” build file?

Pavol Kycina

Thanks,
but where do I find the ‘generic’ build file info?
Ian

“Pavol Kycina” <kycina@microstep-hdo.sk> wrote in message
news:3c7f5896$1@asrpx.mshdo

“Ian Gibb” <> iang@maconmgt.co.uk> > wrote in message
news:a5nhnj$f7j$> 1@inn.qnx.com> …
I am trying to create a boot image and put on Compact Flash for a
Digital
Logic MSM586SEV board.
Has anyone done this before and if they have can they help. I am looking
for
the correct build file format and correct sequence for dinit.

Thanks,

Ian


Not for the card you mention, but is there anything special about that
board? Did you try “generic” build file?

Pavol Kycina

“Ian Gibb” <iang@maconmgt.co.uk> wrote in message
news:a5nsbg$me8$1@inn.qnx.com

Thanks,
but where do I find the ‘generic’ build file info?
Ian

There used to be some info in Help files, but I can’t find it where. But you
can see those help files online, see
http://qdn.qnx.com/support/docs/embedding_sdk_en/building/about.html , and
especially
http://qdn.qnx.com/support/docs/embedding_sdk_en/building/config.html .

Hope this helps.

Pavol Kycina

“Ian Gibb” <iang@maconmgt.co.uk> wrote in message
news:a5nhnj$f7j$1@inn.qnx.com

I am trying to create a boot image and put on Compact Flash for a Digital
Logic MSM586SEV board.
Has anyone done this before and if they have can they help. I am looking
for
the correct build file format and correct sequence for dinit.

Not sure about QRTP but QNX4 works fine on this board booting from both
DiskOnChip and CompactFlash. AFAIU for DOC you need to get M-Systems’s
drivers, for CFlash it appears as ordinary IDE drive. Was tested with DOC
16Mb and CompactFlash 8 and 32Mb.

// wbr

Thanks for that info.
Do you have any details of the fdisk, dinit and mkifs commands to partition
and make the CF. I think that this is where I am going wrong. I can build an
image no problem on a floppy but cannot make the same image boot from Flash.
The bios hangs!

I can DOS format the flash and get that to boot ok.

Any help or guidance appreciated.

Ian

“Ian Zagorskih” <ianzag@mail.ru> wrote in message
news:a5q4i1$auh$1@inn.qnx.com

“Ian Gibb” <> iang@maconmgt.co.uk> > wrote in message
news:a5nhnj$f7j$> 1@inn.qnx.com> …
I am trying to create a boot image and put on Compact Flash for a
Digital
Logic MSM586SEV board.
Has anyone done this before and if they have can they help. I am looking
for
the correct build file format and correct sequence for dinit.


Not sure about QRTP but QNX4 works fine on this board booting from both
DiskOnChip and CompactFlash. AFAIU for DOC you need to get M-Systems’s
drivers, for CFlash it appears as ordinary IDE drive. Was tested with DOC
16Mb and CompactFlash 8 and 32Mb.

// wbr

“Ian Gibb” <iang@maconmgt.co.uk> wrote in message
news:a60bam$lot$1@inn.qnx.com

Thanks for that info.
Do you have any details of the fdisk, dinit and mkifs commands to
partition
and make the CF. I think that this is where I am going wrong. I can build
an
image no problem on a floppy but cannot make the same image boot from
Flash.
The bios hangs!

I can DOS format the flash and get that to boot ok.

Any help or guidance appreciated.

Ian

I havn’t tryed DOC/CompactFlash with QNX 6.x so i can give full info related
only to existing QNX 4.25D installations. Anyway, maybe it will be hepfull
for you.

– DOC: DiskOnChip 2000 8Mb MD2200-D16

Physical disk characteristics: (//5/dev/tffs0)
Driver : DiskOnChip
Physical Drive # : 0
Disk type : Hard (2)
Cylinders : 999
Heads : 16
Sectors/Track : 2
Total Sectors : 31984

Warning: total sectors field does not agree with
cylinderssectors/trackheads!! (31984 vs 31968)

Partition table information:
0: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
1: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
2: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
3: (77) beg(h=1,s=1,c=0) end(h=15,s=194,c=230) off=2, size=31966
signature1=0x55, signature2=0xAA

OS Start End _Number Size Boot
name type Cylinder Cylinder Cylinders Blocks

  1. QNX ( 77) 0 998 999 31966 15 MB *
  2. ------ (—) ----- ----- ----- ------- -----
  3. ------ (—) ----- ----- ----- ------- -----
  4. ------ (—) ----- ----- ----- ------- -----

Partitioning:

  1. init DOC: “dformat”
  2. start Fsys and Fsys.diskonchip: → /dev/tffs0 appears
  3. run fdisk “fdisk /dev/tffs0” and create partition with type 77 and
    required size. don’t forget to mark it as active.
  4. mount disk: “mount -p /dev/tffs0” → /dev/tffs0t77 appears
  5. init partition: “dinit -h /dev/tffs0t77”
  6. mount partition: mount /dev/tffs0t77 /mnt/tffs0
  7. build boot image (see below) and copy it into /mnt/tffs0/.boot
  8. copy other applications you need
  9. enjoy

Boot image build file:

/boot/sys/boot
$ boot -v

/boot/sys/Proc32
$ Proc32 -l5

/boot/sys/Slib16
$ Slib16

/boot/sys/Slib32
$ Slib32

/bin/Fsys
$ Fsys

/bin/Fsys.diskonchip
$ Fsys.diskonchip

/bin/mount
$ mount -p /dev/tffs0 /dev/tffs0t77 /

/bin/sinit
$ sinit TERM=qnx


CFlash: CompactFlash (PC Card) 8Mb

Physical disk characteristics: (//5/dev/hd0)
Driver : EIDE Drvr
Physical Drive # : 0
Disk type : Removeable (4)
Cylinders : 248
Heads : 2
Sectors/Track : 32
Total Sectors : 15872

Partition table information:
0: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
1: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
2: (0) beg(h=0,s=0,c=0) end(h=0,s=0,c=0) off=0, size=0
3: (77) beg(h=1,s=1,c=0) end(h=1,s=32,c=247) off=32, size=15840
signature1=0x55, signature2=0xAA

OS Start End _Number Size Boot
name type Cylinder Cylinder Cylinders Blocks

  1. QNX ( 77) 0 247 248 15840 7 MB *
  2. ------ (—) ----- ----- ----- ------- -----
  3. ------ (—) ----- ----- ----- ------- -----
  4. ------ (—) ----- ----- ----- ------- -----

Partitioning:

  1. start Fsys and Fsys.eide → /dev/hd0 appears
  2. run fdisk “fdisk /dev/hd0” and create partition with type 77 and required
    size. don’t forget to mark it as active
  3. mount disk: “mount -p /dev/hd0” → /dev/hd0t77 appears
  4. init partition: “dinit -h /dev/hd0t77”
  5. mount partition: mount /dev/hd0t77 /mnt/hd0
  6. build boot image (see below) and copy it into /mnt/hd0/.boot
  7. copy other applications you need
  8. enjoy

Boot image build file:

/boot/sys/boot
$ boot -v

/boot/sys/Proc32
$ Proc32 -l5

/boot/sys/Slib16
$ Slib16

/boot/sys/Slib32
$ Slib32

/bin/Fsys
$ Fsys

/bin/Fsys.eide
$ Fsys.eide

/bin/mount
$ mount -p /dev/hd0 /dev/hd0t77 /

/bin/sinit
$ sinit TERM=qnx


Fsys managers version:

PROGRAM NAME VERSION DATE
/bin/Fsys Fsys32 4.24V Feb 18 2000
/bin/Fsys.diskonchip DiskOnChip 5.00 Aug 24 2001
/bin/Fsys.eide eide 4.25A Feb 09 2000

Fsys.diskonchip driver was downloaded from M-Systems site
(http://www.diskonchip.com)

// wbr

“Ian Gibb” <iang@maconmgt.co.uk> wrote in message
news:a60bam$lot$1@inn.qnx.com

[snip]

I am attaching mine build file.

Pavol Kycina


begin 666 qnx_zaz_eide.build
M6W-E87)C:#TN.B]S8FEN.B]U<W(O<V)I;CHO8FEN.B]U<W(O8FEN.B]L:6(Z
M+VQI8B]D;&PZ+V)O;W0O<WES70I;=FER=‘5A;#UX.#8L8FEO<R K8V]M<’)E
M<W-=(&)O;W0@/2!["@ES=&%R=‘5P+6)I;W,@+7,@-C1K"@E0051(/2]P<F]C
M+V)O;W0Z+V)I;CHO=7-R+V)I;B!,1%],24)205)97U!!5$@]+W!R;V,O8F]O
M=#HO;&EB.B]U<W(O;&EB.B]L:6(O9&QL(’!R;V-N=&*?0H6RMS8W)I<‘1=
M(“YS8W)I<'0@/2![”@E0051(/2XZ+V)I;CHO<’)O8R]B;V]T"@E415)-/7%A
M;G-I+6T
"51:/6-E=“TP,6-E<W0M,#(L33,N-2XP+S(L33$P+C4N,”\S"@D*
M"61E=F,M8V]N(“UN.2 F”@H)<F5O<&5N("]D978O8V]N,@H@(" @6RMS97-S
M:6]N72!E<V@@)@H)<F5O<&5N("]D978O8V]N,PH@(" @6RMS97-S:6]N72!E
M<V@@)@H)<F5O<&5N("]D978O8V]N- H@(" @6RMS97-S:6]N72!E<V@@)@H)
M<F5O<&5N("]D978O8V]N-0H@(" @6RMS97-S:6]N72!E<V@@)@H)<F5O<&5N
M("]D978O8V]N-@H@(" @6RMS97-S:6]N72!E<V@@)@H)<F5O<&5N("]D978O
M8V]N-PH@(" @6RMS97-S:6]N72!E<V@@)@H)<F5O<&5N("]D978O8V]N. H@
M(" @6RMS97-S:6]N72!E<V@@)@H)<F5O<&5N("]D978O8V]N.0H@(" @6RMS
M97-S:6]N72!E<V@@)@H@(" @"@ER96]P96X@+V1E=B]C;VXQ"@D*“61E=F(M
M96ED92!B;&L@8V%C:&4]-24@;F]A=&EM92 F”@EE8VAO($-A:V%M(&YA(&1E
M=&5K8VEU(&1I<VMO=@H)=V%I=&9O<B O9&5V+VAD,'0W.2 S, H);6]U;G0@
M+71Q;G@T("]D978O:&0P=#<Y("]H9 H)"@EE8VAO($YA8F]O=&]V86P@<V]M
M+"!S<‘5S=&%M(’-T87)T=7 @<V-R:7!T+@H)97-H(“UC(”(O:&0O+G-T87)T
M=7 B"@D*“5LK<V5S<VEO;ET@97-H(“8*“0D*?0H6W1Y<&4];&EN:UT@+V1E
M=B]C;VYS;VQE/2]D978O8V]N,0I;=‘EP93UL:6YK72 O=7-R+VQI8B]L9’%N
M>“YS;RXR/2]P<F]C+V)O;W0O;&EB8RYS;PI;='EP93UL:6YK72 O=&UP(#T@
M+V1E=B]S:&UE;0I;='EP93UL:6YK72 O8FEN+W-H/2]P<F]C+V)O;W0O97-H
M"EMT>7!E/6QI;FM=(”]U<W(O;&EB+W1E<FUI;F9O+W$O<6%N<VDM;3TO<’)O
M8R]B;V]T+W%A;G-I+6T
6W1Y<&4];&EN:UT@+W5S<B]L:6(O;&EB8V%M+G-O
M+C(]+W!R;V,O8F]O=”]L:6)C86TN<V\N,@I;='EP93UL:6YK72 O;&EB/2]H
M9”]L:6(6W1Y<&4];&EN:UT@+VQI8B]D;&P]+VAD+VQI8B]D;&P6W1Y<&4]
M;&EN:UT@+V)I;CTO:&0O8FEN”@IL:6)C+G-O( IL:6)C86TN<V*:6\M8FQK
M+G-O"F-A;2UD:7-K+G-O"F9S+7%N>#0N<V*+W5S<B]L:6(O=&5R;6EN9F\O
M<2]Q86YS:2UM"@I;9&%T83UC;W!Y70ID979C+6-O;@IE<V@96-H;PIL<PIP
M:61I;@IC870
8W *9&5V8BUE:61E"FUO=6YT"G5M;W5N= IM:V1I<@IR;0IC
+:&UO9 IC:&]W;@H
end