Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Boot flash: Page 1 of 2 (12 Items)
   
Boot flash  
Hello All. I'm sorry if I select wrong forum.

I have problem. I need to boot  with flash. 

My flash - Jetflash Transcend; size - 2 gb.

My steps
1. I create in QNX momentics ifs file. For example - 1.ifs and put them  
,for example,    to /temp/1.ifs   .Then insert my flash to computer with QNX.
2. dd if=/dev/zero of=/dev/hd1 count=100
3. fdisk /dev/hd1 delete -a
4. fdisk /dev/hd1 add -s 1 qnx all
5. fdisk /dev/hd1 boot -s 1
6. fdisk /dev/hd1 loader
7. mount -e /dev/hd1
8 dinit -h /dev/hd1t77
9. dinit -hb /dev/hd1t77
10. mount /dev/hd1t77 /usb
11. cp /temp/1.ifs /usb/.boot


Then I try to boot with flash. I get next message:
Missing Operating System.

Very thanx.





Re: Boot flash  
hello:

since its a type 77 QNX4 partition, you have to copy your IFS file to /.boot in the root directory. in type 179 Power 
Safe QNX6 partitions, you have to place your IFS file in /.boot/ directory. the Secondary bootloader will run the OS 
from this IFS file.

there is no OS file without the IFS file.

btw, if you set sync=optional when starting devb-umass (USB Flash driver), you can write to t179 partitions on a USB 
disk.

hope this is useful, helpful, good, constructive, and good advice.

have a good evening,

Aaron
--
{ garbage in, garbage out; nothing good comes from bad or evil EVER! }
Re: Boot flash  
Hello. Thank you for reply.
But problem  still unresolved.

My steps.

1. I create qnx bootable partition (type = 179) with fdisk /dev/hd1. Then restart devb-umass.

2. mkqnx6fs -el  /dev/hd1t179

3. mount /dev/hd1t179 /usb

4. cd /usb && mkdir .boot

5. cp /tmp/qnxbase.ifs /usb/.boot/qnxbase.ifs

Screen`output - CORRUPTED FILE SYSTEM.

What's wrong. I don't understand.  Thank you.
Re: Boot flash  
Please , help me. I am afraid that I wreck a plan
Re: Boot flash  
Hello,

Why did you run
mkdir .boot
?

Because after mkqnx6fs this directory should exist.

Try this:
# fdisk /dev/hd1 delete -a
# fdisk /dev/hd1 add -b -t 179
# mount -e /dev/hd1
# mkqnx6fs /dev/hd1t179
# mount -t qnx6 /dev/hd1t179 /usb
# cp /tmp/qnxbase.ifs /usb/.boot/qnxbase.ifs

Christophe
Re: Boot flash  
> Hello,
> 
> Why did you run
> mkdir .boot
> ?
> 
> Because after mkqnx6fs this directory should exist.
> 
> Try this:
> # fdisk /dev/hd1 delete -a
> # fdisk /dev/hd1 add -b -t 179
> # mount -e /dev/hd1
> # mkqnx6fs /dev/hd1t179
> # mount -t qnx6 /dev/hd1t179 /usb
> # cp /tmp/qnxbase.ifs /usb/.boot/qnxbase.ifs
> 
> Christophe


Hello Christophe. I try as you write.

But when I run \
mount -t qnx6 /dev/hd1t179 /usb 

I see 

mount:Can't mount /usb (type qnx6)
mount:Possible reason: Read-only file system




Re: Boot flash  
Then probably your device doesn't support synchronizing.
Then you have two way.

Do you want to use your CF only to load the .ifs or you will also need to have write access in normal case (not only to 
write the .ifs file)?

If you want only to use it to load the .ifs you can temporary mount the filesystem ignoring this:
# mount -t qnx6 -o sync=ignore /dev/hd1t179 /usb
But then be very careful and read the warning about the sync=ignore option here:
http://www.qnx.com/developers/docs/6.4.1/neutrino/utilities/f/fs-qnx6.so.html#id7

If you want to use your device also to have write access to it, it's better to use QNX 4 filesystem:

# fdisk /dev/hd1 delete -a
# fdisk /dev/hd1 add -b -t 79
# mount -e /dev/hd1
# dinit -hq /dev/hd1t79
# mount -t qnx6 /dev/hd1t179 /usb
# cp /tmp/qnxbase.ifs /usb/.boot

Christophe
Re: Boot flash  
> If you want to use your device also to have write access to it, it's better to
>  use QNX 4 filesystem:
> 
> # fdisk /dev/hd1 delete -a
> # fdisk /dev/hd1 add -b -t 79
> # mount -e /dev/hd1
> # dinit -hq /dev/hd1t79
> # mount -t qnx4 /dev/hd1t79 /usb
> # cp /tmp/qnxbase.ifs /usb/.boot
> 

Hello. Thanks for attention to my problem.

I try as you say.

But unsuccessfully.

Can I take /boot/fs/qnxbase.ifs???

I try with this file but unsuccessfully.

Then I create SYSTEM BUILDER PROJECT on Qnx Momentics 6.3.0 and build *.ifs file from /boot/build/qnxbase.build.

But unsuccessfully too.

This is screenoutput when I try to boot with my Jetflash.


Hit Esc for .altboot ...............................................
Press spacebar to input boot options 
Detected EIDE. Scanning for devices.

/.diskroot  (but I create it by means of    dinit -hR /dev/hd1t79 ) file for root not found on any filesystem
Starting with safe mode.
Spawn of /bin/sh failed no such file or directory



And then system halted.









Re: Boot flash  
Could you post source of your .boot file?

It seems you don't start io-usb and devb-umass in it.

Regards, PKY
Re: Boot flash  
> Could you post source of your .boot file?
> 
> It seems you don't start io-usb and devb-umass in it.
> 
> Regards, PKY

Yes, of course.



Attachment: Text sys_o25.rar 2.94 KB