ls1043ardb uboot set eMMC hs200 mode boot failed

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

ls1043ardb uboot set eMMC hs200 mode boot failed

Jump to solution
2,438 Views
kevin_Tao
Contributor II

Hi,

1. I set eMMC hs200 mode in uboot, boot kernel stop at Starting kernel ...

boot log:

Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:2...
Found U-Boot script /boot/ls1043ardb_boot.scr
1053 bytes read in 16 ms (63.5 KiB/s)
## Executing script at 80000000
12409308 bytes read in 435 ms (27.2 MiB/s)
26755 bytes read in 22 ms (1.2 MiB/s)
## Booting kernel from Legacy Image at 81000000 ...
Image Name: ARM64 OpenWrt Linux-5.15.124
Image Type: AArch64 Linux Kernel Image (gzip compressed)
Data Size: 12409244 Bytes = 11.8 MiB
Load Address: 80000000
Entry Point: 80000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 90000000
Booting using the fdt blob at 0x90000000
Uncompressing Kernel Image
Using Device Tree in place at 0000000090000000, end 0000000090019882

Starting kernel ...           // stop at here

 

 2. What's more, eMMC high-speed mode start kernel OK

 

3. emmc set hs200 mode , uboot change as follow :

3.1  flexbuild_lsdk2108/components/firmware/uboot/configs/ls1043ardb_tfa_defconfig add CONFIG_MMC_HS200_SUPPORT=y

3.2  ls1043ardb uboot dts modify follows: [v2,2/5] arm64: dts: ls1046a: support SD UHS-I and eMMC HS200 on RDB - Patchwork (kernel.org)

3.3 mmc info message:

=> mmc info
Device: FSL_SDHC
Manufacturer ID: 13
OEM: 14e
Name: G1M15
Bus Speed: 166666666
Mode: HS200 (200MHz)
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 29.6 GiB
Bus Width: 4-bit
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 29.6 GiB WRREL
Boot Capacity: 31.5 MiB ENH
RPMB Capacity: 4 MiB ENH
Boot area 0 is not write protected
Boot area 1 is not write protected

 

I want to operate eMMC in HS200 mode in uboot , So for that which configurations I have to change?

I only set eMMC mode high-speed to HS200 in uboot , Why  stop at Starting kernel ... ?

TKS!

Best Regards

 

 

 

 

0 Kudos
Reply
1 Solution
2,331 Views
kevin_Tao
Contributor II
Thank you very much for your reply!I have solved the problem is the power.

View solution in original post

0 Kudos
Reply
3 Replies
2,356 Views
June_Lu
NXP TechSupport
NXP TechSupport

Have the patches below checked?

[v3, 0/5] Add eSDHC UHS-I/HS200 mode support for ls1012a/ls1046a/ls208xa - Yangbo Lu (kernel.org)

In additon, these dts patches depends on esdhc driver patches which just had been merged
on mmc.git. Otherwise, the UHS-I SD card and eMMC HS200 card would fail to be initialized,
but other cards still could work fine.
https://patchwork.kernel.org/patch/9689875/
https://patchwork.kernel.org/patch/9689877/
https://patchwork.kernel.org/patch/9689879/
https://patchwork.kernel.org/patch/9689887/
https://patchwork.kernel.org/patch/9689885/

0 Kudos
Reply
2,359 Views
June_Lu
NXP TechSupport
NXP TechSupport

Would you check the kernel eMMC speed?

Thanks

0 Kudos
Reply
2,332 Views
kevin_Tao
Contributor II
Thank you very much for your reply!I have solved the problem is the power.
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1848033%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Els1043ardb%20uboot%20set%20eMMC%20hs200%20mode%20%20boot%20%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1848033%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%3CSPAN%3E1.%20I%20set%20eMMC%20hs200%20mode%20in%20uboot%2C%20boot%20kernel%20stop%20at%20Starting%20kernel%20...%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Eboot%20log%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EHit%20any%20key%20to%20stop%20autoboot%3A%200%3CBR%20%2F%3Eswitch%20to%20partitions%20%230%2C%20OK%3CBR%20%2F%3Emmc0(part%200)%20is%20current%20device%3CBR%20%2F%3EScanning%20mmc%200%3A2...%3CBR%20%2F%3EFound%20U-Boot%20script%20%2Fboot%2Fls1043ardb_boot.scr%3CBR%20%2F%3E1053%20bytes%20read%20in%2016%20ms%20(63.5%20KiB%2Fs)%3CBR%20%2F%3E%23%23%20Executing%20script%20at%2080000000%3CBR%20%2F%3E12409308%20bytes%20read%20in%20435%20ms%20(27.2%20MiB%2Fs)%3CBR%20%2F%3E26755%20bytes%20read%20in%2022%20ms%20(1.2%20MiB%2Fs)%3CBR%20%2F%3E%23%23%20Booting%20kernel%20from%20Legacy%20Image%20at%2081000000%20...%3CBR%20%2F%3EImage%20Name%3A%20ARM64%20OpenWrt%20Linux-5.15.124%3CBR%20%2F%3EImage%20Type%3A%20AArch64%20Linux%20Kernel%20Image%20(gzip%20compressed)%3CBR%20%2F%3EData%20Size%3A%2012409244%20Bytes%20%3D%2011.8%20MiB%3CBR%20%2F%3ELoad%20Address%3A%2080000000%3CBR%20%2F%3EEntry%20Point%3A%2080000000%3CBR%20%2F%3EVerifying%20Checksum%20...%20OK%3CBR%20%2F%3E%23%23%20Flattened%20Device%20Tree%20blob%20at%2090000000%3CBR%20%2F%3EBooting%20using%20the%20fdt%20blob%20at%200x90000000%3CBR%20%2F%3EUncompressing%20Kernel%20Image%3CBR%20%2F%3EUsing%20Device%20Tree%20in%20place%20at%200000000090000000%2C%20end%200000000090019882%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23FF0000%22%3EStarting%20kernel%20...%26nbsp%3B%3C%2FFONT%3E%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%2F%2F%20stop%20at%20here%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3E%26nbsp%3B2.%20What's%20more%2C%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EeMMC%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Ehigh-speed%20mode%20start%20kernel%20OK%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3E3.%20emmc%20set%20hs200%20mode%20%2C%20uboot%20change%20as%20follow%20%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E3.1%26nbsp%3B%20flexbuild_lsdk2108%2Fcomponents%2Ffirmware%2Fuboot%2Fconfigs%2Fls1043ardb_tfa_defconfig%20add%26nbsp%3BCONFIG_MMC_HS200_SUPPORT%3Dy%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E3.2%26nbsp%3B%20ls1043ardb%20uboot%20dts%20modify%20follows%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fpatchwork.kernel.org%2Fproject%2Flinux-arm-kernel%2Fpatch%2F1493894940-47452-3-git-send-email-yangbo.lu%40nxp.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%5Bv2%2C2%2F5%5D%20arm64%3A%20dts%3A%20ls1046a%3A%20support%20SD%20UHS-I%20and%20eMMC%20HS200%20on%20RDB%20-%20Patchwork%20(kernel.org)%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E3.3%20mmc%20info%20message%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3D%26gt%3B%20mmc%20info%3CBR%20%2F%3EDevice%3A%20FSL_SDHC%3CBR%20%2F%3EManufacturer%20ID%3A%2013%3CBR%20%2F%3EOEM%3A%2014e%3CBR%20%2F%3EName%3A%20G1M15%3CBR%20%2F%3EBus%20Speed%3A%20166666666%3CBR%20%2F%3E%3CFONT%20color%3D%22%23FF0000%22%3EMode%3A%20HS200%20(200MHz)%3C%2FFONT%3E%3CBR%20%2F%3ERd%20Block%20Len%3A%20512%3CBR%20%2F%3EMMC%20version%205.1%3CBR%20%2F%3EHigh%20Capacity%3A%20Yes%3CBR%20%2F%3ECapacity%3A%2029.6%20GiB%3CBR%20%2F%3EBus%20Width%3A%204-bit%3CBR%20%2F%3EErase%20Group%20Size%3A%20512%20KiB%3CBR%20%2F%3EHC%20WP%20Group%20Size%3A%208%20MiB%3CBR%20%2F%3EUser%20Capacity%3A%2029.6%20GiB%20WRREL%3CBR%20%2F%3EBoot%20Capacity%3A%2031.5%20MiB%20ENH%3CBR%20%2F%3ERPMB%20Capacity%3A%204%20MiB%20ENH%3CBR%20%2F%3EBoot%20area%200%20is%20not%20write%20protected%3CBR%20%2F%3EBoot%20area%201%20is%20not%20write%20protected%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3EI%20want%20to%20operate%20eMMC%20in%20HS200%20mode%20in%20uboot%20%2C%20So%20for%20that%20which%20configurations%20I%20have%20to%20change%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20only%20set%26nbsp%3BeMMC%20mode%20high-speed%20to%20HS200%20in%20uboot%20%2C%20Why%26nbsp%3B%20stop%20at%26nbsp%3BStarting%20kernel%20...%20%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ETKS!%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EBest%20Regards%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1859310%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20ls1043ardb%20uboot%20set%20eMMC%20hs200%20mode%20%20boot%20%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1859310%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThank%20you%20very%20much%20for%20your%20reply%EF%BC%81I%20have%20solved%20the%20problem%20is%20the%20power.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1857430%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20ls1043ardb%20uboot%20set%20eMMC%20hs200%20mode%20%20boot%20%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1857430%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%20lang%3D%22en-US%22%3EHave%20the%20patches%20below%20checked%3F%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Flore.kernel.org%2Fall%2F1494297429-12083-1-git-send-email-yangbo.lu%40nxp.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%5Bv3%2C%200%2F5%5D%20Add%20eSDHC%20UHS-I%2FHS200%20mode%20support%20for%20ls1012a%2Fls1046a%2Fls208xa%20-%20Yangbo%20Lu%20(kernel.org)%3C%2FA%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%209.75pt%3B%22%3E%3CSPAN%3EIn%20additon%2C%20these%20dts%20patches%20depends%20on%20esdhc%20driver%20patches%20which%20just%20had%20been%20merged%3CBR%20%2F%3Eon%20mmc.git.%20Otherwise%2C%20the%20UHS-I%20SD%20card%20and%20eMMC%20HS200%20card%20would%20fail%20to%20be%20initialized%2C%3CBR%20%2F%3Ebut%20other%20cards%20still%20could%20work%20fine.%3CBR%20%2F%3E%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fpatchwork.kernel.org%2Fpatch%2F9689875%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%3Ehttps%3A%2F%2Fpatchwork.kernel.org%2Fpatch%2F9689875%2F%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fpatchwork.kernel.org%2Fpatch%2F9689877%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%3Ehttps%3A%2F%2Fpatchwork.kernel.org%2Fpatch%2F9689877%2F%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fpatchwork.kernel.org%2Fpatch%2F9689879%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%3Ehttps%3A%2F%2Fpatchwork.kernel.org%2Fpatch%2F9689879%2F%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fpatchwork.kernel.org%2Fpatch%2F9689887%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%3Ehttps%3A%2F%2Fpatchwork.kernel.org%2Fpatch%2F9689887%2F%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fpatchwork.kernel.org%2Fpatch%2F9689885%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%3Ehttps%3A%2F%2Fpatchwork.kernel.org%2Fpatch%2F9689885%2F%3C%2FSPAN%3E%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1856585%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20ls1043ardb%20uboot%20set%20eMMC%20hs200%20mode%20%20boot%20%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1856585%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%20lang%3D%22en-US%22%3EWould%20you%20check%20the%20kernel%20eMMC%20speed%3F%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%20lang%3D%22en-US%22%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E