You are on page 1of 2

1) ��������� CF ����� USB-CF ���������� � �� � QNX 4.

25 � ��������� ���� ��
��������� umass* �������� �� ������ umass.tar:
# umasse
Path=0 - QNX USB Storage
target=0 lun=0 Direct-Access(0) - Kingston FCR-HS219/1 Rev: 9722
target=0 lun=1 Direct-Access(0) - Kingston FCR-HS219/1 Rev: 9722
target=0 lun=2 Direct-Access(0) - Kingston FCR-HS219/1 Rev: 9722
target=0 lun=3 Direct-Access(0) - Kingston FCR-HS219/1 Rev: 9722
USB Flash /dev/hd2t77 mounted as /cf.

2) � ������ fdisk �������� 77-� ������.


# fdisk /dev/hd2

3) � ������ dinit ������������������ ���:


# dinit -h /dev/hd2t77
'/dev/hd2t77' is not a floppy or ramdisk
Disk '/dev/hd2t77' contains 249824 blocks (124912K).

4) ���������� ����������� ����� �� CF. ��������, ���:


# cp -vcAR /etc /cf/etc
# cp -vcAR /bin /cf/bin
# cp -vcAR /usr /cf/usr
# cp -vcAR /qnx4 /cf/qnx4
# cp -vcAR /vedit /cf/vedit
# cp -vcAR /root /cf/root
# cp -vcAR /home /cf/home
# mkdir /cf/tmp
# chmod a+w /cf/tmp

5) �� �������� ��������������� ����� �������� � /etc.

6) �������� �����:
# cd /boot
# make b=cf.2
buildqnx -v d=Fsys.ide h=/dev/hd0 p= t=t77 v= build/cf.2 images/cf.2
/boot/sys/boot 01000 for 04000 (16384 bytes) Start 00000
05000 for 02000 ( 8192 bytes)
/boot/sys/Proc32 07000 for 1E000 (122880 bytes) Start 00008
25000 for 06000 (24576 bytes)
/boot/sys/Slib32 2B000 for 0D000 (53248 bytes) Start 01052
38000 for 01000 ( 4096 bytes)
/boot/sys/Slib16 39000 for 07000 (28672 bytes) Start 05632
40000 for 02000 ( 8192 bytes)
/bin/Fsys 42000 for 13000 (77824 bytes) Start 124DC
55000 for 06000 (24576 bytes)
/bin/Fsys.atapi 5B000 for 14000 (81920 bytes) Start 118EC
6F000 for 06000 (24576 bytes)
/bin/mount 75000 for 03000 (12288 bytes) Start 01384
78000 for 01000 ( 4096 bytes)
79000 for 01000 ( 4096 bytes)
/bin/sinit 7A000 for 05000 (20480 bytes) Start 0219C
7F000 for 01000 ( 4096 bytes)
80000 for 01000 ( 4096 bytes)
TOTAL OS SIZE = 413696 code + 110592 data = 524288 bytes

7) ���������� ��������� ����� QNX �� CF:


# cp /boot/images/cf.2 /cf/.boot

8) �������� CF:
# umasse stop
slay: //9/bin/io-usb 844 on //9/dev/ttyp0
slay: //9/bin/io-usb 853 on //9/dev/ttyp0
USB Flash stop done.

You might also like