Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: ethner card problem
- To: <tlug@example.com>
- Subject: Re: ethner card problem
- From: "Ulrike Schmidt" <ulrike@example.com>
- Date: Wed, 20 Sep 2000 20:28:38 +0900
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain;charset="iso-8859-1"
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <j4W56C.A.L9.a-Jy5@example.com>
- Resent-Sender: tlug-request@example.com
This was more complicated than I thought, and unfortunately was not crowned by success, so here is a cleaned up log of my attempts ... >First, do apt-get install kernel-package. _Read the docs_; it will >make life a lot easier if you put the kernel sources and the pcmcia-cs >sources in the right places relative to one another. The kernel-package-7.04.potato.3/README suggests to unpack the kernel packages in /tmp/linux or similar. The kernel-package-7.04.potato.3/kernel/README.modules says the modules must appear in a standard location, choosen to be $(MODULE_LOC)/<mod-name>/. MODULE_LOC defaults to /usr/src/modules. The base of the kernel source tree is usually the /usr/src/linux directory. So if I go with the recommendation of the README I would make the directories /tmp/linux and /tmp/modules and unpack the sources into these directories. Right? >Next, get the kernel and the pcmcia-cs sources. I unsuccessfully tried apt-get source kernel apt-get source kernel-source and finally got what I wanted with apt-get install kernel-source-2.2.17 This created /usr/src/kernel-source-2.2.17.tar.bz2, which I unpacked in /tmp/linux, so I got a directory /tmp/linux/kernel-source-2.2.17. Getting the pcmcia-cs sources left me with three files and one directory. I unpacked pcmcia-cs_3.1.8.orig.tar.gz and compared it with the content of the already unpacked directory, and there were some differences. I decided to stick to the automatically unpacked one and tried to copy it into /tmp/modules, but there are some symlinks to non-existent files: debian:/tmp/modules# cp -R ../pcmcia-cs-3.1.8/ . cp: ../pcmcia-cs-3.1.8/include/linux/config.h: No such file or directory cp: ../pcmcia-cs-3.1.8/include/linux/version.h: No such file or directory cp: ../pcmcia-cs-3.1.8/include/linux/compile.h: No such file or directory debian:/tmp/modules# ls -l ../pcmcia-cs-3.1.8/include/linux/*.h lrwxrwxrwx 1 root root 18 Sep 20 22:53 ../pcmcia-cs-3.1.8/include/linux/compile.h -> ../pcmcia/config.h lrwxrwxrwx 1 root root 18 Sep 20 22:53 ../pcmcia-cs-3.1.8/include/linux/config.h -> ../pcmcia/config.h -r--r--r-- 1 uli uli 319 Sep 15 1999 ../pcmcia-cs-3.1.8/include/linux/init.h -r--r--r-- 1 uli uli 4330 Aug 5 1999 ../pcmcia-cs-3.1.8/include/linux/pnp_bios.h -r--r--r-- 1 uli uli 3156 Aug 5 1999 ../pcmcia-cs-3.1.8/include/linux/pnp_resource.h lrwxrwxrwx 1 root root 18 Sep 20 22:53 ../pcmcia-cs-3.1.8/include/linux/version.h -> ../pcmcia/config.h To deal with or escape this problem instead of copying I just made a symlink to this directory in /tmp/modules, following the README.modules. There was also written something about setting MODULE_LOC in the environment or in the configuration file. Did not know where the configuration file was or what it was called but after some grepping my last hypothesis was that I should put a line into kernel-pkg.conf with MODULE_LOC := /tmp/modules To be on the safe side I went for setting the environment variable. According to the README.modules I should now go to the kernel source tree, usually /usr/src/linux, in my case /tmp/linux and >Do > >make-kpkg --revision uli+0 menuconfig # configure your own kernel version debian:/tmp/linux# make-kpkg --revision uli+0 menuconfig Error: Unknown target menuconfig Known Targets are: ============================================================================ === | Targets | Automatically builds | ============================================================================ === | clean | | | buildpackage | Builds the whole package | | binary | Builds kernel_{source,headers,image,doc} | | binary-indep | | | kernel_source | | | kernel_doc | | | binary-arch | | | kernel_headers | | | kernel_image | Builds build | | build | | | modules | | | modules_image | | | modules_config | | | modules_clean | | | configure | If you wish to edit files | | | generated by make config | ============================================================================ === See /usr/share/kernel-package/rules for details. I didn't understand what is written in rules, so I tried configure instead of menuconfig, but: debian:/tmp/linux# make-kpkg --revision uli+0 configure We do not seem to be in a top level linux kernel source directory tree. Since we are trying to make a kernel package, that does not make sense. Please change directory to an top level linux kernel source directory, and try again. (If in case I am wrong, and this is indeed a top level linux kernel source directory, then I have gotten sadly out of date with current kernels, and you should upgrade kernel-package) So I went one level down, wondering whether my hypothesis about the locations of the modules was still correct, but that did not matter for the moment, since: debian:/tmp/linux# cd kernel-source-2.2.17/ debian:/tmp/linux/kernel-source-2.2.17# make-kpkg --revision uli+0 configure test ! -f stamp-debian && test ! -f debian/official && \ rm -rf debian && install -p -d -o root -g root -m 755 debian test ! -f stamp-debian -a \ ! \( -f debian/official -a -f debian/control \) && \ sed -e 's/=V/2.2.17/g' -e 's/=D/uli+0/g' \ -e 's/=A/i386/g' -e 's/=SA//g' \ -e 's/=L/lilo (>= 19.1), /g' \ -e 's/=M/Unknown Kernel Package Maintainer <unknown@example.com in.etc.kernel-pkg.conf>/g' \ /usr/share/kernel-package/Control > debian/control test ! -f stamp-debian && test ! -f debian/official && \ sed -e 's/=V/2.2.17/g' -e 's/=D/uli+0/g' \ -e 's/=A/i386/g' -e 's/=M/Unknown Kernel Package Maintainer <unknown@example.com gured.in.etc.kernel-pkg.conf>/g' \ /usr/share/kernel-package/changelog > debian/changelog test ! -f debian/rules && \ install -p -o root -g root -m 755 /usr/share/kernel-package/rules debian/r ules touch stamp-debian test -f .config || (test -f .config.save && \ cp -pf .config.save .config) || \ true test -f .config || (test -f /usr/share/kernel-package/Config/config.i586 && \ cp -pf /usr/share/kernel-package/Config/config.i586 .config) || \ true test -f .config || (test -f /usr/share/kernel-package/config && \ cp -pf /usr/share/kernel-package/config .config) || \ true test -f .config || /bin/sh: -c: line 2: syntax error: unexpected end of file make: *** [.config] Error 2 debian:/tmp/linux/kernel-source-2.2.17# So what did I do wrong? Uli
- Follow-Ups:
- Re: ethner card problem
- From: "Stephen J. Turnbull" <turnbull@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: hardware doctors!
- Next by Date: Re: ethner card problem
- Prev by thread: Re: ethner card problem
- Next by thread: Re: ethner card problem
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links