How to boot this BSP from flash?
Following the instructions in the QNX EP8260 BSP documentation,
I have been able to get QNX up and running on my EP8260
development board (with 8Mbytes Flash, 32Mbytes SDRAM,
part # 153B603CA08ME0S5BC5-10) by downloading the image
to RAM via TFTP over ethernet. I want to put this image
into flash and boot the board from flash, but did not
have any success doing this up to now.
The QNX EP8260 BSP documentation describes how to build
the image, download it into RAM via TFTP over ethernet,
and to start the OS by jumping into the image at the
correct location in RAM. The documentation does not
describe how to put the image into flash and booting
directly from flash.
My OS image is downloaded into RAM (via TFTP over ethernet)
at 0x00010000 throught 0x00187F1B, and the entry point is
0x000117b8. The generated S-record file of the OS image
specifies the address range where the image is to be
loaded as well as the code entry point. Find attached my buildfile.
I’ve copied this OS image from RAM
(at 0x00010000 throught 0x00187F1B) to flash
(0xFF840000 tot 0xFF9B7F1B) using the EP planet flashburner
utility, and jumped into it at address 0xFF8417B8 (by typing
“go FF8417B8” at the bootloader prompt), but the OS does not
boot, and the board freezes up.
###########################################################################
Neutrino on the Embedded Planet ep8260 board.
##########################################################################
[image=0x10000]
#[image=0xFF840000]
#[ram=0x00000000,32M]
[virtual=ppcbe,srec +compress] .bootstrap = {
startup-ep8260 -N ep8260:qnx1 -Dsmc1 -Ksmc1 -vvvvv
PATH=/proc/boot procnto-600 -vvvvv
}
[+script] startup.script = {
procmgr_symlink …/…/proc/boot/libc.so.2 /usr/lib/ldqnx.so.2
These env variables inherited by all the programs which follow
SYSNAME=nto
TERM=qansi
devc-serppc8260 -e -b115200 -c16625000 smc1^8 &
devc-serppc8260 -e -b115200 -c16625000 smc1^8,0x1c00 &
reopen /dev/ser1
display_msg Welcome to Neutrino on an Embedded Planet 8260 board
Start the system logger
slogger &
Start the flash file system.
devf-generic -s0xff800000,8M
Start network driver - insert proper MAC and IP address.
io-net -dppc8260-ep mac=0010ec003273,channel=3 -ptcpip
waitfor /dev/io-net/en0
ifconfig en0 192.168.0.46
start inetd
inetd -d &
start devc-pty
devc-pty &
Start a pipe.
pipe &
Run startup script file.
/home/ben/newppc &
Start a shell.
[+session] PATH=:/proc/boot esh
[+session] login -p
}
[type=link] /dev/console=/dev/ser1
[type=link] /tmp=/dev/shmem
[type=link] /etc=/fs0p0/etc
[type=link] /home=/fs0p0/home
[type=link] /bin=/proc/boot
libc.so
libsocket.so
[data=c]
######################
Shell
esh
######################
security utilities
login
logout
passwd
######################
Generic components
cat
chmod
chown
cp
date
echo
elvis
grep
hostname
ls
mkdir
more
mv
pidin
pipe
rm
slay
sleep
vi
touch
######################
Character
devc-serppc8260
devc-pty
######################
Network
io-net
devn-ppc8260-ep.so
npm-tcpip.so
ifconfig
inetd
fs-cifs
ftp
telnet
ftpd
telnetd
fs-nfs2
dhcp.client
ping
nicinfo
######################
Flash filesystem
devf-generic
flashctl
######################
System logger
slogger
sloginfo