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
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
the error is on the io-graphics -g320x240x8 -dldevg-sh7760lcdc.so line
but I dont know why
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
I tried to copy the missing file but still the error occure.
help
I tried changing the line to io-graphics -g320x240x8 -devg-sh7760lcdc.so
still the same
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.
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.
I don’t have a hard drive or CF card - the image is stored in the flash memory on the board … I guess.
the best would be to get a startup file used in the starter kit but it was not provided
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.
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.