README For FreeBSD MegaIDE Driver SHIM Model Disclaimer: This FreeBSD driver is tested only for 2 Drive scenarios( PM & SM). Hence no guarantee is given for proper workings of Raid 10 arrays(built with 4 drives) as well as other tests with four drives. The tested features are: 1. Raid 1 - Raid array with 2 drives ( PrimaryMaster and SecondaryMaster ) 2. Rebuilding/ Check consistency With Raid 1 array. 3. Pulling power cases with Raid 1 arrays. 4. Raid 0 - with 1 Drive 5. Raid 0 - with 2 Drives Instructions For Building Shim Driver into Kernel Source: 1. Copy the source tar file to directory /sys/contrib/dev and untar it there. tar -zxvf mide-(version No)-(date)-shim.tar 2. The above operation would have created the following directory /sys/contrib/dev/mide cd mide 3. Now make directory /sys/modules/mide mkdir /sys/modules/mide 4. cp Makefile from source directory /sys/contrib/dev/mide/Makefile to /sys/modules/mide cp /sys/contrib/dev/mide/Makefile /sys/modules/mide/ 5. To compile the driver as module goto directory /sys/modules/mide and type make. # make 6. Now to include mide into kernel source do the following: Edit file /sys/conf/files and add entry for mide vi /sys/conf/files -and edit the above file and add the following entry: contrib/dev/mide/mide_pci.c optional mide megaide_lib.o optional mide \ dependency "$S/contrib/dev/mide/megaide_lib.o.uu" \ compile-with "uudecode < $S/contrib/dev/mide/megaide_lib.o.uu" \ no-implicit-rule 7. Change to diretory where u are having the Custom configuration files. cd /sys/i386/conf 8. If u are building the custom kernel then copy the GENERIC kernel to CUSTOM(any name u want) and edit the CUSTOM kernel. cp GENERIC CUSTOM 9. Now Edit the CUSTOM kernel vi CUSTOM -and Add the following entry under section # Raid Controllers device mide # LSI Logic MegaIDE driver 10. Now build a new kernel with the above CUSTOM ( follow the usual procedure to build the kernel).