I tried to boot OpenWRT on the BPI-R64 and found this. If I boot “eMMC all-in-one single image” (LEDE 17.01 Linux version 4.4.177) from this thread: I see the kernel recognize mmc parts: mmcblk0, mmcblk0boot0, mmcblk0boot1, mmcblk0rpmb, and folowed GPT (mmcblk0: p1 p2 p3 p4 p5):
[ 1.753881] mmc0: new HS200 MMC card at address 0001
[ 1.759172] mmcblk0: mmc0:0001 008G30 7.28 GiB
[ 1.767864] mmcblk0boot0: mmc0:0001 008G30 partition 1 4.00 MiB
[ 1.773921] mmcblk0boot1: mmc0:0001 008G30 partition 2 4.00 MiB
[ 1.779977] mmcblk0rpmb: mmc0:0001 008G30 partition 3 4.00 MiB
[ 1.787924] GPT:Primary header thinks Alt. header is not at the end of the disk.
[ 1.795330] GPT:1 != 15269887
[ 1.798296] GPT:Alternate GPT header not at the end of the disk.
[ 1.804304] GPT:1 != 15269887
[ 1.807261] GPT: Use GNU Parted to correct GPT errors.
[ 1.812430] mmcblk0: p1 p2 p3 p4 p5
[ 1.827929] mediatek-mt7622-pinctrl 10005000.pinctrl: pin_config_group_set op failed for group 19
[ 1.836809] mtk-msdc 11240000.mmc: Error applying setting, reverse things back
[ 1.884685] mediatek-mt7622-pinctrl 10005000.pinctrl: pin_config_group_set op failed for group 19
[ 1.893554] mtk-msdc 11240000.mmc: Error applying setting, reverse things back
[ 1.948840] mediatek-mt7622-pinctrl 10005000.pinctrl: pin_config_group_set op failed for group 19
[ 1.957709] mtk-msdc 11240000.mmc: Error applying setting, reverse things back
[ 2.236407] mt753x gsw@0: Switch is MediaTek MT7531BE rev 0
[ 2.250831] libphy: mt753x_mdio: probed
[ 2.380958] mt753x gsw@0: >>>>>>>>>>>>>>>>>>>>>>>>>>>>> START CALIBRATION:
[ 2.389112] mt753x gsw@0: -------- gephy-calbration (port:0) --------
[ 2.406350] CALDLY = 40
Next I built a project by myself (OpenWRT 18.06.4 Linux version 4.19.72) and when tried to boot the kernel it did not show me mmc content, only mmc0 and that is all:
[ 2.931728] mmc0: new HS200 MMC card at address 0001
[ 2.993577] mtk-pcie 1a140000.pcie: Port0 link down
[ 3.098648] mtk-pcie 1a140000.pcie: Port1 link down
[ 3.103806] mtk-pcie 1a140000.pcie: PCI host bridge to bus 0000:00
[ 3.110180] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 3.117188] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[ 3.124281] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 3.129934] pci_bus 0000:00: scanning bus
[ 3.135261] pci_bus 0000:00: fixups for bus
[ 3.139571] pci_bus 0000:00: bus scan returning with max=00
[ 3.145439] mtk_hsdma 1b007000.dma-controller: Using 3 as missing dma-requests property
[ 3.153873] mtk_hsdma 1b007000.dma-controller: MediaTek HSDMA driver registered
[ 3.161550] of_get_named_gpiod_flags: parsed 'reset-gpios' property of node '/gsw@0[0]' - status (0)
[ 3.170982] mtk-pinctrl 10211000.pinctrl: request pin 54 (MDI_RN_P0) for pinctrl_mt7622:463
[ 3.741912] mt753x gsw@0: LAN/WAN VLAN setting=wllll
Why my build do not find content of mmc0?