[U-Boot] arm: sunxi: Bananapi_M2_Ultra not working with DM_MMC
Jagan Teki
jagan at amarulasolutions.com
Mon Apr 8 12:48:26 UTC 2019
On Thu, Apr 4, 2019 at 5:12 PM Pablo Sebastián Greco
<pgreco at centosproject.org> 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
>
> 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 **
Is your SD partitioned?
> 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?
Check the below logs? I have booted Linux and showed you all the
devices been probed in u-boot.
U-Boot SPL 2019.04-rc4-00124-gafbc31948a (Apr 08 2019 - 18:10:42 +0530)
DRAM: 2048 MiB
Trying to boot from MMC1
U-Boot 2019.04-rc4-00124-gafbc31948a (Apr 08 2019 - 18:10:42 +0530)
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... Unable to use mmc 1:0... In: serial at 1c28000
Out: serial at 1c28000
Err: serial at 1c28000
SCSI: SATA link 0 timeout.
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...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
157 bytes read in 0 ms
1: linux-4.18.0-rc3
Retrieving file: /zImage
4128984 bytes read in 186 ms (21.2 MiB/s)
append: console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
Retrieving file: /sun8i-r40-bananapi-m2-ultra.dtb
19613 bytes read in 5 ms (3.7 MiB/s)
## Flattened Device Tree blob at 43000000
Booting using the fdt blob at 0x43000000
Loading Device Tree to 49ff8000, end 49fffc9c ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version
5.0.0-next-20190306-00055-g12f3f7e4961a-dirty
(jagan at jagan-XPS-13-9350) (gcc version 6.3.1 20170109 (Linaro GCC
6.3-2017.02)
) #51 SMP Fri Mar 22 23:18:35 IST 2019
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing
instruction cache
[ 0.000000] OF: fdt: Machine model: Banana Pi BPI-M2-Ultra
U-Boot SPL 2019.04-rc4-00124-gafbc31948a (Apr 08 2019 - 18:10:42 +0530)
DRAM: 2048 MiB
Trying to boot from MMC1
U-Boot 2019.04-rc4-00124-gafbc31948a (Apr 08 2019 - 18:10:42 +0530)
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... Unable to use mmc 1:0... In: serial at 1c28000
Out: serial at 1c28000
Err: serial at 1c28000
SCSI: SATA link 0 timeout.
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
=>
=> mmc list
mmc at 1c0f000: 0
mmc at 1c10000: 2
mmc at 1c11000: 1 (eMMC)
=> mmc dev 0
switch to partitions #0, OK
mmc0 is current device
=> fatls mmc 0:1
4128984 zImage
extlinux/
19613 sun8i-r40-bananapi-m2-ultra.dtb
2 file(s), 1 dir(s)
=> ext4ls mmc 0:2
<DIR> 1024 .
<DIR> 1024 ..
<DIR> 12288 lost+found
<DIR> 1024 proc
<DIR> 1024 etc
<DIR> 1024 lib
<DIR> 1024 media
<DIR> 1024 tmp
<DIR> 1024 dev
<SYM> 3 lib32
<DIR> 1024 var
<DIR> 1024 usr
<DIR> 1024 run
<DIR> 1024 sbin
<DIR> 1024 root
<DIR> 2048 bin
<DIR> 1024 opt
<DIR> 1024 mnt
<SYM> 11 linuxrc
<DIR> 1024 sys
=> mmc list
mmc at 1c0f000: 0 (SD)
mmc at 1c10000: 2
mmc at 1c11000: 1 (eMMC)
=> mmc dev 1
switch to partitions #0, OK
mmc1(part 0) is current device
More information about the U-Boot
mailing list