View topic - Moving 4.25 to a different PC

Moving 4.25 to a different PC

For the old QNX2 and QNX4 RTOS

Moving 4.25 to a different PC

Postby JasonFE » Wed Dec 06, 2006 11:29 pm

We have QNX 4.25 running on several Dell Optiplex 170L PCs. I believe the chipset is Intel 82801EB. I am trying to get an image from those machines to run on an Optiplex 210L with an Intel 82801FB chipset. Both machines use SATA hard drives. I'm using Ghost to make the image. It works fine as long as I leave the partition size the same on the new drive. On the new box, Fsys.atapi terminates on boot with SIGSEGV at 0005:0000F091 whether normal or alt boot. I thought the device ID might have something to do with it, so I put the drive in the old box and changed it in /boot/build/install.# and ran make. That didn't have any affect on the new box, and that drive could still boot on the old box.
JasonFE
New Member
 
Posts: 6
Joined: Wed Dec 06, 2006 11:11 pm
Location: San Antonio, TX

RE: Moving 4.25 to a different PC

Postby mario » Thu Dec 07, 2006 1:06 am

QNX doesn't care about chipset. The IDE controler shouldn't matter. However making a image with Ghost is not recommanded ( Ghost doesn't know about QNX filesystem and cannot rebuild the filesystem if layout has changed. But you say the cloned drive works in the old box, so I it probably not a ghost issue. Still it's safer to use a script to copy the HD, I have seen a few around these forum.

Note that some BIOS will not properly enable IDE emulation of SATA drive ( Fsys.atapi doesn't support native SATA). Also BIOS many not report the same geometry ( but I've never seen it cause a SIGSEGV). You could try Fsys.eide if the HD isn't too big.
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

RE: Moving 4.25 to a different PC

Postby ingraham » Thu Dec 07, 2006 3:50 pm

It seems we've had a lot of questions on copying hard drives lately.

Ghost is a bad choice. It can only do a raw copy of the drive. That's why it only works when the partition size is the same: the .bitmap and .inodes files are drive and partition specific. Overwriting means Bad Things Happen. This is also why you shouldn't use dd.

Copying the drive in QNX is pretty easy. If you're booted in 4.2x, fdisk, dinit, and mount the new partition (let's say as /hdnew) and then copy using:

cp -cpvLR -P!/.bitmap -P!/.inodes / /hdnew
cp /.boot /hdnew/.boot
cp /.altboot /hdnew/.boot

-James Ingraham
Sage Automation, Inc.
ingraham
Senior Member
 
Posts: 161
Joined: Wed Nov 05, 2003 2:25 pm
Location: Texas

RE: Moving 4.25 to a different PC

Postby maschoen » Thu Dec 07, 2006 7:10 pm

A differing opinion. When Ghost doesn't understand a partition, it does a sector by sector copy.
Copying a QNX partition to a bigger partition doesn't hurt, but it doesn't get you any more room.
Copying to a smaller partition is dangerous. It might be possible to do a dcheck and find the failed (missing) sectors.

A cloned partion of a QNX 4 hard drive should work fine. The only likely problem is if the target drive has bad sectors. I haven't seen a bad sector on a new drive in over a decade, so this is unlikely.
On the other hand, a sigsegv on Fsys.atapi is disturbing. I would proceed as follows.

0) Clone the disk
1) Create a boot floppy with Fsys.atapi on the diskette.
2) Boot the system
3) Manually start Fsys.atapi and attempt to mount and access the hard disk

You may find that you need some parameters for the driver to make it work.
I'm quite skeptical of getting any SATA drive running for QNX 4, but it is worth
a try.

You may find that you need some special
maschoen
QNX Master
 
Posts: 2715
Joined: Wed Jun 25, 2003 5:18 pm

RE: Moving 4.25 to a different PC

Postby mario » Thu Dec 07, 2006 7:25 pm

The problem with sector by sector copy is that it will work only if the BIOS LBA logic of the other machine behaves the same. I have seens BIOSes/Fsys.atapi come up with different number of total sectors because of rounding error in the detected disk geometry. That is why for some people Ghost doesn't work.

SATA for QNX4 works fine as long as the chipset proviced IDE emulation (most Intel Chipset). QSS has native SATA driver for QNX4 in the pipe ;-)
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

RE: Moving 4.25 to a different PC

Postby JasonFE » Thu Dec 07, 2006 11:27 pm

So we could be dealing with an issue in the way the BIOS handles the drive. That would explain why the ghosted drives work fine in other machines of the same type. (and yes, we have SATA drives running on 4.25 on the other machines ok)

Crud....I think we had an issue running more than one SATA drive at a time, though. I'll check. There are other issues eating my lunch at the moment. (and my dinner and breakfast)
JasonFE
New Member
 
Posts: 6
Joined: Wed Dec 06, 2006 11:11 pm
Location: San Antonio, TX

RE: Moving 4.25 to a different PC

Postby mario » Thu Dec 07, 2006 11:33 pm

That being said I never saw any hardware issue caused Fsys.atapi to crash ( but Fsys.atapi doesn't have as much mileage as Fsys.eide )
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

RE: Moving 4.25 to a different PC

Postby gubbe » Mon Dec 11, 2006 11:43 am

following webpage is somewhat misleading

http://www.qnx.com/developers/hardware_ ... ry=FileSys

82801ER ICH5R (SATA) Fsys.atapi x86 QNX4 4.25

Released
82801ESB C-ICH (SATA) Fsys.atapi x86 QNX4 4.25

Released
82801FB ICH6 (SATA) Fsys.atapi x86 QNX4 4.25

Released
82801FBM ICH6M (SATA) Fsys.atapi x86 QNX4 4.25

Released
82801FR ICH6R (SATA) Fsys.atapi x86 QNX4 4.25

Released


I didn't realise it was only supporting them in IDE emulation mode... I thought that as it had (SATA) that meant it would support it in Native mode. Could cause us some problems as it is hard to find modern PCs with IDE support today.
gubbe
Active Member
 
Posts: 82
Joined: Mon Dec 13, 2004 9:18 am

RE: Moving 4.25 to a different PC

Postby JasonFE » Fri Jan 19, 2007 4:12 pm

The Dell PCs we're loading on have IDE emu for SATA. Dell calls it "compatible", like they call every lower-performance option. But we're running fine in regular SATA mode.
JasonFE
New Member
 
Posts: 6
Joined: Wed Dec 06, 2006 11:11 pm
Location: San Antonio, TX

Re: RE: Moving 4.25 to a different PC

Postby gubbe » Fri Feb 23, 2007 7:43 am

mario wrote:( Fsys.atapi doesn't support native SATA).


According to the latest post on the qnx4 newsgroups Fsys.atapi does support native SATA for some chipsets

The QNX 4.25 RTOS Fsys.atapi Block Driver update available from the myQNX
download site does contain support for native SATA controllers. Please refer
to the release notes, linked below, for a list of supported SATA
controllers.

http://www.qnx.com/developers/articles/rel_1351_1.html


This list will be updated later this year as we port the additional SATA
support from QNX6.3.0 SP3 back to QNX4. While I do not have a firm date at
this time, it is intended that this port will be available later this year.
As well QSS will continue to back port QNX6 drivers to QNX4, specifically
targeting newer graphics (Photon drivers), Ethernet and hard disk
controllers.


Thanks,

Dave Nickerson
QNX Software Systems
gubbe
Active Member
 
Posts: 82
Joined: Mon Dec 13, 2004 9:18 am


Return to QNX2 and QNX4

Who is online

Users browsing this forum: No registered users and 2 guests

cron