Re: [crisos] FoxGM Support on Crisos???

[ Thread Index | Date Index | More lists.tuxfamily.org/crisos Archives ]


I made patch to disable the foxbones support and made ugly hack witch
allows to use GPIO. This compiles, and GPIO is tested to work in my
fox board..

I Tried to make it so that it would automatically be patched like
other patches so putting this file into
trunk/target/linux/etrax/patches-2.6.19
and deleting  trunk/build_dir/linux-etrax/linux-2.6.19.2/ directory
should apply these patches automatically..

Right  fix for this is off course fix the broken build for foxbone,
but I dont know howto..

# cat 700-foxbones_out.patch
diff -Naur linux-2.6.19.2-ori/arch/cris/arch-v10/drivers/gpio.c
linux-2.6.19.2/arch/cris/arch-v10/drivers/gpio.c
--- linux-2.6.19.2-ori/arch/cris/arch-v10/drivers/gpio.c	2008-09-05
09:38:53.000000000 +0300
+++ linux-2.6.19.2/arch/cris/arch-v10/drivers/gpio.c	2008-09-09
09:57:39.000000000 +0300
@@ -194,6 +194,8 @@

 #define D(x)

+int errno;
+
 #if 0
 static int dp_cnt;
 #define DP(x) do { dp_cnt++; if (dp_cnt % 1000 == 0) x; }while(0)
diff -Naur linux-2.6.19.2-ori/arch/cris/arch-v10/drivers/gpio_syscalls.c
linux-2.6.19.2/arch/cris/arch-v10/drivers/gpio_syscalls.c
--- linux-2.6.19.2-ori/arch/cris/arch-v10/drivers/gpio_syscalls.c	2008-09-05
09:38:55.000000000 +0300
+++ linux-2.6.19.2/arch/cris/arch-v10/drivers/gpio_syscalls.c	2008-09-09
09:50:26.000000000 +0300
@@ -1,5 +1,5 @@

-#include <linux/config.h>
+#include <linux/autoconf.h>

 #include <linux/module.h>
 #include <linux/sched.h>
@@ -26,7 +26,7 @@
 #include <asm/unistd.h>


-extern int errno;
+//extern int errno;


 asmlinkage void sys_gpiosetbits(unsigned char port, unsigned int bits){
diff -Naur linux-2.6.19.2-ori/arch/cris/arch-v10/drivers/i2c.c
linux-2.6.19.2/arch/cris/arch-v10/drivers/i2c.c
--- linux-2.6.19.2-ori/arch/cris/arch-v10/drivers/i2c.c	2008-09-05
09:38:53.000000000 +0300
+++ linux-2.6.19.2/arch/cris/arch-v10/drivers/i2c.c	2008-09-09
09:42:25.000000000 +0300
@@ -109,7 +109,7 @@
 #include <linux/module.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
-#include <linux/errno.h>
+//#include <linux/errno.h>
 #include <linux/kernel.h>
 #include <linux/fs.h>
 #include <linux/string.h>
diff -Naur linux-2.6.19.2-ori/arch/cris/arch-v10/drivers/Makefile
linux-2.6.19.2/arch/cris/arch-v10/drivers/Makefile
--- linux-2.6.19.2-ori/arch/cris/arch-v10/drivers/Makefile	2008-09-05
09:38:56.000000000 +0300
+++ linux-2.6.19.2/arch/cris/arch-v10/drivers/Makefile	2008-09-09
09:28:48.000000000 +0300
@@ -7,7 +7,7 @@
 obj-$(CONFIG_ETRAX_I2C_EEPROM)          += eeprom.o
 obj-$(CONFIG_ETRAX_GPIO) 	        += gpio.o
 obj-$(CONFIG_ETRAX_GPIO)		+= gpio_syscalls.o
-obj-$(CONFIG_ETRAX_GPIO)                += foxbone_syscalls.o
+#obj-$(CONFIG_ETRAX_GPIO)                += foxbone_syscalls.o
 obj-$(CONFIG_ETRAX_DS1302)              += ds1302.o
 obj-$(CONFIG_ETRAX_PCF8563)		+= pcf8563.o
 obj-$(CONFIG_ETRAX_SYNCHRONOUS_SERIAL)  += sync_serial.o
diff -Naur linux-2.6.19.2-ori/arch/cris/arch-v10/drivers/sync_serial.c
linux-2.6.19.2/arch/cris/arch-v10/drivers/sync_serial.c
--- linux-2.6.19.2-ori/arch/cris/arch-v10/drivers/sync_serial.c	2008-09-05
09:38:53.000000000 +0300
+++ linux-2.6.19.2/arch/cris/arch-v10/drivers/sync_serial.c	2008-09-09
09:42:47.000000000 +0300
@@ -14,7 +14,7 @@
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
-#include <linux/errno.h>
+//#include <linux/errno.h>
 #include <linux/major.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
diff -Naur linux-2.6.19.2-ori/include/linux/gpio_syscalls.h
linux-2.6.19.2/include/linux/gpio_syscalls.h
--- linux-2.6.19.2-ori/include/linux/gpio_syscalls.h	2008-09-05
09:38:55.000000000 +0300
+++ linux-2.6.19.2/include/linux/gpio_syscalls.h	2008-09-09
09:22:38.000000000 +0300
@@ -1,6 +1,6 @@
 #ifndef __LINUX_SYSCALL_GPIO
 #define __LINUX_SYSCALL_GPIO
-#include <linux/config.h>
+#include <linux/autoconf.h>
 #include <linux/kernel.h>
 #include <linux/errno.h>
 #include <asm/unistd.h>


-- 
Toni Röyhy
+358 (0)443627046

Attachment: 700-foxbones_out.patch
Description: Binary data



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/