Početak›Forumi›Linuks distribucije›Slackware›Make?Kompajliranje kernela?
- This topic has 17 odgovora, 8 glasova, and was last updated 18 years, 10 months ranije by jboban.
-
AutorČlanci
-
19. april 2005. u 6:58 pm #5190ak-87Učesnik
Ok skinuo sam uputstvo za kompajliranje kernela i sam kernel 2.6.10,kao sto mi je i mtm76 preporucio.
Medjutim,i dalje imam problema sa .
U uputstvu pise da treba da imam gcc,make itd. pakete.Pa me zanima da li sam to dobio na cd-u (VectorLinux SoHo 5.0.1),ili moram da skinem?Odakle?
Posto kada ukucam #make xconfig,ispise sledece>>>
Makefile:261:arch/i386/Makefile:No such file or directory
Makefile:544:Rules.make:No such file or directory
make:*** No rule for set ‘Rules.make’.Stop
Sta treba da radim?19. april 2005. u 8:10 pm #27182SiouxUčesnikProbaj # make menuconfig
kod mene je samo to radiloPogledaj detaljno uputstvo ispod.
19. april 2005. u 8:13 pm #27183popacUčesnikJesi li lepo otpakovao u source u /usr/src/ i da li si uklonio link /usr/src/linux i napravio novi
# ln -s /usr/src/linux-NEŠTO /usr/src/linux?Dalje uđeš u /usr/src/linux i odatle
# make xconfig
ili još bolje
# make menuconfig20. april 2005. u 11:56 am #27184ak-87UčesnikUopste,kad god upotrebim komandu make,to mi ispise.
20. april 2005. u 1:11 pm #27185ak-87UčesnikEvo ponovo sam probao,medjutim i dalje ispise isto.Ne razumjem u cemu je problem.Isao sam na #make –help,sve fino ispise,ali kada treba da upotrebim,bez obzira ukucao menuconfig,xconfig,mrproper,ispise isto.Sta mu znaci ono Rules.make?
20. april 2005. u 9:11 pm #27186SiouxUčesnikLinux Kernel Compilation Howto
If the sources are already present on your system then you can start with step 1.
Step 3 is Vector Linux specific.
If they are not, you can get them from http://kernel.org and do the following to prepare the source for compilation.
“tar xvjpf linux-2.4.20.tar.bz2 -C /usr/src/”
“ln -sf /usr/src/linux-2.4.20 /usr/src/linux”1 – “cd /usr/src/linux”
2 – “make mrproper”
3 – “cp /boot/config ./.config”
4 – “make menuconfig” or “make xconfig” – whichever you prefer – menuconfig is text based and xconfig is gui (Qt based)
5 – now change the options you want to change
6 – exit and it will save the config.
7 – “make dep”
8 – “make bzImage && make modules && make modules_install” – the && means that the previous command must finish successfully before going on with the next – I do this so I don’t have to sit around and watch it to start the compile for the modules and to install the modules.
9 – “mv /boot/vmlinuz /boot/vmlinuz.old” – this is in case it doesn’t work
10 – “cp arch/i386/boot/bzImage /boot/vmlinuz”
11 – “cp System.map /boot/”
12 – “cp .config /boot/.config-custom” this way you can start with this if you upgrade your kernel in the future.
13 – “mcedit /etc/lilo.conf” copy the original linux section to the bottom and change the label to linuxold and the kernel to vmlinuz.old – save the file and exitHere is a sample of a before and after snippet of the /etc/lilo.conf file:
—original—
image=/boot/vmlinuz
label=linux
root=/dev/hda2
read-only
—endoriginal——newadded—
#new kernel will use the existing entry
image=/boot/vmlinuz
label=linux
root=/dev/hda2
read-only
#
#old kernel has been changed to be accessible using this entry
image=/boot/vmlinuz.old
label=linuxold
root=/dev/hda2
read-only
—endnew—the original is what was originally in the /etc/lilo.conf file and the newadded is what it looks like after the change.
14 – “lilo”
15 – “reboot” the new kernel will be the default and the old one will still be available if you encounter any problems with the new kernel.21. april 2005. u 4:42 pm #27187ak-87UčesnikOk je sad.Kompajlirao sam 2.6.10 kernel i radi sasvim dobro.U svakom slucaju,hvala.
21. april 2005. u 6:12 pm #27188LYbUčesnikSuper 🙂
Ja sam imo mnooogoooo vise muke prilikom svojih prvih pokusaja.Naravno, ovaj post je ovde sasvim bez veze, morao sam da vidim kako radi opera 8 🙂
21. april 2005. u 9:12 pm #27189LokateliUčesnikA kako da se namesti kernel 2.4.29?
Jel moze to bez kompajliranja, mislim kad vec ima headere tog kernela?22. april 2005. u 12:27 am #27190LYbUčesnikNa slacku? Moze, ali headeri nisu dovoljni… Treba da instaliras prekompajlirani kernel i headere.
-
AutorČlanci
Moraš biti prijavljen da bi postavio komentar u ovoj temi.