Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - QNX6 boot loader: (2 Items)
   
QNX6 boot loader  
Is there any clean way to modify the boot message on a QNX6 filesystem, in other words, something like dinit's -m option
, but for mkqnx6fs?

Thanks,
lew
Re: QNX6 boot loader  
  I don't think there is a "clean" way, but if you don't mind getting 
your hands a tad dirty you can potentially get the boot sector, and 
modify the string manually (using a hex editor for example), the string 
21 bytes long (including the null at the end). Once you are satisfied 
with the changes, update the old bootsector with your new one (you could 
probably reuse that bootsector on future installs but I haven't tried 
any of this).

If you have a virtual machine handy you should experiment this one so 
you can comfortable with the process. The tool of choice for this type 
of work is the 'dd' utility. An example of getting the first 512 bytes 
of a partition:

dd if=/dev/hd1t179 of=bootsector bs=512 count=1

A nice utility shipped with QNX Neutrino is called 'spatch' which you 
can use to edit the the bootsector search for the string "QNX v1.2b Boot 
Loader" and change it to say what ever you want (within the 20 byte 
limit, the 21st byte is a null so leave it there).

Sorry there is no easier way that I presently know of to do what you asked.

Good luck!



On 08/05/10 08:32, Lewis Donzis wrote:
> Is there any clean way to modify the boot message on a QNX6 filesystem, in other words, something like dinit's -m 
option, but for mkqnx6fs?
>
> Thanks,
> lew
>
>
>
> _______________________________________________
>
> OSTech
> http://community.qnx.com/sf/go/post61711
>