[Voyage-linux] Building the 2.6.32 kernel for Voyage on a WRAP

Rasjid Wilcox (spam-protected)
Sun Feb 28 23:21:40 HKT 2010


2010/2/26 Sean <knife at toaster.net>

>  I would use the same kernel config as voyage, just do a make oldconfig to
> upgrade the config and then a make menuconfig.
>
> Correct me if I am wrong, but I don't think there are any kernel *patches*
> per se.
>
>
For the WRAP board, there are definitely patches required.  In particular,
the wd1100 driver needs to be updated for the 2.6.32 kernel.

The following patch seems to work, with nothing but a deprecation warning.

--- linux-source-2.6.30-voyage/drivers/watchdog/wd1100.c    2009-12-27
10:39:53.000000000 +0000
+++ linux-source-2.6.32/drivers/watchdog/wd1100.c    2010-02-28
11:55:34.000000000 +0000
@@ -51,13 +51,11 @@

 static int proc_wd_timeout(ctl_table   *ctl,
                            int          write,
-                           struct file *file,
                            void        *buffer,
                            size_t      *lenp,
                            loff_t      *ppos);
 static int proc_wd_graceful(ctl_table   *ctl,
                             int          write,
-                            struct file *file,
                             void        *buffer,
                             size_t      *lenp,
                             loff_t      *ppos);
@@ -133,14 +131,13 @@

 static int proc_wd_timeout(ctl_table   *ctl,
                            int          write,
-                           struct file *file,
                            void        *buffer,
                            size_t      *lenp,
                            loff_t      *ppos)
 {
   int   rc;

-  rc = proc_dointvec(ctl, write, file, buffer, lenp, ppos);
+  rc = proc_dointvec(ctl, write, buffer, lenp, ppos);
   if (write && (rc == 0))
   {
      /* Clamp to limits. */
@@ -155,14 +152,13 @@

 static int proc_wd_graceful(ctl_table   *ctl,
                             int          write,
-                            struct file *file,
                             void        *buffer,
                             size_t      *lenp,
                             loff_t      *ppos)
 {
   int   rc;

-  rc = proc_dointvec(ctl, write, file, buffer, lenp, ppos);
+  rc = proc_dointvec(ctl, write, buffer, lenp, ppos);
   if (write && (rc == 0))
   {
      /* Clamp to true/false. */

----------------------------

Cheers,

Rasjid.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20100301/61c01a60/attachment-0001.html>


More information about the Voyage-linux mailing list