summaryrefslogtreecommitdiff
path: root/packages/lilo-sh/files/lilo.patch
diff options
context:
space:
mode:
authorJamie Lenehan <lenehan@twibble.org>2006-07-03 03:09:47 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-07-03 03:09:47 +0000
commit9b820e6f7a397dbf74f92b2596bd58fd2528283b (patch)
tree557abd9a84850f0cec55ac9d2637998df3f1afdb /packages/lilo-sh/files/lilo.patch
parentd25e4d60596edd332dbfd2fc63c5e22899ac3600 (diff)
lilo-sh 0.21: Add lilo-sh, a port of the LILO bootloader to the sh
architecture. Required for the titan SH4 boards to boot from the internal flash which has a translation layer to make it look like a standard block device.
Diffstat (limited to 'packages/lilo-sh/files/lilo.patch')
-rw-r--r--packages/lilo-sh/files/lilo.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/packages/lilo-sh/files/lilo.patch b/packages/lilo-sh/files/lilo.patch
new file mode 100644
index 0000000000..227eaf69f1
--- /dev/null
+++ b/packages/lilo-sh/files/lilo.patch
@@ -0,0 +1,42 @@
+diff -u --new-file --recursive lilo.old/geometry.c lilo/geometry.c
+--- lilo.old/geometry.c Wed Oct 14 15:24:41 1998
++++ lilo/geometry.c Sat Feb 20 15:27:23 1999
+@@ -342,6 +342,27 @@
+ geo->sectors = hdprm.sectors;
+ geo->start = hdprm.start;
+ break;
++ case COMPAQ_SMART2_MAJOR+0:
++ case COMPAQ_SMART2_MAJOR+1:
++ case COMPAQ_SMART2_MAJOR+2:
++ case COMPAQ_SMART2_MAJOR+3:
++ case COMPAQ_SMART2_MAJOR+4:
++ case COMPAQ_SMART2_MAJOR+5:
++ case COMPAQ_SMART2_MAJOR+6:
++ case COMPAQ_SMART2_MAJOR+7:
++ geo->device = 0x80+last_dev(MAJOR_HD,64)+(MINOR(device) >> 4);
++ if (ioctl(fd,HDIO_GETGEO,&hdprm) < 0)
++ die("geo_query_dev HDIO_GETGEO (dev 0x%04x): %s",device,
++ strerror(errno));
++ if (all && !hdprm.sectors)
++ die("HDIO_REQ not supported for your Array controller. Please "
++ "use a DISK section");
++ geo->heads = hdprm.heads;
++ geo->cylinders = hdprm.cylinders;
++ geo->sectors = hdprm.sectors;
++ geo->start = hdprm.start;
++ break;
++
+ default:
+ die("Sorry, don't know how to handle device 0x%04x",device);
+ }
+diff -u --new-file --recursive lilo.old/lilo.h lilo/lilo.h
+--- lilo.old/lilo.h Fri Dec 4 12:55:31 1998
++++ lilo/lilo.h Sat Feb 20 15:29:10 1999
+@@ -39,6 +39,7 @@
+ #define MAJOR_DAC960 48 /* First Mylex DAC960 PCI RAID controller */
+ #define MAJOR_IDE5 55 /* IDE on fifth interface */
+ #define MAJOR_IDE6 57 /* IDE on sixth interface */
++#define COMPAQ_SMART2_MAJOR 72 /* First Smart/2 Major */
+
+ #define MAX_IMAGES ((SECTOR_SIZE*2-2)/sizeof(IMAGE_DESCR))
+ /* maximum number of images */