Re: 536/537, Martian on 2.6.31 (OpenSuSE 11.2)

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

 



Bjorn

64 bit is probably your problem.  Per below, the compile is OK on my
32 bit system.

Just do the compile in the kdrivers/ folder.  I'll send you the 32 bit
compiled martian_modem,
which you should copy to /usr/sbin/   You may will have to install 32
bit versions of libc6 & libc6-dev to support it however.  Only the
martian_dev driver need be 64 bit compiled on a 64 bit system.  My gcc
is 4.4, but I can do a gcc-4.3 (or earlier compile if you need)

MarvS
----------
/martian-full-20080625$ make
KERNEL_DIR=/usr/src/linux-headers-2.6.31-16-generic
make -C kmodule/ modules
make[1]: Entering directory `/usr/src/pkg/martian/martian-full-20080625/kmodule'
make -C /usr/src/linux-headers-2.6.31-16-generic
M="/usr/src/pkg/martian/martian-full-20080625/kmodule"  modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.31-16-generic'
  CC [M]  /usr/src/pkg/martian/martian-full-20080625/kmodule/martian.o
/usr/src/pkg/martian/martian-full-20080625/kmodule/martian.c: In
function ‘martian_isr’:
/usr/src/pkg/martian/martian-full-20080625/kmodule/martian.c:131:
warning: value computed is not used
  CC [M]  /usr/src/pkg/martian/martian-full-20080625/kmodule/marsio.o
/usr/src/pkg/martian/martian-full-20080625/kmodule/marsio.c:358:
warning: ‘mars_read_register_rem’ defined but not used
/usr/src/pkg/martian/martian-full-20080625/kmodule/marsio.c:371:
warning: ‘mars_write_register_rem’ defined but not used
  CC [M]  /usr/src/pkg/martian/martian-full-20080625/kmodule/mfifo.o
  LD [M]  /usr/src/pkg/martian/martian-full-20080625/kmodule/martian_dev.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/src/pkg/martian/martian-full-20080625/kmodule/martian_dev.mod.o
  LD [M]  /usr/src/pkg/martian/martian-full-20080625/kmodule/martian_dev.ko
make[2]: Leaving directory `/usr/src/linux-headers-2.6.31-16-generic'
make[1]: Leaving directory `/usr/src/pkg/martian/martian-full-20080625/kmodule'
make -C modem/ all
make[1]: Entering directory `/usr/src/pkg/martian/martian-full-20080625/modem'
    CC	main.o
    CC	dumpers.o
    CC	log.o
    CC	session.o
    CC	mport.o
    CC	pty.o
    CC	sysdep.o
    CC	isr.o
    CC	smp.o
    CC	core_if.o
    CC	coresubst.o
    CC	link.o
    CC	tweakrelocsdynamic.o
    CC	coreadd.o
    CC	elf386tweakrelocs
    LD	marscore.o
    TWEAK	marscore.o
    LD	martian_modem
make[1]: Leaving directory `/usr/src/pkg/martian/martian-full-20080625/modem'


On Tue, Dec 22, 2009 at 9:22 AM, Bjorn Wielens <Uniacke1@xxxxxxxx> wrote:
> Any build successes/patches for these modems?
> My attempts to build result in the following errors:
>
> For 536/537: (Likely the result of this being a 64 bit system?)
>
> /home/blmwielens/intel-536-537/coredrv/softserial.c: In function
> ‘softserial_background_event_handler’:
> /home/blmwielens/intel-536-537/coredrv/softserial.c:365: error: request
> for member ‘ops’ in something not a structure or union
> /home/blmwielens/intel-536-537/coredrv/softserial.c:374: error: request
> for member ‘ops’ in something not a structure or union
>
>
> For Martian:
> mport.c:8:41: error: asm/page.h: No such file or directory
> mport.c: In function ‘mport_init’:
> mport.c:266: error: ‘PAGE_SIZE’ undeclared (first use in this function)
> mport.c:266: error: (Each undeclared identifier is reported only once
> mport.c:266: error: for each function it appears in.)
> mport.c:266: error: ‘PAGE_SHIFT’ undeclared (first use in this function)
>
> Thoughts/suggestions/ideas?
>
>
>
>
>


[Index of Archives]     [Linux Media Development]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Fedora Women]     [Linux USB]

  Powered by Linux