도와주세요!!
완전 초짜입니다. 개발환경구축후 GPIO 테스트 해보려고 합니다,
그래서 EZ-S3C2440 보드로 GPIO 테스트 하는 프로그램있길래 쫓아해봤는데요,
제가 가지고있는 보드는 EZ-PXA270 보드입니다.
make clean 후 make 하니까 밑에와 같은 오류가 납니다.
재생각에는 보드가 틀려서 생기는 오류인거 갔습니다. 아닌가요?ㅋㅋ
....생략
/root/project/dev-gpio/dev_gpio.c: In function `hw_gpio_init':
/root/project/dev-gpio/dev_gpio.c:68: warning: implicit declaration of function `gpio_direction_input'
/root/project/dev-gpio/dev_gpio.c:68: error: `S3C2410_GPG5' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:69: warning: implicit declaration of function `set_irq_type'
/root/project/dev-gpio/dev_gpio.c:69: error: `IRQ_EINT13' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:69: error: `IRQT_RISING' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:70: warning: implicit declaration of function `s3c2410_gpio_pullup'
/root/project/dev-gpio/dev_gpio.c:70: error: `S3C2410_GPE11' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:73: error: `S3C2410_GPG11' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:74: error: `S3C2410_GPE5' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:78: warning: implicit declaration of function `gpio_direction_output'
/root/project/dev-gpio/dev_gpio.c:78: error: `S3C2410_GPF0' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:79: error: `S3C2410_GPF1' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:80: error: `S3C2410_GPF2' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:81: error: `S3C2410_GPF3' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:82: error: `S3C2410_GPF4' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:83: error: `S3C2410_GPF5' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:84: error: `S3C2410_GPF6' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:85: error: `S3C2410_GPF7' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c: In function `gpio_btn_interrupt':
/root/project/dev-gpio/dev_gpio.c:96: warning: implicit declaration of function `s3c2410_gpio_setpin'
/root/project/dev-gpio/dev_gpio.c:96: error: `S3C2410_GPF4' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c: At top level:
/root/project/dev-gpio/dev_gpio.c:105: error: parse error before "gpio_read"
/root/project/dev-gpio/dev_gpio.c:105: error: parse error before "size_t"
/root/project/dev-gpio/dev_gpio.c:106: warning: return type defaults to `int'
/root/project/dev-gpio/dev_gpio.c:106: warning: function declaration isn't a prototype
/root/project/dev-gpio/dev_gpio.c: In function `gpio_read':
/root/project/dev-gpio/dev_gpio.c:114: warning: implicit declaration of function `gpio_get_value'
/root/project/dev-gpio/dev_gpio.c:114: error: `S3C2410_GPG11' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:124: warning: implicit declaration of function `put_user'
/root/project/dev-gpio/dev_gpio.c: In function `set_gpio_f':
/root/project/dev-gpio/dev_gpio.c:138: warning: implicit declaration of function `gpio_set_value'
/root/project/dev-gpio/dev_gpio.c:138: error: `S3C2410_GPF0' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:139: error: `S3C2410_GPF1' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:140: error: `S3C2410_GPF2' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:141: error: `S3C2410_GPF3' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:142: error: `S3C2410_GPF4' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:143: error: `S3C2410_GPF5' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:144: error: `S3C2410_GPF6' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:145: error: `S3C2410_GPF7' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c: In function `gpio_ioctl':
/root/project/dev-gpio/dev_gpio.c:157: warning: implicit declaration of function `_IOC_TYPE'
/root/project/dev-gpio/dev_gpio.c:157: error: `EINVAL' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:158: warning: implicit declaration of function `_IOC_NR'
/root/project/dev-gpio/dev_gpio.c:162: warning: implicit declaration of function `_IOW'
/root/project/dev-gpio/dev_gpio.c:162: error: parse error before "int"
/root/project/dev-gpio/dev_gpio.c:163: error: parse error before "int"
/root/project/dev-gpio/dev_gpio.c: At top level:
/root/project/dev-gpio/dev_gpio.c:195: error: variable `gpio_fops' has initializer but incomplete type
/root/project/dev-gpio/dev_gpio.c:197: error: unknown field `open' specified in initializer
/root/project/dev-gpio/dev_gpio.c:197: warning: excess elements in struct initializer
/root/project/dev-gpio/dev_gpio.c:197: warning: (near initialization for `gpio_fops')
/root/project/dev-gpio/dev_gpio.c:198: error: unknown field `release' specified in initializer
/root/project/dev-gpio/dev_gpio.c:198: warning: excess elements in struct initializer
/root/project/dev-gpio/dev_gpio.c:198: warning: (near initialization for `gpio_fops')
/root/project/dev-gpio/dev_gpio.c:199: error: unknown field `read' specified in initializer
/root/project/dev-gpio/dev_gpio.c:199: warning: excess elements in struct initializer
/root/project/dev-gpio/dev_gpio.c:199: warning: (near initialization for `gpio_fops')
/root/project/dev-gpio/dev_gpio.c:200: error: unknown field `ioctl' specified in initializer
/root/project/dev-gpio/dev_gpio.c:200: warning: excess elements in struct initializer
/root/project/dev-gpio/dev_gpio.c:200: warning: (near initialization for `gpio_fops')
/root/project/dev-gpio/dev_gpio.c: In function `gpio_init':
/root/project/dev-gpio/dev_gpio.c:219: error: `EBUSY' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:226: error: `IRQ_EINT13' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c:226: warning: passing arg 2 of `request_irq' from incompatible pointer type
/root/project/dev-gpio/dev_gpio.c: In function `gpio_exit':
/root/project/dev-gpio/dev_gpio.c:248: error: `IRQ_EINT13' undeclared (first use in this function)
/root/project/dev-gpio/dev_gpio.c: At top level:
include/linux/elf.h:367: warning: array '_DYNAMIC' assumed to have one element
include/linux/stat.h:68: error: storage size of `atime' isn't known
include/linux/stat.h:69: error: storage size of `mtime' isn't known
include/linux/stat.h:70: error: storage size of `ctime' isn't known
include/linux/fs.h:344: error: storage size of `ia_atime' isn't known
include/linux/fs.h:345: error: storage size of `ia_mtime' isn't known
include/linux/fs.h:346: error: storage size of `ia_ctime' isn't known
include/linux/quota.h:227: error: storage size of `dq_dqb' isn't known
include/linux/fs.h:462: error: storage size of `bd_mutex' isn't known
include/linux/fs.h:463: error: storage size of `bd_mount_sem' isn't known
include/linux/fs.h:544: error: storage size of `i_atime' isn't known
include/linux/fs.h:545: error: storage size of `i_mtime' isn't known
include/linux/fs.h:546: error: storage size of `i_ctime' isn't known
include/linux/fs.h:552: error: storage size of `i_mutex' isn't known
include/linux/fs.h:553: error: storage size of `i_alloc_sem' isn't known
include/linux/fs.h:726: error: storage size of `f_owner' isn't known
include/linux/fs.h:917: error: storage size of `s_umount' isn't known
include/linux/fs.h:918: error: storage size of `s_lock' isn't known
include/linux/fs.h:949: error: storage size of `s_vfs_rename_mutex' isn't known
include/linux/aio.h:115: error: storage size of `ki_inline_vec' isn't known
include/linux/sched.h:326: error: storage size of `mmap_sem' isn't known
include/linux/sched.h:380: error: storage size of `action' isn't known
include/linux/sched.h:409: error: storage size of `shared_pending' isn't known
include/linux/sched.h:429: error: storage size of `real_timer' isn't known
include/linux/sched.h:478: error: storage size of `rlim' isn't known
include/linux/sched.h:887: error: storage size of `start_time' isn't known
include/linux/sched.h:928: error: storage size of `thread' isn't known
include/linux/sched.h:941: error: storage size of `pending' isn't known
include/linux/device.h:267: error: storage size of `uevent_attr' isn't known
include/linux/device.h:435: error: storage size of `archdata' isn't known
include/linux/mod_devicetable.h:298: error: storage size of `evbit' isn't known
include/linux/mod_devicetable.h:299: error: storage size of `keybit' isn't known
include/linux/mod_devicetable.h:300: error: storage size of `relbit' isn't known
include/linux/mod_devicetable.h:301: error: storage size of `absbit' isn't known
include/linux/mod_devicetable.h:302: error: storage size of `mscbit' isn't known
include/linux/mod_devicetable.h:303: error: storage size of `ledbit' isn't known
include/linux/mod_devicetable.h:304: error: storage size of `sndbit' isn't known
include/linux/mod_devicetable.h:305: error: storage size of `ffbit' isn't known
include/linux/mod_devicetable.h:306: error: storage size of `swbit' isn't known
include/linux/i2c.h:225: error: storage size of `bus_lock' isn't known
include/linux/i2c.h:226: error: storage size of `clist_lock' isn't known
include/linux/i2c.h:230: error: storage size of `dev' isn't known
include/linux/i2c.h:231: error: storage size of `class_dev' isn't known
/root/project/dev-gpio/dev_gpio.c:195: error: storage size of `gpio_fops' isn't known
make[2]: *** [/root/project/dev-gpio/dev_gpio.o] 오류 1
make[1]: *** [_module_/root/project/dev-gpio] 오류 2
make[1]: Leaving directory `/root/project/linux-2.6.21'
make: *** [default] 오류 2
자답하겠습니다. 오류이유는..
kernel 가져오고 나서 kernel 폴더안에서 sh falinux-config.sh <보드명> 이후 make 를 안해줘서 그렇습니다.ㅠㅠ
이렇게 하나하나 배워나가는 거죠.ㅋㅋㅋㅋㅋㅋ
제가 한 답이 맞나요?
컴파일은 되긴 대는데.. 맞게 한건지요?