make IPL/OS image from binary BSP

I am running 6.3.0SE as my host platform and the BigSur/Amanda as the
target. I downloaded the binary version of the BSP. I am just trying
create a fairly simple IPL/OS image that supports networks. I am
attempting to follow the BSP guide, but it appears to be written from a
source (vs binary) BSP point of view. For example, I do not have the same
directory structure or a mkflashimage script… Either I am
misunderstanding the process or missing some needed files…

Hi Joseph.

We had made an effort to add these instructions in for most BSPs, but
looks like we missed one. A bug report has been filed.

In the mean time, here are the commands from the mkflashimage script
(tailored for use in a binary package):

Convert IPL into an S-Record

${QNX_HOST}/usr/bin/ntosh-objcopy -Osrec
${QNX_TARGET}/shle/boot/sys/ipl-bigsur-amanda ipl-tmp-amanda.srec

Convert S-Record IPL to binary

${QNX_HOST}/usr/bin/ntosh-objcopy -Obinary ipl-tmp-amanda.srec
ipl-tmp1-amanda.bin

Pad binary IPL to 8k

mkrec -r -ffull -s0x2000 ipl-tmp1-amanda.bin > ipl-tmp2-amanda.bin

Generate a binary boot image

mkifs -v amanda.build ifs-tmp-amanda.bin

Combine the binary IPL with the binary boot image

cat ipl-tmp2-amanda.bin ifs-tmp-amanda.bin > ipl-ifs-tmp-amanda.bin

Convert the combined image to a single S-record, which the

Bigsur ROM Monitor can convert back to binary, and program to flash

mkrec -o0x8c000000 -fsrec -r ipl-ifs-tmp-amanda.bin> ipl-ifs-amanda.srec

Cleaning up temporary files

rm -f tmp

Then transfer the ipl-ifs-amanda.srec to the Amanda target using DMON
and program it into flash. Change SW1 to “off” (up) and SW4 to “on”
(down) on the S1 block and reboot the Amanda target. The ipl should
jump to the image stored in flash.

Let me know if you have any problems with this.

Thanks,
-Jay.

Joseph Witherspoon wrote:

I am running 6.3.0SE as my host platform and the BigSur/Amanda as the
target. I downloaded the binary version of the BSP. I am just trying
create a fairly simple IPL/OS image that supports networks. I am
attempting to follow the BSP guide, but it appears to be written from a
source (vs binary) BSP point of view. For example, I do not have the same
directory structure or a mkflashimage script… Either I am
misunderstanding the process or missing some needed files…

Actually I found some other documents that said to go to the
$QNX_TARGET/processor/boot/build directory and execute:
mkifs -vvvv buildfileName imageName

This seemed to work for me. With this single command I created an ifs
image and loaded it on the device. I was able to use “g” and see the OS
start. This is much simpler than the procedures you described, am I
missing something with this simpler procedure?

Jay Greig wrote:

Hi Joseph.

We had made an effort to add these instructions in for most BSPs, but
looks like we missed one. A bug report has been filed.

In the mean time, here are the commands from the mkflashimage script
(tailored for use in a binary package):

Convert IPL into an S-Record

$/usr/bin/ntosh-objcopy -Osrec
$/shle/boot/sys/ipl-bigsur-amanda ipl-tmp-amanda.srec

Convert S-Record IPL to binary

$/usr/bin/ntosh-objcopy -Obinary ipl-tmp-amanda.srec
ipl-tmp1-amanda.bin

Pad binary IPL to 8k

mkrec -r -ffull -s0x2000 ipl-tmp1-amanda.bin > ipl-tmp2-amanda.bin

Generate a binary boot image

mkifs -v amanda.build ifs-tmp-amanda.bin

Combine the binary IPL with the binary boot image

cat ipl-tmp2-amanda.bin ifs-tmp-amanda.bin > ipl-ifs-tmp-amanda.bin

Convert the combined image to a single S-record, which the

Bigsur ROM Monitor can convert back to binary, and program to flash

mkrec -o0x8c000000 -fsrec -r ipl-ifs-tmp-amanda.bin> ipl-ifs-amanda.srec

Cleaning up temporary files

rm -f tmp

Then transfer the ipl-ifs-amanda.srec to the Amanda target using DMON
and program it into flash. Change SW1 to “off” (up) and SW4 to “on”
(down) on the S1 block and reboot the Amanda target. The ipl should
jump to the image stored in flash.

Let me know if you have any problems with this.

Thanks,
-Jay.

Joseph Witherspoon wrote:
I am running 6.3.0SE as my host platform and the BigSur/Amanda as the
target. I downloaded the binary version of the BSP. I am just trying
create a fairly simple IPL/OS image that supports networks. I am
attempting to follow the BSP guide, but it appears to be written from a
source (vs binary) BSP point of view. For example, I do not have the same
directory structure or a mkflashimage script… Either I am
misunderstanding the process or missing some needed files…

You had mentioned that you wanted to boot using the IPL. Those were the
instructions I had provided.

-Jay.

Joseph Witherspoon wrote:

Actually I found some other documents that said to go to the
$QNX_TARGET/processor/boot/build directory and execute:
mkifs -vvvv buildfileName imageName

This seemed to work for me. With this single command I created an ifs
image and loaded it on the device. I was able to use “g” and see the OS
start. This is much simpler than the procedures you described, am I
missing something with this simpler procedure?

Jay Greig wrote:


Hi Joseph.


We had made an effort to add these instructions in for most BSPs, but
looks like we missed one. A bug report has been filed.


In the mean time, here are the commands from the mkflashimage script
(tailored for use in a binary package):

\

Convert IPL into an S-Record

$/usr/bin/ntosh-objcopy -Osrec
$/shle/boot/sys/ipl-bigsur-amanda ipl-tmp-amanda.srec

\

Convert S-Record IPL to binary

$/usr/bin/ntosh-objcopy -Obinary ipl-tmp-amanda.srec
ipl-tmp1-amanda.bin

\

Pad binary IPL to 8k

mkrec -r -ffull -s0x2000 ipl-tmp1-amanda.bin > ipl-tmp2-amanda.bin

\

Generate a binary boot image

mkifs -v amanda.build ifs-tmp-amanda.bin

\

Combine the binary IPL with the binary boot image

cat ipl-tmp2-amanda.bin ifs-tmp-amanda.bin > ipl-ifs-tmp-amanda.bin

\

Convert the combined image to a single S-record, which the

Bigsur ROM Monitor can convert back to binary, and program to flash

mkrec -o0x8c000000 -fsrec -r ipl-ifs-tmp-amanda.bin> ipl-ifs-amanda.srec

\

Cleaning up temporary files

rm -f tmp


Then transfer the ipl-ifs-amanda.srec to the Amanda target using DMON
and program it into flash. Change SW1 to “off” (up) and SW4 to “on”
(down) on the S1 block and reboot the Amanda target. The ipl should
jump to the image stored in flash.


Let me know if you have any problems with this.


Thanks,
-Jay.


Joseph Witherspoon wrote:

I am running 6.3.0SE as my host platform and the BigSur/Amanda as the
target. I downloaded the binary version of the BSP. I am just trying
create a fairly simple IPL/OS image that supports networks. I am
attempting to follow the BSP guide, but it appears to be written from a
source (vs binary) BSP point of view. For example, I do not have the same
directory structure or a mkflashimage script… Either I am
misunderstanding the process or missing some needed files…




\

Jay,
Thanks for the info, that is what I needed. When I did the binary
conversion of srec to bin, I get a warning:
Output file cannot represent architecture UNKNOWN. And I get a IPL ERR
when trying to boot.

Jay Greig wrote:

You had mentioned that you wanted to boot using the IPL. Those were the
instructions I had provided.

-Jay.

Joseph Witherspoon wrote:
Actually I found some other documents that said to go to the
$QNX_TARGET/processor/boot/build directory and execute:
mkifs -vvvv buildfileName imageName

This seemed to work for me. With this single command I created an ifs
image and loaded it on the device. I was able to use “g” and see the OS
start. This is much simpler than the procedures you described, am I
missing something with this simpler procedure?

Jay Greig wrote:


Hi Joseph.


We had made an effort to add these instructions in for most BSPs, but
looks like we missed one. A bug report has been filed.


In the mean time, here are the commands from the mkflashimage script
(tailored for use in a binary package):

\

Convert IPL into an S-Record

$/usr/bin/ntosh-objcopy -Osrec
$/shle/boot/sys/ipl-bigsur-amanda ipl-tmp-amanda.srec

\

Convert S-Record IPL to binary

$/usr/bin/ntosh-objcopy -Obinary ipl-tmp-amanda.srec
ipl-tmp1-amanda.bin

\

Pad binary IPL to 8k

mkrec -r -ffull -s0x2000 ipl-tmp1-amanda.bin > ipl-tmp2-amanda.bin

\

Generate a binary boot image

mkifs -v amanda.build ifs-tmp-amanda.bin

\

Combine the binary IPL with the binary boot image

cat ipl-tmp2-amanda.bin ifs-tmp-amanda.bin > ipl-ifs-tmp-amanda.bin

\

Convert the combined image to a single S-record, which the

Bigsur ROM Monitor can convert back to binary, and program to flash

mkrec -o0x8c000000 -fsrec -r ipl-ifs-tmp-amanda.bin> ipl-ifs-amanda.srec

\

Cleaning up temporary files

rm -f tmp


Then transfer the ipl-ifs-amanda.srec to the Amanda target using DMON
and program it into flash. Change SW1 to “off” (up) and SW4 to “on”
(down) on the S1 block and reboot the Amanda target. The ipl should
jump to the image stored in flash.


Let me know if you have any problems with this.


Thanks,
-Jay.


Joseph Witherspoon wrote:

I am running 6.3.0SE as my host platform and the BigSur/Amanda as the
target. I downloaded the binary version of the BSP. I am just trying
create a fairly simple IPL/OS image that supports networks. I am
attempting to follow the BSP guide, but it appears to be written from a
source (vs binary) BSP point of view. For example, I do not have the same
directory structure or a mkflashimage script… Either I am
misunderstanding the process or missing some needed files…




\

The warning is normal, nothing to worry about.

In your build file, did you change “[virtual=shle,srec]” to
“[virtual=shle,binary +compress]”? The IPL requires a binary IFS image.

Hope this helps,
-Jay.

Joseph Witherspoon wrote:

Jay,
Thanks for the info, that is what I needed. When I did the binary
conversion of srec to bin, I get a warning:
Output file cannot represent architecture UNKNOWN. And I get a IPL ERR
when trying to boot.

Jay Greig wrote:


You had mentioned that you wanted to boot using the IPL. Those were the
instructions I had provided.


-Jay.


Joseph Witherspoon wrote:

Actually I found some other documents that said to go to the
$QNX_TARGET/processor/boot/build directory and execute:
mkifs -vvvv buildfileName imageName

This seemed to work for me. With this single command I created an ifs
image and loaded it on the device. I was able to use “g” and see the OS
start. This is much simpler than the procedures you described, am I
missing something with this simpler procedure?

Jay Greig wrote:



Hi Joseph.


We had made an effort to add these instructions in for most BSPs, but
looks like we missed one. A bug report has been filed.


In the mean time, here are the commands from the mkflashimage script
(tailored for use in a binary package):

\

Convert IPL into an S-Record

$/usr/bin/ntosh-objcopy -Osrec
$/shle/boot/sys/ipl-bigsur-amanda ipl-tmp-amanda.srec

\

Convert S-Record IPL to binary

$/usr/bin/ntosh-objcopy -Obinary ipl-tmp-amanda.srec
ipl-tmp1-amanda.bin

\

Pad binary IPL to 8k

mkrec -r -ffull -s0x2000 ipl-tmp1-amanda.bin > ipl-tmp2-amanda.bin

\

Generate a binary boot image

mkifs -v amanda.build ifs-tmp-amanda.bin

\

Combine the binary IPL with the binary boot image

cat ipl-tmp2-amanda.bin ifs-tmp-amanda.bin > ipl-ifs-tmp-amanda.bin

\

Convert the combined image to a single S-record, which the

Bigsur ROM Monitor can convert back to binary, and program to flash

mkrec -o0x8c000000 -fsrec -r ipl-ifs-tmp-amanda.bin> ipl-ifs-amanda.srec

\

Cleaning up temporary files

rm -f tmp


Then transfer the ipl-ifs-amanda.srec to the Amanda target using DMON
and program it into flash. Change SW1 to “off” (up) and SW4 to “on”
(down) on the S1 block and reboot the Amanda target. The ipl should
jump to the image stored in flash.


Let me know if you have any problems with this.


Thanks,
-Jay.


Joseph Witherspoon wrote:


I am running 6.3.0SE as my host platform and the BigSur/Amanda as the
target. I downloaded the binary version of the BSP. I am just trying
create a fairly simple IPL/OS image that supports networks. I am
attempting to follow the BSP guide, but it appears to be written from a
source (vs binary) BSP point of view. For example, I do not have the same
directory structure or a mkflashimage script… Either I am
misunderstanding the process or missing some needed files…









\

Jay, that was it! thanks, I am now able to build an IPLable image from
the binary BSP. You were a great help and very responsive. Thanks.

Jay Greig wrote:

The warning is normal, nothing to worry about.

In your build file, did you change “[virtual=shle,srec]” to
“[virtual=shle,binary +compress]”? The IPL requires a binary IFS image.

Hope this helps,
-Jay.

Joseph Witherspoon wrote:
Jay,
Thanks for the info, that is what I needed. When I did the binary
conversion of srec to bin, I get a warning:
Output file cannot represent architecture UNKNOWN. And I get a IPL ERR
when trying to boot.

Jay Greig wrote:


You had mentioned that you wanted to boot using the IPL. Those were the
instructions I had provided.


-Jay.


Joseph Witherspoon wrote:

Actually I found some other documents that said to go to the
$QNX_TARGET/processor/boot/build directory and execute:
mkifs -vvvv buildfileName imageName

This seemed to work for me. With this single command I created an ifs
image and loaded it on the device. I was able to use “g” and see the OS
start. This is much simpler than the procedures you described, am I
missing something with this simpler procedure?

Jay Greig wrote:



Hi Joseph.


We had made an effort to add these instructions in for most BSPs, but
looks like we missed one. A bug report has been filed.


In the mean time, here are the commands from the mkflashimage script
(tailored for use in a binary package):

\

Convert IPL into an S-Record

$/usr/bin/ntosh-objcopy -Osrec
$/shle/boot/sys/ipl-bigsur-amanda ipl-tmp-amanda.srec

\

Convert S-Record IPL to binary

$/usr/bin/ntosh-objcopy -Obinary ipl-tmp-amanda.srec
ipl-tmp1-amanda.bin

\

Pad binary IPL to 8k

mkrec -r -ffull -s0x2000 ipl-tmp1-amanda.bin > ipl-tmp2-amanda.bin

\

Generate a binary boot image

mkifs -v amanda.build ifs-tmp-amanda.bin

\

Combine the binary IPL with the binary boot image

cat ipl-tmp2-amanda.bin ifs-tmp-amanda.bin > ipl-ifs-tmp-amanda.bin

\

Convert the combined image to a single S-record, which the

Bigsur ROM Monitor can convert back to binary, and program to flash

mkrec -o0x8c000000 -fsrec -r ipl-ifs-tmp-amanda.bin> ipl-ifs-amanda.srec

\

Cleaning up temporary files

rm -f tmp


Then transfer the ipl-ifs-amanda.srec to the Amanda target using DMON
and program it into flash. Change SW1 to “off” (up) and SW4 to “on”
(down) on the S1 block and reboot the Amanda target. The ipl should
jump to the image stored in flash.


Let me know if you have any problems with this.


Thanks,
-Jay.


Joseph Witherspoon wrote:


I am running 6.3.0SE as my host platform and the BigSur/Amanda as the
target. I downloaded the binary version of the BSP. I am just trying
create a fairly simple IPL/OS image that supports networks. I am
attempting to follow the BSP guide, but it appears to be written from a
source (vs binary) BSP point of view. For example, I do not have the
same
directory structure or a mkflashimage script… Either I am
misunderstanding the process or missing some needed files…









\