Menu

#4 Segmentation Fault

v1.0_(example)
open
nobody
5
2008-09-23
2008-09-23
Anonymous
No

brian@defiant:~/m5602-ov9650$ make
make -C /lib/modules/2.6.24-19-rt/build SUBDIRS=/home/brian/m5602-ov9650 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-19-rt'
CC [M] /home/brian/m5602-ov9650/m560x_core.o
/home/brian/m5602-ov9650/m560x_core.c: In function ‘show_model’:
/home/brian/m5602-ov9650/m560x_core.c:1570: warning: initialization from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c: In function ‘show_in_use’:
/home/brian/m5602-ov9650/m560x_core.c:1571: warning: initialization from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c: In function ‘show_streaming’:
/home/brian/m5602-ov9650/m560x_core.c:1572: warning: initialization from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c: In function ‘show_palette’:
/home/brian/m5602-ov9650/m560x_core.c:1573: warning: initialization from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c: In function ‘show_frames_total’:
/home/brian/m5602-ov9650/m560x_core.c:1574: warning: initialization from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c: In function ‘show_frames_read’:
/home/brian/m5602-ov9650/m560x_core.c:1575: warning: initialization from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c: In function ‘show_packets_dropped’:
/home/brian/m5602-ov9650/m560x_core.c:1576: warning: initialization from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c: In function ‘show_decoding_errors’:
/home/brian/m5602-ov9650/m560x_core.c:1577: warning: initialization from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c: In function ‘m560x_create_sysfs_files’:
/home/brian/m5602-ov9650/m560x_core.c:1581: warning: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c:1582: warning: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c:1583: warning: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c:1584: warning: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c:1585: warning: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c:1586: warning: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c:1587: warning: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c:1588: warning: passing argument 2 of ‘video_device_create_file’ from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c: In function ‘m560x_remove_sysfs_files’:
/home/brian/m5602-ov9650/m560x_core.c:1593: warning: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c:1594: warning: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c:1595: warning: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c:1596: warning: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c:1597: warning: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c:1598: warning: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c:1599: warning: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c:1600: warning: passing argument 2 of ‘video_device_remove_file’ from incompatible pointer type
/home/brian/m5602-ov9650/m560x_core.c: At top level:
/home/brian/m5602-ov9650/m560x_core.c:1580: warning: ‘m560x_create_sysfs_files’ defined but not used
/home/brian/m5602-ov9650/m560x_core.c:1592: warning: ‘m560x_remove_sysfs_files’ defined but not used
CC [M] /home/brian/m5602-ov9650/m5603_mt9v011.o
/home/brian/m5602-ov9650/m560x.h:51: warning: ‘m5603_sensor_table’ defined but not used
/home/brian/m5602-ov9650/m560x.h:52: warning: ‘m5602_sensor_table’ defined but not used
CC [M] /home/brian/m5602-ov9650/m5603_ov7640.o
CC [M] /home/brian/m5602-ov9650/m5602_mt9v111.o
CC [M] /home/brian/m5602-ov9650/m5602_ov9650.o
/home/brian/m5602-ov9650/m5602_ov9650.c: In function ‘ov9650_set_ctrl’:
/home/brian/m5602-ov9650/m5602_ov9650.c:64: warning: passing argument 3 of ‘ov9650_i2c_write’ makes pointer from integer without a cast
/home/brian/m5602-ov9650/m5602_ov9650.c:65: warning: passing argument 3 of ‘ov9650_i2c_write’ makes pointer from integer without a cast
/home/brian/m5602-ov9650/m5602_ov9650.c:68: warning: passing argument 3 of ‘ov9650_i2c_write’ makes pointer from integer without a cast
/home/brian/m5602-ov9650/m5602_ov9650.c:71: warning: passing argument 3 of ‘ov9650_i2c_write’ makes pointer from integer without a cast
/home/brian/m5602-ov9650/m5602_ov9650.c:74: warning: passing argument 3 of ‘ov9650_i2c_write’ makes pointer from integer without a cast
CC [M] /home/brian/m5602-ov9650/m5602_ov7640.o
CC [M] /home/brian/m5602-ov9650/m5602_dummy.o
LD [M] /home/brian/m5602-ov9650/m560x.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/brian/m5602-ov9650/m560x.mod.o
LD [M] /home/brian/m5602-ov9650/m560x.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-19-rt'
brian@defiant:~/m5602-ov9650$ sudo mkdir /lib/modules/`uname -r`/kernel/drivers/usb/media
mkdir: cannot create directory `/lib/modules/2.6.24-19-rt/kernel/drivers/usb/media': File exists
brian@defiant:~/m5602-ov9650$ ls
capture.c m5602_mt9v111.c m5603_mt9v011.c m560x.h Makefile
COPYING m5602_mt9v111.o m5603_mt9v011.o m560x.ko Module.symvers
fw m5602_ov7640.c m5603_ov7640.c m560x.mod.c README
INSTALL m5602_ov7640.o m5603_ov7640.o m560x.mod.o
m5602_dummy.c m5602_ov9650.c m560x_core.c m560x.o
m5602_dummy.o m5602_ov9650.o m560x_core.o m560x_sensor.h
brian@defiant:~/m5602-ov9650$ sudo cp m560x.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
brian@defiant:~/m5602-ov9650$ sudo depmod -a
brian@defiant:~/m5602-ov9650$ sudo modprobe m560x
Segmentation fault
brian@defiant:~/m5602-ov9650$

Discussion


Log in to post a comment.