mkifs crashes with image=0x1000000

When I set image=0x10000000, I get a crash when doing a mkifs.
I checked, and any value above 0x04000000 causes mkifs to crash.

I’ve tried this with and without the ram attribute.

The documentation doesn’t mention that higher values aren’t allowed.
Any ideas what I am doing wrong.

Buildfile is below:


Crash:
C:\QNXsdk\target\qnx6\usr\src\bsp-6.2.1\ppc\jtrs\images>make
Makefile:59: warning: overriding commands for target clean' Makefile:16: warning: ignoring old commands for target clean’
mkifs -r…/scratch icecube.build ifs-icecube+.srec
0 [main] ntoppc-ld 4048 handle_exceptions: Exception:
STATUS_ACCESS_VIOLAT
ION
953 [main] ntoppc-ld 4048 open_stackdumpfile: Dumping stack trace to
ntoppc-
ld.exe.stackdump
cc: C:/QNXsdk/host/win32/x86/usr/bin/ntoppc-ld error 139
unlink of ._398.AAF failed : -1 (unknown error)
Unable to link relocatable elf file
C:/QNXsdk/target/qnx6/ppcbe/boot/sys/procnto
-600.
make: *** [ifs-icecube+.srec] Error 1



Buildfile:
###########################################################################

Neutrino on a Motorola Lite5200 EVB

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

#[ram=0x00000000-0x07ffffff]

original was image=0x20000

#[image=0x10010000-0x17ffffff]

#[ram=0x10000000-0x17ffffff]

[image=0x10010000]

#[virtual=ppcbe,srec +compress] .bootstrap = {

[virtual=ppcbe,srec] .bootstrap = {

startup-jtrs -vvv

startup-icecube

startup-icecube-6.2.1b -v

PATH=/proc/boot procnto-600 -v

}

[+script] .script = {

display_msg Welcome to QNX Neutrino on the Motorola Lite5200 EVB

Serial driver for Motorola Lite5200 EVB Version 2.0

#devc-serpsc -c 132000000 -u 1 -e -F -S -b 115200 &

devc-serpsc -c 132000000 -u 1 -e -F -S -b 115200 0xf0002000,65 &


waitfor /dev/ser1

reopen /dev/ser1

\

These env variables inherited by all the programs which follow

SYSNAME=nto

TERM=qansi

HOME=/

TZ=EST5EDT4

I’m setting this here to try to get momentix to run 12/22/03 -cmf

LD_LIBRARY_PATH=./:/proc/boot:/usr/lib:/usr/local/lib

SHELL=/bin/ksh

LOGNAME=root

slogger -l /tmp/slog &

pipe

\

PCI driver

pci-mgt5200

waitfor /dev/pci

display_msg Starting Flash Driver

Flash driver

devf-mgt5200 -s 0xff800000,8M,0,8M,64K

devf-cmf -s 0xff800000,8M,0,8M,64K -r -b5 -u2 -t1 &

waitfor /usr/lib

waitfor /bin

waitfor /sbin

waitfor /etc

display_msg Flash Driver Initialized

Network driver

Setup Best Comm (DMA) for on-board ethernet driver

parameters from 6.2.1a motorola build file

display_msg Starting Bestcomm DMA driver

bestcomm5200

bestcomm5200 -n 6 -m ff

display_msg Starting up on-board ethernet with Large stack and cache -
144.177.209.210

io-net -c1 -ptcpip cache=1 -dmpc5200 mac=0001af520130 -v

io-net -c1 -ptcpip cache=1 -dcmf mac=0001af520130 -v

waitfor /dev/io-net/en0 4

ifconfig en0 147.177.209.210 netmask 255.255.240.0

route add default 147.177.208.1

display_msg Network Started.

USB driver

devu-ohci-mgt5200 -a0xf0001000 -i38

/bin/mqueue &

display_msg Starting Momentics programs

/bin/pdebug 10000 &

qconn

display_msg Start the run control script.

[+session] /proc/boot/ksh /proc/boot/rc

display_msg Starting Shell

[+session] PATH=/proc/boot:/bin:/etc ksh &

}

[type=link] /dev/console=/dev/ser1

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

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

[type=link] /bin/sh=/proc/boot/ksh

[type=link] /bin/ksh=/proc/boot/ksh

[type=link] /bin/cat=/proc/boot/cat

[type=link] /bin/cp=/proc/boot/cp

[type=link] /bin/ls=/proc/boot/ls

[type=link] /bin/slay=/proc/boot/slay

[type=link] /bin/fs-cifs=/proc/boot/fs-cifs

[type=link] /bin/route=/proc/boot/route

[type=link] /bin/ifconfig=/proc/boot/ifconfig

[type=link] /bin/ping=/proc/boot/ping

[type=link] /bin/pidin=/proc/boot/pidin

[type=link] /bin/sloginfo=/proc/boot/sloginfo

[type=link] /bin/io-net=/proc/boot/io-net

[type=link] /bin/pipe=/proc/boot/pipe

[type=link] /bin/pdebug=/proc/boot/pdebug

[type=link] /bin/qconn=/proc/boot/qconn

[type=link] /bin/flashctl=/proc/boot/flashctl

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

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

#[type=link] /usr/local/lib/libcpp.so.2=/usr/lib/libcpp.s0.2

#[type=link] /usr/local/bin/netconfig=/proc/boot/netconfig

[perms=+r,+x]

[+keeplinked]

libc.so

fpemu.so.2

libm.so.2

[data=c]

devc-serpsc

pci-mgt5200

uncomment for Network driver

libsocket.so.2

npm-tcpip.so

libdma-bestcomm5200.so.1

devn-mpc5200.so

devn-cmf.so

uncomment for Network driver

bestcomm5200

io-net

ifconfig

ping

uncomment for Flash driver

devf-mgt5200

devf-cmf

devf-cmf2

flashctl

startup-jtrs

uncomment for USB driver

devu-ohci-mgt5200

usb

general commands

12/16/03 added cat -cmf

cat

cp

ls

pidin

ksh

pci

pipe

slogger

sloginfo

slay

route

pdebug

qconn

fs-cifs


\

12/16/03 added scripts -cmf

/proc/boot/bootup.ksh = {

if [[ -a /etc/bootup.ksh ]]; then

/etc/bootup.ksh

fi

}



/proc/boot/rc = {

echo Type this to access NT: “fs-cifs -a -l //sc077270:147.177.6.184:/temp
/nt”

/etc/bootup.ksh is gone.

#if [[ ! -e /etc/bootup.ksh ]]; then

ln -s /etc/bootup.config.ksh /etc/bootup.ksh

#fi

This gives you a shell in case

/etc/rc is gone.

if [[ -e /etc/rc ]]; then

echo /etc/rc path

… /etc/profile

exec /proc/boot/ksh /etc/rc

else

echo while loop path

… /etc/profile

/etc/bootup.ksh

while /bin/true; do

/proc/boot/ksh

done

/bin/shutdown -v -S system

fi

}

The PPC kernel is supposed to reside in the low 1Gb. Not sure if this is
really relevant, but could be.

“Chris Fischer” <cfischer@harris.com> wrote in message
news:bv3e94$kpl$3@inn.qnx.com

When I set image=0x10000000, I get a crash when doing a mkifs.
I checked, and any value above 0x04000000 causes mkifs to crash.

I’ve tried this with and without the ram attribute.

The documentation doesn’t mention that higher values aren’t allowed.
Any ideas what I am doing wrong.

Buildfile is below:


Crash:
C:\QNXsdk\target\qnx6\usr\src\bsp-6.2.1\ppc\jtrs\images>make
Makefile:59: warning: overriding commands for target clean' Makefile:16: warning: ignoring old commands for target clean’
mkifs -r…/scratch icecube.build ifs-icecube+.srec
0 [main] ntoppc-ld 4048 handle_exceptions: Exception:
STATUS_ACCESS_VIOLAT
ION
953 [main] ntoppc-ld 4048 open_stackdumpfile: Dumping stack trace to
ntoppc-
ld.exe.stackdump
cc: C:/QNXsdk/host/win32/x86/usr/bin/ntoppc-ld error 139
unlink of ._398.AAF failed : -1 (unknown error)
Unable to link relocatable elf file
C:/QNXsdk/target/qnx6/ppcbe/boot/sys/procnto
-600.
make: *** [ifs-icecube+.srec] Error 1



Buildfile:

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

Neutrino on a Motorola Lite5200 EVB



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

#[ram=0x00000000-0x07ffffff]

original was image=0x20000

#[image=0x10010000-0x17ffffff]

#[ram=0x10000000-0x17ffffff]

[image=0x10010000]

#[virtual=ppcbe,srec +compress] .bootstrap = {

[virtual=ppcbe,srec] .bootstrap = {

startup-jtrs -vvv

startup-icecube

startup-icecube-6.2.1b -v

PATH=/proc/boot procnto-600 -v

}

[+script] .script = {

display_msg Welcome to QNX Neutrino on the Motorola Lite5200 EVB

Serial driver for Motorola Lite5200 EVB Version 2.0

#devc-serpsc -c 132000000 -u 1 -e -F -S -b 115200 &

devc-serpsc -c 132000000 -u 1 -e -F -S -b 115200 0xf0002000,65 &


waitfor /dev/ser1

reopen /dev/ser1

\

These env variables inherited by all the programs which follow

SYSNAME=nto

TERM=qansi

HOME=/

TZ=EST5EDT4

I’m setting this here to try to get momentix to run 12/22/03 -cmf

LD_LIBRARY_PATH=./:/proc/boot:/usr/lib:/usr/local/lib

SHELL=/bin/ksh

LOGNAME=root

slogger -l /tmp/slog &

pipe

\

PCI driver

pci-mgt5200

waitfor /dev/pci

display_msg Starting Flash Driver

Flash driver

devf-mgt5200 -s 0xff800000,8M,0,8M,64K

devf-cmf -s 0xff800000,8M,0,8M,64K -r -b5 -u2 -t1 &

waitfor /usr/lib

waitfor /bin

waitfor /sbin

waitfor /etc

display_msg Flash Driver Initialized

Network driver

Setup Best Comm (DMA) for on-board ethernet driver

parameters from 6.2.1a motorola build file

display_msg Starting Bestcomm DMA driver

bestcomm5200

bestcomm5200 -n 6 -m ff

display_msg Starting up on-board ethernet with Large stack and cache -
144.177.209.210

io-net -c1 -ptcpip cache=1 -dmpc5200 mac=0001af520130 -v

io-net -c1 -ptcpip cache=1 -dcmf mac=0001af520130 -v

waitfor /dev/io-net/en0 4

ifconfig en0 147.177.209.210 netmask 255.255.240.0

route add default 147.177.208.1

display_msg Network Started.

USB driver

devu-ohci-mgt5200 -a0xf0001000 -i38

/bin/mqueue &

display_msg Starting Momentics programs

/bin/pdebug 10000 &

qconn

display_msg Start the run control script.

[+session] /proc/boot/ksh /proc/boot/rc

display_msg Starting Shell

[+session] PATH=/proc/boot:/bin:/etc ksh &

}

[type=link] /dev/console=/dev/ser1

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

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

[type=link] /bin/sh=/proc/boot/ksh

[type=link] /bin/ksh=/proc/boot/ksh

[type=link] /bin/cat=/proc/boot/cat

[type=link] /bin/cp=/proc/boot/cp

[type=link] /bin/ls=/proc/boot/ls

[type=link] /bin/slay=/proc/boot/slay

[type=link] /bin/fs-cifs=/proc/boot/fs-cifs

[type=link] /bin/route=/proc/boot/route

[type=link] /bin/ifconfig=/proc/boot/ifconfig

[type=link] /bin/ping=/proc/boot/ping

[type=link] /bin/pidin=/proc/boot/pidin

[type=link] /bin/sloginfo=/proc/boot/sloginfo

[type=link] /bin/io-net=/proc/boot/io-net

[type=link] /bin/pipe=/proc/boot/pipe

[type=link] /bin/pdebug=/proc/boot/pdebug

[type=link] /bin/qconn=/proc/boot/qconn

[type=link] /bin/flashctl=/proc/boot/flashctl

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

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

#[type=link] /usr/local/lib/libcpp.so.2=/usr/lib/libcpp.s0.2

#[type=link] /usr/local/bin/netconfig=/proc/boot/netconfig

[perms=+r,+x]

[+keeplinked]

libc.so

fpemu.so.2

libm.so.2

[data=c]

devc-serpsc

pci-mgt5200

uncomment for Network driver

libsocket.so.2

npm-tcpip.so

libdma-bestcomm5200.so.1

devn-mpc5200.so

devn-cmf.so

uncomment for Network driver

bestcomm5200

io-net

ifconfig

ping

uncomment for Flash driver

devf-mgt5200

devf-cmf

devf-cmf2

flashctl

startup-jtrs

uncomment for USB driver

devu-ohci-mgt5200

usb

general commands

12/16/03 added cat -cmf

cat

cp

ls

pidin

ksh

pci

pipe

slogger

sloginfo

slay

route

pdebug

qconn

fs-cifs


\

12/16/03 added scripts -cmf

/proc/boot/bootup.ksh = {

if [[ -a /etc/bootup.ksh ]]; then

/etc/bootup.ksh

fi

}



/proc/boot/rc = {

echo Type this to access NT: “fs-cifs -a -l //sc077270:147.177.6.184:/temp
/nt”

/etc/bootup.ksh is gone.

#if [[ ! -e /etc/bootup.ksh ]]; then

ln -s /etc/bootup.config.ksh /etc/bootup.ksh

#fi

This gives you a shell in case

/etc/rc is gone.

if [[ -e /etc/rc ]]; then

echo /etc/rc path

. /etc/profile

exec /proc/boot/ksh /etc/rc

else

echo while loop path

. /etc/profile

/etc/bootup.ksh

while /bin/true; do

/proc/boot/ksh

done

/bin/shutdown -v -S system

fi

}
\

Isn’t the low 1gb from 0 to 3fffffff? I’m still in it.

“Igor Kovalenko” <kovalenko@attbi.com> wrote in message
news:bv3mps$qus$1@inn.qnx.com

The PPC kernel is supposed to reside in the low 1Gb. Not sure if this is
really relevant, but could be.

“Chris Fischer” <> cfischer@harris.com> > wrote in message
news:bv3e94$kpl$> 3@inn.qnx.com> …
When I set image=0x10000000, I get a crash when doing a mkifs.
I checked, and any value above 0x04000000 causes mkifs to crash.

I’ve tried this with and without the ram attribute.

The documentation doesn’t mention that higher values aren’t allowed.
Any ideas what I am doing wrong.

Buildfile is below:


Crash:
C:\QNXsdk\target\qnx6\usr\src\bsp-6.2.1\ppc\jtrs\images>make
Makefile:59: warning: overriding commands for target clean' Makefile:16: warning: ignoring old commands for target clean’
mkifs -r…/scratch icecube.build ifs-icecube+.srec
0 [main] ntoppc-ld 4048 handle_exceptions: Exception:
STATUS_ACCESS_VIOLAT
ION
953 [main] ntoppc-ld 4048 open_stackdumpfile: Dumping stack trace to
ntoppc-
ld.exe.stackdump
cc: C:/QNXsdk/host/win32/x86/usr/bin/ntoppc-ld error 139
unlink of ._398.AAF failed : -1 (unknown error)
Unable to link relocatable elf file
C:/QNXsdk/target/qnx6/ppcbe/boot/sys/procnto
-600.
make: *** [ifs-icecube+.srec] Error 1



Buildfile:


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

Neutrino on a Motorola Lite5200 EVB




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

#[ram=0x00000000-0x07ffffff]

original was image=0x20000

#[image=0x10010000-0x17ffffff]

#[ram=0x10000000-0x17ffffff]

[image=0x10010000]

#[virtual=ppcbe,srec +compress] .bootstrap = {

[virtual=ppcbe,srec] .bootstrap = {

startup-jtrs -vvv

startup-icecube

startup-icecube-6.2.1b -v

PATH=/proc/boot procnto-600 -v

}

[+script] .script = {

display_msg Welcome to QNX Neutrino on the Motorola Lite5200 EVB

Serial driver for Motorola Lite5200 EVB Version 2.0

#devc-serpsc -c 132000000 -u 1 -e -F -S -b 115200 &

devc-serpsc -c 132000000 -u 1 -e -F -S -b 115200 0xf0002000,65 &


waitfor /dev/ser1

reopen /dev/ser1

\

These env variables inherited by all the programs which follow

SYSNAME=nto

TERM=qansi

HOME=/

TZ=EST5EDT4

I’m setting this here to try to get momentix to run 12/22/03 -cmf

LD_LIBRARY_PATH=./:/proc/boot:/usr/lib:/usr/local/lib

SHELL=/bin/ksh

LOGNAME=root

slogger -l /tmp/slog &

pipe

\

PCI driver

pci-mgt5200

waitfor /dev/pci

display_msg Starting Flash Driver

Flash driver

devf-mgt5200 -s 0xff800000,8M,0,8M,64K

devf-cmf -s 0xff800000,8M,0,8M,64K -r -b5 -u2 -t1 &

waitfor /usr/lib

waitfor /bin

waitfor /sbin

waitfor /etc

display_msg Flash Driver Initialized

Network driver

Setup Best Comm (DMA) for on-board ethernet driver

parameters from 6.2.1a motorola build file

display_msg Starting Bestcomm DMA driver

bestcomm5200

bestcomm5200 -n 6 -m ff

display_msg Starting up on-board ethernet with Large stack and cache -
144.177.209.210

io-net -c1 -ptcpip cache=1 -dmpc5200 mac=0001af520130 -v

io-net -c1 -ptcpip cache=1 -dcmf mac=0001af520130 -v

waitfor /dev/io-net/en0 4

ifconfig en0 147.177.209.210 netmask 255.255.240.0

route add default 147.177.208.1

display_msg Network Started.

USB driver

devu-ohci-mgt5200 -a0xf0001000 -i38

/bin/mqueue &

display_msg Starting Momentics programs

/bin/pdebug 10000 &

qconn

display_msg Start the run control script.

[+session] /proc/boot/ksh /proc/boot/rc

display_msg Starting Shell

[+session] PATH=/proc/boot:/bin:/etc ksh &

}

[type=link] /dev/console=/dev/ser1

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

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

[type=link] /bin/sh=/proc/boot/ksh

[type=link] /bin/ksh=/proc/boot/ksh

[type=link] /bin/cat=/proc/boot/cat

[type=link] /bin/cp=/proc/boot/cp

[type=link] /bin/ls=/proc/boot/ls

[type=link] /bin/slay=/proc/boot/slay

[type=link] /bin/fs-cifs=/proc/boot/fs-cifs

[type=link] /bin/route=/proc/boot/route

[type=link] /bin/ifconfig=/proc/boot/ifconfig

[type=link] /bin/ping=/proc/boot/ping

[type=link] /bin/pidin=/proc/boot/pidin

[type=link] /bin/sloginfo=/proc/boot/sloginfo

[type=link] /bin/io-net=/proc/boot/io-net

[type=link] /bin/pipe=/proc/boot/pipe

[type=link] /bin/pdebug=/proc/boot/pdebug

[type=link] /bin/qconn=/proc/boot/qconn

[type=link] /bin/flashctl=/proc/boot/flashctl

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

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

#[type=link] /usr/local/lib/libcpp.so.2=/usr/lib/libcpp.s0.2

#[type=link] /usr/local/bin/netconfig=/proc/boot/netconfig

[perms=+r,+x]

[+keeplinked]

libc.so

fpemu.so.2

libm.so.2

[data=c]

devc-serpsc

pci-mgt5200

uncomment for Network driver

libsocket.so.2

npm-tcpip.so

libdma-bestcomm5200.so.1

devn-mpc5200.so

devn-cmf.so

uncomment for Network driver

bestcomm5200

io-net

ifconfig

ping

uncomment for Flash driver

devf-mgt5200

devf-cmf

devf-cmf2

flashctl

startup-jtrs

uncomment for USB driver

devu-ohci-mgt5200

usb

general commands

12/16/03 added cat -cmf

cat

cp

ls

pidin

ksh

pci

pipe

slogger

sloginfo

slay

route

pdebug

qconn

fs-cifs


\

12/16/03 added scripts -cmf

/proc/boot/bootup.ksh = {

if [[ -a /etc/bootup.ksh ]]; then

/etc/bootup.ksh

fi

}



/proc/boot/rc = {

echo Type this to access NT: “fs-cifs -a -l
//sc077270:147.177.6.184:/temp
/nt”

/etc/bootup.ksh is gone.

#if [[ ! -e /etc/bootup.ksh ]]; then

ln -s /etc/bootup.config.ksh /etc/bootup.ksh

#fi

This gives you a shell in case

/etc/rc is gone.

if [[ -e /etc/rc ]]; then

echo /etc/rc path

. /etc/profile

exec /proc/boot/ksh /etc/rc

else

echo while loop path

. /etc/profile

/etc/bootup.ksh

while /bin/true; do

/proc/boot/ksh

done

/bin/shutdown -v -S system

fi

}


\