QNX Image on a Microdrive

I am using a 1 GB IBM microdrive on an Ampro Littleboard. I am trying
to create a bootable image to put on the microdrive. Seems like a
straightforward thing, but it doesn’t seem to work. Here is what I
do.

I create a type 79 partition on the microdrive (using the whole
drive), Since my development system’s harddrive and the microdrive
seem to make my development system run slow (I get the no 80 conductor
cable installed error on startup) , I create a small image with
minimal commands and put it on a floppy using
“dinit -f temp.img /dev/fd0”. I boot to the floppy drive and this
part seems to work okay.

When I run the “devb-eide” command I can see the microdrive and the
partition I created in the “/dev” directory as “hd0” and “hd0t79”. At
this point I try mounting "hd0t79 " and I get an error message that
reads something like “…missing shared library”.
I do an “objdump -x /bin/mount | grep NEEDED” on my development system
to see what libraries I need and it looks like “libc.so.2” is the only
one I need and it looks like it is there in my “/proc/boot” directory.

I wasn’t sure if I had to mount the drive or not so I also tried doing
a “dinit -f micro.img /dev/hd0t79” and it looked like it worked, but
when I reboot I halts at either the “.altbootD” or “Updating ESCD…”.

Anyone have any ideas? I have included the build file I use for the
microdrive. The main thing is just getting the microdrive to boot an
image. Thanks in advance!

The build file for my floppy is:

[virtual=x86,bios +compress] .bootstrap={
startup-bios -s 64k
PATH=/proc/boot:/bin:/sbin
LD_LIBRARY_PATH=/proc/boot:/usr/lib procnto
}

[+script] .script={
seedres

display_msg “Embedded QNX Image…”

devc-con -n1 &
reopen /dev/con1
[+session] ksh &

devb-eide blk automount=hd0t79:/ &
waitfor /x86/bin 60


}

libc.so
cam-disk.so
cam-cdrom.so
libcam.so
io-blk.so
fs-qnx4.so

[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so

/sbin/seedres=seedres
/bin/kill=kill
/bin/ls=ls
/bin/ksh=ksh
/sbin/devc-con=devc-con
/bin/more=more
/bin/pidin=pidin
/sbin/fdisk=fdisk
/sbin/dcheck=dcheck
/bin/mount=mount
/bin/umount=umount
/sbin/devb-eide=devb-eide
/sbin/devb-fdc=devb-fdc
/bin/cp=cp
/bin/mkdir=mkdir
/bin/rm=rm
/bin/rmdir=rmdir
   
Rey

Minor note. The build file listed is for the microdrive not the
floppy as it reads.

Thanks
Rey

On Thu, 04 Mar 2004 13:32:36 -0800, Reynold.Suarez@pnl.gov wrote:

I am using a 1 GB IBM microdrive on an Ampro Littleboard. I am trying
to create a bootable image to put on the microdrive. Seems like a
straightforward thing, but it doesn’t seem to work. Here is what I
do.

I create a type 79 partition on the microdrive (using the whole
drive), Since my development system’s harddrive and the microdrive
seem to make my development system run slow (I get the no 80 conductor
cable installed error on startup) , I create a small image with
minimal commands and put it on a floppy using
“dinit -f temp.img /dev/fd0”. I boot to the floppy drive and this
part seems to work okay.

When I run the “devb-eide” command I can see the microdrive and the
partition I created in the “/dev” directory as “hd0” and “hd0t79”. At
this point I try mounting "hd0t79 " and I get an error message that
reads something like “…missing shared library”.
I do an “objdump -x /bin/mount | grep NEEDED” on my development system
to see what libraries I need and it looks like “libc.so.2” is the only
one I need and it looks like it is there in my “/proc/boot” directory.

I wasn’t sure if I had to mount the drive or not so I also tried doing
a “dinit -f micro.img /dev/hd0t79” and it looked like it worked, but
when I reboot I halts at either the “.altbootD” or “Updating ESCD…”.

Anyone have any ideas? I have included the build file I use for the
microdrive. The main thing is just getting the microdrive to boot an
image. Thanks in advance!

The build file for my MICRODRIVE is:

[virtual=x86,bios +compress] .bootstrap={
startup-bios -s 64k
PATH=/proc/boot:/bin:/sbin
LD_LIBRARY_PATH=/proc/boot:/usr/lib procnto
}

[+script] .script={
seedres

display_msg “Embedded QNX Image…”

devc-con -n1 &
reopen /dev/con1
[+session] ksh &

devb-eide blk automount=hd0t79:/ &
waitfor /x86/bin 60


}

libc.so
cam-disk.so
cam-cdrom.so
libcam.so
io-blk.so
fs-qnx4.so

[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so

/sbin/seedres=seedres
/bin/kill=kill
/bin/ls=ls
/bin/ksh=ksh
/sbin/devc-con=devc-con
/bin/more=more
/bin/pidin=pidin
/sbin/fdisk=fdisk
/sbin/dcheck=dcheck
/bin/mount=mount
/bin/umount=umount
/sbin/devb-eide=devb-eide
/sbin/devb-fdc=devb-fdc
/bin/cp=cp
/bin/mkdir=mkdir
/bin/rm=rm
/bin/rmdir=rmdir

Rey
[/quote]
Rey

>

what is the image for the floppy?

Rob.

<Reynold.Suarez@pnl.gov> wrote in message
news:639f40lfgec8levd8psg7vo8uvpnme01ql@4ax.com

Minor note. The build file listed is for the microdrive not the
floppy as it reads.

Thanks
Rey

On Thu, 04 Mar 2004 13:32:36 -0800, > Reynold.Suarez@pnl.gov > wrote:

I am using a 1 GB IBM microdrive on an Ampro Littleboard. I am trying
to create a bootable image to put on the microdrive. Seems like a
straightforward thing, but it doesn’t seem to work. Here is what I
do.

I create a type 79 partition on the microdrive (using the whole
drive), Since my development system’s harddrive and the microdrive
seem to make my development system run slow (I get the no 80 conductor
cable installed error on startup) , I create a small image with
minimal commands and put it on a floppy using
“dinit -f temp.img /dev/fd0”. I boot to the floppy drive and this
part seems to work okay.

When I run the “devb-eide” command I can see the microdrive and the
partition I created in the “/dev” directory as “hd0” and “hd0t79”. At
this point I try mounting "hd0t79 " and I get an error message that
reads something like “…missing shared library”.
I do an “objdump -x /bin/mount | grep NEEDED” on my development system
to see what libraries I need and it looks like “libc.so.2” is the only
one I need and it looks like it is there in my “/proc/boot” directory.

I wasn’t sure if I had to mount the drive or not so I also tried doing
a “dinit -f micro.img /dev/hd0t79” and it looked like it worked, but
when I reboot I halts at either the “.altbootD” or “Updating ESCD…”.

Anyone have any ideas? I have included the build file I use for the
microdrive. The main thing is just getting the microdrive to boot an
image. Thanks in advance!

The build file for my MICRODRIVE is:

[virtual=x86,bios +compress] .bootstrap={
startup-bios -s 64k
PATH=/proc/boot:/bin:/sbin
LD_LIBRARY_PATH=/proc/boot:/usr/lib procnto
}

[+script] .script={
seedres

display_msg “Embedded QNX Image…”

devc-con -n1 &
reopen /dev/con1
[+session] ksh &

devb-eide blk automount=hd0t79:/ &
waitfor /x86/bin 60


}

libc.so
cam-disk.so
cam-cdrom.so
libcam.so
io-blk.so
fs-qnx4.so

[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so

/sbin/seedres=seedres
/bin/kill=kill
/bin/ls=ls
/bin/ksh=ksh
/sbin/devc-con=devc-con
/bin/more=more
/bin/pidin=pidin
/sbin/fdisk=fdisk
/sbin/dcheck=dcheck
/bin/mount=mount
/bin/umount=umount
/sbin/devb-eide=devb-eide
/sbin/devb-fdc=devb-fdc
/bin/cp=cp
/bin/mkdir=mkdir
/bin/rm=rm
/bin/rmdir=rmdir

Rey

Rey[/quote]

>