Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - [QNX 7] Creating an USB boot image: (13 Items)
   
[QNX 7] Creating an USB boot image  
I'm trying to create a boot image on an USB stick for a Bay Trail CPU card.  We currently have QNX 6.5 running on it but
 we're in the process of migrating to 7.  I've gone through the process indicated in the generic x86 BSP guide and have 
been able to make a bootable USB stick, however, it does not completely boot.  During the process some items fail to run
 and in the end I have an unresponsive # prompt.

The first error during the boot is from random.  It fails to find libz.so.2.  This library is in the boot image.  A 
little later devc-pty fails with an I/O privity error.

Since the documentation is somewhat lacking on this whole process, I'm looking for someone that may have an idea of what
 I'm missing.

Thanks.
Raymond Balister
Re: [QNX 7] Creating an USB boot image  
Can you share your build file?

--Elad

On Fri, 2018-02-09 at 13:05 -0500, raymond balister wrote:
> I'm trying to create a boot image on an USB stick for a Bay Trail CPU
> card.  We currently have QNX 6.5 running on it but we're in the
> process of migrating to 7.  I've gone through the process indicated
> in the generic x86 BSP guide and have been able to make a bootable
> USB stick, however, it does not completely boot.  During the process
> some items fail to run and in the end I have an unresponsive #
> prompt.
> 
> The first error during the boot is from random.  It fails to find
> libz.so.2.  This library is in the boot image.  A little later devc-
> pty fails with an I/O privity error.
> 
> Since the documentation is somewhat lacking on this whole process,
> I'm looking for someone that may have an idea of what I'm missing.
> 
> Thanks.
> Raymond Balister
> 
> 
> 
> _______________________________________________
> 
> OSTech
> http://community.qnx.com/sf/go/post118543
> To cancel your subscription to this discussion, please e-mail ostech-
> core_os-unsubscribe@community.qnx.com
Re: [QNX 7] Creating an USB boot image  
Attached is a working build file for the ASRock IMB-151 board, which is
also a Bay Trail.

--Elad

On Fri, 2018-02-09 at 12:49 -0500, Elad Lahav wrote:
> Can you share your build file?
> 
> --Elad
> 
> On Fri, 2018-02-09 at 13:05 -0500, raymond balister wrote:
> > 
> > I'm trying to create a boot image on an USB stick for a Bay Trail
> > CPU
> > card.  We currently have QNX 6.5 running on it but we're in the
> > process of migrating to 7.  I've gone through the process indicated
> > in the generic x86 BSP guide and have been able to make a bootable
> > USB stick, however, it does not completely boot.  During the
> > process
> > some items fail to run and in the end I have an unresponsive #
> > prompt.
> > 
> > The first error during the boot is from random.  It fails to find
> > libz.so.2.  This library is in the boot image.  A little later
> > devc-
> > pty fails with an I/O privity error.
> > 
> > Since the documentation is somewhat lacking on this whole process,
> > I'm looking for someone that may have an idea of what I'm missing.
> > 
> > Thanks.
> > Raymond Balister
> > 
> > 
> > 
> > _______________________________________________
> > 
> > OSTech
> > http://community.qnx.com/sf/go/post118543
> > To cancel your subscription to this discussion, please e-mail
> > ostech-
> > core_os-unsubscribe@community.qnx.com
Attachment: Text imb-151.build 2.51 KB
Re: [QNX 7] Creating an USB boot image  
Thanks, I'll give that one a try...
Re: [QNX 7] Creating an USB boot image  
Elad,
I ran the build file that you sent.  I did rename it to x86_64_generic.build.  I was too lazy to figure out how to build
 another build file.  To get it to so something I had to remove the leading path from lines 79 to the end.  At that 
point it failed on trying to link mod-devkprintf

Output is below:

13:40:48 **** Incremental Build of configuration QNX QCC for project x86-64-generic ****
make all 
cp -rf prebuilt/* install
make -Csrc hinstall
make[1]: Entering directory 'C:/SoftwareDevelopment/lwsd/x86-64-generic/src'
make -j 1 -Chardware -fMakefile hinstall
make[2]: Entering directory 'C:/SoftwareDevelopment/lwsd/x86-64-generic/src/hardware'
make -j 1 -Cstartup -fMakefile hinstall
make[3]: Entering directory 'C:/SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup'
make -j 1 -Clib -fMakefile hinstall 
make[4]: Entering directory 'C:/SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib'
make -j 1 -Cx86_64 -fMakefile hinstall
make[5]: Entering directory 'C:/SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/x86_64'
make -j 1 -Ca -fMakefile hinstall
make[6]: Entering directory 'C:/SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/x86_64/a'
'C:/SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/public/hw/acpi.h' -> 'C:/SoftwareDevelopment/lwsd/
x86-64-generic/src/hardware/startup/lib/../../../../install/usr/include/hw/acpi.h'
'C:/SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/public/hw/hwinfo_85xx.h' -> 'C:/SoftwareDevelopment
/lwsd/x86-64-generic/src/hardware/startup/lib/../../../../install/usr/include/hw/hwinfo_85xx.h'
'C:/SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/public/hw/hwinfo_ep93xx.h' -> 'C:/
SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/../../../../install/usr/include/hw/hwinfo_ep93xx.h'
'C:/SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/public/hw/hwinfo_imx51.h' -> 'C:/
SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/../../../../install/usr/include/hw/hwinfo_imx51.h'
'C:/SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/public/hw/hwinfo_imx53.h' -> 'C:/
SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/../../../../install/usr/include/hw/hwinfo_imx53.h'
'C:/SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/public/hw/hwinfo_imx6x.h' -> 'C:/
SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/../../../../install/usr/include/hw/hwinfo_imx6x.h'
'C:/SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/public/hw/hwinfo_imx7x.h' -> 'C:/
SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/../../../../install/usr/include/hw/hwinfo_imx7x.h'
'C:/SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/public/hw/hwinfo_imx8x.h' -> 'C:/
SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/../../../../install/usr/include/hw/hwinfo_imx8x.h'
'C:/SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/public/hw/hwinfo_p20xx.h' -> 'C:/
SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/../../../../install/usr/include/hw/hwinfo_p20xx.h'
'C:/SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/public/hw/hwinfo_p40xx.h' -> 'C:/
SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/../../../../install/usr/include/hw/hwinfo_p40xx.h'
'C:/SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/public/hw/hwinfo_rcar.h' -> 'C:/SoftwareDevelopment
/lwsd/x86-64-generic/src/hardware/startup/lib/../../../../install/usr/include/hw/hwinfo_rcar.h'
'C:/SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/public/hw/mc146818.h' -> 'C:/SoftwareDevelopment/
lwsd/x86-64-generic/src/hardware/startup/lib/../../../../install/usr/include/hw/mc146818.h'
'C:/SoftwareDevelopment/lwsd/x86-64-generic/src/hardware/startup/lib/public/hw/mini_driver.h' ->...
View Full Message
Re: [QNX 7] Creating an USB boot image  
Oops, remove modules=devkprintf from the procnto line. It should read

    [+keeplinked]  PATH=/proc/boot:/sbin:/bin:/usr/bin:/usr/sbin LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll
:/lib/dll/pci procnto-smp-instr

Sorry, I thought I cleaned it up.

--Elad

On Fri, 2018-02-09 at 14:31 -0500, raymond balister wrote:
> Elad,
> I ran the build file that you sent.  I did rename it to
> x86_64_generic.build.  I was too lazy to figure out how to build
> another build file.  To get it to so something I had to remove the
> leading path from lines 79 to the end.  At that point it failed on
> trying to link mod-devkprintf
> 
> Output is below:
> 
> 13:40:48 **** Incremental Build of configuration QNX QCC for project
> x86-64-generic ****
> make all 
> cp -rf prebuilt/* install
> make -Csrc hinstall
> make[1]: Entering directory 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src'
> make -j 1 -Chardware -fMakefile hinstall
> make[2]: Entering directory 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware'
> make -j 1 -Cstartup -fMakefile hinstall
> make[3]: Entering directory 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup'
> make -j 1 -Clib -fMakefile hinstall 
> make[4]: Entering directory 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib'
> make -j 1 -Cx86_64 -fMakefile hinstall
> make[5]: Entering directory 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib/x86_64'
> make -j 1 -Ca -fMakefile hinstall
> make[6]: Entering directory 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib/x86_64/a'
> 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib/public/hw/acpi.h' ->
> 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib/../../../../install/usr/include/hw/a
> cpi.h'
> 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib/public/hw/hwinfo_85xx.h' ->
> 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib/../../../../install/usr/include/hw/h
> winfo_85xx.h'
> 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib/public/hw/hwinfo_ep93xx.h' ->
> 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib/../../../../install/usr/include/hw/h
> winfo_ep93xx.h'
> 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib/public/hw/hwinfo_imx51.h' ->
> 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib/../../../../install/usr/include/hw/h
> winfo_imx51.h'
> 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib/public/hw/hwinfo_imx53.h' ->
> 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib/../../../../install/usr/include/hw/h
> winfo_imx53.h'
> 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib/public/hw/hwinfo_imx6x.h' ->
> 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib/../../../../install/usr/include/hw/h
> winfo_imx6x.h'
> 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib/public/hw/hwinfo_imx7x.h' ->
> 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib/../../../../install/usr/include/hw/h
> winfo_imx7x.h'
> 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib/public/hw/hwinfo_imx8x.h' ->
> 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib/../../../../install/usr/include/hw/h
> winfo_imx8x.h'
> 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib/public/hw/hwinfo_p20xx.h' ->
> 'C:/SoftwareDevelopment/lwsd/x86-64-
> generic/src/hardware/startup/lib/../../../../install/usr/include/hw/h
>...
View Full Message
Re: [QNX 7] Creating an USB boot image  
Ah, much better.  The build finishes and the image does boot.  However, It stalls out at "---> Starting Console" and 
doesn't get a login prompt.

The good news is that the three finger salute (ctl-alt-del) reboots the computer.  

Re: [QNX 7] Creating an USB boot image  
Try commenting out

    ksh /proc/boot/start-system

--Elad

On Fri, 2018-02-09 at 15:29 -0500, raymond balister wrote:
> Ah, much better.  The build finishes and the image does
> boot.  However, It stalls out at "---> Starting Console" and doesn't
> get a login prompt.
> 
> The good news is that the three finger salute (ctl-alt-del) reboots
> the computer.  
> 
> 
> 
> 
> 
> _______________________________________________
> 
> OSTech
> http://community.qnx.com/sf/go/post118553
> To cancel your subscription to this discussion, please e-mail ostech-
> core_os-unsubscribe@community.qnx.com
Re: [QNX 7] Creating an USB boot image  
Before you do that...
How are you connected to the system? With a screen and keyboard or via
a serial terminal?

--Elad

On Fri, 2018-02-09 at 16:06 -0500, Elad Lahav wrote:
> Try commenting out
> 
>     ksh /proc/boot/start-system
> 
> --Elad
> 
> On Fri, 2018-02-09 at 15:29 -0500, raymond balister wrote:
> > 
> > Ah, much better.  The build finishes and the image does
> > boot.  However, It stalls out at "---> Starting Console" and
> > doesn't
> > get a login prompt.
> > 
> > The good news is that the three finger salute (ctl-alt-del) reboots
> > the computer.  
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > 
> > OSTech
> > http://community.qnx.com/sf/go/post118553
> > To cancel your subscription to this discussion, please e-mail
> > ostech-
> > core_os-unsubscribe@community.qnx.com
Re: [QNX 7] Creating an USB boot image  
I'm connected via keyboard (usb) and monitor (VGA port).  I've changed the /dev/console=/dev/ser1 to /dev/con1 if that's
 where you were heading.

Raymond Balister
Re: [QNX 7] Creating an USB boot image  
Here is the build file that I'm using to build the image.  It seems to load all of the devices, Ethernet, USB, and 
serial devices.  I get a prompt on my monitor and the keyboard doesn't seem to be connected to the shell.  It also 
doesn't seem to want to enumerate the USB stick itself.

Close but not quite there...

Raymond Balister
Attachment: Text x86_64-generic.build 3.57 KB
Re: [QNX 7] Creating an USB boot image  
Yes, I have attached the .build file that I'm using.  It's pretty much stock from the generic x86_64 BSP from QNX.  
There are some lines in it that I added to try and see what might be going on so just ignore them.  They'll be obvious.

Raymond Balister
Attachment: Text x86_64-generic.build 23.11 KB
Re: [QNX 7] Creating an USB boot image  
If you have any suggestions for improving the docs, please post them. Feedback from "real users" is always welcome.