Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - image build sequence, ppc: (2 Items)
   
image build sequence, ppc  
A couple of questions:

1. Where is the script to execute this sequence? 
Where can I go and type 'make'? 
(nothing is obvious or even obscurely close to an answer for me.
I have spent the better part of 2 hours looking for the make sequence.
I should add that I *hate* IDE's because they hide this sort of stuff.)

2. procnto gets put at -Wl,0x2015000 on the qcc line, yet is at 0x2014000 in the image.
NOW: I realize the .ELF header is loaded at 02014000 and the image start is loaded at 02015000, but who decides? Is this
 a function  of the way qcc does the relocation for the link step?


Building Image: bsp-marvell-mv64460 
d:\QNX632\host\win32\x86\usr\bin\mkifs.exe -vvv D:/bsp/bsp_workspace/.metadata/.plugins/com.qnx.tools.ide.builder.core/.
projects/bsp-marvell-mv64460/bsp-marvell-mv64460.mkxfs D:/bsp/bsp_workspace/bsp-marvell-mv64460/Images/bsp-marvell-
mv64460.elf 
  Offset   Size    Entry   Ramoff Target=Host 
 2000000    180        0      --- d:/QNX632/target/qnx6/ppcbe/boot/sys/elf.boot 
Execute: qcc -bootstrap -nostdlib -Wl,--no-keep-memory -Vgcc_ntoppc -EB -Wl,-Ttext -Wl,0x2000280 -o"C:\DOCUME~1\BGANGW~1
\LOCALS~1\Temp\5" "D:/bsp/bsp_workspace/bsp-marvell-mv64460_startup-mv64460/mv64460/ppc/be/startup-mv64460" 
Execute: qcc -bootstrap -nostdlib -Wl,--no-keep-memory -Vgcc_ntoppc -EB -Wl,-Ttext -Wl,0x2015000 -o"C:\DOCUME~1\BGANGW~1
\LOCALS~1\Temp\6" "d:/QNX632/target/qnx6/ppcbe/boot/sys/procnto-600" 
 2000180    100     ----      --- Startup-header 
 2000280  13188  2002b50      --- C:\DOCUME~1\BGANGW~1\LOCALS~1\Temp\5 
 2013288     5c     ----      --- Image-header 
 20132e4    4dc     ----      --- Image-directory 
 2014000  62000  203d240      --- proc/boot/procnto-600=C:\DOCUME~1\BGANGW~1\LOCALS~1\Temp\6 
 2076000    184     ----      --- proc/boot/.script=C:\DOCUME~1\BGANGW~1\LOCALS~1\Temp\4 
    ----    ---     ----      --- dev/console=/dev/ser1 
    ----    ---     ----      --- tmp=/dev/shmem 
    ----    ---     ----      --- bin/sh=/proc/boot/ksh 
    ----    ---     ----      --- bin=/proc/boot 
 2077000  76000    3ea48      --- proc/boot/libc.so.2=d:\QNX632\target\qnx6\ppcbe\lib\libc.so 
    ----    ---     ----      --- proc/boot/libc.so=libc.so.2 
 20ed000   d92b 48041984      --- proc/boot/devc-ppc=D:/bsp/bsp_workspace/devc-serppc/ppc/be/devc-ppc 
 20fb000   c7ee 48040cf0      --- proc/boot/pci-atlantis=D:/bsp/bsp_workspace/bsp-marvell-mv64460_pci-atlantis/atlantis/
ppc/be/pci-atlantis 
 2108000  465c5 480406e0      --- proc/boot/pci=d:\QNX632\target\qnx6\ppcbe\usr\sbin\pci 
 214f000   51cf 48040b7c      --- proc/boot/ls=d:\QNX632\target\qnx6\ppcbe\bin\ls 
 2155000  30ad8 480413cc      --- proc/boot/ksh=d:\QNX632\target\qnx6\ppcbe\bin\ksh 
 2186000   51ed 48041304      --- proc/boot/pipe=d:\QNX632\target\qnx6\ppcbe\sbin\pipe 
 218c000   ffcc 4804117c      --- proc/boot/pidin=d:\QNX632\target\qnx6\ppcbe\bin\pidin 
 219c000   1f5e 4804050c      --- proc/boot/uname=d:\QNX632\target\qnx6\ppcbe\bin\uname 
 219e000   43f1 48040b00      --- proc/boot/mount=d:\QNX632\target\qnx6\ppcbe\bin\mount 
 21a3000   1b10 48040518      --- proc/boot/umount=d:\QNX632\target\qnx6\ppcbe\bin\umount 
 21a5000   36dd 48040c40      --- proc/boot/slogger=d:\QNX632\target\qnx6\ppcbe\usr\sbin\slogger 
 21a9000   2800 48040918      --- proc/boot/sloginfo=d:\QNX632\target\qnx6\ppcbe\bin\sloginfo 
 21ac000   49c7 48040d34      --- proc/boot/slay=d:\QNX632\target\qnx6\ppcbe\bin\slay 
 21b1000  23000     6144      --- lib/libm.so.2=d:\QNX632\target\qnx6\ppcbe\lib\libm.so.2 
    ----    ---     ----      --- lib/libm.so=libm.so.2 
 21d4000   16dc 48040414      --- proc/boot/toggle_gpio=D:/bsp/bsp_workspace/toggle_gpio/ppc/o-be/toggle_gpio 
 21d56dc      4     ----      --- Image-trailer 
Execute: mkifsf_elf  0x180 D:/bsp/bsp_workspace/bsp-marvell-mv64460/Images/bsp-marvell-mv64460.elf 
=========================================== 
Re: image build sequence, ppc  
> A couple of questions:
> 
> 1. Where is the script to execute this sequence? 
> Where can I go and type 'make'? 
> (nothing is obvious or even obscurely close to an answer for me.
> I have spent the better part of 2 hours looking for the make sequence.
> I should add that I *hate* IDE's because they hide this sort of stuff.)

The BSP makefiles have an images target which spawns mkifs to create the ifs image. How to build from the command line 
is explained in the "Working with a BSP" documentation.

http://www.qnx.com/developers/docs/6.3.2/neutrino/building/bsp.html#BUILDSRC
 
Regards,

Ryan Mansfield