LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Live CD Update Module (https://www.linuxquestions.org/questions/linux-hardware-18/live-cd-update-module-633104/)

Rivitir 04-04-2008 03:57 PM

Update Device Module (Driver) on Live CD
 
I currently use Linux for several jobs, one of them is imaging windows PC's. I normally use either RIPLinuX or Knoppix to boot up and then use ntfsclone. Problem is I just bought a bunch of Optiplex 755's and the old e1000.ko module doesn't work with the onboard nic. I did some searching and found the following thread:

http://www.linuxquestions.org/questi...tiplex+755+nic

This I'm sure would solve my problem, but I don't know how to install a module on a live CD. I never had to do this before. Can I simply boot up and use insmod/modprobe to install the updated module? Or do I have to create my own live CD with the module installed to do this?

Thanks in advance for any help you can provide.

aus9 04-05-2008 03:13 AM

1) I have not remaster knoppix but it has dox on howto but I have remastered rip and here is online doc...its also on the cd

http://ftp.cvut.cz/rip/docs/RIPLinux-1.8.readme

2) so follow those instructions or the latest off the cd...you can leave that new folder
/rip2 on your system or copy to usb etc

3) if this is the first time you attempt any remaster I suggest you use a cdrw or run the new iso in a emulator thingee....I strongly recommend virtualbox.

4) I have no read the module build instruction but when you create the new folder what you need to do is chroot into that folder and therefore you are using tools relative to rip and once you have built your module...relative to rip if the instruction does not already say so...run depmod -a ....then complete the repacking or remaster iso instructions

5) I am aware that when you test under vbox...you are using an emulated bios with emulated hardware so its not going to detect your net card....but it will at least prove the iso works so if you have no cdrw...you do not run the risk of creating a coaster.

good luck

Rivitir 04-07-2008 11:47 AM

I followed your instructions and the ones in the README file, however I haven't gotten very far. Every time I try and compile the source I get an error saying that the kernel source isn't found and I need to install the kernel development package. I tried running the make install both in chroot and non chroot.

I do have the kernel source downloaded (via apt-get install kernel-source) but it's the debian version since I'm running debian.

Do I need to download the latest from slack or kernel.org? Do I need to make any changes in the e1000 Makefile so it's pointing to the right directory for kernel files? Am I looking in the completely wrong direction? Keep in mind this is the first time I've ever had to remaster a live CD distro.

Thanks again for any help.

aus9 04-07-2008 08:44 PM

I am not sure which distro you are referring to so I split

a) if you mean rip...I have not recompiled that b4 ....just checked it in vbox and yep has no /usr/src/...so no kernel headers or source
b) have never attempted knoppix remaster...I have a cd edition 5.1.1
at /usr/src/knoppix-kernel.readme it says there is a config file on the dvd edition but to use the vanilla kernel

so no matter which distro you are talking about....
import into the rip or knoppix unpack....a full vanilla kernel

2) but this introduces a problem with the config file....please save that file elsewhere...the one from rip or knoppix....and study the filesystem format....live cds use things like cramfs unionfs

3) the bonus is by running a vanilla...I do on Mdv...there is already a e1000 available as per /linux-2.6.24.2/Documentation/networking/e1000.txt

4) but knoppix is already full....so me thinks you may be better off to copy your vanilla into rip first ....vanilla unpacked is about 350 Megs and my rip4 is 72 megs so you should be able to just leave the full vanilla on the the iso you are playing with.

aus9 04-07-2008 08:55 PM

from the rip link I posted
The replacement kernel must have this support builtin.

CONFIG_SHMEM=y
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_INITRD=y
CONFIG_ISO9660_FS=y
CONFIG_EXT2_FS=y
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y "MSDOS and/or VFAT for USB Flash drive access!"
CONFIG_VFAT_FS=y
CONFIG_PROC_FS=y
CONFIG_TMPFS=y

that link mentions slackware so maybe that is what you were referring to?

but by using a vanilla you can break any old blood bonds you have felt obliged to uphold.

aus9 04-08-2008 02:28 AM

ok here is the non-vanilla kernel config that rip uses
http://www.tux.org/pub/people/kent-r...ocs/kernel.txt

accordingly its already got
CONFIG_E1000=y

so you can use the same config if you need to compile a vanilla....but a vanilla will need more packages installed....so to be sure....I have rip version 4.3


what version with old e1000 of rip are you using?

aus9 04-08-2008 02:55 AM

leaping ahead...edition rip 4.3

after I chrooted into /rip2/

looking for kernel dependencies...not all but the main ones

bash-3.2# gcc --version
bash: gcc: command not found
bash-3.2# make --version
bash: make: command not found
bash-3.2# ld -v
bash: ld: command not found
bash-3.2# fdformat --version
bash: fdformat: command not found
bash-3.2# depmod -V
module-init-tools 3.4
bash-3.2# tune2fs
tune2fs 1.40.2 (12-Jul-2007)
bash-3.2# showmount --version
showmount for 1.1.1

and as per previous reference Kent uses slackware 12.0 packages.

aus9 04-08-2008 03:13 AM

pls use a mirror close to you...but here is a list of where packages are
http://mirror.internode.on.net/pub/s...ware/FILE_LIST

assuming you are going to run make menucofig...packages a d l seem a good place to start.

2) you may also need a good slackware based kernel compile guide. I no longer use slack so I will let you search for a specific one but I use
http://www.digitalhermit.com/linux/K...ild-HOWTO.html

Rivitir 04-09-2008 10:57 AM

I'm trying to compile a vanilla kernel because I figured it would be easier, but I'm having issues. Since I couldn't find and tgz files to install gcc and the rest of the tools needed I ran through the list of dependencies as you did on my debian system, I thought I could compile the kernel on it. Here is what I have installed:

Code:

LINUX1:/usr/src/linux-2.6.24# gcc --version
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

LINUX1:/usr/src/linux-2.6.24# make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i486-pc-linux-gnu
LINUX1:/usr/src/linux-2.6.24# ld -v
GNU ld version 2.17 Debian GNU/Linux
LINUX1:/usr/src/linux-2.6.24# fdformat --version
fdformat from util-linux-2.12r
LINUX1:/usr/src/linux-2.6.24# depmod -V
module-init-tools 3.3-pre2
LINUX1:/usr/src/linux-2.6.24# tune2fs
tune2fs 1.40-WIP (14-Nov-2006)
Usage: tune2fs [-c max_mounts_count] [-e errors_behavior] [-g group]
        [-i interval[d|m|w]] [-j] [-J journal_options]
        [-l] [-s sparse_flag] [-m reserved_blocks_percent]
        [-o [^]mount_options[,...]] [-r reserved_blocks_count]
        [-u user] [-C mount_count] [-L volume_label] [-M last_mounted_dir]
        [-O [^]feature[,...]] [-T last_check_time] [-U UUID] device
LINUX1:/usr/src/linux-2.6.24# showmount --version
-bash: showmount: command not found
LINUX1:/usr/src/linux-2.6.24# apt-get install showmount
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package showmount
LINUX1:/usr/src/linux-2.6.24#

I figured I would go ahead and try and run make menuconfig, and here is the errors I'm getting:

Code:

LINUX1:/usr/src/linux-2.6.24# make menuconfig
  HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c:107:23: error: sys/types.h: No such file or directory
scripts/basic/fixdep.c:108:22: error: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:109:22: error: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:110:20: error: unistd.h: No such file or directory
scripts/basic/fixdep.c:111:19: error: fcntl.h: No such file or directory
scripts/basic/fixdep.c:112:20: error: string.h: No such file or directory
scripts/basic/fixdep.c:113:20: error: stdlib.h: No such file or directory
scripts/basic/fixdep.c:114:19: error: stdio.h: No such file or directory
In file included from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/syslimits.h:7,
                from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:11,
                from scripts/basic/fixdep.c:115:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:122:61: error: limits.h: No such file or directory
scripts/basic/fixdep.c:116:19: error: ctype.h: No such file or directory
scripts/basic/fixdep.c:117:23: error: arpa/inet.h: No such file or directory
scripts/basic/fixdep.c: In function âusageâ:
scripts/basic/fixdep.c:131: warning: implicit declaration of function âfprintfâ
scripts/basic/fixdep.c:131: warning: incompatible implicit declaration of built-in function âfprintfâ
scripts/basic/fixdep.c:131: error: âstderrâ undeclared (first use in this function)
scripts/basic/fixdep.c:131: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:131: error: for each function it appears in.)
scripts/basic/fixdep.c:132: warning: implicit declaration of function âexitâ
scripts/basic/fixdep.c:132: warning: incompatible implicit declaration of built-in function âexitâ
scripts/basic/fixdep.c: In function âprint_cmdlineâ:
scripts/basic/fixdep.c:140: warning: implicit declaration of function âprintfâ
scripts/basic/fixdep.c:140: warning: incompatible implicit declaration of built-in function âprintfâ
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:143: error: âNULLâ undeclared here (not in a function)
scripts/basic/fixdep.c: In function âgrow_configâ:
scripts/basic/fixdep.c:156: warning: implicit declaration of function âreallocâ
scripts/basic/fixdep.c:156: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:158: warning: implicit declaration of function âperrorâ
scripts/basic/fixdep.c:158: warning: incompatible implicit declaration of built-in function âexitâ
scripts/basic/fixdep.c: In function âis_defined_configâ:
scripts/basic/fixdep.c:174: warning: implicit declaration of function âmemcmpâ
scripts/basic/fixdep.c: In function âdefine_configâ:
scripts/basic/fixdep.c:187: warning: implicit declaration of function âmemcpyâ
scripts/basic/fixdep.c:187: warning: incompatible implicit declaration of built-in function âmemcpyâ
scripts/basic/fixdep.c: In function âuse_configâ:
scripts/basic/fixdep.c:206: error: âPATH_MAXâ undeclared (first use in this function)
scripts/basic/fixdep.c:214: warning: incompatible implicit declaration of built-in function âmemcpyâ
scripts/basic/fixdep.c:220: warning: implicit declaration of function âtolowerâ
scripts/basic/fixdep.c:222: warning: incompatible implicit declaration of built-in function âprintfâ
scripts/basic/fixdep.c:206: warning: unused variable âsâ
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:225: error: expected declaration specifiers or â...â before âsize_tâ
scripts/basic/fixdep.c: In function âparse_config_fileâ:
scripts/basic/fixdep.c:227: error: âlenâ undeclared (first use in this function)
scripts/basic/fixdep.c:233: warning: implicit declaration of function ântohlâ
scripts/basic/fixdep.c:244: warning: implicit declaration of function âisalnumâ
scripts/basic/fixdep.c: In function âstrrcmpâ:
scripts/basic/fixdep.c:261: warning: implicit declaration of function âstrlenâ
scripts/basic/fixdep.c:261: warning: incompatible implicit declaration of built-in function âstrlenâ
scripts/basic/fixdep.c: In function âdo_config_fileâ:
scripts/basic/fixdep.c:272: error: storage size of âstâ isnât known
scripts/basic/fixdep.c:276: warning: implicit declaration of function âopenâ
scripts/basic/fixdep.c:276: error: âO_RDONLYâ undeclared (first use in this function)
scripts/basic/fixdep.c:278: warning: incompatible implicit declaration of built-in function âfprintfâ
scripts/basic/fixdep.c:278: error: âstderrâ undeclared (first use in this function)
scripts/basic/fixdep.c:280: warning: incompatible implicit declaration of built-in function âexitâ
scripts/basic/fixdep.c:282: warning: implicit declaration of function âfstatâ
scripts/basic/fixdep.c:284: warning: implicit declaration of function âcloseâ
scripts/basic/fixdep.c:287: warning: implicit declaration of function âmmapâ
scripts/basic/fixdep.c:287: error: âPROT_READâ undeclared (first use in this function)
scripts/basic/fixdep.c:287: error: âMAP_PRIVATEâ undeclared (first use in this function)
scripts/basic/fixdep.c:287: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:294: error: too many arguments to function âparse_config_fileâ
scripts/basic/fixdep.c:296: warning: implicit declaration of function âmunmapâ
scripts/basic/fixdep.c:272: warning: unused variable âstâ
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:301: error: expected declaration specifiers or â...â before âsize_tâ
scripts/basic/fixdep.c: In function âparse_dep_fileâ:
scripts/basic/fixdep.c:304: error: âlenâ undeclared (first use in this function)
scripts/basic/fixdep.c:306: error: âPATH_MAXâ undeclared (first use in this function)
scripts/basic/fixdep.c:308: warning: implicit declaration of function âstrchrâ
scripts/basic/fixdep.c:308: warning: incompatible implicit declaration of built-in function âstrchrâ
scripts/basic/fixdep.c:310: warning: incompatible implicit declaration of built-in function âfprintfâ
scripts/basic/fixdep.c:310: error: âstderrâ undeclared (first use in this function)
scripts/basic/fixdep.c:311: warning: incompatible implicit declaration of built-in function âexitâ
scripts/basic/fixdep.c:313: warning: incompatible implicit declaration of built-in function âmemcpyâ
scripts/basic/fixdep.c:314: warning: incompatible implicit declaration of built-in function âprintfâ
scripts/basic/fixdep.c:306: warning: unused variable âsâ
scripts/basic/fixdep.c: In function âprint_depsâ:
scripts/basic/fixdep.c:343: error: storage size of âstâ isnât known
scripts/basic/fixdep.c:347: error: âO_RDONLYâ undeclared (first use in this function)
scripts/basic/fixdep.c:349: warning: incompatible implicit declaration of built-in function âfprintfâ
scripts/basic/fixdep.c:349: error: âstderrâ undeclared (first use in this function)
scripts/basic/fixdep.c:351: warning: incompatible implicit declaration of built-in function âexitâ
scripts/basic/fixdep.c:355: warning: incompatible implicit declaration of built-in function âfprintfâ
scripts/basic/fixdep.c:359: error: âPROT_READâ undeclared (first use in this function)
scripts/basic/fixdep.c:359: error: âMAP_PRIVATEâ undeclared (first use in this function)
scripts/basic/fixdep.c:359: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:366: error: too many arguments to function âparse_dep_fileâ
scripts/basic/fixdep.c:343: warning: unused variable âstâ
scripts/basic/fixdep.c: In function âtrapsâ:
scripts/basic/fixdep.c:378: warning: incompatible implicit declaration of built-in function âfprintfâ
scripts/basic/fixdep.c:378: error: âstderrâ undeclared (first use in this function)
scripts/basic/fixdep.c:380: warning: incompatible implicit declaration of built-in function âexitâ
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
LINUX1:/usr/src/linux-2.6.24#

The Kernel I downloaded is linux-2.6.24.tar.gz & patch-2.6.24.4.gz. I followed the README file included with the kernel to install the patch.

Thanks again for your help aus9.

Rivitir 04-09-2008 12:02 PM

--Update--

OK, I think I figured out part of my problem. I did a quick google search and found the following:
http://forum.kernelnewbies.org/read.php?10,18,18

It looked like the same issues I was having so I installed the debian build-essential package and then tried make menuconfig. Here is what happened:

Code:

LINUX1:/usr/src/linux-2.6.24# apt-get install build-essential
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  g++ g++-4.1 libc6-dev libstdc++6-4.1-dev linux-kernel-headers
Suggested packages:
  gcc-4.1-doc lib64stdc++6 glibc-doc manpages-dev libstdc++6-4.1-doc
The following NEW packages will be installed:
  build-essential g++ g++-4.1 libc6-dev libstdc++6-4.1-dev
  linux-kernel-headers
0 upgraded, 6 newly installed, 0 to remove and 1 not upgraded.
Need to get 8850kB of archives.
After unpacking 38.4MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://http.us.debian.org stable/main linux-kernel-headers 2.6.18-7 [1875kB]
Get:2 http://http.us.debian.org stable/main libc6-dev 2.3.6.ds1-13etch5 [2717kB]
Get:3 http://http.us.debian.org stable/main libstdc++6-4.1-dev 4.1.1-21 [1634kB]
Get:4 http://http.us.debian.org stable/main g++-4.1 4.1.1-21 [2615kB]
Get:5 http://http.us.debian.org stable/main g++ 4:4.1.1-15 [1360B]
Get:6 http://http.us.debian.org stable/main build-essential 11.3 [6982B]
Fetched 8850kB in 1m32s (95.7kB/s)
Selecting previously deselected package linux-kernel-headers.
(Reading database ... 108575 files and directories currently installed.)
Unpacking linux-kernel-headers (from .../linux-kernel-headers_2.6.18-7_i386.deb) ...
Selecting previously deselected package libc6-dev.
Unpacking libc6-dev (from .../libc6-dev_2.3.6.ds1-13etch5_i386.deb) ...
Selecting previously deselected package libstdc++6-4.1-dev.
Unpacking libstdc++6-4.1-dev (from .../libstdc++6-4.1-dev_4.1.1-21_i386.deb) ...
Selecting previously deselected package g++-4.1.
Unpacking g++-4.1 (from .../g++-4.1_4.1.1-21_i386.deb) ...
Selecting previously deselected package g++.
Unpacking g++ (from .../g++_4%3a4.1.1-15_i386.deb) ...
Selecting previously deselected package build-essential.
Unpacking build-essential (from .../build-essential_11.3_i386.deb) ...
Setting up linux-kernel-headers (2.6.18-7) ...
Setting up libc6-dev (2.3.6.ds1-13etch5) ...
Setting up libstdc++6-4.1-dev (4.1.1-21) ...
Setting up g++-4.1 (4.1.1-21) ...
Setting up g++ (4.1.1-15) ...

Setting up build-essential (11.3) ...
LINUX1:/usr/src/linux-2.6.24# make menuconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: No such file or directory
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:97: error: expected specifier-qualifier-list before âchtypeâ
scripts/kconfig/lxdialog/dialog.h:187: error: expected â)â before â*â token
scripts/kconfig/lxdialog/dialog.h:194: error: expected â)â before â*â token
scripts/kconfig/lxdialog/dialog.h:196: error: expected â)â before â*â token
scripts/kconfig/lxdialog/dialog.h:197: error: expected â)â before â*â token
scripts/kconfig/lxdialog/dialog.h:198: error: expected â)â before â*â token
scripts/kconfig/lxdialog/dialog.h:199: error: expected â)â before â*â token
scripts/kconfig/lxdialog/dialog.h:201: error: expected â)â before â*â token
scripts/kconfig/lxdialog/checklist.c:31: error: expected â)â before â*â token
scripts/kconfig/lxdialog/checklist.c:59: error: expected â)â before â*â token
scripts/kconfig/lxdialog/checklist.c:95: error: expected â)â before â*â token
scripts/kconfig/lxdialog/checklist.c: In function âdialog_checklistâ:
scripts/kconfig/lxdialog/checklist.c:116: error: âWINDOWâ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:116: error: (Each undeclared identifier is reported only once
scripts/kconfig/lxdialog/checklist.c:116: error: for each function it appears in.)
scripts/kconfig/lxdialog/checklist.c:116: error: âdialogâ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:116: error: âlistâ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:116: warning: left-hand operand of comma expression has no effect
scripts/kconfig/lxdialog/checklist.c:129: warning: implicit declaration of function âgetmaxyâ
scripts/kconfig/lxdialog/checklist.c:129: error: âstdscrâ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:130: error: âKEY_MAXâ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:131: warning: implicit declaration of function âgetmaxxâ
scripts/kconfig/lxdialog/checklist.c:137: error: âCOLSâ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:138: error: âLINESâ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:140: warning: implicit declaration of function âdraw_shadowâ
scripts/kconfig/lxdialog/checklist.c:142: warning: implicit declaration of function ânewwinâ
scripts/kconfig/lxdialog/checklist.c:143: warning: implicit declaration of function âkeypadâ
scripts/kconfig/lxdialog/checklist.c:143: error: âTRUEâ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:145: warning: implicit declaration of function âdraw_boxâ
scripts/kconfig/lxdialog/checklist.c:146: error: âstruct dialog_colorâ has no member named âatrâ
scripts/kconfig/lxdialog/checklist.c:146: error: âstruct dialog_colorâ has no member named âatrâ
scripts/kconfig/lxdialog/checklist.c:147: warning: implicit declaration of function âwattrsetâ
scripts/kconfig/lxdialog/checklist.c:147: error: âstruct dialog_colorâ has no member named âatrâ
scripts/kconfig/lxdialog/checklist.c:148: warning: implicit declaration of function âmvwaddchâ
scripts/kconfig/lxdialog/checklist.c:150: warning: implicit declaration of function âwaddchâ
scripts/kconfig/lxdialog/checklist.c:151: error: âstruct dialog_colorâ has no member named âatrâ
scripts/kconfig/lxdialog/checklist.c:154: warning: implicit declaration of function âprint_titleâ
scripts/kconfig/lxdialog/checklist.c:156: error: âstruct dialog_colorâ has no member named âatrâ
scripts/kconfig/lxdialog/checklist.c:157: warning: implicit declaration of function âprint_autowrapâ
scripts/kconfig/lxdialog/checklist.c:164: warning: implicit declaration of function âsubwinâ
scripts/kconfig/lxdialog/checklist.c:171: error: âstruct dialog_colorâ has no member named âatrâ
scripts/kconfig/lxdialog/checklist.c:171: error: âstruct dialog_colorâ has no member named âatrâ
scripts/kconfig/lxdialog/checklist.c:189: warning: implicit declaration of function âprint_itemâ
scripts/kconfig/lxdialog/checklist.c:192: warning: implicit declaration of function âprint_arrowsâ
scripts/kconfig/lxdialog/checklist.c:195: warning: implicit declaration of function âprint_buttonsâ
scripts/kconfig/lxdialog/checklist.c:197: warning: implicit declaration of function âwnoutrefreshâ
scripts/kconfig/lxdialog/checklist.c:199: warning: implicit declaration of function âdoupdateâ
scripts/kconfig/lxdialog/checklist.c:202: warning: implicit declaration of function âwgetchâ
scripts/kconfig/lxdialog/checklist.c:210: error: âKEY_UPâ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:210: error: âKEY_DOWNâ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:220: error: âFALSEâ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:221: warning: implicit declaration of function âscrollokâ
scripts/kconfig/lxdialog/checklist.c:222: warning: implicit declaration of function âwscrlâ
scripts/kconfig/lxdialog/checklist.c:232: warning: implicit declaration of function âwrefreshâ
scripts/kconfig/lxdialog/checklist.c:293: warning: implicit declaration of function âdelwinâ
scripts/kconfig/lxdialog/checklist.c:297: error: âKEY_LEFTâ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:298: error: âKEY_RIGHTâ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:310: warning: implicit declaration of function âon_key_escâ
scripts/kconfig/lxdialog/checklist.c:312: error: âKEY_RESIZEâ undeclared (first use in this function)
make[1]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
make: *** [menuconfig] Error 2
LINUX1:/usr/src/linux-2.6.24#

It seems to let me get a little farther. Am I missing other packages? Thanks!


----Another Update----


OK, I think I got the dependencies figured out. I found another thread:
http://forums.debian.net/viewtopic.p...625080b6b1f2ac
And the post at the bottom simply says:
Code:

apt-get install unp libncurses5-dev
I installed this and now it works! I can get into make menuconfig no problem. However, I am getting some errors fly across the screen before the menuconfig opens:

Code:

LINUX1:/usr/src/linux-2.6.24# make menuconfig
scripts/kconfig/mconf arch/x86/Kconfig
#
# using defaults found in /boot/config-2.6.18-5-686
#
/boot/config-2.6.18-5-686:142:warning: trying to assign nonexistent symbol X86_CMPXCHG64
/boot/config-2.6.18-5-686:197:warning: trying to assign nonexistent symbol REGPARM
...
/boot/config-2.6.18-5-686:3447:warning: trying to assign nonexistent symbol UNWIND_INFO


Your kernel configuration changes were NOT saved.

LINUX1:/usr/src/linux-2.6.24#

It's obviously trying to use the config for my debian kernel. Is there a way for me to change this or do I even have to worry about it?

aus9 04-09-2008 07:03 PM

1) I ran through the list of dependencies......yes but we are trying to build it in a chroot environment on an unpacked rip live cd.

unless you are trying to tell me you have never done a vanilla b4...in which case you would be wise to try building one to test on your real hardware.

But its still going to be a different build than rip due to its structure and I still think it would be wise to test the iso image in an emulator such as virtual box


EDIT found a nice slack howto
http://www.slackbook.org/html/system...KERNEL-COMPILE


2) I need to repeat my earlier question...what edition of rip are you using pls?

aus9 04-09-2008 08:29 PM

now I am thinking ahead.

assuming your answer is 4.3 live cd....I will attempt a vanilla install as well. But if you would like me to do that....I need your assistance....I am not going to make an iso image and get into trouble with GPL police because I can not at my online storage host his source. Instead if I succeed...I will only link to a kernel and initrd for your consideration.

If you wish to parallel build please do so.

To signify you want help pls upload the results of your lspci > /home/name/pci.txt to an online storage....if you have none pls consider using www.ripway.com

2) further to your consent....can you provide a link to all hardware that is troublesome for rip so I can check it.

3) this might sound legalese...disclaimer that altho my final vanilla kernel...if posted....works in a vbox....that does not guarantee it will work with your hw.

and please be patient.

4) even if you do not agree....I will at least try to give you the names of the slack packages...and yes I should have mentioned ncurses-devel if you use make menuconfig

I realise this post will be rude to some....but I prefer to be bluntly honest so I am as transparent as possible.

I do not want to do it just for you.....so it will be to try and help others in a similar situation.

let me know if you understood any of this pls

aus9 04-10-2008 12:45 AM

well some success and some failure

1) use the unpack live cd ..../doc/contents.txt to see what you have.

2) the old link to kernel rebuild named pcmcia-cs but its now called pcmciautils
EDIT
command to check is
pccardctl -V

3) have not found libncurses-devel....the contents shows ncurses is installed but we need the dev package to use make menuconfig.

4) I tried a number of times here with no luck
http://packages.slackware.it/

I tried libncurses-devel libncurses ncurses-devel ncurses ....I got some hits but not for the dev package

4) Generally speaking I downloaded other packages which are tgz....moved them to the unpack folder but I created a new folder
/rip2/boot/1/slack then I chrooted into /rip2/boot/1/ then cd to slack

then run commands
installpkg (package name)

5) I am aware you can do them all at once but I was also running a verification command as per kernel rebuild link from post 8

aus9 04-10-2008 08:38 AM

I have hit a wall (ok it was human but they are not groaning much now)

its got me beat...this libncurses-devel.

so time to abandon ship?

would you consider d/loading a recent live cd that has k 2.6.24.4?
http://distrowatch.com/table.php?distribution=slax

yes I know its not based on Debian but they are not yet released AFAIK thru a search of distrowatch for the most recent kernel.

slax dox suggests it all modular so you can whip in and whip out whatever you like...but I am hoping to go for a simple solution as my slackware braincells have faded in time.

thanks for any patience you have left in me

Rivitir 04-10-2008 09:24 AM

I'm using RIPLinuX 4.3. I tried to compile in the chroot environment but didn't have much luck trying to find all the packages in the .tgz format. So thats when I decided to try and compile the kernel on my debian box. I'm hoping I can simply build the kernel, replace the existing kernel and it will boot. We'll see.


---- Update ----

OK, I downloaded RIPLinuX 4.4 and tried it, no dice. I've also tried building my own kernel twice, each time I get an error that says kernel is corrupt or missing (RIP 4.3 iso). I made sure to follow the directions givin by the readme file. I'm sure I'm just missing something stupid. Is there anything I can post from my build that would help? Is there a way to pull up the kernel config that Rip 4.4 uses and put it in the 2.6.24.4 kernel I'm trying to build?

I'm going to go ahead with your suggestion and try slax, I'll let you know if it works. In the mean time if any one else can provide input aus9 and I would appreciate it!

Thanks again aus9 for your help. This so far has been quite a challenge for both of us.


All times are GMT -5. The time now is 05:11 PM.