Forum Topic - QNX 6.4.0 fdisk and ppcbe variant:
   
QNX 6.4.0 fdisk and ppcbe variant  
Hi,

when I call fdisk as follows:
   # fdisk /dev/hd0 show
   # fdisk /dev/hd0 delete -a
   # fdisk /dev/hd0 info
then everything is ok.

But when I try to run if in the following way:
   #fdisk /dev/hd0
   #fdisk /dev/hd0 add ...
then 
"fdisk terminated with signal 4"

I don't see this problem on armle or x86 platform.

Is it a known issue ?
Can anybody reproduce it ?

Regards,
Jacek
Re: QNX 6.4.0 fdisk and ppcbe variant  
fdisk works fine on my ppcbe targets, what kind of harddisk are you using? Can you try 632 version fdisk?
Re: QNX 6.4.0 fdisk and ppcbe variant  
I'm running devb-eide driver which was tested with CF and standard 2,5" HDD. Fdisk from QNX 6.3.2 has the same behaviour
.
Re: QNX 6.4.0 fdisk and ppcbe variant  
Could you provide the sloginfo message after devb-eide command and after fdisk /dev/hd0 command?

which ppcbe BSP are you using?
Re: QNX 6.4.0 fdisk and ppcbe variant  
I have attached output from sloginfo.
The devb-eide driver was started with verbosity set to 9.

Regards,
Jacek
Attachment: Text sloginfo.txt 17.09 KB
Re: QNX 6.4.0 fdisk and ppcbe variant  
We are running devb-eide on the custom hardware powered by
PPC405GPr CPU. 

Maybe this is not fdisk but devb-eide problem ?
Or maybe we missed something during hardware initialization ?

What kind of block driver did you test with fdisk utility?
Was it the devb-eide as well ?

Did you find something suspicious in my sloginfo output ?

Regards,
Jacek

Re: QNX 6.4.0 fdisk and ppcbe variant  
I tested devb-eide driver on ppc600 and ppc800 seriers.  devb-eide driver didn't support on my testing ppc405 board.
Re: QNX 6.4.0 fdisk and ppcbe variant  
Ok,

but what can be a reason of fdisk termination ?

The devb-eide driver works fine. 
It can mount i.e. QNX partition (created on workstation - x86 machine).
Copying, deleting files, etc. works ok as well.

Please take a look at the attached fdisk debug session.
fdisk was started with the following parameters:
fdisk /dev/hd0 add -t 77 -p 50


Attachment: Image fdisk_debug_IDE.jpg 110 KB
RE: QNX 6.4.0 fdisk and ppcbe variant  

> -----Original Message-----
> From: Jacek Rudnicki [mailto:community-noreply@qnx.com]
> Sent: March-11-09 10:21 AM
> To: ostech-core_os
> Subject: Re: QNX 6.4.0 fdisk and ppcbe variant
> 
> Ok,
> 
> but what can be a reason of fdisk termination ?
> 


Problem with floating point?

> The devb-eide driver works fine.
> It can mount i.e. QNX partition (created on workstation - x86 machine).
> Copying, deleting files, etc. works ok as well.
> 
> Please take a look at the attached fdisk debug session.
> fdisk was started with the following parameters:
> fdisk /dev/hd0 add -t 77 -p 50
> 
> 
> 
> 
> _______________________________________________
> OSTech
> http://community.qnx.com/sf/go/post24126
Re: RE: QNX 6.4.0 fdisk and ppcbe variant  
Good shot Mario !!

Indeed our target doesn't have FPU unit and now with fpemu library everything is ok.

Thank's
Jacek
Re: RE: QNX 6.4.0 fdisk and ppcbe variant  
Filed a PR:#66301 against devb-eide driver. HW team will handle it.