Hi,

I am quite new with openwrt - I am trying to add the ssd1307fb as kernel module to openwrt build.
I followed the instructions in http://wiki.openwrt.org/doc/devel/packa … el.modules
and added the following to packages/linux/kernel/modules/video.mk:

define KernelPackage/sd1307fb
  SUBMENU:=$(VIDEO_MENU)
  TITLE:=Solomon SSD1307 framebuffer support
  DEPENDS:=+kmod-fb +kmod-i2c-core #+kmod-fb-cfb-imgblt +kmod-fb-cfb-copyarea +kmod-fb-cfb-fillrect
  KCONFIG:=CONFIG_FB_SSD1307# CONFIG_FB_SYS_FOPS CONFIG_FB_SYS_FILLRECT
  FILES:=$(LINUX_DIR)/drivers/video/ssd1307fb.ko
endef

define KernelPackage/sd1307fb/description
Kernel support sd1307fb oled device
endef

$(eval $(call KernelPackage,sd1307fb))

And the corresponding kconfig in linux/drivers/kconfig:
config FB_SSD1307
    tristate "Solomon SSD1307 framebuffer support"
    depends on FB && I2C
    depends on OF
    depends on GPIOLIB
    select FB_SYS_FOPS
    select FB_SYS_FILLRECT
    select FB_SYS_COPYAREA
    select FB_SYS_IMAGEBLIT
    select FB_DEFERRED_IO
    select PWM
    help
      This driver implements support for the Solomon SSD1307
      OLED controller over I2C.


Then, in make menuconfig I enabled the following:
CONFIG_DISPLAY_SUPPORT=y
CONFIG_PACKAGE_kmod-fb=y
CONFIG_PACKAGE_kmod-sd1307fb=y

Build fails with the following error:
Package kmod-sd1307fb is missing dependencies for the following libraries:
fb_sys_fops.ko
syscopyarea.ko
sysfillrect.ko
sysimgblt.ko

I looked for example for fb_sys_fops in the kernel:
drivers/video/Makefile: obj-$(CONFIG_FB_SYS_FOPS)      += fb_sys_fops.o
And in the fp_sys_fops.c file itself there is only an EXPORT_SYMBOL for some functions, so I don't think it should be compiled as module, but in the kernel's .config I could see that CONFIG_FB_SYS_FOPS=m (same for the others).


Any ideas?

Thanks in advance,

Tomer