{"id":1456,"date":"2016-04-28T16:23:37","date_gmt":"2016-04-28T08:23:37","guid":{"rendered":"http:\/\/kaoru.tech\/?p=1456"},"modified":"2016-04-28T16:23:37","modified_gmt":"2016-04-28T08:23:37","slug":"t104x-sdmmc-boot-research","status":"publish","type":"post","link":"http:\/\/kaoru.tech:7000\/wordpress\/?p=1456","title":{"rendered":"T104x SD\/MMC boot research"},"content":{"rendered":"<p>PBL -&gt; load RCW (64 bytes\/512 bits) -&gt; write to RCWSRn<\/p>\n<p>cfg_rcw_src [0]_[1:4]_[5:8] -&gt;\u00a00_0100_0000<\/p>\n<ul>\n<li>cfg_rcw_src\u7528\u4ee5\u51b3\u5b9aRCW\u914d\u7f6e\u5b57\u7684\u6765\u6e90<\/li>\n<li>RCW[PBI_SRC]\u7528\u4ee5\u51b3\u5b9aPBL\u521d\u59cb\u5316\u63a7\u5236\u5668\u7684\u7c7b\u522b<\/li>\n<\/ul>\n<p>SD\u542f\u52a8\uff0c\u8d77\u59cb\u5730\u5740\u4e3a0x0000_1000\uff0cSD Card block size 512KB<\/p>\n<div class=\"table-responsive\"><table  style=\"width:100%;  margin-left:auto;margin-right:auto\"  class=\"easy-table easy-table-cuscosky \" >\n<caption>SD block size is 512KB<\/caption>\n<thead>\r\n<tr><th >Type<\/th>\n<th >Offset addr(in blocks)<\/th>\n<th >Size<\/th>\n<\/tr>\n<\/thead>\n<tbody>\r\n<tr><td >U-Boot<\/td>\n<td >0x8<\/td>\n<td >-<\/td>\n<\/tr>\n\r\n<tr><td >U-Boot ENV<\/td>\n<td >0x800<\/td>\n<td >0x2000<\/td>\n<\/tr>\n\r\n<tr><td >FMAN<\/td>\n<td >0x820<\/td>\n<td >32k<\/td>\n<\/tr>\n\r\n<tr><td >QE<\/td>\n<td >0x920<\/td>\n<td >-<\/td>\n<\/tr>\n<\/tbody><\/table><\/div>\n<div class=\"table-responsive\"><table  style=\"width:100%;  margin-left:auto;margin-right:auto\"  class=\"easy-table easy-table-cuscosky \" >\n<caption>Configuration PINs<\/caption>\n<thead>\r\n<tr><th >Mode<\/th>\n<th >SW1[1:8]<\/th>\n<th >SW2[1:8]<\/th>\n<th >SW3[1:8]<\/th>\n<\/tr>\n<\/thead>\n<tbody>\r\n<tr><td >NOR<\/td>\n<td >0001 0011<\/td>\n<td >1011 1011<\/td>\n<td >1110 0001<\/td>\n<\/tr>\n\r\n<tr><td >SD<\/td>\n<td >0010 0000<\/td>\n<td >0011 1011<\/td>\n<td >1110 0001<\/td>\n<\/tr>\n<\/tbody><\/table><\/div>\n<p>Useful macros:<br \/>\nCONFIG_SYS_FSL_PBL_RCW<br \/>\nCONFIG_SYS_FSL_PBL_PBI<\/p>\n<p>Reference<\/p>\n<ul>\n<li>https:\/\/pagure.io\/u-boot\/raw\/2015-07\/f\/board\/freescale\/t104xrdb\/README<\/li>\n<li>u-boot:board\/freescale\/t104xrdb\/README<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>PBL -&gt; load RCW (64 bytes\/512 bits) -&gt; write to RCWSRn cfg_rcw_src [0]_[1:4]_[5:8] -&gt;\u00a00_0100_0000 cfg_rcw_src\u7528\u4ee5\u51b3\u5b9aRCW\u914d\u7f6e\u5b57\u7684\u6765\u6e90 RCW[PBI_SRC]\u7528\u4ee5\u51b3\u5b9aPBL\u521d\u59cb\u5316\u63a7\u5236\u5668\u7684\u7c7b\u522b SD\u542f\u52a8\uff0c\u8d77\u59cb\u5730\u5740\u4e3a0x0000_1000\uff0cSD Card block size 512KB Useful macros: CONFIG_SYS_FSL_PBL_RCW CONFIG_SYS_FSL_PBL_PBI Reference https:\/\/pagure.io\/u-boot\/raw\/2015-07\/f\/board\/freescale\/t104xrdb\/README u-boot:board\/freescale\/t104xrdb\/README<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[19],"tags":[130,274,271],"class_list":["post-1456","post","type-post","status-publish","format-standard","hentry","category-powerpc","tag-freescale","tag-sdboot","tag-t104x"],"_links":{"self":[{"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1456"}],"version-history":[{"count":13,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1456\/revisions"}],"predecessor-version":[{"id":1469,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1456\/revisions\/1469"}],"wp:attachment":[{"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1456"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}