tried accessing emmc with own uboot and got this:
BPI-R64> printenv partition
partition=0:1
BPI-R64> ls mmc ${partition}
** Bad device size - mmc 0 **
BPI-R64> mmc init
raise: Signal # 8 caught
ret2 = 1
raise: Signal # 8 caught
ret2 = 1
<= [mmc1 block 0] =>
[0x00000000] 00 00 00 00 b8 29 f3 46
[0x00000008] d8 1c f3 44 04 00 00 00
[0x00000010] 03 00 00 00 06 00 00 00
[0x00000018] 32 17 f3 44 02 00 00 00
[0x00000020] ff ff ff ff 72 6e f6 46
[0x00000028] ff ff ff ff c4 cc f2 44
[0x00000030] 0a 00 00 00 c0 c2 f5 46
[0x00000038] 0a 00 00 00 ff ff ff ff
[0x00000040] ff ff ff ff 02 00 00 00
[0x00000048] 14 00 00 00 f0 a4 f5 46
[0x00000050] 5c e2 f6 46 5c 18 f4 46
[0x00000058] 18 14 f3 44 28 14 f3 44
[0x00000060] 00 00 00 00 54 87 fa 46
[0x00000068] 18 14 f3 44 1c 1c f4 46
[0x00000070] 28 14 f3 44 19 14 f3 44
[0x00000078] 00 87 fa 46 fc 1d f4 46
[0x00000080] 0e a1 f6 46 00 87 fa 46
[0x00000088] 38 14 f3 44 3c 20 f4 46
[0x00000090] 01 00 00 00 28 14 f3 44
[0x00000098] 94 17 f3 44 3b 14 f3 44
[0x000000a0] 94 17 f3 44 a8 c3 f3 46
[0x000000a8] 78 17 f3 44 30 17 f3 44
[0x000000b0] 00 0c f3 44 58 18 f3 44
[0x000000b8] 78 17 f3 44 00 0c f3 44
[0x000000c0] 58 18 f3 44 90 7b f3 46
[0x000000c8] 8c 75 f3 46 00 0c f3 44
[0x000000d0] 27 0a f3 44 26 0a f3 44
[0x000000d8] 30 17 f3 44 62 6f 6f 74
[0x000000e0] 6d 65 6e 75 5f 33 00 46
[0x000000e8] 30 26 f7 46 00 00 00 00
[0x000000f0] 03 00 00 00 00 00 00 00
[0x000000f8] 00 00 00 00 48 14 f3 44
[0x00000100] 03 00 00 00 04 88 f7 46
[0x00000108] 08 14 f3 44 68 1a f5 46
[0x00000110] 01 00 00 00 38 14 f3 44
[0x00000118] 03 00 00 00 48 14 f3 44
[0x00000120] 00 00 00 00 48 14 f3 44
[0x00000128] 03 00 00 00 f0 1d f5 46
[0x00000130] 48 14 f3 44 cc 29 f7 46
[0x00000138] 00 00 00 00 30 99 f3 46
[0x00000140] 00 00 00 00 00 00 00 00
[0x00000148] 03 00 00 00 e0 25 f3 46
[0x00000150] 04 88 f7 46 00 00 00 00
[0x00000158] 68 13 f3 44 00 00 00 00
[0x00000160] 00 00 00 00 48 14 f3 44
[0x00000168] 60 14 f3 44 e0 3d f3 46
[0x00000170] 00 00 00 00 68 ee f3 46
[0x00000178] 14 00 00 00 14 00 00 00
[0x00000180] 00 00 00 00 00 00 00 00
[0x00000188] 00 00 00 00 a8 14 f3 44
[0x00000190] 00 00 00 00 b8 29 f3 46
[0x00000198] 68 13 f3 44 02 00 00 00
[0x000001a0] 00 00 00 00 03 00 00 00
[0x000001a8] 24 ce f2 44 01 00 00 00
[0x000001b0] 00 00 00 00 00 00 00 00
[0x000001b8] 68 13 f3 44 24 ce f2 44
[0x000001c0] 01 00 00 00 7c 44 f3 46
[0x000001c8] 50 ce f2 44 04 00 f3 46
[0x000001d0] 00 00 00 00 00 00 00 00
[0x000001d8] 00 00 00 00 00 00 00 00
[0x000001e0] 00 00 00 00 c0 14 f3 44
[0x000001e8] 68 13 f3 44 a8 14 f3 44
[0x000001f0] 00 00 00 00 00 00 00 00
[0x000001f8] 00 00 00 00 05 00 00 00
raise: Signal # 8 caught
## Unknown partition table
No MMC card found
BPI-R64> ls mmc 1:1
** Bad device size - mmc 1 **
BPI-R64> ls mmc 0:1
** Bad device size - mmc 0 **
BPI-R64>
seems uboot cannot read gpt-partition table…@jglanz have you an idea? tried also setting CONFIG_EFI_PARTITION in mt7622_evb.h in emmc-block without success (to test for efi/gpt-partitions)
also tried to enable CMD_GPT, which also fails because of missing define
#error CONFIG_PARTITION_UUIDS must be enabled for CONFIG_CMD_GPT to be enabled
seems like i need to only define it without value…but how to handle it?
BPI-R64> gpt
gpt - GUID Partition Table
Usage:
gpt <command> <interface> <dev> <partitions_list>
- GUID partition table restoration
Restore GPT information on a device connected
to interface
BPI-R64>
@Jackzeng @sinovoip have you anywhere a emmc-preloader for r64 which can handle mbr or can guide me to get gpt working in uboot?
maybe uboot looks on wrong hw-partitions? it needs to look on the user-partitions and not e.g. boot0
how can i define that?
i also used mmc-utils to verify PARTCONF
root@bpi-r64:~# ./mmc extcsd read /dev/mmcblk1 | grep PARTITION_CONFIG
Boot configuration bytes [PARTITION_CONFIG: 0x48]
maybe emmc-driver is broken in uboot?
BPI-R64> mmc device 0
mmc0 is current device
BPI-R64> mmcinfo
dev_num = 0
Device: emmc
Manufacturer ID: 11
OEM: 100
Name: 008G3
Tran Speed: 52000000
Rd Block Len: 512
SD version 1.0
High Capacity: Yes
Capacity: 7.3 GiB
Bus Width: 0-bit <<<<<<<<<<<<<
BPI-R64> mmc read 0x0 8
mmc0 operation <<<<<<<<<<<<<
BPI-R64>
looks strange