On 12/27/06, Phil Sutter <[EMAIL PROTECTED]> wrote:
On Wed, Dec 27, 2006 at 03:46:14PM +0100, Christian Gmeiner wrote:
> sb_irq is used for button handling, and i dont know where to look, to
> get sb_irq exported from the kernel. Maybe someone can help me?

sb_irq() is defined and exported in
target/linux/brcm-2.4/patches/001-bcm47xx.patch, both in FreeWRT and
OpenWrt.

Should i see it in /proc/ksyms?

[EMAIL PROTECTED]:~# cat /proc/ksyms | grep sb_gpioout
800bd2c0 sb_gpioouten
800bd324 sb_gpioout
[EMAIL PROTECTED]:~# cat /proc/ksyms | grep sb_irq
[EMAIL PROTECTED]:~#

If not, do i need some special linking? Attached is the current Makefile.

cheers,
christian
# $FreeWRT$
#-
# This file is part of the FreeWRT project. FreeWRT is copyrighted
# material, please see the LICENCE file in the top-level directory
# or at http://www.freewrt.org/licence for details.

include $(TOPDIR)/rules.mk
include $(TOPDIR)/mk/targets.mk

PKG_NAME:=		broadcom-diag
PKG_VERSION:=		2.0
PKG_RELEASE:=		1

DISTFILES:=

include $(TOPDIR)/mk/package.mk

$(eval $(call PKG_template,KMOD_BROADCOM_DIAG,kmod-$(PKG_NAME),$(KERNEL_VERSION)-$(BOARD)-$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH),kernel ($(KERNEL_VERSION)-$(BOARD)-$(KERNEL_RELEASE))))

DIAG_FLAGS:=$(TARGET_CFLAGS) -D__KERNEL__ -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 \
		-mno-abicalls -fno-pic -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 \
		-Wa,-mips32 -Wa,--trap -Wstrict-prototypes -Wno-trigraphs -DMODULE -mlong-calls -fno-common -I. -I linux-2.4 -nostdinc \
		-iwithprefix include -I$(LINUX_DIR)/include -I$(LINUX_DIR)/include/asm/gcc -c -I$(LINUX_DIR)/arch/mips/bcm947xx/include -DBCMDRIVER

$(WRKBUILD)/.prepared:
	mkdir -p $(WRKBUILD)
	touch $@

$(WRKBUILD)/.built:
	$(TARGET_CC) $(DIAG_FLAGS) -o $(WRKBUILD)/diag.o diag.c
	touch $@
	
$(IPKG_KMOD_BROADCOM_DIAG):
	$(INSTALL_DIR) $(IDIR_KMOD_BROADCOM_DIAG)/lib/modules/$(KERNEL_VERSION)
	$(INSTALL_DATA) $(WRKBUILD)/diag.o \
		$(IDIR_KMOD_BROADCOM_DIAG)/lib/modules/$(KERNEL_VERSION)/
	$(IPKG_BUILD) $(IDIR_KMOD_BROADCOM_DIAG) $(PACKAGE_DIR)
_______________________________________________
freewrt-developers mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-developers

Reply via email to