mmc error of p2020

cancel
Showing results for 
Search instead for 
Did you mean: 

mmc error of p2020

470 Views
leimaohui
Contributor I

Recently, I compiled kernel 4.14(git://github.com/qoriq-open-source/linux.git;branch=linux-4.14) for p2020, and I met two issues:

1. "kernel-lsdk/crypto/aes_generic.c:1300: undefined reference to `_restgpr_31_x'" error message is output. I modified crypto/Makefile reference to upstream and this error is not output any more.

2. "mmc0: Internal clock never stabilised." error message is output when start board, and sd card can't be used.

I want to know that is there something wrong in my compile steps? Or is p2020 not maintained any more?

Note: The defconfig I used is mpc85xx_smp_defconfig.

0 Kudos
2 Replies

106 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello lei maohui,

Please use linux 4.14 source code provided in SDK 1803 Yocto release.

$ git clone git://source.codeaurora.org/external/qoriq/qoriq-components/linux -b linux-4.14

$ make ARCH=powerpc mpc85xx_smp_defconfig

$ make uImage ARCH=powerpc CROSS_COMPILE=powerpc-fsl-linux-gnuspe-

$  make ARCH=powerpc fsl/p2020rdb-pc_32b.dtb

On the target board.

root@p2020rdb:~# fdisk -l

Disk /dev/mmcblk0: 1.9 GiB, 1977614336 bytes, 3862528 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device         Boot Start       End  Blocks  Id System
/dev/mmcblk0p1       2048   3862527 1930240  83 Linux
Disk /dev/sda: 7.5 GiB, 8053055488 bytes, 15728624 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x259ffe40

Device    Boot Start       End  Blocks  Id System
/dev/sda1       2048  15728623 7863288  83 Linux


root@p2020rdb:~# mount /dev/mmcblk0p1 /mnt
EXT2-fs (mmcblk0p1): warning: mounting unchecked fs, running e2fsck is recommended
root@p2020rdb:~# ls /mnt
lost+found
root@p2020rdb:~# cd /mnt
root@p2020rdb:/mnt# touch test
root@p2020rdb:/mnt# echo aa>test
root@p2020rdb:/mnt# cat test
aa
root@p2020rdb:/mnt# dmesg | grep sd
[    1.953029] sdhci: Secure Digital Host Controller Interface driver
[    1.957915] sdhci: Copyright(c) Pierre Ossman
[    1.960967] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.052358] mmc0: SDHCI controller on ffe2e000.sdhc [ffe2e000.sdhc] using DMA
[    3.834081] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    7.804806] sd 0:0:0:0: [sda] 15728624 512-byte logical blocks: (8.05 GB/7.50 GiB)
[    7.813291] sd 0:0:0:0: [sda] Write Protect is off
[    7.816791] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[    7.818417] sd 0:0:0:0: [sda] No Caching mode page found
[    7.822439] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    7.840070]  sda: sda1
[    7.855809] sd 0:0:0:0: [sda] Attached SCSI removable disk
root@p2020rdb:/mnt#

Thanks,

Yiping

0 Kudos

106 Views
leimaohui
Contributor I

Thank you for your reply. I test these 2 issues again, and get the phenomenons as following:

Issue1. The following error message will be output with newer gcc(e.g. 7.3). 

             "kernel-lsdk/crypto/aes_generic.c:1300: undefined reference to `_restgpr_31_x'" 

Issue2. If your kernel is linux 4.14, the following error message will been output uninterrupted when you start board  without an SD card insert into the board. Although this error message will disappear when you inserd an SD card, it's still a bug, right?

            mmc0: Internal clock never stabilised.
            mmc0: Internal clock never stabilised.
            mmc0: Internal clock never stabilised.
            mmc0: Internal clock never stabilised.

            ......

             

0 Kudos