{"action":"created","issue":{"url":"https://api.github.com/repos/rockchip-linux/u-boot/issues/10","repository_url":"https://api.github.com/repos/rockchip-linux/u-boot","labels_url":"https://api.github.com/repos/rockchip-linux/u-boot/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/rockchip-linux/u-boot/issues/10/comments","events_url":"https://api.github.com/repos/rockchip-linux/u-boot/issues/10/events","html_url":"https://github.com/rockchip-linux/u-boot/issues/10","id":246514942,"number":10,"title":"RK3399-EVB: Boot from SD card (mmc1), U-Boot can't detect mmc1.","user":{"login":"nightseas","id":4987044,"avatar_url":"https://avatars0.githubusercontent.com/u/4987044?v=4","gravatar_id":"","url":"https://api.github.com/users/nightseas","html_url":"https://github.com/nightseas","followers_url":"https://api.github.com/users/nightseas/followers","following_url":"https://api.github.com/users/nightseas/following{/other_user}","gists_url":"https://api.github.com/users/nightseas/gists{/gist_id}","starred_url":"https://api.github.com/users/nightseas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nightseas/subscriptions","organizations_url":"https://api.github.com/users/nightseas/orgs","repos_url":"https://api.github.com/users/nightseas/repos","events_url":"https://api.github.com/users/nightseas/events{/privacy}","received_events_url":"https://api.github.com/users/nightseas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"keveryang","id":17607320,"avatar_url":"https://avatars0.githubusercontent.com/u/17607320?v=4","gravatar_id":"","url":"https://api.github.com/users/keveryang","html_url":"https://github.com/keveryang","followers_url":"https://api.github.com/users/keveryang/followers","following_url":"https://api.github.com/users/keveryang/following{/other_user}","gists_url":"https://api.github.com/users/keveryang/gists{/gist_id}","starred_url":"https://api.github.com/users/keveryang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keveryang/subscriptions","organizations_url":"https://api.github.com/users/keveryang/orgs","repos_url":"https://api.github.com/users/keveryang/repos","events_url":"https://api.github.com/users/keveryang/events{/privacy}","received_events_url":"https://api.github.com/users/keveryang/received_events","type":"User","site_admin":false},"assignees":[{"login":"keveryang","id":17607320,"avatar_url":"https://avatars0.githubusercontent.com/u/17607320?v=4","gravatar_id":"","url":"https://api.github.com/users/keveryang","html_url":"https://github.com/keveryang","followers_url":"https://api.github.com/users/keveryang/followers","following_url":"https://api.github.com/users/keveryang/following{/other_user}","gists_url":"https://api.github.com/users/keveryang/gists{/gist_id}","starred_url":"https://api.github.com/users/keveryang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keveryang/subscriptions","organizations_url":"https://api.github.com/users/keveryang/orgs","repos_url":"https://api.github.com/users/keveryang/repos","events_url":"https://api.github.com/users/keveryang/events{/privacy}","received_events_url":"https://api.github.com/users/keveryang/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2017-07-29T10:57:16Z","updated_at":"2017-08-01T13:01:49Z","closed_at":null,"body":"Hi,\r\n\r\nI'm building system for RK3399-EVB (Shapphire V12) with scripts from rockchip-linux/build.\r\nThe scripts basically just use the default config for RK3399.\r\n\r\nAt rockhip-linux/u-boot HEAD e14b1169c0c5a1b362b41451006b492bd16f2fff:\r\nI'm able to boot U-Boot from SD card but the U-Boot only find mmc0 (eMMC) and can't detect mmc1, which leads to boot failure.\r\nIs this solved by later commits or still an issue? \r\n\r\nBTW: With latest release branch 9fe6f2383c5076296d785d79b74cd2b13bbe43de the board can't U-Boot at all, which could be caused by modifications to bootloader offset. So I was not able to test it. Could anyone also provide the newest memory map for bootloaders?\r\n\r\nThanks & BR.\r\n"},"comment":{"url":"https://api.github.com/repos/rockchip-linux/u-boot/issues/comments/319363286","html_url":"https://github.com/rockchip-linux/u-boot/issues/10#issuecomment-319363286","issue_url":"https://api.github.com/repos/rockchip-linux/u-boot/issues/10","id":319363286,"user":{"login":"nightseas","id":4987044,"avatar_url":"https://avatars0.githubusercontent.com/u/4987044?v=4","gravatar_id":"","url":"https://api.github.com/users/nightseas","html_url":"https://github.com/nightseas","followers_url":"https://api.github.com/users/nightseas/followers","following_url":"https://api.github.com/users/nightseas/following{/other_user}","gists_url":"https://api.github.com/users/nightseas/gists{/gist_id}","starred_url":"https://api.github.com/users/nightseas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nightseas/subscriptions","organizations_url":"https://api.github.com/users/nightseas/orgs","repos_url":"https://api.github.com/users/nightseas/repos","events_url":"https://api.github.com/users/nightseas/events{/privacy}","received_events_url":"https://api.github.com/users/nightseas/received_events","type":"User","site_admin":false},"created_at":"2017-08-01T13:01:49Z","updated_at":"2017-08-01T13:01:49Z","body":"Already tried to add CONFIG_MMC_DW_ROCKCHIP but failed.\r\n\r\n```\r\n  LD      spl/drivers/core/built-in.o\r\n  LD      spl/drivers/firmware/built-in.o\r\n  LD      spl/drivers/misc/built-in.o\r\n  CC      spl/drivers/mmc/mmc.o\r\n  CC      spl/drivers/mmc/mmc-uclass.o\r\n  CC      spl/drivers/mmc/dw_mmc.o\r\n  CC      spl/drivers/mmc/rockchip_dw_mmc.o\r\ndrivers/mmc/rockchip_dw_mmc.c:25:37: error: field 鈥榙tplat鈥?has incomplete type\r\n  struct dtd_rockchip_rk3288_dw_mshc dtplat;\r\n                                     ^\r\ndrivers/mmc/rockchip_dw_mmc.c: In function 鈥榬ockchip_dwmmc_probe鈥?\r\ndrivers/mmc/rockchip_dw_mmc.c:236:34: error: dereferencing pointer to incomplete type 鈥榮truct dtd_rockchip_rk3288_dw_mshc鈥?  host->ioaddr = map_sysmem(dtplat->reg[0], dtplat->reg[1]);\r\n                                  ^\r\nscripts/Makefile.build:280: recipe for target 'spl/drivers/mmc/rockchip_dw_mmc.o' failed\r\nmake[4]: *** [spl/drivers/mmc/rockchip_dw_mmc.o] Error 1\r\nscripts/Makefile.build:425: recipe for target 'spl/drivers/mmc' failed\r\nmake[3]: *** [spl/drivers/mmc] Error 2\r\nscripts/Makefile.spl:339: recipe for target 'spl/drivers' failed\r\nmake[2]: *** [spl/drivers] Error 2\r\nMakefile:1396: recipe for target 'spl/u-boot-spl' failed\r\nmake[1]: *** [spl/u-boot-spl] Error 2\r\nMakefile:460: recipe for target '__build_one_by_one' failed\r\nmake: *** [__build_one_by_one] Error 2\r\n MAKE UBOOT IMAGE FAILED.\r\n```cd \r\n\r\nThen I compared both config file, found that I need to remove the SPL plat data config:\r\n```\r\n@@ -27,8 +27,6 @@ CONFIG_CMD_USB=y\r\n CONFIG_CMD_TIME=y\r\n CONFIG_SPL_OF_CONTROL=y\r\n CONFIG_OF_SPL_REMOVE_PROPS=\"pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents\"\r\n-CONFIG_SPL_OF_PLATDATA=y\r\n-CONFIG_NET_RANDOM_ETHADDR=y\r\n CONFIG_REGMAP=y\r\n CONFIG_SPL_REGMAP=y\r\n CONFIG_SYSCON=y\r\n```\r\n\r\nNow everything works fine.\r\n\r\nThanks & BR,\r\nXH Li"}}
{"actor":{"display_login":"nightseas"}}