Send commitlog mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:

   1. r3091 - trunk/src/target/u-boot/patches
      ([EMAIL PROTECTED])
   2. r3092 - branches/src/target/kernel/2.6.23.x/patches
      ([EMAIL PROTECTED])
--- Begin Message ---
Author: laforge
Date: 2007-10-06 01:28:33 +0200 (Sat, 06 Oct 2007)
New Revision: 3091

Added:
   trunk/src/target/u-boot/patches/uboot-nand_write_yaffs.patch
Modified:
   trunk/src/target/u-boot/patches/series
Log:
add an (untested) patch to correctly write yaffs2 oob data


Modified: trunk/src/target/u-boot/patches/series
===================================================================
--- trunk/src/target/u-boot/patches/series      2007-10-05 11:57:08 UTC (rev 
3090)
+++ trunk/src/target/u-boot/patches/series      2007-10-05 23:28:33 UTC (rev 
3091)
@@ -77,3 +77,4 @@
 unbusy-i2c.patch 
 usbtty-irq-racecondition-fix.patch
 neo1973-gsmver.patch
+uboot-nand_write_yaffs.patch

Added: trunk/src/target/u-boot/patches/uboot-nand_write_yaffs.patch
===================================================================
--- trunk/src/target/u-boot/patches/uboot-nand_write_yaffs.patch        
2007-10-05 11:57:08 UTC (rev 3090)
+++ trunk/src/target/u-boot/patches/uboot-nand_write_yaffs.patch        
2007-10-05 23:28:33 UTC (rev 3091)
@@ -0,0 +1,35 @@
+Index: u-boot/common/cmd_nand.c
+===================================================================
+--- u-boot.orig/common/cmd_nand.c
++++ u-boot/common/cmd_nand.c
+@@ -378,6 +378,21 @@
+                               opts.quiet      = quiet;
+                               ret = nand_write_opts(nand, &opts);
+                       }
++              } else if (!read && s != NULL &&
++                         (!strcmp(s, ".yaffs") || !strcmp(s, ".yaffs1"))) {
++                      nand_write_options_t opts;
++                      memset(&opts, 0, sizeof(opts));
++                      opts.buffer     = (u_char*) addr;
++                      opts.length     = size;
++                      opts.offset     = off;
++                      opts.pad        = 0;
++                      opts.blockalign = 1;
++                      opts.quiet      = quiet;
++                      opts.writeoob   = 1;
++                      opts.autoplace  = 1;
++                      if (s[6] == '1')
++                              opts.forceyaffs = 1;
++                      ret = nand_write_opts(nand, &opts);
+               } else if (s != NULL && !strcmp(s, ".oob")) {
+                       /* read out-of-band data */
+                       if (read)
+@@ -524,6 +539,8 @@
+       "nand read[.jffs2]     - addr off|partition size\n"
+       "nand write[.jffs2]    - addr off|partiton size - read/write `size' 
bytes starting\n"
+       "    at offset `off' to/from memory address `addr'\n"
++      "nand write[.yaffs[1]]    - addr off|partiton size - read/write `size' 
byte yaffs image\n"
++      "    starting at offset `off' to/from memory address `addr' (.yaffs1 
for 512+16 NAND)\n"
+       "nand erase [clean] [off size] - erase `size' bytes from\n"
+       "    offset `off' (entire device if not specified)\n"
+       "nand bad - show bad blocks\n"




--- End Message ---
--- Begin Message ---
Author: shoragan
Date: 2007-10-06 11:47:25 +0200 (Sat, 06 Oct 2007)
New Revision: 3092

Removed:
   branches/src/target/kernel/2.6.23.x/patches/fix-change_console-race.patch
Modified:
   branches/src/target/kernel/2.6.23.x/patches/series
Log:
Drop fix-change_console-race because it was merged in 2.6.23-rc9.

Deleted: 
branches/src/target/kernel/2.6.23.x/patches/fix-change_console-race.patch
===================================================================
--- branches/src/target/kernel/2.6.23.x/patches/fix-change_console-race.patch   
2007-10-05 23:28:33 UTC (rev 3091)
+++ branches/src/target/kernel/2.6.23.x/patches/fix-change_console-race.patch   
2007-10-06 09:47:25 UTC (rev 3092)
@@ -1,25 +0,0 @@
-Index: linux-2.6.22/drivers/char/vt_ioctl.c
-===================================================================
---- linux-2.6.22.orig/drivers/char/vt_ioctl.c
-+++ linux-2.6.22/drivers/char/vt_ioctl.c
-@@ -1208,15 +1208,18 @@
-               /*
-                * Send the signal as privileged - kill_pid() will
-                * tell us if the process has gone or something else
--               * is awry
-+               * is awry.
-+               *
-+               * We need to set vt_newvt *before* sending the signal or we
-+               * have a race.
-                */
-+              vc->vt_newvt = new_vc->vc_num;
-               if (kill_pid(vc->vt_pid, vc->vt_mode.relsig, 1) == 0) {
-                       /*
-                        * It worked. Mark the vt to switch to and
-                        * return. The process needs to send us a
-                        * VT_RELDISP ioctl to complete the switch.
-                        */
--                      vc->vt_newvt = new_vc->vc_num;
-                       return;
-               }
- 

Modified: branches/src/target/kernel/2.6.23.x/patches/series
===================================================================
--- branches/src/target/kernel/2.6.23.x/patches/series  2007-10-05 23:28:33 UTC 
(rev 3091)
+++ branches/src/target/kernel/2.6.23.x/patches/series  2007-10-06 09:47:25 UTC 
(rev 3092)
@@ -46,4 +46,3 @@
 neo1973-soc-include-fix.patch
 explicitly-link-notes-section.patch
 fix-s3c2410fb-register-access.patch
-fix-change_console-race.patch




--- End Message ---
_______________________________________________
commitlog mailing list
[email protected]
http://lists.openmoko.org/mailman/listinfo/commitlog

Reply via email to