altboot (......dot dot ) hangs

Hello All,

I am trying to load a boot image from a Compact Flash. The system booted earlier, but i made some changes to the build file…now it gives me
Hit Esc for .altboot …
and then hangs. I tried pressing different keys on the keyboard…esc , spacebar nothing works.

I also tried running my old image file which used to work…but still gives the same error.

Please help with some suggestions to fix it.

Thanks.

oh…well its working now

i just added -f to my
dinit -h -f /dev/hd1t79

thanks

Hi Neelay,

I had same problem to boot my image file. It was posted in couple of days before in yyang2000. Could you please post your script build file here to let me get a sample. Also, a quick question why do you use type 79 instead of type 77? What is different between type 77, type 78 and type79?
I was using the same command as you did to load image to /dev/hd1t77, but not successfully. Maybe I have to try type 79.

Thanks,

Hi Yang,

I am posting my build file…you can modify it accordingly …based on your needs.

I am using type 79 because thats where my bootable image is loaded. When you do
fdisk /dev/hd1
It gives you a GUI, so there I have set my boot sector to be 79.

Hope this helps.

Neutrino on an PC BIOS compatible system

Note that the default image links at 4M. If you have 4M or less,

uncomment the line below

[image=1m]

###########################################################################

[virtual=x86,bios +compress] boot = {
startup-bios -Nmachine-name
PATH=/proc/boot:/x86/bin LD_LIBRARY_PATH=/proc/boot:/dev/shmem:/x86/lib:/x86/dll procnto
}

[+script] startup-script = {

Start up some consoles

devc-con -n2 &
reopen /dev/con1

Start the pci server

seedres	
pci-bios &
waitfor /dev/pci

Network drivers and filesystems

io-net -drtl -pttcpip if=en0:169.254.5.3 &

/proc/boot/ipaddress

waitfor /dev/socket

Wait for a bin for the rest of the commands

#waitfor /x86/bin

Some common servers

pipe &

devc-ser8250 &

devc-pty &
devb-eide &

Start a debug server for debugging programs

waitfor /dev/ser1

[+session] pdebug /dev/ser1 &

Mount filesystem and cdrom

Uncomment the following lines to mount hd0 and cd0 automatically

waitfor /dev/hd0
mount -tqnx4 /dev/hd0t77 /hd

waitfor /dev/cd0

mount -tcd /dev/cd0 /cd

These env variables inherited by all the programs which follow

SYSNAME=nto
TERM=qansi

Start some extra shells on other consoles

reopen /dev/con2

[+session] sh &

reopen /dev/con3

[+session] sh &

Start a high priority shell just in case…

reopen /dev/con4

reopen /dev/con2
[pri=25 +session] sh &

Start the main shell

reopen /dev/con1

[+session] ksh

Start the program from the main shell

reopen /dev/con1
ls
/proc/boot/timerPrgm
[+session] sh &

}

Cheat and make the /temp point to the shared memory area…

[type=link] /tmp=/dev/shmem

Programs require the runtime linker (ldqnx.so) to be at a fixed location

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

We use the “c” shared lib (which also contains the runtime linker)

#libc.so
libcpp.so.2a
libm.so.2
libc.so.2

#For PED
#libAp.so.2
#libph.so.2
#libphrender.so.2
#libgri.so.2

Include the socket library

libsocket.so
libsocket.so.2

Just incase someone needs floating point…

fpemu.so.2

Include filesystem libs

libcam.so.2
cam-disk.so
cam-cdrom.so
io-blk.so
fs-qnx4.so
fs-cd.so

Include the network files so we can access files across the net

devn-rtl.so
npm-ttcpip.so

The files above this line can be shared by mutiple processes

[data=c]

Executables must currently be below this line

Include a console driver

devc-con

Include the network executables.

io-net

[data=copy]

Other binaries

pci-bios
seedres
devc-ser8250
devc-pty
devb-eide
pipe
sh
pdebug
mkdir
cp
rm
mv
vi
clear
chmod
ped
cat
ls
pidin
ping
mount
ifconfig
/sbin/fdisk
/bin/dfloppy
/root/Apurva/interrupts/timerPrgm
/boot/build/hello
/boot/build/hello2
/boot/build/ipaddress

#Explicitly specifying destination and source

Maybe your image have VERY big size…