Hie!

I found that it is not possible to build openwrt current for ar231x platform. It fails building gpio related modules with messages
...
 MODPOST 343 modules
ERROR: "ar231x_gpiodev" [drivers/w1/masters/w1-gpio.ko] undefined!
ERROR: "ar231x_gpiodev" [drivers/spi/spi_gpio_old.ko] undefined!
ERROR: "ar231x_gpiodev" [drivers/spi/spi_gpio.ko] undefined!
ERROR: "ar231x_gpiodev" [drivers/input/misc/gpio_buttons.ko] undefined!
ERROR: "ar231x_gpiodev" [drivers/i2c/busses/i2c-gpio.ko] undefined!
...

Eventually I found cmd for all of this modules includes arch/mips/include/ar231x/gpio.h with an extern variable called ar231x_gpiodev. After short googling I found such variables must have EXPORT_SYMBOL after definition. I found definition in arch/mips/ar231x/devices.c.

I hope the following patch will be helpful.

--- ./build_dir/linux-atheros/linux-2.6.28.10/arch/mips/ar231x/devices.c_old 2009-07-06 13:28:01.099918653 +0400 +++ ./build_dir/linux-atheros/linux-2.6.28.10/arch/mips/ar231x/devices.c 2009-07-06 13:28:06.734699709 +0400
@@ -13,6 +13,7 @@
struct ar231x_board_config ar231x_board;
int ar231x_devtype = DEV_TYPE_UNKNOWN;
const struct ar231x_gpiodev *ar231x_gpiodev;
+EXPORT_SYMBOL(ar231x_gpiodev);

static struct resource ar231x_eth0_res[] = {
       {


Kirill.

--
Кирилл Березин <[email protected]>
Старший инженер-программист
Группа развития ISP систем, Совинтел
Группа Компаний ВымпелКом

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to