⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uboot-nand-markbad-reallybad.patch

📁 Uboot常用的移植patches, 方便定制移植到s3c2440
💻 PATCH
字号:
This patch makes sure that the 'nand markbad' command does not only mark a block'bad' in the bad-block table, but _also_ marks it bad in the OOB area.we need this to preserve the bad block status when re-creating the bad block tableat some later point.Signed-off-by: Harald Welte <laforge@openmoko.org>Index: u-boot/drivers/mtd/nand/nand_base.c===================================================================--- u-boot.orig/drivers/mtd/nand/nand_base.c	2007-03-01 12:47:31.000000000 +0100+++ u-boot/drivers/mtd/nand/nand_base.c	2007-03-01 12:48:08.000000000 +0100@@ -481,7 +481,7 @@  	/* Do we have a flash based bad block table ? */ 	if (this->options & NAND_USE_FLASH_BBT)-		return nand_update_bbt (mtd, ofs);+		nand_update_bbt (mtd, ofs);  	/* We write two bytes, so we dont have to mess with 16 bit access */ 	ofs += mtd->oobsize + (this->badblockpos & ~0x01);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -