problem with OS loading image onto a board

Hi

I have a ‘little’ problem with my OS image - I have build a image.srec file in QNX Momentics and I tried to put it into the board to RAM to check it.

I downloaded image over the Ethernet but as soon as it started to execute there was an error ( it was logged to a file but I dont know where to find it )
I tried also commenting some lines but with no success usually I got the welcome… sign and the board hanged

help :frowning:

Hyper Terminal


Boot up script:

Here you can set some system wide environment variables

SYSNAME=nto
TERM=ansi
HOME=/root

A safe bet is to set these exactly as above on the

procnto start line.

PATH=/proc/boot:/sbin:/bin:/usr/sbin:/usr/bin:/usr/photon/bin:/tmp
LD_LIBRARY_PATH=/proc/boot:/lib:/lib/dll:/usr/lib:/usr/photon/dll:/tmp

Start serial scif[0:2] ports. These will be /dev/ser0, /dev/ser1

and /dev/ser2 respectively. /dev/ser2 is the rs232 serial

communiactions port. /dev/ser0 and dev/ser1 are set to 9600

baud, no SW/HW flow control. These are typical settings for a

serial TouchScreen controller.

devc-sersci -c32000000/16 -b9600 -s -E -u0 sh7760scif0 -u1 sh7760scif1 -b115200 -e -u2 sh7760scif2&
waitfor /dev/ser2
reopen

display_msg “Welcome to QNX Neutrino 6.3.2 on hico7760”

Start network

io-net -d smc9000 iorange=0xa4000300,irq=0 -p tcpip &
waitfor /dev/io-net
ifconfig en0 192.168.0.241
setconf HOSTNAME hico_photon

Start system logger (use sloginfo to check the messages)

slogger &

start pipe server

pipe &

Start the core dumper.

dumper -d/tmp &

inetd &

Start the pseudo terminal driver (needed by pdebug, telnet, pterm …)

devc-pty &

If you use serial port for debugging you have to disable the shell which is

using the same device. For debugging uncomment one of the following options:

pdebug /dev/ser2,115200 & # debug via Serial port

pdebug 8000 & # Debug via Ethernet with plain gdb

qconn port=8000 & # Debug via ethernet using Momentics IDE

Start photon

Set the environment variables

export PHOTON_PATH=/usr/photon
export KBD=/usr/photon/keyboard/de_DE_102.kbd
export PHOTON=/dev/photon

Start the photon server

Photon -b0000a0
waitfor /dev/photon

Start the graphics sub system

io-graphics -g320x240x8 -dldevg-sh7760lcdc.so

#pwm -D -W -b0000a0 &

[+session] ksh

the error is on the io-graphics -g320x240x8 -dldevg-sh7760lcdc.so line
but I dont know why :frowning:

I found finally the log file beside messages like files missing (font files which I deleted to cut down the image size) there are 2 major errors:
1.
"Unable to open “etc/system/config/crtc-settings”
2.
Attached /dev/io-graphics/crt00 Cm8Error: found graphics region with no capabilities data

:frowning:

I tried to copy the missing file but still the error occure.
:confused: help

I tried changing the line to io-graphics -g320x240x8 -devg-sh7760lcdc.so
still the same

Invoker,

Where did you copy the missing file of “etc/system/config/crtc-settings” to?

Looking at your build script it appears you have no hard drive or CF card (are all your files embedded in your image file?). If you do, then you’ll need to start a driver like devb-eide. Otherwise there isn’t any way to access the file system.

KGB

It’s possible to “map” a file in the image to a specific location. Maybe that is what the OP did because we are missing some section of the the build file:

/etc/system/config/crt-settings=crt-settings

But indeed things like fonts look like they are missing.

I did put the crt-settings
in
/etc/system/config
and also by default its in:
/usr/photon/config

but In the file I can see different resolution modes but none of them is 320x240.
With a starter kit that I’ve got the file is only in the second location and also don’t contain
any info on the 320 mode. So I was gessing its not important (?)

The fonts are missing but when I included almost all possible still the same errors occurred. :frowning:

I don’t have a hard drive or CF card - the image is stored in the flash memory on the board … I guess.

:confused: the best would be to get a startup file used in the starter kit but it was not provided :frowning:

Do you have any ideas that I could try out? :frowning:

Missing fonts are sometimes the result of a wrongly set _CS_LIBPATH. Setting LD_LIBRARY_PATH is not sufficient, at some point after setting the LD_LIBRARY_PATH you must do getconf -s _CS_LIBPATH $LD_LIBRARY_PATH.

Regards,
Albrecht

just put this line in the start-up script?

getconf -s _CS_LIBPATH $LD_LIBRARY_PATH

if yes it didn’t seem to work very well ;)

Eh I still didn’t fount any solution :frowning:

Ok after a while I manage to get my answers and I’m using the following script:
[i]

Here you can set some system wide environment variables

SYSNAME=nto
TERM=ansi
HOME=/root

A safe bet is to set these exactly as above on the

procnto start line.

PATH=/proc/boot:/sbin:/bin:/usr/sbin:/usr/bin:/usr/photon/bin:/tmp
LD_LIBRARY_PATH=/proc/boot:/lib:/lib/dll:/usr/lib:/usr/photon/dll:/tmp

Start serial scif[0:2] ports. These will be /dev/ser0, /dev/ser1

and /dev/ser2 respectively. /dev/ser2 is the rs232 serial

communiactions port. /dev/ser0 and dev/ser1 are set to 9600

baud, no SW/HW flow control. These are typical settings for a

serial TouchScreen controller.

devc-sersci -c32000000/16 -b9600 -s -E -u0 sh7760scif0 -u1 sh7760scif1 -b115200 -e -u2 sh7760scif2&
waitfor /dev/ser2
reopen

display_msg “Welcome to QNX Neutrino 6.3.2 on the hico7760”

Start network

io-net -d smc9000 iorange=0xa4000300,irq=0 -p tcpip &
waitfor /dev/io-net
ifconfig en0 192.168.0.25
setconf HOSTNAME hico_photon

Start system logger (use sloginfo to check the messages)

slogger &

start pipe server

pipe &

Start the core dumper.

dumper -d/tmp &

inetd &

Start the pseudo terminal driver (needed by pdebug, telnet, pterm …)

devc-pty &

If you use serial port for debugging you have to disable the shell which is

using the same device. For debugging uncomment one of the following options:

pdebug /dev/ser2,115200 & # debug via Serial port

pdebug 8000 & # Debug via Ethernet with plain gdb

qconn port=8000 & # Debug via ethernet using Momentics IDE

Start photon

Set the environment variables

export PHOTON_PATH=/usr/photon
export KBD=/usr/photon/keyboard/de_DE_102.kbd
export PHOTON=/dev/photon

Start the photon server

Photon -b0000a0
waitfor /dev/photon

Start the graphics sub system

io-graphics -g320x240x8 -dldevg-sh7760lcdc.so

Start the calculator

phcalc_sm -x80 -y5 &

adcmgr -tx=1,y=0,ymin=90,xmin=110,maxd=10,sr=10,irq=9 &

waitfor /dev/adc/touch

Copy the calibration file to /tmp so that the

calib utility can modify it

cp /proc/boot/touch.calib /tmp/

devi-em emtouch sfd abs -x -y -f/tmp/touch.calib

[+session] ksh

/tmp/touch.calib={
0x0:319x239:965 97 902 112 1
}

pwm -D -W -b0000a0 &[/i]

But I got a diffrent problem

I tested my image in RAM ( using a bootloader option)

and it worked fine but when I tried to store it in flash … It didn’t :frowning:

I’m using emitrons BSP and
kerneldnld.exe
to send the image.

The error:
[i]
BB0BB0BB0BB0BB0BB0BB0BB0BB0BB0
ERROR: Instruction address error or Data address error (read) occured
SPC = 8C022002h, SSR = 400080F1h, Stackpointer (r15) = 8FFFFFA8h

GBR = 00000000
PR = 0000003C (return address)
Bank 0 : Bank 1 :
R0 = 00FFFFFF E64DBA70
R1 = FE080044 8FFFFF70
R2 = 00000000 8C0099AE
R3 = 8C00999C 40008000
R4 = 8C022000 A0000000
R5 = 00000000 FF00001C
R6 = FF00001C 00000000
R7 = 0000008E 8C0092E4
R8 = A0040000
R9 = 8C017AD4
R10 = 8C017AD8
R11 = 8C017ADC
R12 = 8C018478
R13 = AC01B204
R14 = 8FF6F9A3
Stack :
8FFFFF88 : 40008000 A0000000 FF00001C 00000000
8FFFFF98 : 8C0092E4 00000088 FFFFA520 00000000
8FFFFFA8 : AC01B204 8C018478 8C017ADC 8C017AD8
8FFFFFB8 : 8C007AB4 8C017AD0 8C0017CE 00000031
8FFFFFC8 : 00000000 0000008E 00000031 C5238C33
8FFFFFD8 : 4C311412 8437CC13 CCB11417 8C00995E
8FFFFFE8 : AC01B204 80000000 FFFFFFFF A001FFAC
8FFFFFF8 : 8C000000 00000001 801C801C FDAAFDAA
90000008 : FDAAFDAA FDAAFDAA FDAAFDAA FDAAFDAA
90000018 : FDAAFDAA FDAAFDAA FDAAFDAA FDAAFDAA
90000028 : FDAAFDAA FDAAFDAA FDAAFDAA FDAAFDAA
90000038 : FDAAFDAA FDAAFDAA FDAAFDAA FDAAFDAA
90000048 : FDAAFDAA FDAAFDAA FDAAFDAA FDAAFDAA
90000058 : FDAAFDAA FDAAFDAA FDAAFDAA FDAAFDAA
90000068 : FDAAFDAA FDAAFDAA FDAAFDAA FDAAFDAA
90000078 : FDAAFDAA FDAAFDAA FDAAFDAA FDAAFDAA
Code :
8C021FC2 : 0000 2020 8C02 0540
8C021FCA : 8C02 1FD0 8C02 06C4
8C021FD2 : 8C02 1FD8 8C02 032A
8C021FDA : AC02 1FE0 8C02 0714
8C021FE2 : 8C02 1FE8 8C02 0332
8C021FEA : AC02 1FF4 8C02 07B8
8C021FF2 : 8C02 99AE 8C00 1A48
8C021FFA : 8FF7 0000 A004 7EEB
8C022002 : 00FF 0001 0001 0100
8C02200A : 002A 4840 8C02 0000
8C022012 : 8000 2000 0C02 2000
8C02201A : 0C02 AA6C 01AF A108
8C022022 : 0000 AA6C 01AF 0000
8C02202A : 0000 0964 01AF 0000
8C022032 : 0000 0000 0000 0000
8C02203A : 0000 0000 0000 0000
8C022042 : 0000 0000 0000 0000
8C02204A : 0000 0000 0000 0000
8C022052 : 0000 0000 0000 0000
8C02205A : 0000 0000 0000 0000
8C022062 : 0000 0000 0000 0000
8C02206A : 0000 0000 0000 0000
8C022072 : 0000 0000 0000 0000
8C02207A : 0000 0000 0000 0000
8C022082 : 0000 0000 0000 0000
8C02208A : 0000 0000 0000 0000
8C022092 : 0000 0000 0000 0000
8C02209A : 0000 0000 0000 0000
8C0220A2 : 0000 0000 0000 0000
8C0220AA : 0000 0000 0000 0000
8C0220B2 : 0000 0000 0000 0000
8C0220BA : 0000 0000 0000 0000
Stop.[/i]

I the IDE project I have Image Address set to 0x8c022000
in the Board Manual I got
0000 0000h - 0003 FFFFh Bootloader
0004 0000h - 0004 000Fh Management information via the saved (OS) software
0004 0010h - 007F FFFFh or 00FF FFFFh or 01FF FFFFh or 03FF FFFFh
(OS) software
The end address varies,
depending on the size of the
flash mounted on the board.

I tried reducing the image size, Changing the address to 0x8c020000 which was used by the board supplier.

I don’t know what to do.

:frowning:

Solved: ipl was not including itself in the image

hello every everybody,do you have teh ipl for s3c2440

nope just the sh7760