ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Jura <jury@land.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Компиляция модуля
Date: Thu, 08 Jan 2004 16:45:02 +0300
Message-ID: <3FFD5EDE.8040704@land.ru> (raw)
In-Reply-To: <20040108120557.GA4616@wrars-comp.wrarsdomain>

Andrey Rahmatullin пишет:

>On Thu, Jan 08, 2004 at 03:02:16PM +0300, Jura wrote:
>  
>
>>Genix пишет:
>>    
>>
>>>Jura пишет:
>>>      
>>>
>>>>модуль откомпилировался
>>>>но для ядра 2.4.20 а не для 2.4.20-alt5-up
>>>>его не установить в загруженное ядро.
>>>>
>>>>Где находятся исходники для 2.4.20-alt5-up ?
>>>>        
>>>>
>>>Поставьте пакет kernel-headers соответствующий вашему ядру
>>>      
>>>
>>Пакет kernel24-headers-2.4.20-alt5.i586.rpm установлен,
>>он соответствует загруженному ядру.
>>    
>>
>
>Теперь исходникам дров надо указать путь к хидерам в кач-ве пути к
>исходникам ядра. Им должно хватить.
>  
>
Подскожите, как указать путь?
я пробовал редактировать makefile:
...
# Kernel Search Path
# All the places we look for kernel source
KSP :=  /usr/lib/kernel/2.4.20-alt5/include \	# <- добавил эту строчку !!!
	/lib/modules/$(shell uname -r)/build \
        /usr/src/linux-$(shell uname -r) \
        /usr/src/linux-$(shell uname -r | sed 's/-.*//') \
        /usr/src/kernel-headers-$(shell uname -r) \
        /usr/src/kernel-source-$(shell uname -r) \
        /usr/src/linux-$(shell uname -r | sed 's/\([0-9]*\.[0-9]*\)\..*/\1/') \
        /usr/src/linux

# prune the list down to only values that exist
# and have an include/linux sub-directory
test_dir = $(shell [ -e $(dir)/include/linux ] && echo $(dir))
KSP := $(foreach dir, $(KSP), $(test_dir))

# we will use this first valid entry in the search path
KSRC := $(firstword $(KSP))

ifeq (,$(KSRC))
  $(error Linux kernel source not found)	# <- все равно здесь ошибка !
endif
...
	Юрий





  reply	other threads:[~2004-01-08 13:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-08 10:35 Jura
2004-01-08 11:43 ` Genix
2004-01-08 12:02   ` Jura
2004-01-08 12:05     ` Andrey Rahmatullin
2004-01-08 13:45       ` Jura [this message]
2004-01-08 14:17         ` Sergey Vlasov
2004-01-08 15:30           ` Jura
2004-01-08 15:37 ` [Comm] " Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FFD5EDE.8040704@land.ru \
    --to=jury@land.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git