Jump to content
XPEnology Community

Struggling to compile cx23885.ko module


cqoute

Recommended Posts

This is my first attempt at compiling a module for synology. I'm using DSM 4.3 DS3612xs (viewtopic.php?f=2&t=1361&p=17406#p17406 (beta 8) ). I have downloaded Intel x86 Linux 3.2.40 (Bromolow) toolchain and synogpl-3776-bromolow.tbz from github. I then extracted these to /usr/local/ and /usr/local/x86_64-linux-gnu respectively.

I then edit Makefile and changed ARCH ?= x86_64 and CROSS_COMPILE ?= /usr/local/x86_64-linux-gnu/bin/x86_64-linux-gnu-...

Then from following guides i did

 

make oldconfig

make menuconfig

 

Inside this GUI I had ticked the boxes as that corresponds to cx23885. After I make modules, it all seemed to run fine but I never receive cx23885.ko, even after find ./ -name cx23885.ko it just doesn't exist. Could someone please explain to me what i could be doing wrong? This has been frustrating me for quite a while now.

Link to comment
Share on other sites

Ok so i tried again but this time with synogpl-4418-bromolow.tbz and it created the cx23885.ko file. I copied it over from the VirtualBox to the DiskStation, I then tried

 

/sbin/modprobe cx23885.ko

which then says "modprobe: chdir(3.2.40): No such file or directory"

 

so i next tried

/sbin/insmod /usr/lib/modules/cx23885.ko

which then tells me "insmod: can't insert '/usr/lib/modules/cx23885.ko': unknown symbol in module, or unknown parameter"

 

also dmesg shows

[ 1094.090716] cx23885: Unknown symbol videobuf_streamoff (err 0)
[ 1094.090752] cx23885: Unknown symbol v4l2_norm_to_name (err 0)
[ 1094.090781] cx23885: Unknown symbol videobuf_poll_stream (err 0)
[ 1094.090810] cx23885: Unknown symbol video_ioctl2 (err 0)
[ 1094.090840] cx23885: Unknown symbol videobuf_read_stop (err 0)
[ 1094.090872] cx23885: Unknown symbol videobuf_dma_map (err 0)
[ 1094.090915] cx23885: Unknown symbol cx2341x_ext_ctrls (err 0)
[ 1094.090954] cx23885: Unknown symbol tda18271_attach (err 0)
[ 1094.090988] cx23885: Unknown symbol tda829x_attach (err 0)
[ 1094.091019] cx23885: Unknown symbol videobuf_dma_free (err 0)
[ 1094.091053] cx23885: Unknown symbol videobuf_reqbufs (err 0)
[ 1094.091086] cx23885: Unknown symbol stv6110_attach (err 0)
[ 1094.091120] cx23885: Unknown symbol s5h1409_attach (err 0)
[ 1094.091148] cx23885: Unknown symbol videobuf_waiton (err 0)
[ 1094.091179] cx23885: Unknown symbol xc5000_attach (err 0)
[ 1094.091208] cx23885: Unknown symbol v4l2_subdev_init (err 0)
[ 1094.091238] cx23885: Unknown symbol videobuf_dqbuf (err 0)
[ 1094.091268] cx23885: Unknown symbol s5h1411_attach (err 0)
[ 1094.091298] cx23885: Unknown symbol videobuf_dvb_alloc_frontend (err 0)
[ 1094.091329] cx23885: Unknown symbol v4l2_i2c_subdev_addr (err 0)
[ 1094.091358] cx23885: Unknown symbol v4l2_device_register_subdev (err 0)
[ 1094.091390] cx23885: Unknown symbol cx2341x_ctrl_query (err 0)
[ 1094.091420] cx23885: Unknown symbol video_devdata (err 0)
[ 1094.091449] cx23885: Unknown symbol v4l_bound_align_image (err 0)
[ 1094.091480] cx23885: Unknown symbol cx24116_attach (err 0)
[ 1094.091510] cx23885: Unknown symbol v4l2_type_names (err 0)
[ 1094.091538] cx23885: Unknown symbol tda10048_attach (err 0)
[ 1094.091567] cx23885: Unknown symbol v4l2_device_unregister_subdev (err 0)
[ 1094.091597] cx23885: Unknown symbol v4l2_ctrl_next (err 0)
[ 1094.091629] cx23885: Unknown symbol btcx_riscmem_alloc (err 0)
[ 1094.091658] cx23885: Unknown symbol videobuf_dvb_get_frontend (err 0)
[ 1094.091691] cx23885: Unknown symbol tveeprom_read (err 0)
[ 1094.091719] cx23885: Unknown symbol videobuf_queue_sg_init (err 0)
[ 1094.091749] cx23885: Unknown symbol btcx_riscmem_free (err 0)
[ 1094.091778] cx23885: Unknown symbol v4l2_ctrl_query_menu (err 0)
[ 1094.091808] cx23885: Unknown symbol videobuf_dma_unmap (err 0)
[ 1094.091837] cx23885: Unknown symbol videobuf_read_stream (err 0)
[ 1094.091868] cx23885: Unknown symbol lgdt3305_attach (err 0)
[ 1094.091900] cx23885: Unknown symbol videobuf_querybuf (err 0)
[ 1094.091934] cx23885: Unknown symbol video_unregister_device (err 0)
[ 1094.091964] cx23885: Unknown symbol videobuf_qbuf (err 0)
[ 1094.091994] cx23885: Unknown symbol cx2341x_update (err 0)
[ 1094.092024] cx23885: Unknown symbol video_device_alloc (err 0)
[ 1094.092053] cx23885: Unknown symbol videobuf_read_one (err 0)
[ 1094.092083] cx23885: Unknown symbol videobuf_dma_init (err 0)
[ 1094.092115] cx23885: Unknown symbol cx2341x_ctrl_get_menu (err 0)
[ 1094.092144] cx23885: Unknown symbol v4l2_device_register (err 0)
[ 1094.092176] cx23885: Unknown symbol videobuf_dvb_unregister_bus (err 0)
[ 1094.092212] cx23885: Unknown symbol ds3000_attach (err 0)
[ 1094.092242] cx23885: Unknown symbol cx2341x_log_status (err 0)
[ 1094.092272] cx23885: Unknown symbol mt2131_attach (err 0)
[ 1094.092302] cx23885: Unknown symbol videobuf_dma_init_kernel (err 0)
[ 1094.092332] cx23885: Unknown symbol cx2341x_fill_defaults (err 0)
[ 1094.092362] cx23885: Unknown symbol videobuf_dvb_register_bus (err 0)
[ 1094.092393] cx23885: Unknown symbol videobuf_iolock (err 0)
[ 1094.092425] cx23885: Unknown symbol __video_register_device (err 0)
[ 1094.092455] cx23885: Unknown symbol videobuf_streamon (err 0)
[ 1094.092485] cx23885: Unknown symbol stv0900_attach (err 0)
[ 1094.092514] cx23885: Unknown symbol videobuf_queue_cancel (err 0)
[ 1094.092543] cx23885: Unknown symbol videobuf_dvb_dealloc_frontends (err 0)
[ 1094.092574] cx23885: Unknown symbol v4l2_i2c_tuner_addrs (err 0)
[ 1094.092604] cx23885: Unknown symbol v4l2_device_unregister (err 0)
[ 1094.092634] cx23885: Unknown symbol xc4000_attach (err 0)
[ 1094.092664] cx23885: Unknown symbol stv0367cab_attach (err 0)
[ 1094.092694] cx23885: Unknown symbol tveeprom_hauppauge_analog (err 0)
[ 1094.092723] cx23885: Unknown symbol video_device_release (err 0)
[ 1094.092757] cx23885: Unknown symbol v4l2_i2c_new_subdev (err 0)
[ 1094.092786] cx23885: Unknown symbol videobuf_mmap_mapper (err 0)
[ 1094.092817] cx23885: Unknown symbol cx2341x_mpeg_ctrls (err 0)
[ 1094.092848] cx23885: Unknown symbol lnbh24_attach (err 0)
[ 1094.092877] cx23885: Unknown symbol stv0367ter_attach (err 0)
[ 1094.092911] cx23885: Unknown symbol videobuf_to_dma (err 0)
[ 1094.092940] cx23885: Unknown symbol videobuf_mmap_free (err 0)

 

 

What could the problem be now?

Link to comment
Share on other sites

Ok, I feel like im inching closer, I added modules 1 by 1 but am stuck on this specific module

 

[ 2998.665893] videobuf_dvb: Unknown symbol __refrigerator (err 0)
[ 2998.743057] cx23885: Unknown symbol videobuf_dvb_alloc_frontend (err 0)
[ 2998.743126] cx23885: Unknown symbol btcx_riscmem_alloc (err 0)
[ 2998.743158] cx23885: Unknown symbol videobuf_dvb_get_frontend (err 0)
[ 2998.743201] cx23885: Unknown symbol btcx_riscmem_free (err 0)
[ 2998.743282] cx23885: Unknown symbol videobuf_dvb_unregister_bus (err 0)
[ 2998.743332] cx23885: Unknown symbol videobuf_dvb_register_bus (err 0)
[ 2998.743381] cx23885: Unknown symbol videobuf_dvb_dealloc_frontends (err 0)
[ 2998.743450] cx23885: Unknown symbol lnbh24_attach (err 0)

 

I need to know how to bypass this in regards to the __refrigerator

Link to comment
Share on other sites

×
×
  • Create New...