“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
- QNX ( 77) 0 998 999 31966 15 MB *
- ------ (—) ----- ----- ----- ------- -----
- ------ (—) ----- ----- ----- ------- -----
- ------ (—) ----- ----- ----- ------- -----
Partitioning:
- init DOC: “dformat”
- start Fsys and Fsys.diskonchip: → /dev/tffs0 appears
- run fdisk “fdisk /dev/tffs0” and create partition with type 77 and
required size. don’t forget to mark it as active.
- mount disk: “mount -p /dev/tffs0” → /dev/tffs0t77 appears
- init partition: “dinit -h /dev/tffs0t77”
- mount partition: mount /dev/tffs0t77 /mnt/tffs0
- build boot image (see below) and copy it into /mnt/tffs0/.boot
- copy other applications you need
- 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
- QNX ( 77) 0 247 248 15840 7 MB *
- ------ (—) ----- ----- ----- ------- -----
- ------ (—) ----- ----- ----- ------- -----
- ------ (—) ----- ----- ----- ------- -----
Partitioning:
- start Fsys and Fsys.eide → /dev/hd0 appears
- run fdisk “fdisk /dev/hd0” and create partition with type 77 and required
size. don’t forget to mark it as active
- mount disk: “mount -p /dev/hd0” → /dev/hd0t77 appears
- init partition: “dinit -h /dev/hd0t77”
- mount partition: mount /dev/hd0t77 /mnt/hd0
- build boot image (see below) and copy it into /mnt/hd0/.boot
- copy other applications you need
- 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