All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexandr Bochkarev <aneox.inbox@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [bug report] sunxi: booting from eMMC
Date: Thu, 3 Nov 2016 16:10:31 +0600	[thread overview]
Message-ID: <CA2988E3-DAAD-43BD-B92E-217204063F7C@gmail.com> (raw)
In-Reply-To: <073f966f-29be-a35e-8f1c-9ef1c1f2bef7@samsung.com>


Some summary

Marsboard by default has nand flash chip on sdc2 lines, but under nand chip, there is emmc bga pads also. 
So i have desoldered nand, and put emmc chip on it. Maybe there is no required pull ups on data lines to work on 4-bit widh, 
and when i boot kernel from sdc0 sd card, kernel init sdc2 emmc only in 1-bit mode. but it works well, i can read can and write, get mbr, etc..
I build u-boot with mmc extra slot config and burn it on emmc, and when i try to boot without sd, directly from emmc, got same errors as on by board.
When i boot to u-boot, it shows mmc1 mmc2, and mmc info works on both. But it cant read data and even mmc part not working.


My board has only sdc0 lines routed from soc. If solder emmc on it, not works, if sd card via wires, all ok, 4-bit width.



U-boot output on marsboard

=> mmc list
SUNXI SD/MMC: 0 (SD)
SUNXI SD/MMC: 1

=> mmc info
Device: SUNXI SD/MMC
Manufacturer ID: 2
OEM: 544d
Name: SA04G 
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 3.6 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes

=> mmc part

Partition Map for MMC device 0  --   Partition Type: DOS

Part.Start Sector.Num Sectors.UUID..Type
 1.2048      .12288     .da1dcf13-01.83
 2.14336     .204800    .da1dcf13-02.83
 3.219136    .204800    .da1dcf13-03.83
 4.423936    .409600    .da1dcf13-04.05 Extd
 5.425984    .204800    .da1dcf13-05.83
 6.632832    .200704    .da1dcf13-06.83

=> mmc dev 1
CMD_SEND:0
..ARG... 0x00000000
..MMC_RSP_NONE
CMD_SEND:8
..ARG... 0x000001AA
..RET... -110
CMD_SEND:55
..ARG... 0x00000000
..RET... -110
CMD_SEND:0
..ARG... 0x00000000
..MMC_RSP_NONE
CMD_SEND:1
..ARG... 0x00000000
..MMC_RSP_R3,4.. 0x00FF8080 
CMD_SEND:1
..ARG... 0x40300000
..MMC_RSP_R3,4.. 0x00FF8080 
CMD_SEND:0
..ARG... 0x00000000
..MMC_RSP_NONE
CMD_SEND:1
..ARG... 0x40300000
..MMC_RSP_R3,4.. 0x00FF8080 
CMD_SEND:1
..ARG... 0x40300000
..MMC_RSP_R3,4.. 0xC0FF8080 
CMD_SEND:2
..ARG... 0x00000000
..MMC_RSP_R2.. 0x1501004D 
..          .. 0x34473146 
..          .. 0x42030B01 
..          .. 0x7585C009 

.....DUMPING DATA
.....000 - 15 01 00 4D 
.....004 - 34 47 31 46 
.....008 - 42 03 0B 01 
.....012 - 75 85 C0 09 
CMD_SEND:3
..ARG... 0x00010000
..MMC_RSP_R1,5,6,7 . 0x00000500 
CMD_SEND:9
..ARG... 0x00010000
..MMC_RSP_R2.. 0xD0270132 
..          .. 0x0F5903FF 
..          .. 0xF6DBFFE7 
..          .. 0x8A404057 

.....DUMPING DATA
.....000 - D0 27 01 32 
.....004 - 0F 59 03 FF 
.....008 - F6 DB FF E7 
.....012 - 8A 40 40 57 
CMD_SEND:13
..ARG... 0x00010000
..MMC_RSP_R1,5,6,7 . 0x00000700 
CURR STATE:3
CMD_SEND:7
..ARG... 0x00010000
..MMC_RSP_R1,5,6,7 . 0x00000700 
CMD_SEND:8
..ARG... 0x00000000
..MMC_RSP_R1,5,6,7 . 0x00000900 
CMD_SEND:8
..ARG... 0x00000000
..MMC_RSP_R1,5,6,7 . 0x00000900 
CMD_SEND:6
..ARG... 0x03B90100
..MMC_RSP_R1b.. 0x00000900 
CMD_SEND:13
..ARG... 0x00010000
..MMC_RSP_R1,5,6,7 . 0x00000900 
CURR STATE:4
CMD_SEND:8
..ARG... 0x00000000
..MMC_RSP_R1,5,6,7 . 0x00000900 
CMD_SEND:6
..ARG... 0x03B70100
..RET... -110
CMD_SEND:16
..ARG... 0x00000200
..MMC_RSP_R1,5,6,7 . 0x00000900 
CMD_SEND:17
..ARG... 0x00000000
..RET... -110
mmc_bread: Failed to read blocks
CMD_SEND:16
..ARG... 0x00000200
..MMC_RSP_R1,5,6,7 . 0x00000900 
CMD_SEND:17
..ARG... 0x00000000
..RET... -110
mmc_bread: Failed to read blocks
CMD_SEND:16
..ARG... 0x00000200
..MMC_RSP_R1,5,6,7 . 0x00000900 
CMD_SEND:18
..ARG... 0x00000040
..RET... -110
mmc_bread: Failed to read blocks
switch to partitions #0, OK
mmc1(part 0) is current device


=> mmc info
Device: SUNXI SD/MMC
Manufacturer ID: 15
OEM: 100
Name: M4G1F 
Tran Speed: 52000000
Rd Block Len: 512
MMC version 4.4.1
High Capacity: Yes
Capacity: 3.6 GiB
Bus Width: 1-bit
Erase Group Size: 512 KiB
HC WP Group Size: 4 MiB
User Capacity: 3.6 GiB WRREL
Boot Capacity: 1 MiB ENH
RPMB Capacity: 128 KiB ENH

=> mmc part
## Unknown partition table type 0




U-boot boot log from my board with emmc

Trying to boot from MMC1
CMD_SEND:0
..ARG... 0x00000000
..MMC_RSP_NONE
CMD_SEND:8
..ARG... 0x00000000
..RET... -110
CMD_SEND:55
..ARG... 0x00000000
..RET... -110
CMD_SEND:0
..ARG... 0x00000000
..MMC_RSP_NONE
CMD_SEND:1
..ARG... 0x00000000
..MMC_RSP_R3,4.. 0x00000000 
CMD_SEND:1
..ARG... 0x00000000
..MMC_RSP_R3,4.. 0x00000000 
CMD_SEND:0
..ARG... 0x00000000
..MMC_RSP_NONE
CMD_SEND:1
..ARG... 0x00000000
..MMC_RSP_R3,4.. 0x00000000 
CMD_SEND:1
..ARG... 0x00000000
..MMC_RSP_R3,4.. 0x00000000 
CMD_SEND:2
..ARG... 0x00000000
..MMC_RSP_R2.. 0x00000000 
..          .. 0x00000000 
..          .. 0x00000000 
..          .. 0x00000000 

.....DUMPING DATA
.....000 - 00 00 00 00 
.....004 - 00 00 00 00 
.....008 - 00 00 00 00 
.....012 - 00 00 00 00 
CMD_SEND:3
..ARG... 0x00000000
..MMC_RSP_R1,5,6,7 . 0x00000000 
CMD_SEND:9
..ARG... 0x00000000
..MMC_RSP_R2.. 0x00000000 
..          .. 0x00000000 
..          .. 0x00000000 
..          .. 0x00000000 

.....DUMPING DATA
.....000 - 00 00 00 00 
.....004 - 00 00 00 00 
.....008 - 00 00 00 00 
.....012 - 00 00 00 00 
CMD_SEND:13
..ARG... 0x00000000
..MMC_RSP_R1,5,6,7 . 0x00000000 
CURR STATE:3
CMD_SEND:7
..ARG... 0x00000000
..MMC_RSP_R1,5,6,7 . 0x00000000 
CMD_SEND:8
..ARG... 0x00000000
..MMC_RSP_R1,5,6,7 . 0x00000000 
CMD_SEND:8
..ARG... 0x00000000
..MMC_RSP_R1,5,6,7 . 0x00000000 
CMD_SEND:6
..ARG... 0x00000000
..MMC_RSP_R1b.. 0x00000000 
CMD_SEND:13
..ARG... 0x00000000
..MMC_RSP_R1,5,6,7 . 0x00000000 
CURR STATE:4
CMD_SEND:8
..ARG... 0x00000000
..MMC_RSP_R1,5,6,7 . 0x00000000 
CMD_SEND:6
..ARG... 0x00000000
..RET... -110
CMD_SEND:16
..ARG... 0x00000000
..MMC_RSP_R1,5,6,7 . 0x00000000 
CMD_SEND:17
..ARG... 0x00000000
..RET... -110

mmc_load_image_raw_sector: mmc block read error
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###

  parent reply	other threads:[~2016-11-03 10:10 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-02  7:37 [U-Boot] [bug report] sunxi: booting from eMMC Alexandr Bochkarev
2016-10-02 13:38 ` Jagan Teki
2016-10-02 13:43   ` Alexandr Bochkarev
2016-10-02 17:08     ` Jagan Teki
     [not found]       ` <CAC2Q4vbD0Eh++cfvKfbSxK_m0KLqUh5GGJ4ur6K6AFSp2so39w@mail.gmail.com>
     [not found]         ` <CAC2Q4vY8vnaM5XrZKNp84J0AmYKWSGQKK_DQOKLERUCQyGM=nA@mail.gmail.com>
2016-10-02 17:15           ` AneoX
2016-10-02 17:28             ` Jagan Teki
     [not found]               ` <CAC2Q4vY0mpHLO82qN=xecvy9gjKESWd_FzP-esaC9zcyH0dqcg@mail.gmail.com>
2016-10-02 17:39                 ` AneoX
2016-10-06 23:48                   ` Jaehoon Chung
2016-10-07  8:44                     ` Alexandr Bochkarev
2016-10-12 10:52                       ` Alexandr Bochkarev
2016-10-12 11:09                         ` Jaehoon Chung
2016-10-12 11:25                           ` Alexandr Bochkarev
2016-10-12 12:05                             ` Jaehoon Chung
2016-10-12 12:11                               ` Alexandr Bochkarev
2016-10-12 12:21                                 ` Jaehoon Chung
2016-10-12 12:42                                   ` Alexandr Bochkarev
2016-10-12 12:57                                     ` Alexandr Bochkarev
2016-10-12 13:11                                       ` Alexandr Bochkarev
2016-10-12 13:30                                         ` Jaehoon Chung
2016-10-12 14:03                                           ` Alexandr Bochkarev
2016-10-12 17:49                                             ` Alexandr Bochkarev
2016-10-13  1:11                                               ` Jaehoon Chung
2016-11-03 21:23                                               ` Alexandr Bochkarev
2016-11-03 21:39                                                 ` Alexandr Bochkarev
2016-11-04 22:57                                                   ` Alexandr Bochkarev
2016-11-05  8:18                                                     ` Hans de Goede
2016-11-05 10:58                                                       ` Alexandr Bochkarev
2016-10-13  1:12                                             ` Jaehoon Chung
2016-10-13  8:18                                               ` Alexandr Bochkarev
     [not found]                                                 ` <03f26ecf-c130-88d3-b3df-d7c6ed90ed48@samsung.com>
     [not found]                                                   ` <CB1DA1DA-F8C8-4F21-8201-F008E306FA72@gmail.com>
     [not found]                                                     ` <4b856cc3-68e4-371e-9f9e-df0264769843@samsung.com>
     [not found]                                                       ` <5191BB28-1F97-4B43-8048-85EDFCD52E64@gmail.com>
     [not found]                                                         ` <CGME20161102111524epcas3p1a851f9aeb4b21316065be54bb52b15d4@epcas3p1.samsung.com>
     [not found]                                                           ` <4A365F64-DFAF-477A-B844-6FE397773553@gmail.com>
     [not found]                                                             ` <b1ca97e7-9094-d7f7-d7a8-db3d5b8e9c75@samsung.com>
     [not found]                                                               ` <CAC2Q4vZM7_yhgtR0sd3N-w0ZeeOUQG5RgToz+oNhK5jnKSmcyw@mail.gmail.com>
     [not found]                                                                 ` <073f966f-29be-a35e-8f1c-9ef1c1f2bef7@samsung.com>
2016-11-03 10:10                                                                   ` Alexandr Bochkarev [this message]
2016-11-03 19:57                                                                     ` Alexandr Bochkarev
  -- strict thread matches above, loose matches on Subject: below --
2016-09-12 11:53 Ciprian Manea
2016-09-12 13:56 ` Maxime Ripard
2016-09-12 14:47   ` Hans de Goede
2016-09-13 11:50     ` Maxime Ripard
2016-09-14 10:05       ` Hans de Goede
2016-09-15 13:32         ` Maxime Ripard
2016-09-19 13:17         ` Maxime Ripard
2016-09-19 21:42           ` Hans de Goede
2016-09-19 23:10           ` Jaehoon Chung
2016-09-21 13:32             ` Maxime Ripard
2016-10-03  8:21             ` Maxime Ripard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA2988E3-DAAD-43BD-B92E-217204063F7C@gmail.com \
    --to=aneox.inbox@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.