Dear every one,
Finally have the u-boot running. I have a SD card, which is connected to USDHC2, and an emmc chip, which is connected to USDHC4. After power up, the u-boot code is downloaded to DDR from SD card and tried to loading environment from MMC Device 2, and u-boot says it can not find MMC Device 2. the u-boot shows the following message:
MMC: FSL_SDHC: 1, FSL_SDHC: 3
what does this mean?
How to change the default to USDHC2? USDHC2 should be Device 1, right?
following is the logs I got from console.
U-Boot 2020.04-5.10.9-1.0.0+gad7b74b415 (Mar 05 2021 - 07:05:56 +0000)
CPU: i.MX6SOLO rev1.3 996 MHz (running at 792 MHz)
CPU: Extended Commercial temperature grade (-20C to 105C) at 48C
Reset cause: POR
Model: -------
Board: -------
DRAM: 2 GiB
gpio@0209c000: dir_output: error: gpio GPIO1_25 not reserved
gpio@0209c000: set_value: error: gpio GPIO1_25 not reserved
PMIC: PFUZE100! DEV_ID=0x10 REV_ID=0x21
MMC: FSL_SDHC: 1, FSL_SDHC: 3
Loading Environment from MMC... MMC Device 2 not found
*** Warning - No MMC card found, using default environment
No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In: serial
Out: serial
Err: serial
MMC Device 2 not found
no mmc device at slot 2
Net: Could not get PHY for FEC0: addr 1
Could not get PHY for FEC0: addr 1
No ethernet found.
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 3 2 1 0
MMC Device 2 not found
no mmc device at slot 2
MMC Device 0 not found
no mmc device at slot 0
Booting from net ...
Could not get PHY for FEC0: addr 1
Could not get PHY for FEC0: addr 1
Could not get PHY for FEC0: addr 1
Could not get PHY for FEC0: addr 1
Could not get PHY for FEC0: addr 1
No ethernet found.
Could not get PHY for FEC0: addr 1
Could not get PHY for FEC0: addr 1
Could not get PHY for FEC0: addr 1
Could not get PHY for FEC0: addr 1
Could not get PHY for FEC0: addr 1
Could not get PHY for FEC0: addr 1
No ethernet found.
Could not get PHY for FEC0: addr 1
Could not get PHY for FEC0: addr 1
Could not get PHY for FEC0: addr 1
Could not get PHY for FEC0: addr 1
Could not get PHY for FEC0: addr 1
Could not get PHY for FEC0: addr 1
No ethernet found.
Could not get PHY for FEC0: addr 1
Wrong Image Format for bootm command
ERROR: can't get kernel image!
thank you,
Hai
已解决! 转到解答。
I guess the following line in imx6sabresd.h should be changed:
#define CONFIG_MMCROOT "/dev/mmcblk2p2" /* SDHC3 */
#define CONFIG_SYS_MMC_ENV_DEV 2 /* SDHC3 */
to
#define CONFIG_MMCROOT "/dev/mmcblk1p2" /* SDHC2 */
#define CONFIG_SYS_MMC_ENV_DEV 1 /* SDHC2 */
Hi Hai
regarding MMC Device numbering one can look at Table 61. Linux uSDHC relationships
Best regards
igor
I guess the following line in imx6sabresd.h should be changed:
#define CONFIG_MMCROOT "/dev/mmcblk2p2" /* SDHC3 */
#define CONFIG_SYS_MMC_ENV_DEV 2 /* SDHC3 */
to
#define CONFIG_MMCROOT "/dev/mmcblk1p2" /* SDHC2 */
#define CONFIG_SYS_MMC_ENV_DEV 1 /* SDHC2 */