[LEDE-DEV] [PATCH 13/13] sunxi: Add A64 support with cortex53 subtarget

Hauke Mehrtens hauke at hauke-m.de
Mon Oct 23 12:26:53 PDT 2017


Hi Baptiste,

On 10/23/2017 08:17 PM, Baptiste Jonglez wrote:
> Hi Hauke,
> 
> On 03-08-17, Hauke Mehrtens wrote:
>> This adds initial support for the A64 Allwinner SoC to LEDE.
>> It will be build in the new cortexa53 subtarget.
>>
>> Currently it only supports the pine64 and the image is able to boot on
>> this SoC.
> 
> This was merged a while ago, but I gave it another try on my Pine64+ and
> still couldn't boot a LEDE image.  But this time I have a serial console
> adapter :)
> 
> I tried to boot the latest LEDE snapshot from several different µSD card.
> The kernel always starts to boot, complains about errors reading from the
> mmc, and then gets stuck.  The device is a pine64+ with 1 GB of RAM.

I am also using the PINE64+ with 1GB memory and I also saw some problems
which I assume are related to MMC on my board.

> Sometimes it fails before mounting the root:
> 
> [    1.273249] Waiting for root device /dev/mmcblk0p2...
> [    1.281238] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 55, RE RCE !!
> [    1.317715] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 3, RCE !!
> [    1.323864] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 3, RCE !!
> [    1.344409] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 55, RCE !!
> [    1.350097] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 6, RE RCE !!
> [    1.355941] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 55, RCE !!
> [    1.361651] mmc0: new high speed SDHC card at address cda0
> [    1.367559] mmcblk0: mmc0:cda0 00000 7.51 GiB
> [    1.372415] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD RE RCE !!
> [    1.378609] sunxi-mmc 1c0f000.mmc: data error, sending stop command
> [    2.374894] sunxi-mmc 1c0f000.mmc: send stop command failed
> 
> Sometimes it fails just after:
> 
> [    1.273185] Waiting for root device /dev/mmcblk0p2...
> [    1.342876] mmc0: new high speed SDHC card at address 0007
> [    1.348790] mmcblk0: mmc0:0007 SD8GB 7.42 GiB
> [    1.354623]  mmcblk0: p1 p2
> [    1.401534] VFS: Mounted root (squashfs filesystem) readonly on device 179:2.
> [    1.408891] Freeing unused kernel memory: 320K
> [    1.418724] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD DCE !!
> [    1.424659] sunxi-mmc 1c0f000.mmc: data error, sending stop command
> [    1.430953] sunxi-mmc 1c0f000.mmc: send stop command failed
> [    1.436564] mmcblk0: timed out sending r/w cmd command, card status 0x400900
> [    1.443601] mmcblk0: command error, retrying timeout
> [    1.449386] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD DCE !!
> [    1.455309] sunxi-mmc 1c0f000.mmc: data error, sending stop command
> [    1.461581] sunxi-mmc 1c0f000.mmc: send stop command failed
> [    1.467185] mmcblk0: timed out sending r/w cmd command, card status 0x400900
> [    1.474221] mmcblk0: command error, retrying timeout
> [    1.484737] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD DCE !!
> [    1.490670] sunxi-mmc 1c0f000.mmc: data error, sending stop command
> [    1.496956] sunxi-mmc 1c0f000.mmc: send stop command failed
> [    1.502550] mmcblk0: timed out sending r/w cmd command, card status 0x400900
> [    1.509598] mmcblk0: command error, retrying timeout
> [    1.516026] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD DCE !!
> [    1.521959] sunxi-mmc 1c0f000.mmc: data error, sending stop command
> [    2.524849] sunxi-mmc 1c0f000.mmc: send stop command failed
> 
> Do you have any idea of what could be wrong?
> 
> I also tried an Armbian image (based on Debian jessie, with a non-mainline
> 3.10 kernel) and it worked fine out-of-the-box.
> 
> Attached are full bootlogs for both LEDE and Armbian.
Could you try an image build the sunxi branch of my staging tree please:
https://git.lede-project.org/?p=lede/hauke/staging.git;a=shortlog;h=refs/heads/sunxi

I backproted the MMC driver in there as it got some patches which are
probably needed for the A64 SoC. For me it also boots up without these
changes, but sometimes I also see some error messages.

I never looked at the 3.10 kernel or booted it up, I only looked at what
is in mainline. If we add kernel 4.14 support before the next LEDE
release I will probably bring the sunxi target to kernel 4.14 as this
kernel version has official support for the A64 SoC.

Hauke

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 858 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/lede-dev/attachments/20171023/e2454ac9/attachment.sig>


More information about the Lede-dev mailing list