Re: Antonio, USA, kernel 2.6.27.7

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

 



Dear all,

After searching in the internet, I found the solution to my problem.
In Linux Questions, there was a reference to a file called README.TXT
in the Slackware 12.2 DVD.  I read it and applied the patch.  Problem
solved :)

Here's the file, in case others also run into the same problem:

=========================================

By default, the kernel in Slackware supports SMP.  With as common as
multicore CPUs and SMP boards have become, this seems like the
obvious choice.  The kernels are probably better for single CPU
machines, too, if they will run them.

If you have to use one of the non SMP kernels (huge.s or generic.s),
then you will need to reconfigure your kernel sources to build any
additional kernel modules.  In order to compile outside kernel
modules and such, you *may* need to install non-SMP kernel-headers
(we're not entirely sure about this), and either build the kernel once
without SMP (which might take a while), or apply a patch to freshly
installed kernel sources to convert them from smp to non-SMP
(this is fast).

To switch your unmodified Slackware kernel sources from SMP to non-SMP,
run the following script in this directory:

./patch-to-non-smp.sh

If you'd rather apply these patches by hand, feel free.

At this point if you are running huge.s or generic.s, you should have
no problems building kernel modules.  This has been tested here with the
latest nVidia X.Org drivers.

Have fun! :-)

Pat

=========================================
oot@darkstar:/media/SlackDVD/extra# cd linux-2.6.27.7-nosmp-sdk/
root@darkstar:/media/SlackDVD/extra/linux-2.6.27.7-nosmp-sdk#
./patch-to-non-smp.sh
patching file .config
patching file Module.symvers
patching file arch/x86/kernel/.asm-offsets.s.cmd
patching file arch/x86/kernel/asm-offsets.s
patching file include/config/auto.conf
patching file include/config/kernel.release
patching file include/linux/autoconf.h
patching file include/linux/utsrelease.h
patching file kernel/.bounds.s.cmd
patching file kernel/bounds.s
root@darkstar:/media/SlackDVD/extra/linux-2.6.27.7-nosmp-sdk#

/***** removed unnecessary ******/
make[1]: Entering directory
`/home/olivares/Downloads/martian-full-20080625/modem'
    LD  martian_modem.debug
    STRIP       martian_modem.debug
    STRIP       martian_modem.stripped
    INSTALL     /usr/sbin/martian_modem
    INSTALL     /usr/lib/debug/usr/sbin/martian_modem.debug
make[1]: Leaving directory
`/home/olivares/Downloads/martian-full-20080625/modem'
root@darkstar:/home/olivares/Downloads/martian-full-20080625# ls
/lib/modules/2.6.27.7/extra/martian_dev.ko -l
-rw-r--r-- 1 root root 32289 2008-12-20 02:52
/lib/modules/2.6.27.7/extra/martian_dev.ko
root@darkstar:/home/olivares/Downloads/martian-full-20080625# exit
exit
olivares@darkstar:~/Downloads/martian-full-20080625$ su -
Password:
root@darkstar:~# modprobe martian_dev
root@darkstar:~# martian_modem /dev/modem
martian: info: Your port is /dev/modem
martian: info: session: Started Sat Dec 20 02:56:22 2008
martian: info: session: client's gone
martian: info: session: Closed Sat Dec 20 02:56:33 2008
martian: info: session: Started Sat Dec 20 02:56:51 2008

Now I am a very happy camper and running Slackware in one of my
machines.  I have always liked Slax, now I can say that I have the
real deal :)

Regards & Happy Holidays,

Antonio

On 12/19/08, Antonio Olivares <olivares14031@xxxxxxxxx> wrote:
> I am desperately trying again.  I installed all available packages,  I
> chose to run smaller kernel not full smp kernel.  I downloaded the
> other martian from martian modem site, I ran into a number of errors,
> I overcame them by copying over the equivalent files from
> martian-20080625/ but still no go.  It (martain_dev.ko) is created in
> 2.6.27-smp/ instead of regular 2.6.27.7/extra :(  I have searched, but
> have not found a way to boot smp kernel so that I can get online with
> this old machine.
>
> See attached:
>
> Thanks in Advance,
>
> Antonio
>
> On Fri, Dec 19, 2008 at 8:44 PM, Antonio Olivares
> <olivares14031@xxxxxxxxx> wrote:
>> Dear all,
>>
>> On an old Pentium 3 machine, I had FreeBSD 7.0 installed and could not
>> access the internet.  I used Slax to connect with that machine. For a
>> while it ran great, but then it started rebooting on its own for no
>> apparent reason.  Now after a while, I decided to redo the machine.  I
>> tried several livecd's and none worked like Slax.  I tried Ubuntu, it
>> would fail and give me a [intramfs]. Fedora would give me a prompt to
>> enter some drivers, to make a long story short, I installed Slackware
>> and it does live up to the hype :), only problem is, I cannot make the
>> modem(martian work), it works with Slax, but not with Slackware.
>> There is an interference with martian_dev.ko being created at
>> /lib/modules/kerrnel 2.6.27.7-smp/extra/, instead of at
>> /lib/modules/kerrnel 2.6.27.7/extra/.  If there is anyone out there
>> with experience on how to deal with this issue, I would greatly
>> appreciate it!
>>
>> Attached is ModemData.txt and what happens when I build the driver.
>>
>> Regards,
>>
>> Antonio
>>
>> olivares@darkstar:~/Downloads$ tar -zxvf martian-full-20080625.tar.gz
>> martian-full-20080625/
>> martian-full-20080625/martian.h
>> martian-full-20080625/Makefile
>> martian-full-20080625/INSTALL
>> martian-full-20080625/Concept
>> martian-full-20080625/Makefile~
>> martian-full-20080625/Cleaning.txt
>> martian-full-20080625/README
>> martian-full-20080625/kmodule/
>> martian-full-20080625/kmodule/Makefile
>> martian-full-20080625/kmodule/marsio.h
>> martian-full-20080625/kmodule/kmartian.h
>> martian-full-20080625/kmodule/martian_ids.c
>> martian-full-20080625/kmodule/fifo.h
>> martian-full-20080625/kmodule/mfifo.h
>> martian-full-20080625/kmodule/martian.c
>> martian-full-20080625/kmodule/marsio.c
>> martian-full-20080625/kmodule/mfifo.c
>> martian-full-20080625/kmodule/mixspinlock.h
>> martian-full-20080625/scripts/
>> martian-full-20080625/scripts/martian
>> martian-full-20080625/scripts/remove_outdated.sh
>> martian-full-20080625/scripts/martian.in
>> martian-full-20080625/scripts/wv.conf
>> martian-full-20080625/scripts/automate.sh
>> martian-full-20080625/ChangeLog
>> martian-full-20080625/modem/
>> martian-full-20080625/modem/Makefile
>> martian-full-20080625/modem/tweakcore.sh
>> martian-full-20080625/modem/main.c
>> martian-full-20080625/modem/debug_script.in
>> martian-full-20080625/modem/ltmdmobj.o
>> martian-full-20080625/modem/watch.gdb
>> martian-full-20080625/modem/sysdep.h
>> martian-full-20080625/modem/watch3.gdb
>> martian-full-20080625/modem/dumpers.c
>> martian-full-20080625/modem/elf386tweakrelocs.c
>> martian-full-20080625/modem/log.h
>> martian-full-20080625/modem/core_if.c
>> martian-full-20080625/modem/coreadd.c
>> martian-full-20080625/modem/mport.h
>> martian-full-20080625/modem/coresubst.c
>> martian-full-20080625/modem/ASWMLICENSE
>> martian-full-20080625/modem/README
>> martian-full-20080625/modem/mport.c
>> martian-full-20080625/modem/isr.c
>> martian-full-20080625/modem/core.h
>> martian-full-20080625/modem/watch2.gdb
>> martian-full-20080625/modem/tweakrelocsdynamic.c
>> martian-full-20080625/modem/log.c
>> martian-full-20080625/modem/session.c
>> martian-full-20080625/modem/watch4.gdb
>> martian-full-20080625/modem/pty.c
>> martian-full-20080625/modem/sysdep.c
>> martian-full-20080625/modem/common.h
>> martian-full-20080625/modem/main.h
>> martian-full-20080625/modem/smp.c
>> martian-full-20080625/modem/watch.h
>> martian-full-20080625/modem/overriden_core_functions
>> martian-full-20080625/modem/profile.c
>> martian-full-20080625/modem/link.c
>> martian-full-20080625/modem/mixspinlock.h
>> olivares@darkstar:~/Downloads$ cd mar tian-full-20080625
>> olivares@darkstar:~/Downloads/martian-full-20080625$ make all
>> make -C kmodule/ modules
>> make[1]: Entering directory
>> `/home/olivares/Downloads/martian-full-20080625/kmodule'
>> make -C /lib/modules/2.6.27.7/build
>> M="/home/olivares/Downloads/martian-full-20080625/kmodule"  modules
>> make[2]: Entering directory `/usr/src/linux-2.6.27.7'
>>  CC [M]  /home/olivares/Downloads/martian-full-20080625/kmodule/martian.o
>> /home/olivares/Downloads/martian-full-20080625/kmodule/martian.c: In
>> function 'martian_isr':
>> /home/olivares/Downloads/martian-full-20080625/kmodule/martian.c:131:
>> warning: value computed is not used
>>  CC [M]  /home/olivares/Downloads/martian-full-20080625/kmodule/marsio.o
>> /home/olivares/Downloads/martian-full-20080625/kmodule/marsio.c:359:
>> warning: 'mars_read_register_rem' defined but not used
>> /home/olivares/Downloads/martian-full-20080625/kmodule/marsio.c:372:
>> warning: 'mars_write_register_rem' defined but not used
>>  CC [M]  /home/olivares/Downloads/martian-full-20080625/kmodule/mfifo.o
>>  LD [M]
>> /home/olivares/Downloads/martian-full-20080625/kmodule/martian_dev.o
>>  Building modules, stage 2.
>>  MODPOST 1 modules
>>  CC
>> /home/olivares/Downloads/martian-full-20080625/kmodule/martian_dev.mod.o
>>  LD [M]
>> /home/olivares/Downloads/martian-full-20080625/kmodule/martian_dev.ko
>> make[2]: Leaving directory `/usr/src/linux-2.6.27.7'
>> make[1]: Leaving directory
>> `/home/olivares/Downloads/martian-full-20080625/kmodule'
>> make -C modem/ all
>> make[1]: Entering directory
>> `/home/olivares/Downloads/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
>> `/home/olivares/Downloads/martian-full-20080625/modem'
>> olivares@darkstar:~/Downloads/martian-full-20080625$ su -c 'make install'
>> Password:
>> make -C kmodule/ install
>> make[1]: Entering directory
>> `/home/olivares/Downloads/martian-full-20080625/kmodule'
>> make -C /lib/modules/2.6.27.7/build
>> M="/home/olivares/Downloads/martian-full-20080625/kmodule"
>> modules_install
>> make[2]: Entering directory `/usr/src/linux-2.6.27.7'
>>  INSTALL
>> /home/olivares/Downloads/martian-full-20080625/kmodule/martian_dev.ko
>>  DEPMOD  2.6.27.7-smp
>> make[2]: Leaving directory `/usr/src/linux-2.6.27.7'
>> if ! /sbin/modprobe -nq martian_dev ; then /sbin/depmod -a; fi
>> make[1]: Leaving directory
>> `/home/olivares/Downloads/martian-full-20080625/kmodule'
>> make -C modem/ install
>> make[1]: Entering directory
>> `/home/olivares/Downloads/martian-full-20080625/modem'
>>    LD  martian_modem.debug
>>    STRIP       martian_modem.debug
>>    STRIP       martian_modem.stripped
>>    INSTALL     /usr/sbin/martian_modem
>>    INSTALL     /usr/lib/debug/usr/sbin/martian_modem.debug
>> make[1]: Leaving directory
>> `/home/olivares/Downloads/martian-full-20080625/modem'
>> olivares@darkstar:~/Downloads/martian-full-20080625$ su -
>> Password:
>>
>> The sum of the Universe is zero.
>>
>> root@darkstar:~# ,p      mop   dprobe s   un      martian_dev
>> FATAL: Module martian_dev not found.
>> root@darkstar:~# ls /lib/modules/ 2.6.27.7/extra
>> /bin/ls: cannot access /lib/modules/2.6.27.7/extra: No such file or
>> directory
>> root@darkstar:~# ls /lib/modules/ 2.6.27.7-smp/extra/martian_dev.ko -0   l
>> -rw-r--r-- 1 root root 37651 2008-12-19 21:25
>>  [0m [00m/lib/modules/2.6.27.7-smp/extra/martian_dev.ko [0m
>>
>

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

  Powered by Linux