Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 39

Thread: no rule to make target kernel/bounds.c

  1. #21
    Join Date
    Jan 2010
    Beans
    8

    Re: no rule to make target kernel/bounds.c

    I have answered my own question.
    I discovered that for some reason the process does not like to be inside too many folders !
    My problem was that I had put the extracted folder from the tar.gz inside another on my desktop, instead of extracting the folder itslef to the desktop.

    Wrong:
    Desktop->WirelessInstalls->RT2870_LinuxSTA_V2.3.0.0

    Correct:
    Desktop->RT2870_LinuxSTA_V2.3.0.0

    The makefile sits inside the RT2870_LinuxSTA_V2.3.0.0 folder.

    Whether or not this makes sense, or why it should make any difference at all, I don't know. Nevertheless, I simply extracted the RT2870_LinuxSTA_V2.3.0.0 folder straight to the desktop, opened in terminal, typed checkinstall, and bingo, it all works.

    Cheers for anyone who started giving this some thought for me.

  2. #22
    Join Date
    Jun 2007
    Location
    Germany
    Beans
    26

    Re: no rule to make target kernel/bounds.c

    I think the problem is the "space" between "Wireless" and "installers" in the directory name "/home/testrig4ub64/Desktop/Wireless installers/RT2870_LinuxSTA_V2.3.0.0/tools" because it says "make: /home/testrig4ub64/Desktop/Wireless: Command not found"

  3. #23
    Join Date
    Jan 2010
    Beans
    4

    Re: no rule to make target kernel/bounds.c

    In some case some extra steps are required to make it compile.

    Doing apt-get install linux-sources and decompressing the file is not sufficient.
    After doing that step you also need to:
    1. cd /usr/src/linux-source-{Version}/
    (To find the value to replace in {Version} do: uname -r and use only the dot separated numbers, if
    there is dash something, please discard everything after and including the dash)

    2. sudo cp -vi /boot/config-`uname -r` .config

    3. sudo make oldconfig

    4. cd /lib/modules/`uname -r`

    5. Check if the build softlink is pointing to /usr/src/linux-header-* by doing:
    ls -l

    6. If you see something like:
    ... build -> /usr/src/linux-headers-2.6.31-16-generic
    then proceed with 6.1, otherwise jump to step 7
    6.1 then switch the softlink, first by deleting build:
    sudo rm build
    6.2 and then create the new link by doing:
    sudo ln -s /usr/src/{Version} build

    7. It is not required for this, but it won't hurt if you create
    /usr/src/linux symlink
    for that do:
    sudo ln -s /usr/src/{Version} /usr/src/linux

    8. Now go ahead and build those drivers

    Good Luck!
    Last edited by go_linux; January 10th, 2010 at 02:23 PM.

  4. #24

    Re: no rule to make target kernel/bounds.c

    There is no bounds.c or bounds.h or nay bounds fine in kernal folder call it source or header

    I have similar problem

    I tried everything
    still i get this

    root@ubuntu:/usr/src/linux-headers-2.6.31-20-generic# make
    CHK include/linux/version.h
    CHK include/linux/utsrelease.h
    SYMLINK include/asm -> include/asm-x86
    make[1]: *** No rule to make target `kernel/bounds.c', needed by `kernel/bounds.s'. Stop.
    make: *** [prepare0] Error 2

  5. #25
    Join Date
    Jun 2007
    Location
    Germany
    Beans
    26

    Re: no rule to make target kernel/bounds.c

    Really? I bet 1000 bucks that it's there. Are you in?

    Running Ubuntu 10.04:

    Code:
    $ sudo apt-get install linux-headers-2.6.32-16 linux-source-2.6.32
    $ cd /usr/src
    $ sudo tar xvjf linux-source-2.6.32.tar.bz2
    $ find /usr/src -name "bounds.*" -ls
    2629663    4 -rw-r--r--   1 root     root          526 Dec  3 04:51 ./linux-source-2.6.32/kernel/bounds.c
    2502234    4 -rw-r--r--   1 root     root          224 Mar  9 22:49 ./linux-headers-2.6.32-16-generic-pae/include/linux/bounds.h
    2507692    4 -rw-r--r--   1 root     root         3738 Mar  9 22:49 ./linux-headers-2.6.32-16-generic-pae/kernel/bounds.s
    Please wire 500 dollar each to Debian and to to Canonical as a donation for their great work. Thanks

  6. #26

    Re: no rule to make target kernel/bounds.c

    hmmm.. tell me onething..

    i am reading this book in which it has a hello.c program for the driver thing..

    after saving that it asks me to use this command in the kernel

    make

    ddoes this command take hours?

  7. #27
    Join Date
    Jun 2007
    Location
    Germany
    Beans
    26

    Re: no rule to make target kernel/bounds.c

    Compiling the kernel indeed does take some time.

  8. #28
    Join Date
    Mar 2010
    Beans
    3

    Re: no rule to make target kernel/bounds.c

    I m a new to Ubuntu and to device drivers.
    Even I have same problem as discussed in this thread.
    The package linux-source-2.6.31.14 is not found.
    --------------
    sudo apt-get install linux-source-2.6.31.14
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Couldn't find package linux-source-2.6.31.14
    --------------

    Any help is appreciated.

  9. #29
    Join Date
    Jun 2007
    Location
    Germany
    Beans
    26

    Re: no rule to make target kernel/bounds.c

    You're running Karmic, right? Then this is what you need:

    Code:
    $ sudo apt-get install linux-source-2.6.31

  10. #30
    Join Date
    Mar 2010
    Beans
    3

    Unhappy Re: no rule to make target kernel/bounds.c

    This is what I get when I do
    sudo apt-get install linux-source-2.6.31

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Suggested packages:
    libncurses-dev ncurses-dev kernel-package libqt3-dev
    The following NEW packages will be installed:
    linux-source-2.6.31
    0 upgraded, 1 newly installed, 0 to remove and 242 not upgraded.
    Need to get 62.2MB of archives.
    After this operation, 62.3MB of additional disk space will be used.
    Err http://in.archive.ubuntu.com karmic-updates/main linux-source-2.6.31 2.6.31-20.58
    Could not resolve 'in.archive.ubuntu.com'
    Err http://security.ubuntu.com karmic-security/main linux-source-2.6.31 2.6.31-20.58
    Could not resolve 'security.ubuntu.com'
    Failed to fetch http://security.ubuntu.com/ubuntu/po...-20.58_all.deb Could not resolve 'security.ubuntu.com'
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

    What next ?

Page 3 of 4 FirstFirst 1234 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •