[U-Boot] arm: sunxi: Bananapi_M2_Ultra not working with DM_MMC

Paul Kocialkowski paul.kocialkowski at bootlin.com
Mon Apr 8 12:30:22 UTC 2019


Hi,

On Thu, 2019-04-04 at 05:51 -0300, Pablo Sebastián Greco wrote:
> A few days ago I tried to boot my Bananapi_M2_Ultra with 2019.04rc, I 
> found that it wasn't booting, 2019.01 was working ok.
> Bisecting indicated that the problem was after 
> http://git.denx.de/?p=u-boot.git;a=commitdiff;h=a7cca5793774ee139b75a704d6efaa4d29f09f93

I think the patch should be reverted ASAP since it obviously breaks
some supported configs. Sadly, the offending commit doesn't say
anything about the test coverage for the change and what the status is
after it. There is probably a reason why it was enabled for sun4i only
before and there must have been a motivation for doing this on all
sunxi platforms, but then again, the commit message says nothing about
those underlying reasons.

I believe we should be more strict on patch review and not let any
change bringing such a major change get applied with a commit message
that provides no context about why the change is okay and how it was
tested.

Cheers,

Paul

> Here's what I see when booting:
> 
> U-Boot SPL 2019.04-rc4 (Apr 02 2019 - 16:17:43 +0000)
> DRAM: 2048 MiB
> Trying to boot from MMC1
> 
> 
> U-Boot 2019.04-rc4 (Apr 02 2019 - 16:17:43 +0000) Allwinner Technology
> 
> CPU:   Allwinner R40 (SUN8I 1701)
> Model: Banana Pi BPI-M2-Ultra
> I2C:   ready
> DRAM:  2 GiB
> MMC:   Device 'mmc at 1c11000': seq 1 is in use by 'mmc at 1c10000'
> mmc at 1c0f000: 0, mmc at 1c10000: 2, mmc at 1c11000: 1
> Loading Environment from FAT... ** No valid partitions found **
> In:    serial at 1c28000
> Out:   serial at 1c28000
> Err:   serial at 1c28000
> SCSI:  Target spinup took 0 ms.
> AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
> flags: ncq stag pm led clo only pmp pio slum part ccc apst
> 
> Net:   phy interface7
> eth0: ethernet at 1c50000
> starting USB...
> No controllers found
> Hit any key to stop autoboot:  0
> switch to partitions #0, OK
> mmc0 is current device
> Scanning mmc 0:1...
> switch to partitions #0, OK
> mmc1(part 0) is current device
> ** Invalid partition 1 **
> scanning bus for devices...
> data abort
> pc : [<bff9c6da>]          lr : [<bff98991>]
> reloc pc : [<4a01a6da>]    lr : [<4a016991>]
> sp : bbf5d620  ip : 0000001c     fp : 000000c0
> r10: 00000000  r9 : bbf61ed8     r8 : 00000000
> r7 : bbf5d8a0  r6 : bffdbff0     r5 : bffdbff0  r4 : bffdbff0
> r3 : 00000000  r2 : 00000000     r1 : ea000016  r0 : bffdbff0
> Flags: nZcv  IRQs off  FIQs off  Mode SVC_32
> Code: e92dbd10 f8d045f0 b0858080 1000f8d8 (f8d14604)
> Resetting CPU ...
> 
> resetting ...
> 
> Any pointers on what to text next?
> 
> Thanks.
> Pablo.
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot
-- 
Paul Kocialkowski, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com



More information about the U-Boot mailing list