Bug Fix Patch mxc_nand-Fix-OOB-handling.patch for phyCARD-S PD10.2.0 (BSP001) ----------------------------------------------------------------------------- This patch fixes a bug in the NAND-flash driver for phyCARD-S with 64MB NAND Flash. phyCARD-S with 128MB NAND-flash are not affected by this problem. The phyCARD-S BSPs PD09.2.0R3 and earlier are also not affected by this problem. The NAND-flash driver has a problem handling the OOB of NAND-flashes with 512 byte page size. The Bad Block table is increasing every boot cycle and it seems that the NAND-Flash is corrupted. The mxc_nand-Fix-OOB-handling.patch fixes this issue. How do I apply the patch to my phyCARD-S PD10.2.0 BSP? ------------------------------------------------------ 1. Follow the instructions of the 'QuickStart Manual OSELAS.BSP() phyCARDs' Chapter 1 to set up the required working environment and Chapter 2 to build the phyCARD BSP. 2. Change to the main BSP folder cd OSELAS.BSP-Phytec-phyCORE-i.MX27-PD11.1.0 3. Copy the patch to the patch stack of the linux kernel cp /path/to/mxc_nand-Fix-OOB-handling.patch configs/phyCARD-S-2010.08.0/patches/linux-2.6.33.7/generic/ 4. Add the Patch to the series file: echo mxc_nand-Fix-OOB-handling.patch >> configs/phyCARD-S-2010.08.0/patches/linux-2.6.33.7/generic/series 5. Clean the kernel and rebuild the Kernel with the patch. ptxdist-2010.08.0 clean kernel ptxdist-2010.08.0 targetinstall kernel 6. Now you find the new kernel with the bugfix included under: OSELAS.BSP-Phytec-phyCORE-i.MX27-PD11.1.0/platform-phyCARD-S/images/linuximage Now update the kernel on your module. I updated the linux kernel but the problem still exsist. -------------------------------------------------------- In this case you should erase the complete flash (erase size 0x4000000) with ATKToolkit. Now flash the bootloader, the rootfs and your new built kernel on the module.