Problems building RTP image...

Hi
I’m building a image filesystem to transfer to a floppy and boot from. the
problem is that my program is using the math library. But when i try to
include it in the buildfile , the image just builds fine, but when i try
to boot from it just gets stuck after displaying the dots of loading
it. The same build file without libm.so.1 just boots fine but on booting
the kernel complains of “Missing library libm.so.1”. Please help

Here is my build file

Build file begins

[virtual=x86,bios] .bootstrap = {
startup-bios
PATH=/proc/boot procnto
}

[+script] .script = {
devc-con -n9 &
reopen /dev/con1

xpr is my program

/proc/bin/xpr
}

[perms=+r,+x]
libc.so.1
#keeping libm.so.1 doesn’t work neither here
#libm.so.1

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

[data=copy]
[perms=+r,+x]
devc-con
#nor here
#/usr/lib/libm.so.1=/lib/libm.so.1

this is to get my program

…/xpr

Build file ends

i have tried putting libm.so.1 everywhere and nowhere it works…


ps. another simple buildfile with a hello world program and WITHOUT
libm.so.1 just boots and runs fine off the same floppy. however when i put
libm.so.1 along with it… the boot process just gets stuck where i
mentioned. apparantly the problem is with libm.so being there

Please help… i need this working desperately…

Keep Smiling

Mechanically Yours

  • mritunjai

Akhilesh Mritunjai
Sophomore Undergraduate
Mechanical Engg. Dept
IIT Bombay
Mumbai
India

\

Posted from mailhost.iitb.ac.in [203.197.74.142]
via Mailgate.ORG Server - http://www.Mailgate.ORG

It’s likely your image is too big, it must be smaller then ~610k.

Solution would be to have a file system on the floppy and
from the image mount it and load your program from there.

“Akhilesh Mritunjai” <mritun@me.iitb.ernet.in> wrote in message
news:Pine.GSO.4.21.0011172155080.24588-100000@epsilon.me.iitb.ernet.in

Hi
I’m building a image filesystem to transfer to a floppy and boot from. the
problem is that my program is using the math library. But when i try to
include it in the buildfile , the image just builds fine, but when i try
to boot from it just gets stuck after displaying the dots of loading
it. The same build file without libm.so.1 just boots fine but on booting
the kernel complains of “Missing library libm.so.1”. Please help

Here is my build file

Build file begins

[virtual=x86,bios] .bootstrap = {
startup-bios
PATH=/proc/boot procnto
}

[+script] .script = {
devc-con -n9 &
reopen /dev/con1

xpr is my program

/proc/bin/xpr
}

[perms=+r,+x]
libc.so.1
#keeping libm.so.1 doesn’t work neither here
#libm.so.1

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

[data=copy]
[perms=+r,+x]
devc-con
#nor here
#/usr/lib/libm.so.1=/lib/libm.so.1

this is to get my program

./xpr

Build file ends

i have tried putting libm.so.1 everywhere and nowhere it works…


ps. another simple buildfile with a hello world program and WITHOUT
libm.so.1 just boots and runs fine off the same floppy. however when i put
libm.so.1 along with it… the boot process just gets stuck where i
mentioned. apparantly the problem is with libm.so being there

Please help… i need this working desperately…

Keep Smiling

Mechanically Yours

  • mritunjai

Akhilesh Mritunjai
Sophomore Undergraduate
Mechanical Engg. Dept
IIT Bombay
Mumbai
India

\

Posted from mailhost.iitb.ac.in [203.197.74.142]
via Mailgate.ORG Server - > http://www.Mailgate.ORG

Akhilesh Mritunjai <mritun@me.iitb.ernet.in> wrote:
: Hi
: I’m building a image filesystem to transfer to a floppy and boot from. the
: problem is that my program is using the math library. But when i try to
: include it in the buildfile , the image just builds fine, but when i try
: to boot from it just gets stuck after displaying the dots of loading
: it. The same build file without libm.so.1 just boots fine but on booting
: the kernel complains of “Missing library libm.so.1”. Please help

: Here is my build file

: ### Build file begins

If you change the following line to include +compress, it will
allow you to put more into the boot image. Look at the sample
build files in /boot/build to see it in other images.

[virtual=x86,bios +compress] .bootstrap = {

Peter

: [virtual=x86,bios] .bootstrap = {
: startup-bios
: PATH=/proc/boot procnto
: }

: [+script] .script = {
: devc-con -n9 &
: reopen /dev/con1
: # xpr is my program
: /proc/bin/xpr
: }

: [perms=+r,+x]
: libc.so.1
: #keeping libm.so.1 doesn’t work neither here
: #libm.so.1

: [type=link] /usr/lib/ldqnx.so.1=/proc/boot/libc.so.1
: [type=link] /usr/lib/libc.so.1=/proc/boot/libc.so.1
: [type=link] /lib/libm.so.1=/proc/boot/libm.so.1

: [data=copy]
: [perms=+r,+x]
: devc-con
: #nor here
: #/usr/lib/libm.so.1=/lib/libm.so.1
: # this is to get my program
: ./xpr
: ### Build file ends

: i have tried putting libm.so.1 everywhere and nowhere it works…


: ps. another simple buildfile with a hello world program and WITHOUT
: libm.so.1 just boots and runs fine off the same floppy. however when i put
: libm.so.1 along with it… the boot process just gets stuck where i
: mentioned. apparantly the problem is with libm.so being there

: Please help… i need this working desperately…

: Keep Smiling
: –
: Mechanically Yours
: - mritunjai

: Akhilesh Mritunjai
: Sophomore Undergraduate
: Mechanical Engg. Dept
: IIT Bombay
: Mumbai
: India


: –
: Posted from mailhost.iitb.ac.in [203.197.74.142]
: via Mailgate.ORG Server - http://www.Mailgate.ORG