6.3.0 & USB floppy

Using “io-usb -duhci -dehci” followed by “devb-umass cam pnp” picks up a
NEC USB floppy without a problem (although the device is /dev/hd1).

Since I am creating a boot floppy, I am writing to the raw device “dinit
-f lcc_install.img /dev/hd1”.

Once I have written an image, I remove the floppy and test it on another
machine. After re-inserting the floppy the next attempt to write the
disk fails.

ln -sP /dev/hd1 /dev/fd0

make

ls -l install.img
-rw-rw-r-- 1 root root 1163444 Oct 04 11:24 install.img
op dinit -f install.img /dev/fd0
Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop
Disk ‘/dev/fd0’ contains 2880 blocks (1440K).
op dd if=Transtoll of=/dev/fd0 ibs=20 obs=1 cbs=20 seek=18 count=1 conv=block 2>/dev/null

Floppy was NOT removed ! Second write OK

make

ls -l install.img
-rw-rw-r-- 1 root root 1163444 Oct 04 11:24 install.img
op dinit -f install.img /dev/fd0
Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop
Disk ‘/dev/fd0’ contains 2880 blocks (1440K).
op dd if=Transtoll of=/dev/fd0 ibs=20 obs=1 cbs=20 seek=18 count=1 conv=block 2>/dev/null

Floppy removed and re-inserted. Write fails.

make

ls -l install.img
-rw-rw-r-- 1 root root 1163444 Oct 04 11:24 install.img
op dinit -f install.img /dev/fd0
Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop
DINIT: Write failed - block 0: Input/output error
make: *** [bootdisk] Error 1

Next attempt works!

make

ls -l install.img
-rw-rw-r-- 1 root root 1163444 Oct 04 11:24 install.img
op dinit -f install.img /dev/fd0
Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop
Disk ‘/dev/fd0’ contains 2880 blocks (1440K).
op dd if=Transtoll of=/dev/fd0 ibs=20 obs=1 cbs=20 seek=18 count=1 conv=block 2>/dev/null

Floppy removed and re-inserted. Write fails.

make

ls -l install.img
-rw-rw-r-- 1 root root 1163444 Oct 04 11:24 install.img
op dinit -f install.img /dev/fd0
Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop
DINIT: Write failed - block 0: Input/output error
make: *** [bootdisk] Error 1

Floppy details :-

usb -vv

USB 0 (UHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk, Isoch, Low speed

USB 1 (UHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk, Isoch, Low speed

USB 2 (UHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk, Isoch, Low speed

Device Address : 1
Upstream Host Controller : 2
Upstream Device Address : 0
Upstream Port : 0
Upstream Port Speed : Full
Vendor : 0x0409 (NEC)
Product : 0x0040 (NEC USB UF000x)
Device Release : r1.50
USB Spec Release : v1.10
Serial Number : N/A
Class : 0x00 (Independant per interface)
Max PacketSize0 : 64
Languages : 0x0409 (English)
Configurations : 1
Configuration : 1
Attributes : 0x80 (Bus-powered)
Max Power : 500 mA
Interfaces : 1
Interface : 0 / 0
Class : 0x08 (Mass Storage)
Subclass : 0x04 (UFI)
Protocol : 0x00

USB 3 (EHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk, High speed

PING !!

Warren Deitch wrote:

Using “io-usb -duhci -dehci” followed by “devb-umass cam pnp” picks up a
NEC USB floppy without a problem (although the device is /dev/hd1).

Since I am creating a boot floppy, I am writing to the raw device “dinit
-f lcc_install.img /dev/hd1”.

Once I have written an image, I remove the floppy and test it on another
machine. After re-inserting the floppy the next attempt to write the
disk fails.

ln -sP /dev/hd1 /dev/fd0

make

ls -l install.img
-rw-rw-r-- 1 root root 1163444 Oct 04 11:24 install.img
op dinit -f install.img /dev/fd0
Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop
Disk ‘/dev/fd0’ contains 2880 blocks (1440K).
op dd if=Transtoll of=/dev/fd0 ibs=20 obs=1 cbs=20 seek=18 count=1
conv=block 2>/dev/null


Floppy was NOT removed ! Second write OK

make

ls -l install.img
-rw-rw-r-- 1 root root 1163444 Oct 04 11:24 install.img
op dinit -f install.img /dev/fd0
Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop
Disk ‘/dev/fd0’ contains 2880 blocks (1440K).
op dd if=Transtoll of=/dev/fd0 ibs=20 obs=1 cbs=20 seek=18 count=1
conv=block 2>/dev/null


Floppy removed and re-inserted. Write fails.

make

ls -l install.img
-rw-rw-r-- 1 root root 1163444 Oct 04 11:24 install.img
op dinit -f install.img /dev/fd0
Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop
DINIT: Write failed - block 0: Input/output error
make: *** [bootdisk] Error 1


Next attempt works!

make

ls -l install.img
-rw-rw-r-- 1 root root 1163444 Oct 04 11:24 install.img
op dinit -f install.img /dev/fd0
Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop
Disk ‘/dev/fd0’ contains 2880 blocks (1440K).
op dd if=Transtoll of=/dev/fd0 ibs=20 obs=1 cbs=20 seek=18 count=1
conv=block 2>/dev/null


Floppy removed and re-inserted. Write fails.

make

ls -l install.img
-rw-rw-r-- 1 root root 1163444 Oct 04 11:24 install.img
op dinit -f install.img /dev/fd0
Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop
DINIT: Write failed - block 0: Input/output error
make: *** [bootdisk] Error 1






Floppy details :-

usb -vv

USB 0 (UHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk, Isoch, Low speed

USB 1 (UHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk, Isoch, Low speed

USB 2 (UHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk, Isoch, Low speed

Device Address : 1
Upstream Host Controller : 2
Upstream Device Address : 0
Upstream Port : 0
Upstream Port Speed : Full
Vendor : 0x0409 (NEC)
Product : 0x0040 (NEC USB UF000x)
Device Release : r1.50
USB Spec Release : v1.10
Serial Number : N/A
Class : 0x00 (Independant per interface)
Max PacketSize0 : 64
Languages : 0x0409 (English)
Configurations : 1
Configuration : 1
Attributes : 0x80 (Bus-powered)
Max Power : 500 mA
Interfaces : 1
Interface : 0 / 0
Class : 0x08 (Mass Storage)
Subclass : 0x04 (UFI)
Protocol : 0x00

USB 3 (EHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk, High speed

I reproduced the problem here and
have fixed the driver.

thank you
Henry


Warren Deitch <warren.deitch@transcore.com.au> wrote in message
news:ck4pb1$e1j$1@inn.qnx.com

PING !!

Warren Deitch wrote:
Using “io-usb -duhci -dehci” followed by “devb-umass cam pnp” picks up a
NEC USB floppy without a problem (although the device is /dev/hd1).

Since I am creating a boot floppy, I am writing to the raw device “dinit
-f lcc_install.img /dev/hd1”.

Once I have written an image, I remove the floppy and test it on another
machine. After re-inserting the floppy the next attempt to write the
disk fails.

ln -sP /dev/hd1 /dev/fd0

make

ls -l install.img
-rw-rw-r-- 1 root root 1163444 Oct 04 11:24 install.img
op dinit -f install.img /dev/fd0
Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop
Disk ‘/dev/fd0’ contains 2880 blocks (1440K).
op dd if=Transtoll of=/dev/fd0 ibs=20 obs=1 cbs=20 seek=18 count=1
conv=block 2>/dev/null


Floppy was NOT removed ! Second write OK

make

ls -l install.img
-rw-rw-r-- 1 root root 1163444 Oct 04 11:24 install.img
op dinit -f install.img /dev/fd0
Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop
Disk ‘/dev/fd0’ contains 2880 blocks (1440K).
op dd if=Transtoll of=/dev/fd0 ibs=20 obs=1 cbs=20 seek=18 count=1
conv=block 2>/dev/null


Floppy removed and re-inserted. Write fails.

make

ls -l install.img
-rw-rw-r-- 1 root root 1163444 Oct 04 11:24 install.img
op dinit -f install.img /dev/fd0
Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop
DINIT: Write failed - block 0: Input/output error
make: *** [bootdisk] Error 1


Next attempt works!

make

ls -l install.img
-rw-rw-r-- 1 root root 1163444 Oct 04 11:24 install.img
op dinit -f install.img /dev/fd0
Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop
Disk ‘/dev/fd0’ contains 2880 blocks (1440K).
op dd if=Transtoll of=/dev/fd0 ibs=20 obs=1 cbs=20 seek=18 count=1
conv=block 2>/dev/null


Floppy removed and re-inserted. Write fails.

make

ls -l install.img
-rw-rw-r-- 1 root root 1163444 Oct 04 11:24 install.img
op dinit -f install.img /dev/fd0
Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop
DINIT: Write failed - block 0: Input/output error
make: *** [bootdisk] Error 1






Floppy details :-

usb -vv

USB 0 (UHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk, Isoch, Low speed

USB 1 (UHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk, Isoch, Low speed

USB 2 (UHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk, Isoch, Low speed

Device Address : 1
Upstream Host Controller : 2
Upstream Device Address : 0
Upstream Port : 0
Upstream Port Speed : Full
Vendor : 0x0409 (NEC)
Product : 0x0040 (NEC USB UF000x)
Device Release : r1.50
USB Spec Release : v1.10
Serial Number : N/A
Class : 0x00 (Independant per interface)
Max PacketSize0 : 64
Languages : 0x0409 (English)
Configurations : 1
Configuration : 1
Attributes : 0x80 (Bus-powered)
Max Power : 500 mA
Interfaces : 1
Interface : 0 / 0
Class : 0x08 (Mass Storage)
Subclass : 0x04 (UFI)
Protocol : 0x00

USB 3 (EHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk, High speed
\

Wonderfull !! How do I get it ?

Henry VanDyke wrote:

I reproduced the problem here and
have fixed the driver.

thank you
Henry


Warren Deitch <> warren.deitch@transcore.com.au> > wrote in message
news:ck4pb1$e1j$> 1@inn.qnx.com> …

PING !!

Warren Deitch wrote:

Using “io-usb -duhci -dehci” followed by “devb-umass cam pnp” picks up a
NEC USB floppy without a problem (although the device is /dev/hd1).

Since I am creating a boot floppy, I am writing to the raw device “dinit
-f lcc_install.img /dev/hd1”.

Once I have written an image, I remove the floppy and test it on another
machine. After re-inserting the floppy the next attempt to write the
disk fails.

\

ln -sP /dev/hd1 /dev/fd0

make

ls -l install.img
-rw-rw-r-- 1 root root 1163444 Oct 04 11:24 install.img
op dinit -f install.img /dev/fd0
Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop
Disk ‘/dev/fd0’ contains 2880 blocks (1440K).
op dd if=Transtoll of=/dev/fd0 ibs=20 obs=1 cbs=20 seek=18 count=1
conv=block 2>/dev/null


Floppy was NOT removed ! Second write OK

\

make

ls -l install.img
-rw-rw-r-- 1 root root 1163444 Oct 04 11:24 install.img
op dinit -f install.img /dev/fd0
Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop
Disk ‘/dev/fd0’ contains 2880 blocks (1440K).
op dd if=Transtoll of=/dev/fd0 ibs=20 obs=1 cbs=20 seek=18 count=1
conv=block 2>/dev/null


Floppy removed and re-inserted. Write fails.

\

make

ls -l install.img
-rw-rw-r-- 1 root root 1163444 Oct 04 11:24 install.img
op dinit -f install.img /dev/fd0
Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop
DINIT: Write failed - block 0: Input/output error
make: *** [bootdisk] Error 1


Next attempt works!

\

make

ls -l install.img
-rw-rw-r-- 1 root root 1163444 Oct 04 11:24 install.img
op dinit -f install.img /dev/fd0
Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop
Disk ‘/dev/fd0’ contains 2880 blocks (1440K).
op dd if=Transtoll of=/dev/fd0 ibs=20 obs=1 cbs=20 seek=18 count=1
conv=block 2>/dev/null


Floppy removed and re-inserted. Write fails.

\

make

ls -l install.img
-rw-rw-r-- 1 root root 1163444 Oct 04 11:24 install.img
op dinit -f install.img /dev/fd0
Using loader /usr/qnx630/target/qnx6/x86/boot/sys/ipl-diskpc2-flop
DINIT: Write failed - block 0: Input/output error
make: *** [bootdisk] Error 1






Floppy details :-

\

usb -vv

USB 0 (UHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk, Isoch, Low speed

USB 1 (UHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk, Isoch, Low speed

USB 2 (UHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk, Isoch, Low speed

Device Address : 1
Upstream Host Controller : 2
Upstream Device Address : 0
Upstream Port : 0
Upstream Port Speed : Full
Vendor : 0x0409 (NEC)
Product : 0x0040 (NEC USB UF000x)
Device Release : r1.50
USB Spec Release : v1.10
Serial Number : N/A
Class : 0x00 (Independant per interface)
Max PacketSize0 : 64
Languages : 0x0409 (English)
Configurations : 1
Configuration : 1
Attributes : 0x80 (Bus-powered)
Max Power : 500 mA
Interfaces : 1
Interface : 0 / 0
Class : 0x08 (Mass Storage)
Subclass : 0x04 (UFI)
Protocol : 0x00

USB 3 (EHCI) v1.10, v1.01 DDK, v1.01 HCD
Control, Interrupt, Bulk, High speed

\