[root@localhost intel-536EP-2.56.76.0-mdk10-SMP]# make 536 Module precompile check Current running kernel is: 2.6.17-5mdv /lib/modules... autoconf.h existsdiff: /boot/vmlinuz.autoconf.h: No such file or directory autoconf.h matches running kerneldiff: /boot/vmlinuz.version.h: No such file or directory version.h matches running kerneluname -r|grep "2.6" && \ cd coredrv && make 536core_26 && \ cp Intel536.ko .. && cd .. && \ strip --strip-debug Intel536.ko && \ exit; \ ls Intel536.ko >/dev/null 2>&1 || uname -r | grep "2.6" && echo "Failed to build driver" && exit; \ if [ ]; then \ cd coredrv; make TARGET=TARGET_SELAH KERNEL_SOURCE_PATH= "PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \ else \ cd coredrv; make TARGET=TARGET_SELAH KERNEL_INCLUDES=/lib/modules/`uname -r`/build/include \ "PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \ fi ; \ cp Intel536.o .. ; \ if [ -a /boot/vmlinuz.version.h ]; then \ cp /boot/vmlinuz.version.h /lib/modules/`uname -r`/build/include/linux/version.h;\ fi2.6.17-5mdvmake[1]: Вхожу у каталог "/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv"make -C /lib/modules/2.6.17-5mdv/build SUBDIRS=/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv modulesmake[2]: Вхожу у каталог "/usr/src/linux-2.6.17-5mdv" WARNING: Symbol version dump /usr/src/linux-2.6.17-5mdv/Module.symvers is missing; modules will have no dependencies and modversions. CC [M] /home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.o/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c:70: warning: data definition has no type or storage class/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c:70: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_NOVERS'/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c:70: warning: parameter names (without types) in function declaration/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c: In function 'power_callback':/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c:295: error: 'PM_SAVE_STATE' undeclared (first use in this function)/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c:295: error: (Each undeclared identifier is reported only once/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c:295: error: for each function it appears in.)/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c: In function 'close':/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c:418: warning: implicit declaration of function 'pm_unregister'/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c: In function 'send_data_to_user':/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c:565: error: 'struct tty_struct' has no member named 'flip'/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c:570: error: 'struct tty_struct' has no member named 'flip'/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c:571: error: 'struct tty_struct' has no member named 'flip'/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c:573: error: 'struct tty_struct' has no member named 'flip'/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c:574: error: 'struct tty_struct' has no member named 'flip'/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c:575: error: 'struct tty_struct' has no member named 'flip'/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c: At top level:/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c:643: error: expected ')' before string constant/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c:756: warning: initialization from incompatible pointer type/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c:757: warning: initialization from incompatible pointer type/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c: In function 'kScheduleDPC':/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c:863: warning: implicit declaration of function 'pm_access'/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c: In function 'dspdrv_CommRamISR':/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.c:879: warning: function declaration isn't a prototypemake[3]: *** [/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv/coredrv.o] Помилка 1make[2]: *** [_module_/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv] Помилка 2make[2]: Залишаю каталог "/usr/src/linux-2.6.17-5mdv"make[1]: *** [536core_26] Помилка 2make[1]: Залишаю каталог "/home/partizan/new/intel-536/intel-536ep-4.69-mdk10-smp/intel-536EP-2.56.76.0-mdk10-SMP/coredrv"Failed to build driver[root@localhost intel-536EP-2.56.76.0-mdk10-SMP]#
void send_data_to_user(void){ unsigned char ch; unsigned long flags; while(UART_dte_to_num() > 0) { ch = UART_dte_from_char(); spin_lock_irqsave(&(G.softcore->ptty->read_lock), flags); tty_insert_flip_char(G.softcore->ptty, ch, 0); tty_flip_buffer_push(G.softcore->ptty); spin_unlock_irqrestore(&(G.softcore->ptty->read_lock), flags); }}
patch -p0 -i <шлях_де_лежить_патч_наприклад_..>/intel-536ep-4.71-compilation_fixes-1.patch