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 >
Script started on Fri 19 Dec 2008 10:46:36 PM CST olivares@darkstar:~/Downloads$ tar -s zxvf martian-full-20080617.tar.gz martian/ martian/kmodule/ martian/kmodule/Makefile martian/kmodule/kmartian.h martian/kmodule/marsio.h martian/kmodule/mfifo.c martian/kmodule/mfifo.h martian/kmodule/fifo.h martian/kmodule/mixspinlock.h martian/kmodule/marsio.c martian/kmodule/martian_ids.c martian/kmodule/martian.c martian/modem/ martian/modem/core_if.c martian/modem/mport.c martian/modem/smp.c martian/modem/mixspinlock.h martian/modem/profile.c martian/modem/coreadd.c martian/modem/Makefile martian/modem/coresubst.c martian/modem/mport.h martian/modem/sysdep.c martian/modem/tweakcore.sh martian/modem/watch.h martian/modem/README martian/modem/elf386tweakrelocs.c martian/modem/pty.c martian/modem/sysdep.h martian/modem/ltmdmobj.o martian/modem/dumpers.c martian/modem/log.c martian/modem/session.c martian/modem/main.c martian/modem/ASWMLICENSE martian/modem/log.h martian/modem/main.h martian/modem/debug_script.in martian/modem/tweakrelocsdynamic.c martian/modem/link.c martian/modem/isr.c martian/modem/common.h martian/modem/watch2.gdb martian/modem/watch3.gdb martian/modem/watch4.gdb martian/modem/watch.gdb martian/modem/core.h martian/modem/overriden_core_functions martian/ChangeLog martian/martian.h martian/scripts/ martian/scripts/remove_outdated.sh martian/scripts/automate.sh martian/scripts/martian martian/scripts/martian.in martian/scripts/wv.conf martian/INSTALL martian/Concept martian/Makefile martian/README olivares@darkstar:~/Downloads$ cd martian-full-200806 olivares@darkstar:~/Downloads/martian$ ls ChangeLog INSTALL README martian.h scripts Concept Makefile kmodule modem olivares@darkstar:~/Downloads/martian$ c make all make -C kmodule/ modules make[1]: Entering directory `/home/olivares/Downloads/martian/kmodule' make -C /lib/modules/2.6.27.7/build M="/home/olivares/Downloads/martian/kmodule" modules make[2]: Entering directory `/usr/src/linux-2.6.27.7' CC [M] /home/olivares/Downloads/martian/kmodule/martian.o /home/olivares/Downloads/martian/kmodule/martian.c: In function 'martian_isr': /home/olivares/Downloads/martian/kmodule/martian.c:131: warning: value computed is not used CC [M] /home/olivares/Downloads/martian/kmodule/marsio.o /home/olivares/Downloads/martian/kmodule/marsio.c:359: warning: 'mars_read_register_rem' defined but not used /home/olivares/Downloads/martian/kmodule/marsio.c:372: warning: 'mars_write_register_rem' defined but not used CC [M] /home/olivares/Downloads/martian/kmodule/mfifo.o LD [M] /home/olivares/Downloads/martian/kmodule/martian_dev.o Building modules, stage 2. MODPOST 1 modules CC /home/olivares/Downloads/martian/kmodule/martian_dev.mod.o LD [M] /home/olivares/Downloads/martian/kmodule/martian_dev.ko make[2]: Leaving directory `/usr/src/linux-2.6.27.7' make[1]: Leaving directory `/home/olivares/Downloads/martian/kmodule' make -C modem/ all make[1]: Entering directory `/home/olivares/Downloads/martian/modem' CC main.o CC dumpers.o CC log.o CC session.o CC mport.o 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) make[1]: *** [mport.o] Error 1 make[1]: Leaving directory `/home/olivares/Downloads/martian/modem' make: *** [all] Error 2 olivares@darkstar:~/Downloads/martian$ dir ff mp modem/mport.c ~/Downloads/martian-ful ll-200806/mode mod 25 martian-full-20080625/ martian-full-20080625.tar.gz olivares@darkstar:~/Downloads/martian$ diff modem/mport.c ~/Downloads/martian-ful ll-20080625/modem/mpl p ort.c 7,8d6 < // #include <limits.h> < #include <asm/page.h> /*** PAGE_SIZE */ 11c9 < #include <unistd.h> // close --- > #include <unistd.h> 183,190d180 < /* < extern unsigned char *io_app_tx_eptr, *io_app_tx_sptr; < extern unsigned short io_app_tx_count; < < *core_write_room = (io_app_tx_eptr - io_app_tx_sptr) - io_app_tx_count; < < if (*core_write_room > io_app_tx_count) { < */ 199a190,194 > static size_t page_align(size_t size) { > size_t npagemask = sysconf(_SC_PAGESIZE) - 1; > return (size + npagemask) & ~npagemask; > } > 266c261 < MCB_PAGES << PAGE_SHIFT, --- > page_align(sizeof *common), olivares@darkstar:~/Downloads/martian$ cp ~/Downloads/ cd modem/ olivares@darkstar:~/Downloads/martian/modem$ cp / ~/Downloads/martian-full-2008062 5/modem/mport.c ~/Downloads/martianmod /modem/ olivares@darkstar:~/Downloads/martian/modem$ cd .. olivares@darkstar:~/Downloads/martian$ make all make -C kmodule/ modules make[1]: Entering directory `/home/olivares/Downloads/martian/kmodule' make -C /lib/modules/2.6.27.7/build M="/home/olivares/Downloads/martian/kmodule" modules make[2]: Entering directory `/usr/src/linux-2.6.27.7' Building modules, stage 2. MODPOST 1 modules make[2]: Leaving directory `/usr/src/linux-2.6.27.7' make[1]: Leaving directory `/home/olivares/Downloads/martian/kmodule' make -C modem/ all make[1]: Entering directory `/home/olivares/Downloads/martian/modem' 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 tweakrelocsdynamic.c:27:22: error: asm/page.h: No such file or directory tweakrelocsdynamic.c: In function 'tweak_relocs_in_section': tweakrelocsdynamic.c:241: error: 'PAGE_MASK' undeclared (first use in this function) tweakrelocsdynamic.c:241: error: (Each undeclared identifier is reported only once tweakrelocsdynamic.c:241: error: for each function it appears in.) tweakrelocsdynamic.c:241: error: 'PAGE_SIZE' undeclared (first use in this function) make[1]: *** [tweakrelocsdynamic.o] Error 1 make[1]: Leaving directory `/home/olivares/Downloads/martian/modem' make: *** [all] Error 2 olivares@darkstar:~/Downloads/martian$ makc e clean make -C kmodule/ clean make[1]: Entering directory `/home/olivares/Downloads/martian/kmodule' make -C /lib/modules/2.6.27.7/build M="/home/olivares/Downloads/martian/kmodule" clean make[2]: Entering directory `/usr/src/linux-2.6.27.7' CLEAN /home/olivares/Downloads/martian/kmodule/.tmp_versions CLEAN /home/olivares/Downloads/martian/kmodule/Module.symvers make[2]: Leaving directory `/usr/src/linux-2.6.27.7' make[1]: Leaving directory `/home/olivares/Downloads/martian/kmodule' make -C modem/ clean make[1]: Entering directory `/home/olivares/Downloads/martian/modem' RM OBJS RM BINS RM TOOLS make[1]: Leaving directory `/home/olivares/Downloads/martian/modem' olivares@darkstar:~/Downloads/martian$ make all make -C kmodule/ modules make[1]: Entering directory `/home/olivares/Downloads/martian/kmodule' make -C /lib/modules/2.6.27.7/build M="/home/olivares/Downloads/martian/kmodule" modules make[2]: Entering directory `/usr/src/linux-2.6.27.7' CC [M] /home/olivares/Downloads/martian/kmodule/martian.o /home/olivares/Downloads/martian/kmodule/martian.c: In function 'martian_isr': /home/olivares/Downloads/martian/kmodule/martian.c:131: warning: value computed is not used CC [M] /home/olivares/Downloads/martian/kmodule/marsio.o /home/olivares/Downloads/martian/kmodule/marsio.c:359: warning: 'mars_read_register_rem' defined but not used /home/olivares/Downloads/martian/kmodule/marsio.c:372: warning: 'mars_write_register_rem' defined but not used CC [M] /home/olivares/Downloads/martian/kmodule/mfifo.o LD [M] /home/olivares/Downloads/martian/kmodule/martian_dev.o Building modules, stage 2. MODPOST 1 modules CC /home/olivares/Downloads/martian/kmodule/martian_dev.mod.o LD [M] /home/olivares/Downloads/martian/kmodule/martian_dev.ko make[2]: Leaving directory `/usr/src/linux-2.6.27.7' make[1]: Leaving directory `/home/olivares/Downloads/martian/kmodule' make -C modem/ all make[1]: Entering directory `/home/olivares/Downloads/martian/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 tweakrelocsdynamic.c:27:22: error: asm/page.h: No such file or directory tweakrelocsdynamic.c: In function 'tweak_relocs_in_section': tweakrelocsdynamic.c:241: error: 'PAGE_MASK' undeclared (first use in this function) tweakrelocsdynamic.c:241: error: (Each undeclared identifier is reported only once tweakrelocsdynamic.c:241: error: for each function it appears in.) tweakrelocsdynamic.c:241: error: 'PAGE_SIZE' undeclared (first use in this function) make[1]: *** [tweakrelocsdynamic.o] Error 1 make[1]: Leaving directory `/home/olivares/Downloads/martian/modem' make: *** [all] Error 2 olivares@darkstar:~/Downloads/martian$ make clean make -C kmodule/ clean make[1]: Entering directory `/home/olivares/Downloads/martian/kmodule' make -C /lib/modules/2.6.27.7/build M="/home/olivares/Downloads/martian/kmodule" clean make[2]: Entering directory `/usr/src/linux-2.6.27.7' CLEAN /home/olivares/Downloads/martian/kmodule/.tmp_versions CLEAN /home/olivares/Downloads/martian/kmodule/Module.symvers make[2]: Leaving directory `/usr/src/linux-2.6.27.7' make[1]: Leaving directory `/home/olivares/Downloads/martian/kmodule' make -C modem/ clean make[1]: Entering directory `/home/olivares/Downloads/martian/modem' RM OBJS RM BINS RM TOOLS make[1]: Leaving directory `/home/olivares/Downloads/martian/modem' olivares@darkstar:~/Downloads/martian$ cp / ~/Downloads/martian-full-20080625/modem m/tweakrelocsdynamic.c ~/Downloads/martian/modem/ olivares@darkstar:~/Downloads/martian$ make all make -C kmodule/ modules make[1]: Entering directory `/home/olivares/Downloads/martian/kmodule' make -C /lib/modules/2.6.27.7/build M="/home/olivares/Downloads/martian/kmodule" modules make[2]: Entering directory `/usr/src/linux-2.6.27.7' CC [M] /home/olivares/Downloads/martian/kmodule/martian.o /home/olivares/Downloads/martian/kmodule/martian.c: In function 'martian_isr': /home/olivares/Downloads/martian/kmodule/martian.c:131: warning: value computed is not used CC [M] /home/olivares/Downloads/martian/kmodule/marsio.o /home/olivares/Downloads/martian/kmodule/marsio.c:359: warning: 'mars_read_register_rem' defined but not used /home/olivares/Downloads/martian/kmodule/marsio.c:372: warning: 'mars_write_register_rem' defined but not used CC [M] /home/olivares/Downloads/martian/kmodule/mfifo.o LD [M] /home/olivares/Downloads/martian/kmodule/martian_dev.o Building modules, stage 2. MODPOST 1 modules CC /home/olivares/Downloads/martian/kmodule/martian_dev.mod.o LD [M] /home/olivares/Downloads/martian/kmodule/martian_dev.ko make[2]: Leaving directory `/usr/src/linux-2.6.27.7' make[1]: Leaving directory `/home/olivares/Downloads/martian/kmodule' make -C modem/ all make[1]: Entering directory `/home/olivares/Downloads/martian/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/modem' olivares@darkstar:~/Downloads/martian$ su -c - Password: Somewhere, something incredible is waiting to be known. -- Carl Sagan root@darkstar:~# exit logout olivares@darkstar:~/Downloads/martian$ su Password: root@darkstar:/home/olivares/Downloads/martian# make install make -C kmodule/ install make[1]: Entering directory `/home/olivares/Downloads/martian/kmodule' make -C /lib/modules/2.6.27.7/build M="/home/olivares/Downloads/martian/kmodule" modules_install make[2]: Entering directory `/usr/src/linux-2.6.27.7' INSTALL /home/olivares/Downloads/martian/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/kmodule' make -C modem/ install make[1]: Entering directory `/home/olivares/Downloads/martian/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/modem' root@darkstar:/home/olivares/Downloads/martian# exit exit olivares@darkstar:~/Downloads/martian$ modpr s su - Password: Good news. Ten weeks from Friday will be a pretty good day. root@darkstar:~# modprobe martian_dev FATAL: Module martian_dev not found. root@darkstar:~# ls /lib/modules/2.6.27.7/ex -smp/ build/ modules.dep.bin modules.seriomap extra/ modules.ieee1394map modules.symbols kernel/ modules.inputmap modules.symbols.bin modules.alias modules.isapnpmap modules.usbmap modules.alias.bin modules.ofmap source/ modules.ccwmap modules.order modules.dep modules.pcimap root@darkstar:~# ls /lib/modules/2.6.27.7-smp/extra/martian_dev.ko -l -rw-r--r-- 1 root root 37651 2008-12-19 22:51 [0m[00m/lib/modules/2.6.27.7-smp/extra/martian_dev.ko[0m [mroot@darkstar:~# exit logout olivares@darkstar:~/Downloads/martian$ exit exit Script done on Fri 19 Dec 2008 10:52:47 PM CST