[pso] [SO2] Intrebare lab2
Cosmin Ratiu
cosminratiu at gmail.com
Wed Feb 23 18:47:12 EET 2011
Salut Eduard.
In primul rand, te rog trimite mailurile de acest gen pe lista pentru
ca sunt mai multi ochi care or sa vada mail-ul si raspunsurile vor fi
mai rapide si mai bune. In plus, poate le va fi de folos si altora
care s-au intalnit cu problema asta.
Despre problema: cred ca iti lipseste linkul /usr/src/linux catre
tree-ul de kernel pt care compilezi.
Cosmin.
On Wed, Feb 23, 2011 at 6:31 PM, Eduard Tutescu
<eduard.tutescu at gmail.com> wrote:
> Salut Cosmin,
>
> Am si eu o problema cu cel de al dolea laborator de so2 pe masina
> virtuala care este disponibila pe site-ul de curs. Am descarcat masina
> virtuala si arhiva laboratorului 2 si am incercat sa dau make in primul
> exercitiu pentru a compila modulul, dar am intalnit urmatoarea problema:
>
> make[1]: Entering directory `/usr/src/linux-2.6.35-so-so2'
> ERROR: Kernel configuration is invalid.
> include/generated/autoconf.h or include/config/auto.conf are
> missing.
> Run 'make oldconfig && make prepare' on kernel src to fix it.
>
> WARNING: Symbol version dump /usr/src/linux-2.6.35-so-so2/Module.symvers
> is missing; modules will have no dependencies and modversions.
> CC [M] /root/lab02-tasks/lin/1-test-mod/hello_mod.o
> cc1: fatal error: include/generated/autoconf.h: No such file or directory
> compilation terminated.
> make[2]: *** [/root/lab02-tasks/lin/1-test-mod/hello_mod.o] Error 1
> make[1]: *** [_module_/root/lab02-tasks/lin/1-test-mod] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.35-so-so2'
> make: *** [kbuild] Error 2
> Stiu ca in laborator era un link simbolic in /lib/modules sau /usr/src/ dar
> am uitat sa iau fisierul in care scrisesem :)
> Am dat make oldconfig && make prepare in /usr/src/linux-2.6.35-so-so2 si am
> obtinut outputul:
> root at spook:/usr/src/linux-2.6.35-so-so2# make oldconfig && make prepare
> scripts/kconfig/conf -o arch/x86/Kconfig
> #
> # configuration written to .config
> #
> scripts/kconfig/conf -s arch/x86/Kconfig
> CHK include/linux/version.h
> UPD include/linux/version.h
> CHK include/generated/utsrelease.h
> UPD include/generated/utsrelease.h
> CC kernel/bounds.s
> GEN include/generated/bounds.h
> CC arch/x86/kernel/asm-offsets.s
> GEN include/generated/asm-offsets.h
> CALL scripts/checksyscalls.sh
> cand am incercat sa dau make in primul exercitiu am ramas doar cu warningul,
> dar compilarea a esuat:
> root at spook:~/lab02-tasks/lin/1-test-mod# make
> make -C /lib/modules/`uname -r`/build M=`pwd`
> make[1]: Entering directory `/usr/src/linux-2.6.35-so-so2'
> WARNING: Symbol version dump /usr/src/linux-2.6.35-so-so2/Module.symvers
> is missing; modules will have no dependencies and modversions.
> CC [M] /root/lab02-tasks/lin/1-test-mod/hello_mod.o
> Building modules, stage 2.
> MODPOST 1 modules
> /bin/sh: scripts/mod/modpost: not found
> make[2]: *** [__modpost] Error 127
> make[1]: *** [modules] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.35-so-so2'
> make: *** [kbuild] Error 2
> root at spook:~/lab02-tasks/lin/1-test-mod#
> Am citit in laboarator si in linux kernel development, dar nu erau
> specificate alte setari. Din ce imi dau seama, fata de masina din laborator
> imi lipseste acel link. Am pus mai jos continutul din /usr/src si
> /lib/modules
>
> root at spook:/usr/src# ls -l
> total 24396
> -rw-r--r-- 1 root src 6539 2011-01-24 18:06 linux_2.6.35-25.44.dsc
> drwxr-xr-x 27 root root 4096 2011-02-23 18:26 linux-2.6.35-so-so2
> drwxr-xr-x 24 root root 4096 2011-02-15 16:11
> linux-headers-2.6.35.10-so-so2
> -rw-r--r-- 1 root src 6790436 2011-02-15 15:50
> linux-headers-2.6.35.10-so-so2_2.6.35.10-so-so2-10.00.Custom_i386.deb
> -rw-r--r-- 1 root src 18097834 2011-02-15 15:44
> linux-image-2.6.35.10-so-so2_2.6.35.10-so-so2-10.00.Custom_i386.deb
> -rw-r--r-- 1 root src 72507 2011-02-12 12:19 packages.txt
>
> root at spook:/lib/modules# ls -l
> total 4
> drwxr-xr-x 3 root root 4096 2011-02-15 16:11 2.6.35.10-so-so2
> root at spook:/lib/module
>
> Multumesc,
> Eduard.
More information about the pso
mailing list