HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] Mainpine IQ Express and CentOS 5.1 installation problems.



I have a clean install of 5.1 x86 and have tried following your
procedure. I have made all the moddifications and when I go to build the
kernel I get:

># rpmbuild -ba --target i686 kernel-2.6.spec
>Building target platforms: i686
>Building for target i686
>error: line 3371: Bad arg to %patch -p: %build

here are lines around each of my edits to show the changes in
kernel-2.6.spec:

># For example dist -> .el5 and rhel -> 5
>%define dist .el5ifax2
>%define rhel 5

>Patch21860:
linux-2.6-fs-corruption-by-unprivileged-user-in-directories.patch
># adds rhel version info to version.h
>Patch99990: linux-2.6-rhel-version-h.patch
># adds mainpine iq express support
>Patch99995: linux-2.6.9-55.EL-ifax1.patch
># empty final patch file to facilitate testing of kernel patches
>Patch99999: linux-kernel-test.patch

># correction of SUBLEVEL/EXTRAVERSION in top-level source tree Makefile
># patch the Makefile to include rhel version info
>%patch99990 -p1
>perl -p -i -e "s/^SUBLEVEL.*/SUBLEVEL = %{sublevel}/" Makefile
>perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -prep/" Makefile
>perl -p -i -e "s/^RHEL_MAJOR.*/RHEL_MAJOR = %{rh_release_major}/"
Makefile
>perl -p -i -e "s/^RHEL_MINOR.*/RHEL_MINOR = %{rh_release_minor}/"
Makefile

># mainpine patch - iFAX
>%patch99995 -pl

># conditionally applied test patch for debugging convenience
>%if %([ -s %{PATCH99999} ] && echo 1 || echo 0)
>%patch99999 -p1
>%endif

linux-2.6.9-55.EL-ifax1.patch is in the usr/src/redhat/SOURCES
directory, I confirmed it.

># uname -r
>2.6.18-53.1.6.el5
I downloaded and ran rpm -ivh kernel-2.6.18-53.1.6.el5.src.rpm.

Is there anything that I am missing? Thanks

Jason

-----Original Message-----
From: David Mimms [mailto:david.mimms@xxxxxxxx] 
Sent: Thursday, February 28, 2008 10:05 AM
To: Jason Lewis
Cc: hylafax-users@xxxxxxxxxxx
Subject: Re: [hylafax-users] Mainpine IQ Express and CentOS 5.1
installation problems.


On Feb 28, 2008, at 3:49 PM, Jason Lewis wrote:

> I am trying to setup a Mainpine IQ Express (8 port) with CentOS 5.1 
> for use with Hylafax. This is my first experience with a Mainpine card

> or any multi-port serial card. I've follow the directions closely on 
> Mainpines website. The following is what I have done:
>
>> # /sbin/lspci -d 1522:*
>> 07:00.0 Communication controller: MainPine Ltd PCI <-> IOBus Bridge 
>> (rev 81)
>
>> # lspci -nvs 07:00.0
>> 07:00.0 0780: 1522:0100 (rev 81)
>>       Subsystem: 1522:3d00
>>      Flags: medium devsel, IRQ 11
>>       I/O ports at cc80 [size=128]
>>       Memory at fe200000 (32-bit, non-prefetchable) [size=1M]
>
>> # setserial /dev/ttyS4 port 0xCC80 irq 11 autoconfig ^fourport
>> /dev/ttyS4: No such file or directory
>
>> # mknod -m 666 /dev/ttyS4 c 4 68
>> # setserial /dev/ttyS4 port 0xCC80 irq 11 autoconfig ^fourport
> /dev/ttyS4: No such device or address
>
> I am at a stuck point and unsure what to do. I've tried just about 
> everything I know of to set the port for each line to a serial 
> interface so that I can get at least some software communicating with 
> the modem. Any help in direction with this problem would be greatly 
> appreciated, I am just at a loss at this point. I'm not quite sure why

> ttyS4 and greater for the serial ports on the modem are not auto 
> created. Even after I do create them and verify they are there, I 
> can't do anything with them. I'm running CentOS 5.1 with kernel 
> 2.6.18. Thanks!


>

Jason,

You'll have to patch the Linux kernel for this card to work.  Here is an
overview of what you should do:

$ yum -y groupinstall "Development Tools"
$ yum -y install unifdef

Install the src rpm for your current kernel.

$ rpm -ivh
http://mirror.centos.org/centos/5/updates/SRPMS/kernel-2.6.18-53.1.4.el5
.src.rpm

$ cd /usr/src/redhat/SOURCES

$ wget
http://people.ifax.com/~aidan/mainpine/linux-2.6.9-55.EL-ifax1.patch

$ cd ../SPECS/

$ vim kernel-2.6.spec

Redefine "dist"

%define dist .el5ifax2

Around line 1607 add:
# mainpine patch - iFAX
Patch99995: linux-2.6.9-55.EL-ifax1.patch

Around line 1956 add:
# mainpine patch - iFAX
%patch99995 -p1

Save and exit.  Build the new kernel.

$ rpmbuild -ba --target i686 kernel-2.6.spec

$ ls -l ../RPMS/i686

Dave


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions