setenv("meminfo", meminfo);
}
-/*
- * CSA partition Migration
- * It will be deleted
- */
-static void csa_migration(void)
-{
- unsigned int *ubi_id;
- int i;
-
- run_command("onenand read 0x40000000 0x400000 0x400000", 0);
-
- for (i = 0; i < 10; i++) {
- ubi_id = (void *) (0x40000000 + 0x40000 * i);
- if (*ubi_id == 0x23494255) /* 0x23494255 = UBI */ {
- printf("CSA Migration is already done....\n");
- return;
- }
- }
- run_command("onenand erase 0x400000 0x800000", 0);
-}
-
int misc_init_r(void)
{
#ifdef CONFIG_LCD
/* check fsa9480 */
check_micro_usb(0);
- /* csa migration (temporary) */
- csa_migration();
-
return 0;
}
#endif
#define MTDPARTS_DEFAULT "mtdparts=samsung-onenand:256k(bootloader)"\
",128k(params)"\
",3584k(config)"\
- ",8m(csa_new)"\
- ",5376k(kernel)"\
- ",1m(log)"\
- ",10496k(modem)"\
",8m(csa)"\
+ ",6m(kernel)"\
+ ",1m(log)"\
+ ",12m(modem)"\
+ ",30m(qboot)"\
",-(UBI)\0"
#define MTDPARTS_DEFAULT_4KB "mtdparts=samsung-onenand:256k(bootloader)"\
",256k(params)"\
",3584k(config)"\
- ",8m(csa_new)"\
- ",5376k(kernel)"\
- ",1m(log)"\
- ",10496k(modem)"\
",8m(csa)"\
+ ",6m(kernel)"\
+ ",1m(log)"\
+ ",12m(modem)"\
+ ",30m(qboot)"\
",-(UBI)\0"
#define NORMAL_MTDPARTS_DEFAULT MTDPARTS_DEFAULT
#define CONFIG_COMMON_BOOT "${console} ${meminfo} ${mtdparts}"
-#define CONFIG_BOOTARGS "root=/dev/mtdblock8 ubi.mtd=8 ubi.mtd=7 ubi.mtd=3" \
+#define CONFIG_BOOTARGS "root=/dev/mtdblock8 ubi.mtd=8 ubi.mtd=3" \
" rootfstype=cramfs " CONFIG_COMMON_BOOT
#define CONFIG_UPDATEB "updateb=onenand erase 0x0 0x40000;" \
" onenand write 0x32008000 0x0 0x40000\0"
-#define CONFIG_UBI_MTD " ubi.mtd=${ubiblock} ubi.mtd=7 ubi.mtd=3"
+#define CONFIG_UBI_MTD " ubi.mtd=${ubiblock} ubi.mtd=3"
#define CONFIG_UBIFS_OPTION "rootflags=bulk_read,no_chk_data_crc"