unslung-kernel: Added cp437 back into the kernel instead of being a module, Added...
authorRod Whitby <rod@whitby.id.au>
Wed, 4 Jan 2006 11:51:37 +0000 (11:51 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Wed, 4 Jan 2006 11:51:37 +0000 (11:51 +0000)
packages/linux/unslung-kernel/defconfig
packages/linux/unslung-kernel/flash-is-now-hdd.patch [new file with mode: 0644]
packages/linux/unslung-kernel/linux-kernel-R29_to_R63.patch
packages/linux/unslung-kernel_2.4.22.l2.3r63.bb

index 110728b..f5d9653 100644 (file)
@@ -660,7 +660,7 @@ CONFIG_SR_EXTRA_DEVS=2
 # Some SCSI devices (e.g. CD jukebox) support multiple LUNs
 #
 # CONFIG_SCSI_DEBUG_QUEUES is not set
-# CONFIG_SCSI_MULTI_LUN is not set
+CONFIG_SCSI_MULTI_LUN=y
 # CONFIG_SCSI_CONSTANTS is not set
 # CONFIG_SCSI_LOGGING is not set
 
@@ -982,7 +982,7 @@ CONFIG_NLS=y
 # Native Language Support
 #
 CONFIG_NLS_DEFAULT="iso8859-1"
-CONFIG_NLS_CODEPAGE_437=m
+CONFIG_NLS_CODEPAGE_437=y
 CONFIG_NLS_CODEPAGE_737=m
 # CONFIG_NLS_CODEPAGE_775 is not set
 CONFIG_NLS_CODEPAGE_850=m
diff --git a/packages/linux/unslung-kernel/flash-is-now-hdd.patch b/packages/linux/unslung-kernel/flash-is-now-hdd.patch
new file mode 100644 (file)
index 0000000..cf73526
--- /dev/null
@@ -0,0 +1,57 @@
+--- linux-2.4.22/drivers/scsi/sd.c~    2005-12-13 06:04:08.000000000 +1030
++++ linux-2.4.22/drivers/scsi/sd.c     2005-12-13 10:08:13.912932696 +1030
+@@ -1087,6 +1087,7 @@
+                       rscsi_disks[i].capacity >>= 1;
+       }
+                         // add by super, moified by pete
++#if 0
+         if (rscsi_disks[i].device->removable){
+                 if(0x32 == rscsi_disks[i].device->host->hostt->port){
+                               printk("is removable disk \n");
+@@ -1113,6 +1114,7 @@
+                               );
+                }
+         }else {
++#endif
+                 printk("%x port connect!!!!!\n",rscsi_disks[i].device->host->hostt->port);
+                 if(0x32 == rscsi_disks[i].device->host->hostt->port){
+                         *IXP425_GPIO_GPOUTR &= 0xfffb;
+@@ -1133,7 +1135,9 @@
+                                         NULL
+                         );
+                 }
++#if 0
+         }
++#endif
+                 //end
+@@ -1682,22 +1686,28 @@
+                                                       port2_attached = 0;
+                         if(port2_attached == 0)
+                                                       *IXP425_GPIO_GPOUTR |= 0x8;
++#if 0
+                                               if(SDp->removable == 1){
+                               sprintf(flash, "flash_sd%c", 'a' + i);
+                               remove_proc_entry(flash, NULL);
+                               remove_proc_entry(media, NULL);
+                                               }else{
++#endif
+                                                       sprintf(hdd, "hdd_sd%c", 'a' + i);
+                                                       remove_proc_entry(hdd,NULL);
+                                                       remove_proc_entry(media, NULL);
++#if 0
+                                               }                
++#endif
+                         break;
+                 case 0x32:
+                         *IXP425_GPIO_GPOUTR |= 0x4;
++#if 0
+                                               if(SDp->removable == 1){
+                                                       remove_proc_entry("flash_sda",NULL);
+                                               }
+                                               else
++#endif
+                               remove_proc_entry("hdd_sda",NULL);
+                         break;
+                 default:
index f676df3..6882b33 100644 (file)
        if (ss != NULL) {
                /* Existing device -- re-connect */
                US_DEBUGP("Found existing GUID " GUID_FORMAT "\n",
-@@ -747,95 +735,6 @@
+@@ -747,93 +735,6 @@
                                USB_ENDPOINT_NUMBER_MASK;
                ss->ep_int = ep_int;
  
 -              ss->htmplt.removable = 1;
 -      }
 -#endif
--#if 0
 -                /* restrict device on certain port */
 -        if ( ss->htmplt.removable && (USB_DEVPATH_1 ==  dev->devpath[0]))
 -                if ( ss->htmplt.removable ^ (USB_DEVPATH_2 == dev->devpath[0]) )
 -                      free_us_data( pre_ss, ss );
 -                      return NULL;
 -                }
--#endif
--                if (ss->htmplt.removable && (USB_DEVPATH_2 == dev->devpath[0])){
+-                if (ss->htmplt.removable){
 -                      printk("is removable disk \n");
 -                      *IXP425_GPIO_GPOUTR &= 0xfffb;
 -                      create_proc_read_entry("usb_conn",
        struct inode *i_fat_inode;      /* struct inode of this one */
        struct list_head i_fat_hash;    /* hash by i_location */
  };
+--- R29/drivers/scsi/scsi_scan.c       2005-12-13 02:15:15.000000000 +1030
++++ R63/drivers/scsi/scsi_scan.c       2005-05-31 15:03:23.000000000 +0930
+@@ -703,7 +703,7 @@
+         printk("*** %d\n", SDpnt->host->hostt->port);
+         /* restrict device on certain port grant */
+       SDpnt->host->hostt->removable = SDpnt->removable;
+-
++#if 0
+         if ( SDpnt->removable && (USB_DEVPATH_1 == SDpnt->host->hostt->port) )
+         {
+               create_proc_read_entry("usb_err",
+@@ -718,8 +718,9 @@
+               shpnt->porttype = 1;
+               return 0;
+         }
++#endif        
+               // add by super
+-        if (SDpnt->removable){
++        /*if (SDpnt->removable){
+               printk("is removable disk \n");
+               *IXP425_GPIO_GPOUTR &= 0xfffb;
+               create_proc_read_entry("usb_conn",
+@@ -747,7 +748,7 @@
+                                       NULL
+                       );
+               }
+-      }
++      }*/
+               //end
+       /*
+        * Check the peripheral qualifier field - this tells us whether LUNS
+--- R29/drivers/scsi/sd.c      2005-12-13 02:15:53.000000000 +1030
++++ R63/drivers/scsi/sd.c      2005-07-02 16:31:14.000000000 +0930
+@@ -1393,7 +1393,9 @@
+                * commands if they know what they're doing and they ask for it
+                * explicitly via the SHpnt->max_sectors API.
+                */
+-              sd_max_sectors[i] = MAX_SEGMENTS*8;
++              //super
++              sd_max_sectors[i] = 8*8;
++      //      sd_max_sectors[i] = MAX_SEGMENTS*8;
+       }
+       for (i = 0; i < N_USED_SD_MAJORS; i++) {
index 8752a6e..5b35574 100644 (file)
@@ -4,7 +4,7 @@ include nslu2-linksys-kernel_2.4.22.bb
 
 DESCRIPTION = "Unslung kernel for the Linksys NSLU2 device"
 MAINTAINER = "NSLU2 Linux <www.nlsu2-linux.org>"
-PR = "r4"
+PR = "r7"
 
 KERNEL_SUFFIX = "unslung"
 
@@ -12,17 +12,19 @@ CMDLINE_ROOT = "root=/dev/mtdblock4 rootfstype=jffs2 rw init=/linuxrc mem=32M@0x
 
 UNSLUNG_KERNEL_EXTRA_SRC_URI ?=
 
-SRC_URI += "file://limit1gb.patch;patch=1 \
+#          file://limit1gb.patch;patch=1 \
+#          file://ext3flash-on-disk1.patch;patch=1 \
+
+SRC_URI += "file://linux-kernel-R25_to_R29.patch;patch=1 \
+           file://linux-kernel-R29_to_R63.patch;patch=1 \
+           file://flash-is-now-hdd.patch;patch=1 \
            file://gl811e.patch;patch=1 \
-           file://ext3flash-on-disk1.patch;patch=1 \
            file://usbnet.patch;patch=1 \
            file://missing-usb-ioctls.patch;patch=1 \
            file://anonymiser.patch;patch=1 \
            file://ppp_mppe.patch;patch=1 \
            file://nfs-blocksize.patch;patch=1 \
            file://pl2303.patch;patch=1 \
-           file://linux-kernel-R25_to_R29.patch;patch=1 \
-           file://linux-kernel-R29_to_R63.patch;patch=1 \
            ${UNSLUNG_KERNEL_EXTRA_SRC_URI}"
 
 FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/unslung-kernel', '${FILE_DIRNAME}/nslu2-linksys-kernel-2.4.22', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"