nmhw: update emmc device names

- kernel 4 uses mmcblk1 instead of mmcblk0
- update documentation accordingly
This commit is contained in:
Rene Straub 2019-09-25 10:58:09 +02:00
parent a28cffaf0f
commit afbe8bf08d
5 changed files with 5 additions and 5 deletions

View File

@ -400,7 +400,7 @@ int board_late_init(void)
boot_partition = 0; boot_partition = 0;
} }
/* mmcblk0p1 => root0, mmcblk0p2 => root1 so +1 */ /* mmcblk1p1 => root0, mmcblk1p2 => root1 so +1 */
setenv_ulong("root_part", boot_partition + 1); setenv_ulong("root_part", boot_partition + 1);
check_reset_button(); check_reset_button();

View File

@ -665,7 +665,7 @@ int board_late_init(void)
boot_partition = 0; boot_partition = 0;
} }
/* mmcblk0p1 => root0, mmcblk0p2 => root1 so +1 */ /* mmcblk1p1 => root0, mmcblk1p2 => root1 so +1 */
setenv_ulong("root_part", boot_partition + 1); setenv_ulong("root_part", boot_partition + 1);
check_reset_button(); check_reset_button();

View File

@ -579,7 +579,7 @@ static void set_root_partition(void)
boot_partition = 0; boot_partition = 0;
} }
/* mmcblk0p1 => root0, mmcblk0p2 => root1 so +1 */ /* mmcblk1p1 => root0, mmcblk1p2 => root1 so +1 */
setenv_ulong("root_part", boot_partition + 1); setenv_ulong("root_part", boot_partition + 1);
} }

View File

@ -601,7 +601,7 @@ static void set_root_partition(void)
boot_partition = 0; boot_partition = 0;
} }
/* mmcblk0p1 => root0, mmcblk0p2 => root1 so +1 */ /* mmcblk1p1 => root0, mmcblk1p2 => root1 so +1 */
setenv_ulong("root_part", boot_partition + 1); setenv_ulong("root_part", boot_partition + 1);
} }

View File

@ -49,7 +49,7 @@
"kernel_addr=0x80000000\0" \ "kernel_addr=0x80000000\0" \
"load_addr=0x83000000\0" \ "load_addr=0x83000000\0" \
"root_part=1\0" /* Default root partition, overwritte in board/mv_ebu/a38x/nbhw14_env.c */ \ "root_part=1\0" /* Default root partition, overwritte in board/mv_ebu/a38x/nbhw14_env.c */ \
"add_sd_bootargs=setenv bootargs $bootargs root=/dev/mmcblk0p$root_part rootfstype=ext4 console=ttyO0,115200 rootwait earlyprintk\0" \ "add_sd_bootargs=setenv bootargs $bootargs root=/dev/mmcblk1p$root_part rootfstype=ext4 console=ttyO0,115200 rootwait earlyprintk\0" \
"add_version_bootargs=setenv bootargs $bootargs\0" \ "add_version_bootargs=setenv bootargs $bootargs\0" \
"fdt_skip_update=yes\0" \ "fdt_skip_update=yes\0" \
"ethprime=cpsw\0" \ "ethprime=cpsw\0" \