Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Error while compiling the kernel 3.3.1. Post 302621843 by pinga123 on Wednesday 11th of April 2012 07:04:13 AM
Old 04-11-2012
Error while compiling the kernel 3.3.1.

Hi I m using redhat 6 with kernel release
2.6.32-71.el6.i686

I have downloaded latest kernel 3.3.1 from kernel.org .


when i run make module_install i get below error.

Code:
# make modules_install

/usr/src/kernels/linux-3.3.1/scripts/depmod.sh: line 37: 11314 Killed                  "$DEPMOD" "$@" "$KERNELRELEASE"
make: *** [_modinst_post] Error 137

Highlighting 37th line in bold.

Code:
# cat /usr/src/kernels/linux-3.3.1/scripts/depmod.sh
#!/bin/sh
#
# A depmod wrapper used by the toplevel Makefile

if test $# -ne 2; then
        echo "Usage: $0 /sbin/depmod <kernelrelease>" >&2
        exit 1
fi
DEPMOD=$1
KERNELRELEASE=$2

if ! test -r System.map -a -x "$DEPMOD"; then
        exit 0
fi
# older versions of depmod require the version string to start with three
# numbers, so we cheat with a symlink here
depmod_hack_needed=true
tmp_dir=$(mktemp -d ${TMPDIR:-/tmp}/depmod.XXXXXX)
mkdir -p "$tmp_dir/lib/modules/$KERNELRELEASE"
if "$DEPMOD" -b "$tmp_dir" $KERNELRELEASE 2>/dev/null; then
        if test -e "$tmp_dir/lib/modules/$KERNELRELEASE/modules.dep" -o \
                -e "$tmp_dir/lib/modules/$KERNELRELEASE/modules.dep.bin"; then
                depmod_hack_needed=false
        fi
fi
rm -rf "$tmp_dir"
if $depmod_hack_needed; then
        symlink="$INSTALL_MOD_PATH/lib/modules/99.98.$KERNELRELEASE"
        ln -s "$KERNELRELEASE" "$symlink"
        KERNELRELEASE=99.98.$KERNELRELEASE
fi

set -- -ae -F System.map
if test -n "$INSTALL_MOD_PATH"; then
        set -- "$@" -b "$INSTALL_MOD_PATH"
fi
"$DEPMOD" "$@" "$KERNELRELEASE"
ret=$?

if $depmod_hack_needed; then
        rm -f "$symlink"
fi

exit $ret

 

10 More Discussions You Might Find Interesting

1. Tips and Tutorials

Upgrading FC3 kernel 2.6.9-1.667 to 2.6.10 and compiling it

Upgrading FC3 kernel 2.6.9-1.667 to 2.6.10 and compiling it Upgrading FC3 kernel 2.6.9-1.667 to 2.6.10 and compiling it( almost same steps to upgrade to 2.6.11 and above ....note--> also check additional documentation) ############################################################# 1. First of... (0 Replies)
Discussion started by: fed.linuxgossip
0 Replies

2. UNIX for Advanced & Expert Users

problem when compiling and installing the kernel

hello; i'm trying to install a new kernel in fedora core 5 i'm using the following command: /usr/src/linux-2.6.15.1# make && make modules && make modules_install && make install but i always have the following error: ld: édition de lien finale en échec: Aucun espace disponible sur le périphérique ... (1 Reply)
Discussion started by: jalil smail
1 Replies

3. Red Hat

Compiling 2.6 Kernel. :confused:

Dear Linux Masters, I need ur help in the following: 1. Compiling 2.6 kernel. 2. my Redhat system is 2.4 kernel how to add 2.6 kernel. 3. I need minimum feature in 2.6 ( most probably related to networking) Please let me know if any sites to download 2.6 kernel. Can u all please help me... (2 Replies)
Discussion started by: ashokmeti
2 Replies

4. UNIX for Dummies Questions & Answers

Compiling Mach 3.0 Kernel

Hi, I am very new to this. I would like to compile the Mach 3.0 kernel. Can someone explain, step-by-step, how to turn all the Mach 3.0 kernel code into a single binary file that will run directly on an x86 computer? Also, once (and if) I get it working, what software works on it? My goal is... (2 Replies)
Discussion started by: dublinus
2 Replies

5. Linux

Help Cross compiling a kernel for an HP Jornada 728

Hello, I just bought an old Jornada 728 and, as you may know, it comes with Windows CE 3.0. I do not use Windows, so i wanted to create my own linux system for the Jornada. I know there are projects like Jlime, Familiar Linux, 720 Degrees, etc. But i want something based on the distribution i... (1 Reply)
Discussion started by: semash!
1 Replies

6. UNIX for Dummies Questions & Answers

Compiling Kernel for an Embedded System

-----Edit----- My original post was long and confusing. To sum it up, I am wondering how to do the following Debian based commands on an RPM type system. dpkg -i XXX.deb update-initramfs -k xxx -c update-grub I hope someone can provide some insight. Thanks in advance! --------------... (0 Replies)
Discussion started by: b4sakenxx
0 Replies

7. Linux

Automate compiling of linux kernel

Hi, I'm a newbie at kernel compilation. Currently trying to do a bash script to automate the compiling process of the linux kernel. I'm having some problems with automating the configuration. I know its possible to load an existing .config file in the make menuconfig screen prompt. But... (3 Replies)
Discussion started by: aloe_vera
3 Replies

8. Linux

kernel compiling

Hello, I have several questions to get awnsered about the newer linux kernels (2.6.25) and above. 1st question: Ive read that the newer kernels you can compile the marvell sd8686 driver from the source. can anyone confrim this? only binaries i see for that driver are for 2.6.24 and im already... (0 Replies)
Discussion started by: old noob
0 Replies

9. UNIX for Advanced & Expert Users

drbd module compiling error for Kernel

Hi I am trying to install drbd8 via apt-get on ubuntu10 sudo apt-get install drbd8-source password for vishals: Reading package lists... Done Building dependency tree Reading state information... Done drbd8-source is already the newest version. drbd8-source set to manually installed. 0... (0 Replies)
Discussion started by: vishal_vsh1
0 Replies

10. UNIX for Beginners Questions & Answers

Missing Modules After Compiling Kernel

I'm a little embarrassed after all these years I've never really successfully compiled my own kernel. I used this guide to make the following files: linux-headers-5.1.9_5.1.9-1_amd64.deb linux-image-5.1.9_5.1.9-1_amd64.deb linux-libc-dev_5.1.9-1_amd64.deb When I first booted into this... (4 Replies)
Discussion started by: Azrael
4 Replies
DEPMOD.D(5)							     depmod.d							       DEPMOD.D(5)

NAME
depmod.d - Configuration directory for depmod SYNOPSIS
/usr/lib/depmod.d/*.conf /etc/depmod.d/*.conf /run/depmod.d/*.conf DESCRIPTION
The order in which modules are processed by the depmod command can be altered on a global or per-module basis. This is typically useful in cases where built-in kernel modules are complemented by custom built versions of the same and the user wishes to affect the priority of processing in order to override the module version supplied by the kernel. The format of files under depmod.d is simple: one command per line, with blank lines and lines starting with '#' ignored (useful for adding comments). A '' at the end of a line causes it to continue on the next line, which makes the files a bit neater. COMMANDS
search subdirectory... This allows you to specify the order in which /lib/modules (or other configured module location) subdirectories will be processed by depmod. Directories are listed in order, with the highest priority given to the first listed directory and the lowest priority given to the last directory listed. The special keyword built-in refers to the standard module directories installed by the kernel. By default, depmod will give a higher priority to a directory with the name updates using this built-in search string: "updates built-in" but more complex arrangements are possible and are used in several popular distributions. override modulename kernelversion modulesubdirectory This command allows you to override which version of a specific module will be used when more than one module sharing the same name is processed by the depmod command. It is possible to specify one kernel or all kernels using the * wildcard. modulesubdirectory is the name of the subdirectory under /lib/modules (or other module location) where the target module is installed. For example, it is possible to override the priority of an updated test module called kmod by specifying the following command: "override kmod * extra". This will ensure that any matching module name installed under the extra subdirectory within /lib/modules (or other module location) will take priority over any likenamed module already provided by the kernel. COPYRIGHT
This manual page Copyright 2006-2010, Jon Masters, Red Hat, Inc. SEE ALSO
depmod(8) AUTHORS
Jon Masters <jcm@jonmasters.org> Developer Robby Workman <rworkman@slackware.com> Developer Lucas De Marchi <lucas.de.marchi@gmail.com> Developer kmod 01/28/2018 DEPMOD.D(5)
All times are GMT -4. The time now is 10:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy