Etch kernel fordítás

Fórumok

Debian Etch alatt szeretnék kernelt fordítani. Akár a telepítőlemezen lévő 2.6.18 verzióval akár a most letöltött 2.6.22.3-al a make menuconfig utasitás kiadása után a következő hibaüzenetet kapom:

In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: Nincs ilyen fájl vagy könyvtár
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:97: error: expected specifier-qualifier-list before ‘chtype’
scripts/kconfig/lxdialog/dialog.h:187: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:194: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:196: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:197: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:198: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:199: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:201: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:31: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:59: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:95: error: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c: In function ‘dialog_checklist’:
scripts/kconfig/lxdialog/checklist.c:116: error: ‘WINDOW’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:116: error: (Each undeclared identifier is reported only once
scripts/kconfig/lxdialog/checklist.c:116: error: for each function it appears in.)
scripts/kconfig/lxdialog/checklist.c:116: error: ‘dialog’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:116: error: ‘list’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:116: warning: left-hand operand of comma expression has no effect
scripts/kconfig/lxdialog/checklist.c:129: warning: implicit declaration of function ‘getmaxy’
scripts/kconfig/lxdialog/checklist.c:129: error: ‘stdscr’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:130: error: ‘KEY_MAX’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:131: warning: implicit declaration of function ‘getmaxx’
scripts/kconfig/lxdialog/checklist.c:137: error: ‘COLS’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:138: error: ‘LINES’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:140: warning: implicit declaration of function ‘draw_shadow’
scripts/kconfig/lxdialog/checklist.c:142: warning: implicit declaration of function ‘newwin’
scripts/kconfig/lxdialog/checklist.c:143: warning: implicit declaration of function ‘keypad’
scripts/kconfig/lxdialog/checklist.c:143: error: ‘TRUE’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:145: warning: implicit declaration of function ‘draw_box’
scripts/kconfig/lxdialog/checklist.c:146: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:146: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:147: warning: implicit declaration of function ‘wattrset’
scripts/kconfig/lxdialog/checklist.c:147: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:148: warning: implicit declaration of function ‘mvwaddch’
scripts/kconfig/lxdialog/checklist.c:150: warning: implicit declaration of function ‘waddch’
scripts/kconfig/lxdialog/checklist.c:151: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:154: warning: implicit declaration of function ‘print_title’
scripts/kconfig/lxdialog/checklist.c:156: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:157: warning: implicit declaration of function ‘print_autowrap’
scripts/kconfig/lxdialog/checklist.c:164: warning: implicit declaration of function ‘subwin’
scripts/kconfig/lxdialog/checklist.c:171: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:171: error: ‘struct dialog_color’ has no member named ‘atr’
scripts/kconfig/lxdialog/checklist.c:189: warning: implicit declaration of function ‘print_item’
scripts/kconfig/lxdialog/checklist.c:192: warning: implicit declaration of function ‘print_arrows’
scripts/kconfig/lxdialog/checklist.c:195: warning: implicit declaration of function ‘print_buttons’
scripts/kconfig/lxdialog/checklist.c:197: warning: implicit declaration of function ‘wnoutrefresh’
scripts/kconfig/lxdialog/checklist.c:199: warning: implicit declaration of function ‘doupdate’
scripts/kconfig/lxdialog/checklist.c:202: warning: implicit declaration of function ‘wgetch’
scripts/kconfig/lxdialog/checklist.c:210: error: ‘KEY_UP’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:210: error: ‘KEY_DOWN’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:220: error: ‘FALSE’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:221: warning: implicit declaration of function ‘scrollok’
scripts/kconfig/lxdialog/checklist.c:222: warning: implicit declaration of function ‘wscrl’
scripts/kconfig/lxdialog/checklist.c:232: warning: implicit declaration of function ‘wrefresh’
scripts/kconfig/lxdialog/checklist.c:293: warning: implicit declaration of function ‘delwin’
scripts/kconfig/lxdialog/checklist.c:297: error: ‘KEY_LEFT’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:298: error: ‘KEY_RIGHT’ undeclared (first use in this function)
scripts/kconfig/lxdialog/checklist.c:310: warning: implicit declaration of function ‘on_key_esc’
scripts/kconfig/lxdialog/checklist.c:312: error: ‘KEY_RESIZE’ undeclared (first use in this function)
make[1]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
make: *** [menuconfig] Error 2

A libncurses5, ncurses fel vannak telepítve. Vmi 5let?

Amúgy a make xconfig, make gconfig parancsok sem müködnek...

Hozzászólások

"mit hagyhatok ki, és mit nem)?"

Ehhez jegyezd fel a vasad adatait, ill a kernel felhasználás célját gondold át!

----------------------------------------------------------------

Ha modulban vannak a root fájlrendszer betöltéséhez a cuccok, akkor initrd-s kernel nem árt ;-).

Ha fixen vannak, akkor initrd felesleges.

Töltsd fel valahova a kernel configot, és a boot image opciókat.

Kernelt amúgy debian alatt lehet könnyen forgatni.

make menuconfig

után

make-kpkg --revision nyavalya.12345 --bzimage kernel_image

Ez elkészíti a natív kernelnek a deb csomagját, amit feltelepíthetsz.
illetve --bzimage helyett asszem --initrd készít inird deb-et is, amit szintén telepíteni kell.

Félresikerült kernel esetén előszőr make-kpkg clean (visszaállítani az alaphelyzetet.

Mondjuk hajólt'om van ennél újabb, szebb, lágyabb módszer is, de én "régivágású" ;-) vagyok, nekem ez jól bevált. Normál esetben azt szeretem, ami mindig használatban van, az legyen natívan kernelbe fordítva, ami nem állandóan az meg modulban. :-)

---------

Nem a zsömle kicsi, a pofátok nagy...

Mintha én is ezt írtam volna hogy --initrd elkészíti, de attól még a deb csomagot feltelepíteni (dpkg -i ) még fel kell :))

Más: Amúgy böhömkéhez:

Pontosan mi volt az oka a 2.6.18 -> 2.6.23 váltásnak. Mennyiben nem felelt meg a deb féle kernel? (kiváncsiságból kérdezem!)

--------

Nem a zsömle kicsi, a pofátok nagy...

ok értem, én meg ugy tudom, hogy a kernel-image-2.6.x.y.deb csomag generálja akkor az initrd-t is és nem külön csomagban lesz az initrd, de lehet, hogy csak én értettelek félre és mind a ketten ua-ról irunk.

Nekem mindig igazam van, ha nem, akkor nincs igazam, szoval megint igazam van hogy nincs igazam.
debian 4.0 - linux-2.6.22.9-pancs1-wifi2 - 2.6.22.9 kernel madwifivel itt

"Support for SATA (...)"

Elképzelhető! :)

A "help"-jét olvasd el!

----------------------------------------------------------------

1. apt-get install libncurses5-dev
2. SATA bekapcs a kernelben
3. boot-kor a kernel mögé ird be, hogy root=/dev/sda_AKARMI_
4. /etc/fstab-ban ird át a hd*-ról sd*-ra a particiókat, mivel libata subsys-re váltasz és ott mások az elnevezések
5. miért 2.6.22.3?? kint van már a 2.6.22.9-es ami egy rakat hibajavítást tartalmaz

Nekem mindig igazam van, ha nem, akkor nincs igazam, szoval megint igazam van hogy nincs igazam.
debian 4.0 - linux-2.6.22.6-pancs1-wifi2 - 2.6.22.6 kernel madwifivel itt

Vagy nem a SATA-val van a gond, vagy egyszerűen nem tudom beállítani.

Nincs kernel panic. Megáll ott, hogy Waiting for root file system, pedig sda2 a /, és a vmzlinuz -vagy milyen file-t- az elején megtalálta a grub.

Biztos, h valami nagyon egyszerű dologgal bénázok, de mi lehet az?

"egyébként ez alapján"

Elég "tömör" howto. :)

Csak nem "tömör professzor" írta?

"Good luck!"

Ehhez kell is! :D

"Waiting for root file system"

idézet:

"merevlemezes dolgokat (ide/sata controller, fájlrendszer) ugye nem modulba raktad? ;-)"

"A root fs-t és az alaplapi ide stb... cuccokat fixen rakd bele!"

----------------------------------------------------------------

Probald ezek szerint, nekem mukodott (igaz kubuntun), be is bootol rendesen. :D

1. How To Compile A Kernel - The Ubuntu Way

http://www.howtoforge.com/kernel_compilation_ubuntu

2. HOWTO: Kernel Compilation for Newbies :D

http://ubuntuforums.org/showthread.php?t=56835

Most nézem van Debian is:

http://www.howtoforge.com/howto_linux_kernel_2.6_compile_debian

En is csak azért vágtam bele, mert a ubuntu-félében úgy írja, hogy:
"It's a good idea to use the configuration of your current working kernel as a basis for your new kernel." és hogy hogyan kell.
De ettol még lehet ki/be kapcsolni amit szeretnénk.

minden gépre más, kell amibe másik chipset / cpu / egyébb dolog van, ennek az a alényege, hogy ami nem kell azt kiszeded és a saját gépedre optimalizálod a kernel-t, a felirod, milyen alaplapod, cpu-d és egyébb kártyáid vannak, akkor lehet, hogy kapsz kapsz egy .config-ot.

Nekem mindig igazam van, ha nem, akkor nincs igazam, szoval megint igazam van hogy nincs igazam.
debian 4.0 - linux-2.6.22.9-pancs1-wifi2 - 2.6.22.9 kernel madwifivel itt