s32r45-emmc-linux-boot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

s32r45-emmc-linux-boot

882 Views
nwws
Contributor I
Currently, we have switched the SD card of our S32R45 hardware board to eMMC, and we are encountering some issues. The symptoms are as follows:
1. The eMMC can be started normally. In U-boot, it is detected that the eMMC is functioning properly. The relevant print information is as follows:
part list mmc 0
Partition Map for MMC device 0  --   Partition Type: DOS
Part    Start Sector    Num Sectors     UUID            Type
1     4096            520192          52cecc02-01     0c
2     524288          1572864         52cecc02-02     83
However, when boot linux, an error will occur.
[    0.951020] mmc0: SDHCI controller on 402f0000.usdhc [402f0000.usdhc] using ADMA
[    1.003621] sdhci-esdhc-imx 402f0000.usdhc: card claims to support voltages below defined range
。。。
[    0.910076] mmc0: CQHCI version 5.10
[    0.951020] mmc0: SDHCI controller on 402f0000.usdhc [402f0000.usdhc] using ADMA
[    1.063158] mmc0: error -110 whilst initialising MMC card
。。。
[    1.105490] Waiting for root device /dev/mmcblk0p2...     //---》 The linux will stuck here
 
The device tree has been modified as follows::
&usdhc0 {
bus-width = <8>;           /* eMMC must 8bit width */
non-removable;            /*  eMMC Marked as non-removable (onboard storage) */
no-1-8-v;
no-sd; /* emmc */
no-sdio;                    /* emmc */
/*cap-mmc-highspeed; */         /* emmc */
disable-wp; /* emmc */
max-frequency = <26000000>; /* emmc */
status = "okay";
};
 
So I would like to ask, what's the problem for Linux to run properly on the eMMC?  Thank you!
 
PS:
The current version of the Linux BSP being used is bsp33.
The emmc io voltage is 3.3v on board
The emmc chip is MTFC32GAP
无标题.jpg
0 Kudos
Reply
3 Replies

818 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Have a look at this post for steps needed to change the SD for eMMC

https://community.nxp.com/t5/Other-NXP-Products/s32r45-unable-to-boot-from-eMMC/td-p/2351382

Best regards,

Peter

0 Kudos
Reply

706 Views
nwws
Contributor I

Hi, can you help me with this? or is there any AN for how to setup emmc for s32r45?  Thank you!

0 Kudos
Reply

773 Views
nwws
Contributor I

I checked the content in the link and found it to be inconsistent with what we have here. Actually, the emmc boot has been successful, ATF and Uboot can run normally, and I have also entered the Linux environment. However, during the Linux initialization, the emmc initialization failed. So it seems that the Linux-bsp is not running properly. Currently, I have only modified the device tree related to usdhc. So I would like to ask if there are any other places that need to be modified?

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2362781%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Es32r45-emmc-linux-boot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2362781%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%3ECurrently%2C%20we%20have%20switched%20the%20SD%20card%20of%20our%20S32R45%20hardware%20board%20to%20eMMC%2C%20and%20we%20are%20encountering%20some%20issues.%20The%20symptoms%20are%20as%20follows%3A%3C%2FDIV%3E%3CDIV%3E1.%20The%20eMMC%20can%20be%20started%20normally.%20In%20U-boot%2C%20it%20is%20detected%20that%20the%20eMMC%20is%20functioning%20properly.%20The%20relevant%20print%20information%20is%20as%20follows%EF%BC%9A%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%23FF9900%22%3E%3CEM%3Epart%20list%20mmc%200%3C%2FEM%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%23FF9900%22%3E%3CEM%3EPartition%20Map%20for%20MMC%20device%200%26nbsp%3B%20--%26nbsp%3B%20%26nbsp%3BPartition%20Type%3A%20DOS%3C%2FEM%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%23FF9900%22%3E%3CEM%3EPart%26nbsp%3B%20%26nbsp%3B%20Start%20Sector%26nbsp%3B%20%26nbsp%3B%20Num%20Sectors%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BUUID%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Type%3C%2FEM%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%23FF9900%22%3E%3CEM%3E1%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B4096%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20520192%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%2052cecc02-01%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B0c%3C%2FEM%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%23FF9900%22%3E%3CEM%3E2%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B524288%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%201572864%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B52cecc02-02%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B83%3C%2FEM%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3EHowever%2C%20when%20boot%20linux%2C%20an%20error%20will%20occur.%3C%2FDIV%3E%3CDIV%3E%3CEM%3E%3CFONT%20color%3D%22%23FF9900%22%3E%5B%26nbsp%3B%20%26nbsp%3B%200.951020%5D%20mmc0%3A%20SDHCI%20controller%20on%20402f0000.usdhc%20%5B402f0000.usdhc%5D%20using%20ADMA%3C%2FFONT%3E%3C%2FEM%3E%3C%2FDIV%3E%3CDIV%3E%3CEM%3E%3CFONT%20color%3D%22%23FF9900%22%3E%5B%26nbsp%3B%20%26nbsp%3B%201.003621%5D%20sdhci-esdhc-imx%20402f0000.usdhc%3A%20card%20claims%20to%20support%20voltages%20below%20defined%20range%3C%2FFONT%3E%3C%2FEM%3E%3C%2FDIV%3E%3CDIV%3E%3CEM%3E%3CFONT%20color%3D%22%23FF9900%22%3E%E3%80%82%E3%80%82%E3%80%82%3C%2FFONT%3E%3C%2FEM%3E%3C%2FDIV%3E%3CDIV%3E%3CEM%3E%3CFONT%20color%3D%22%23FF9900%22%3E%5B%26nbsp%3B%20%26nbsp%3B%200.910076%5D%20mmc0%3A%20CQHCI%20version%205.10%3C%2FFONT%3E%3C%2FEM%3E%3C%2FDIV%3E%3CDIV%3E%3CEM%3E%3CFONT%20color%3D%22%23FF9900%22%3E%5B%26nbsp%3B%20%26nbsp%3B%200.951020%5D%20mmc0%3A%20SDHCI%20controller%20on%20402f0000.usdhc%20%5B402f0000.usdhc%5D%20using%20ADMA%3C%2FFONT%3E%3C%2FEM%3E%3C%2FDIV%3E%3CDIV%3E%3CEM%3E%3CFONT%20color%3D%22%23FF9900%22%3E%5B%26nbsp%3B%20%26nbsp%3B%201.063158%5D%20%3CFONT%20color%3D%22%23FF0000%22%3Emmc0%3A%20error%20-110%20whilst%20initialising%20MMC%20card%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FEM%3E%3C%2FDIV%3E%3CDIV%3E%3CEM%3E%3CFONT%20color%3D%22%23FF9900%22%3E%E3%80%82%E3%80%82%E3%80%82%3C%2FFONT%3E%3C%2FEM%3E%3C%2FDIV%3E%3CDIV%3E%3CEM%3E%3CFONT%20color%3D%22%23FF9900%22%3E%5B%26nbsp%3B%20%26nbsp%3B%201.105490%5D%20Waiting%20for%20root%20device%20%2Fdev%2Fmmcblk0p2...%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%2F%2F---%E3%80%8B%20%3CFONT%20color%3D%22%23FF0000%22%3EThe%20linux%20will%20stuck%20here%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FEM%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EThe%20device%20tree%20has%20been%20modified%20as%20follows%3A%EF%BC%9A%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%23FF99CC%22%3E%26amp%3Busdhc0%20%7B%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%23FF99CC%22%3E%3CSPAN%3Ebus-width%20%3D%20%26lt%3B8%26gt%3B%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%2F*%20eMMC%20must%208bit%20width%20*%2F%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%23FF99CC%22%3E%3CSPAN%3Enon-removable%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%2F*%26nbsp%3B%20eMMC%20Marked%20as%20non-removable%20(onboard%20storage)%20*%2F%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%23FF99CC%22%3E%3CSPAN%3Eno-1-8-v%3B%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%23FF99CC%22%3E%3CSPAN%3Eno-sd%3B%20%2F*%20emmc%20*%2F%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%23FF99CC%22%3E%3CSPAN%3Eno-sdio%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%2F*%20emmc%20*%2F%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%23FF99CC%22%3E%3CSPAN%3E%2F*cap-mmc-highspeed%3B%20*%2F%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%2F*%20emmc%20*%2F%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%23FF99CC%22%3E%3CSPAN%3Edisable-wp%3B%20%2F*%20emmc%20*%2F%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%23FF99CC%22%3E%3CSPAN%3Emax-frequency%20%3D%20%26lt%3B26000000%26gt%3B%3B%20%2F*%20emmc%20*%2F%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%23FF99CC%22%3E%3CSPAN%3Estatus%20%3D%20%22okay%22%3B%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%23FF99CC%22%3E%7D%3B%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3ESo%20I%20would%20like%20to%20ask%2C%20what's%20the%20problem%20for%20Linux%20to%20run%20properly%20on%20the%20eMMC%3F%26nbsp%3B%20Thank%20you!%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EPS%EF%BC%9A%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EThe%20current%20version%20of%20the%20Linux%20BSP%20being%20used%20is%20bsp33.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EThe%20emmc%20io%20voltage%20is%203.3v%20on%20board%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EThe%20emmc%20chip%20is%20MTFC32GAP%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22%E6%97%A0%E6%A0%87%E9%A2%98.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22%E6%97%A0%E6%A0%87%E9%A2%98.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22%E6%97%A0%E6%A0%87%E9%A2%98.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22%E6%97%A0%E6%A0%87%E9%A2%98.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F384883iFC9A1F2FF1FED651%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22%E6%97%A0%E6%A0%87%E9%A2%98.jpg%22%20alt%3D%22%E6%97%A0%E6%A0%87%E9%A2%98.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2363216%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32r45-emmc-linux-boot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2363216%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EHave%20a%20look%20at%20this%20post%20for%20steps%20needed%20to%20change%20the%20SD%20for%20eMMC%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FOther-NXP-Products%2Fs32r45-unable-to-boot-from-eMMC%2Ftd-p%2F2351382%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FOther-NXP-Products%2Fs32r45-unable-to-boot-from-eMMC%2Ftd-p%2F2351382%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPeter%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2363637%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32r45-emmc-linux-boot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2363637%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20checked%20the%20content%20in%20the%20link%20and%20found%20it%20to%20be%20inconsistent%20with%20what%20we%20have%20here.%20Actually%2C%20the%20emmc%20boot%20has%20been%20successful%2C%20ATF%20and%20Uboot%20can%20run%20normally%2C%20and%20I%20have%20also%20entered%20the%20Linux%20environment.%20However%2C%20during%20the%20Linux%20initialization%2C%20the%20emmc%20initialization%20failed.%20So%20it%20seems%20that%20the%20Linux-bsp%20is%20not%20running%20properly.%20Currently%2C%20I%20have%20only%20modified%20the%20device%20tree%20related%20to%20usdhc.%20So%20I%20would%20like%20to%20ask%20if%20there%20are%20any%20other%20places%20that%20need%20to%20be%20modified%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2364600%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32r45-emmc-linux-boot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2364600%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20can%20you%20help%20me%20with%20this%3F%20or%20is%20there%20any%20AN%20for%20how%20to%20setup%20emmc%20for%20s32r45%3F%26nbsp%3B%20Thank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E