Skocz do zawartości

Kompilacja Jadra-pytane Laika.


Koksik1986

Rekomendowane odpowiedzi

:?: Mam pytanie.Posciagalem pelno artykulow itd.Chce skompilowac jadro ale oczywiscie jestem poczatkujacy i nie za bardzo wiem jak a te wszystkie artykuly to nic konkretnego.Nie moge skonfigurowac sieciowki dwl520+ bez skompilowania jadra.Sciaglem kernel 2.6.10-1.766_FC3.src.rpm. Wystarczy zainstalowac jako rot to jadro poleceniem rpm -ivh kernel 2.6.10-1.... czy trzeba motac.Jezeli to nie tak to prosze o jakies konkret wytlumaczenie jak to zrobic bo te wszystkie artykuly to nic mi nie mowia. :shock:

Odnośnik do komentarza
Udostępnij na innych stronach

Co do kompilacji jajka, to się nie wypowiem, bo poprzestałem na linii 2.4.x i jakoś mnie nie ciągnie znowu do tego ;)

 

Ale co do pakietów src.rpm

 

Pakietów takich się nie instaluje, tylko przebudowuje.

rpmbuild --rebuild [plik].src.rpm

A dopiero potem instaluje, jak już będą gotowe paczki ;)

Odnośnik do komentarza
Udostępnij na innych stronach

Mam twoj temat skazi. Ten opis jest dokladny ale nie wiem czy ja robie cos zle ale wszystko po kolei i nie dziala mi nadal.Wpisuje wszysto i nic.Nie wiem czy to ma znaczenie ale w ustawieniach windy mam long preamble a w linie jest short.I ja jestem pasywny narazie.Wlasnie o ta karte mi chodzi inaczej bym sie za kompilacje nie zabieral.Jezeli mozesz mi jeszcze bardziej pomoc to bardzo prosze o pomoc. :) Z gory dzieki za pomoc!!!

Odnośnik do komentarza
Udostępnij na innych stronach

Podałbyś co ci pisze jak wpisujesz start_net bo nie wiem jaki masz błąd. Pozatym skoro sterownik się kompiluje i przy configure nie ma błędów to znaczy że w jądrze jest wszystko ok.

PS. Gdzie pisze że jest short preamble, próbowałeś to zmieniać na long???

Odnośnik do komentarza
Udostępnij na innych stronach

To moje configure.:

root@localhost acx100-0.2.0pre8_plus_fixes_34]# ./Configure

Kernel version file: /lib/modules/2.6.9-1.667/build/include/linux/version.h

Kernel configuration file: /lib/modules/2.6.9-1.667/build/.config

Make damn sure these really match your currently running kernel!!

 

Kernel configuration found, performing sanity checks

All of the following items are required by the driver:

    Loadable modules support is enabled.

    Wireless LAN (non-hamradio) support is enabled.

    Wireless extensions support is enabled.

The following is needed for PCMCIA/CardBus cards:

    PCMCIA support is enabled.

    CardBus support is enabled.

The following is needed for USB card support:

    USB support is enabled.

The following is needed for PCI card support:

    PCI support is enabled.

Kernel configuration satisfies the minimum requirements, continuing.

Wireless header file is WIRELESS_EXT version 16.

gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)

Running linux 2.6.9-1.667

Compile info: will choose to use code infrastructure for NEWER wireless extension interface version (>= 13)

Symmetric multiprocessing support (CONFIG_SMP) is disabled.

 

To Jest make:

[root@localhost acx100-0.2.0pre8_plus_fixes_34]# make

make -C src

make[1]: Entering directory `/home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src'

if test -n ; then \

mkdir -p /home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/tmp; \

cp /lib/modules/2.6.9-1.667/build/.config /home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/tmp; \

fi

# use "make V=1" to see full compile execution

make -C /lib/modules/2.6.9-1.667/build SUBDIRS=/home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src  \

        MODVERDIR=/home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src WLAN_HOSTIF=WLAN_PCI modules

make[2]: Entering directory `/lib/modules/2.6.9-1.667/build'

  CC [M]  /home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx100.o

  CC [M]  /home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx100_conv.o

  CC [M]  /home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx100_helper.o

/home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx100_helper.c:2782:2: warning: #warning Is this used anymore?

  CC [M]  /home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx100_helper2.o

  CC [M]  /home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx100_ioctl.o

  CC [M]  /home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx80211frm.o

  CC [M]  /home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/idma.o

  CC [M]  /home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/ihw.o

  CC [M]  /home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/ioregister.o

  LD [M]  /home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx_pci.o

  Building modules, stage 2.

  MODPOST

  CC      /home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx_pci.mod.o

  LD [M]  /home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx_pci.ko

make[2]: Leaving directory `/lib/modules/2.6.9-1.667/build'

# ugh, very bloody hack, but I don't know how to make

# the Makefile accept the different filenames USB uses. Anyone?

if test -n ""; then \

cd ; \

fi

/bin/ln -f -s acx80211frm.c acx_usb_80211frm.c

/bin/ln -f -s acx100_conv.c acx_usb_conv.c

/bin/ln -f -s acx100_helper.c acx_usb_helper.c

/bin/ln -f -s acx100_helper2.c acx_usb_helper2.c

/bin/ln -f -s idma.c acx_usb_idma.c

/bin/ln -f -s ihw.c acx_usb_ihw.c

/bin/ln -f -s acx100_ioctl.c acx_usb_ioctl.c

/bin/ln -f -s acx100_usb.c acx_usb_main.c

if test -n ""; then \

cd -; \

fi

make -C /lib/modules/2.6.9-1.667/build SUBDIRS=/home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src  \

        MODVERDIR=/home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src WLAN_HOSTIF=WLAN_USB modules

make[2]: Entering directory `/lib/modules/2.6.9-1.667/build'

  CC [M]  /home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx_usb_80211frm.o

  CC [M]  /home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx_usb_conv.o

  CC [M]  /home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx_usb_helper.o

/home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx_usb_helper.c:2782:2: warning: #warning Is this used anymore?

  CC [M]  /home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx_usb_helper2.o

  CC [M]  /home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx_usb_idma.o

  CC [M]  /home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx_usb_ihw.o

/home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx_usb_ihw.c: In function `acx_issue_cmd':

/home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx_usb_ihw.c:667: warning: passing arg 7 of `usb_fill_control_urb' from incompatible pointer type

/home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx_usb_ihw.c:668: error: structure has no member named `timeout'

/home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx_usb_ihw.c:694: warning: passing arg 7 of `usb_fill_control_urb' from incompatible pointer type

/home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx_usb_ihw.c:695: error: structure has no member named `timeout'

make[3]: *** [/home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src/acx_usb_ihw.o] Błąd 1

make[2]: *** [_module_/home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src] Błąd 2

make[2]: Leaving directory `/lib/modules/2.6.9-1.667/build'

make[1]: *** [modules] Błąd 2

make[1]: Leaving directory `/home/lukasz/acx100-0.2.0pre8_plus_fixes_34/src'

make: *** [driver] Błąd 2

 

gdy potem wpisuje cd scripts wyskakuje mi ze nie ma takiego pliku ani katalogu, wiecsam wchodze do katalogu i otwieram terminali polecenia dalej dzialaja.

Tak mniej wiecej wygladal moj start_net przed moimi zmianami:

!/bin/bash

 

#########################################

# start_net script                      #

# acx100 project                        #

# acx100.sourceforge.net                #

# edited by arnie <[email protected]> #

#########################################

 

# Please edit here

 

DEV=wlan0

 

ESSID="any" # THIS IS CASE SeNsItIvE!! any == associate to any ESSID

# Default rate configured as 11Mbps to not cause connection problems with non-22Mbps hardware...

RATE=11M

AUTORATE=1

CHAN=6 # it's useful to try to stick to channels 1, 6 or 11 only, since these don't overlap with other channels

#SHORTPREAMBLE=1 #set a value of 1 in order to use "Short Preamble" (incompatible with very old WLAN hardware!)

#TXPOWER=18 # 0..20 (dBm) (18dBm is firmware default) overly large setting might perhaps destroy your radio eventually!

MODE=Auto # Auto == auto-select Managed or Ad-Hoc depending on environment

DEBUG=0xb

#KEY="B401CD21B44CCD21DEADBEEF11" # WEP128

#KEY0="1234567890"  #WEP64

#KEY1="1234567890"

#KEY2="1234567890"

#KEY3="1234567890"

ALG=open # open == Open System, restricted == Shared Key

 

USE_DHCP=0 # set to 1 for auto configuration instead of fixed IP setting

IP=192.168.0.10

NETMASK=255.255.255.0

GATEWAY=192.168.0.254

 

# Usually no editing should be required below this line...

# -- unless you want this script to fetch stuff with dhcp

 

i wprowadzilem swoje parametry razem z kluczem wep 64 i DNS

potem wpisuje ./start_net w pliku w ktorym sie znjduje to wyskakuje cos takiego.

root@localhost WLAN]# ./start_net

Module not found or not readable.

Have you built it? This script expects it to be at ../src/acx_pci.[k]o, relative to the script's location. Bailing...

Odnośnik do komentarza
Udostępnij na innych stronach

a masz (_wogóle_ → w ogóle) ORT taki moduł jak acx_pci.ko lub acx_pci.o???? Lub masz błędnie wpisaną ścieżkę do modułu w start_net.

Pokaż cały start_net.

A masz to zrobione

mkdir /home/bartek/WLAN

mkdir /home/bartek/WLAN/module

mkdir /home/bartek/WLAN/firmware

jak tak to możesz ręcznie (wytnij+wklej) poprzenosić do /home/bartek/WLAN start_net i stop_net

do katalogu /home/bartek/WLAN/module przenieść acx_pci.ko i dla pewności acx_pci.o

ko katalogu /home/bartek/WLAN/firmware przenieść firmware.

Odnośnik do komentarza
Udostępnij na innych stronach

To mam w start_net dokladnie to samo.

#!/bin/bash

 

#########################################

# start_net script #

# acx100 project #

# acx100.sourceforge.net #

# edited by arnie <[email protected]> #

#########################################

 

# Please edit here

 

DEV=wlan0

 

ESSID="Wilkow" # THIS IS CASE SeNsItIvE!! any == associate to any ESSID

# Default rate configured as 11Mbps to not cause connection problems with non-22Mbps hardware...

RATE=11M

AUTORATE=1

CHAN=8 # it's useful to try to stick to channels 1, 6 or 11 only, since these don't overlap with other channels

#SHORTPREAMBLE=1 #set a value of 1 in order to use "Short Preamble" (incompatible with very old WLAN hardware!)

#TXPOWER=18 # 0..20 (dBm) (18dBm is firmware default) overly large setting might perhaps destroy your radio eventually!

MODE=Managed # Auto == auto-select Managed or Ad-Hoc depending on environment

DEBUG=0x00

#KEY="B401CD21B44CCD21DEADBEEF11" # WEP128

#KEY0="0202020202" #WEP64

#KEY1="1234567890"

#KEY2="1234567890"

#KEY3="1234567890"

ALG=open # open == Open System, restricted == Shared Key

 

USE_DHCP=0 # set to 1 for auto configuration instead of fixed IP setting

IP=moje ip tutaj wpisalem

NETMASK=255.255.255.0

GATEWAY=192.168.10.1

 

# Usually no editing should be required below this line...

# -- unless you want this script to fetch stuff with dhcp

 

#########################################

 

 

if test "$UID" != "0"; then echo "You are not root. To insert the module into your kernel, you need to be root. Enter su and try again. Bailing..."; exit 1; fi

 

SYNC=`which sync`

INSMOD=`which insmod`

IFCONF=`which ifconfig`

IWCONF=`which iwconfig`

IWPRIV=`which iwpriv`

ROUTE=`which route`

SCRIPT_AT=`dirname $0`

 

if test -z "$SYNC"; then echo "sync not found. Go get a sane Linux system. Bailing..."; exit 1; fi

if test -z "$INSMOD"; then echo "insmod not found. Go get a sane Linux system. Bailing..."; exit 1; fi

if test -z "$IFCONF"; then echo "ifconfig not found. I can insert the module for you, but you won't be able to configure your interface."; CONTINUE=ASK; fi

if test -z "$IWCONF"; then echo "iwconfig not found. Make sure it is installed. The interface might work without, though."; CONTINUE=ASK; fi

 

if test -n "$CONTINUE"; then echo -n "Problems encountered. Do you want to continue? [n] "; read ANSWER

case $ANSWER in ( y | Y | Yes | YES | yes | j | J | ja | Ja | JA ) ;;

( * ) exit 1 ;;

esac

fi

 

case "`uname -r`" in

2.4*)

MODULE_AT="/home/lukasz/WLAN/module/acx100_pci.ko"

;;

*)

MODULE_AT="/home/lukasz/WLAN/module/acx100_pci.ko"

;;

esac

 

if test ! -r "$MODULE_AT"; then echo "Module not found or not readable.

Have you built it? This script expects it to be at ../src/acx_pci.[k]o, relative to the script's location. Bailing..."; exit 1; fi

 

# FIRMWARE_AT has to be given as an absolute path!!

FIRMWARE_AT="/home/lukasz/WLAN/firmware"

 

# check whether either of the two required main firmware files is

# available

if test ! -r "$FIRMWARE_AT/WLANGEN.BIN" -a ! -r "$FIRMWARE_AT/TIACX111.BIN"; then echo "Firmware not found or not readable. Have you placed it in the firmware directory or run make extract_firmware once? This script expects it to be at ../firmware/WLANGEN.BIN (or ../firmware/TIACX111.BIN for the ACX111 chip), relative to the script's location. Bailing..."; exit 1; fi

 

if test "$RATE" != "11M"; then echo "Transfer rate is not 11 Mbps, but $RATE. If something doesn't work, try 11 Mbps."; fi

 

 

# for better debugging

# set -x

#echo 8 > /proc/sys/kernel/printk

 

 

# just in case ;)

$SYNC

sleep 1

 

if test -n "`lsmod |grep acx_pci`"; then ${SCRIPT_AT}/stop_net; fi

 

$INSMOD $MODULE_AT debug=$DEBUG firmware_dir=$FIRMWARE_AT

if test "$?" = "0"; then echo "Module successfully inserted."; else echo "Error while inserting module! Bailing..."; exit 1; fi

 

if test -n "$IWCONF"; then

 

test "$AUTORATE" = "1" && AUTO=auto || AUTO=

 

if test -n "$RATE"; then

echo Setting rate to $RATE $AUTO.

$IWCONF $DEV rate $RATE $AUTO

test "$?" != "0" && echo Failed.

fi

if test -n "$CHAN"; then

echo Setting channel $CHAN.

$IWCONF $DEV channel $CHAN

test "$?" != "0" && echo Failed.

fi

if test -n "$SHORTPREAMBLE"; then

echo Setting short preamble to $SHORTPREAMBLE.

$IWPRIV $DEV SetSPreamble $SHORTPREAMBLE

test "$?" != "0" && echo Failed.

sleep 1

fi

if test -n "$TXPOWER"; then

echo Setting Tx power level to $TXPOWER dBm.

$IWCONF $DEV txpower $TXPOWER

test "$?" != "0" && echo Failed.

sleep 1

fi

 

echo Going to try to join or setup ESSID $ESSID.

$IWCONF $DEV essid "$ESSID"

test "$?" != "0" && echo Failed.

 

if test -n "$MODE"; then%0

Odnośnik do komentarza
Udostępnij na innych stronach

Udalo sie niby chodzi.Zmienilem w start _net zamiast acx 100_pic.o to wpisalem acx_pci.o Ale strony sie nie wyswietlaja.To ze jestem na pasiv coz daje???

 

[root@localhost WLAN]# ./start_net

wlan0 deconfigured, module unloaded.

Module successfully inserted.

Setting rate to 11M auto.

Setting channel 8.

Going to try to join or setup ESSID WILKOW.

Setting mode to Managed.

Interface has been set up successfully.

[root@localhost WLAN]# ping -c 10 192.168.10.1

PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data.

From 192.168.10.70 icmp_seq=1 Destination Host Unreachable

From 192.168.10.70 icmp_seq=2 Destination Host Unreachable

From 192.168.10.70 icmp_seq=3 Destination Host Unreachable

From 192.168.10.70 icmp_seq=5 Destination Host Unreachable

From 192.168.10.70 icmp_seq=6 Destination Host Unreachable

From 192.168.10.70 icmp_seq=7 Destination Host Unreachable

From 192.168.10.70 icmp_seq=8 Destination Host Unreachable

From 192.168.10.70 icmp_seq=9 Destination Host Unreachable

 

--- 192.168.10.1 ping statistics ---

10 packets transmitted, 0 received, +8 errors, 100% packet loss, time 9000ms

, pipe 4

Odnośnik do komentarza
Udostępnij na innych stronach

Mam ustawione w resolv.conf w ten sposob:

nameserver ip dns-a 192.168...... wpisany 1 dns

nameserver ip dns-b xxxxxxx  i tutaj 2 dns

podpisane 1 pod 2

Pisale ze jak sie jest na pasiv to trzeba jakies zmiany male w skrypcie dopisac.Ja jestem na pasiv.Moze to dla tego bo wszystko mam zgodnie z opisem a nadal wyskakuje

[root@localhost WLAN]# ./start_net

wlan0 deconfigured, module unloaded.

Module successfully inserted.

Setting rate to 11M auto.

Setting channel 8.

Going to try to join or setup ESSID WILKOW.

Setting mode to Managed.

Interface has been set up successfully.

[root@localhost WLAN]# ping -c 10 192.168.10.1

PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data.

From 192.168.10.70 icmp_seq=1 Destination Host Unreachable

From 192.168.10.70 icmp_seq=2 Destination Host Unreachable

From 192.168.10.70 icmp_seq=3 Destination Host Unreachable

From 192.168.10.70 icmp_seq=5 Destination Host Unreachable

From 192.168.10.70 icmp_seq=6 Destination Host Unreachable

From 192.168.10.70 icmp_seq=7 Destination Host Unreachable

From 192.168.10.70 icmp_seq=8 Destination Host Unreachable

From 192.168.10.70 icmp_seq=9 Destination Host Unreachable

 

--- 192.168.10.1 ping statistics ---

10 packets transmitted, 0 received, +8 errors, 100% packet loss, time 9000ms

, pipe 4

Nie mam pojecia o co chodzi.

Jak wpisuje w przegladarke www.onet.pl to nie wyswietla strony tylko komunikat ze nie moze odnalezc czy cos takiego.

Odnośnik do komentarza
Udostępnij na innych stronach

ma być tak:

 

nameserver 192.168.10.155

nameserver 193.110.120.5

 

a nie tak:

 

nameserver ip dns-a 192.168.10.155

nameserver ip dns-b 193.110.120.5

 

jak miałem radiówkę to też nie miałem zewnętrzenago ip bo jestem w sieci osiedlowej.

Teraz musi działać:)

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
×
×
  • Dodaj nową pozycję...