--- celinuxtry1/init/do_mounts.c 2009-04-11 15:51:01.000000000 +0200 +++ celinuxdevelop/init/do_mounts.c 2009-05-06 23:34:12.000000000 +0200 @@ -249,6 +249,7 @@ static struct dev_name_struct { /* zxl for sd root */ { "csda", 0xf300}, { "ssfdca", 0x1f03}, //wjx changed + { "sda",0x0800}, //RV added for boot from USB { NULL, 0 } }; @@ -841,7 +842,7 @@ static void __init mount_root(void) if(flags_key_F2==1) { memset(line_czj,0,sizeof line_czj); - strcpy(line_czj,"/dev/csda1"); + strcpy(line_czj,"/dev/sda2"); line = &line_czj[0]; ret = root_dev_setup(line); flags_key_F2 =0; @@ -853,13 +854,13 @@ static void __init mount_root(void) if(flags_key_F3==1) { - //F3_key means mount the mini-fs, type is jffs2 + //F3_key means mount boot from second nandflash2, type is yaffs2 memset(line_czj,0,sizeof line_czj); - strcpy(line_czj,"/dev/mtdblock3"); + strcpy(line_czj,"/dev/mtdblock5"); line = &line_czj[0]; ret = root_dev_setup(line); old_root_fs_name = root_fs_names; - fs_names_setup("jffs2"); + fs_names_setup("yaffs2"); flags_exec_F3 = 1; //flags_key_F3 =0; }