{"id":6,"date":"2009-05-02T22:49:22","date_gmt":"2009-05-02T14:49:22","guid":{"rendered":"http:\/\/www.martinliu.info\/?p=103"},"modified":"2020-07-03T00:18:26","modified_gmt":"2020-07-02T16:18:26","slug":"mini2440%e4%bd%bf%e7%94%a8u-boot","status":"publish","type":"post","link":"https:\/\/www.martinliu.info\/?p=6","title":{"rendered":"mini2440\u4f7f\u7528u-boot"},"content":{"rendered":"<p>\u4e0b\u8f7d\uff1a<a href=\"\/wp-content\/uploads\/2009\/05\/u-boot.bin\"><br \/>u-boot.bin<\/a><br \/><a href=\"\/wp-content\/uploads\/2009\/05\/u-boot-1.1.6-mini2440.tar.gz\">u-boot-1.1.6-mini2440.tar.gz<\/a><\/p>\n<p>\u540c\u5b66\u4e70\u4e86\u4e00\u5757<a href=\"http:\/\/www.arm9.net\" target=\"_blank\" rel=\"noopener noreferrer\">FriendlyARM\uff08\u53cb\u5584\u4e4b\u81c2\uff09<\/a>\u505a\u7684mini2440\u7684\u677f\u5b50\uff0c\u677f\u4e0a\u6709\u53cb\u5584\u4e4b\u81c2\u81ea\u5df1\u6269\u5c55\u7684SuperVIVI\uff0c\u5f88\u7b80\u4fbf\u6613\u7528\u7684\u4e00\u4e2abootloader\uff0c\u7279\u522b\u662f\u83dc\u5355\u529f\u80fd\u505a\u7684\u5f88\u8d34\u5fc3\u3002\u7136\u800c\u7f8e\u4e2d\u4e0d\u8db3\u7684\u662f\uff0cSuperVIVI\u9700\u8981\u901a\u8fc7USB\u6765\u66f4\u65b0NAND\u4e0a\u7684\u5185\u5bb9\uff0c\u8fd9\u4e2aUSB\u9a71\u52a8\u5374\u53c8\u53ea\u652f\u6301Windows 2000\uff08Windows XP\u52c9\u5f3a\u80fd\u7528\uff09\uff0c\u4f46\u6211\u7684\u540c\u5b66\u73b0\u5728\u53ea\u6709MacOS X\u548cVista\u673a\u5668\u4e86\uff0c\u7528\u8d77\u6765\u5f88\u662f\u4e0d\u4fbf\u3002<\/p>\n<p>\u53cb\u5584\u4e4b\u81c2\u63d0\u4f9b\u4e86\u4e00\u4e2au-boot\uff0c\u5fc3\u60f3\u5237\u5230NAND\u4e0a\u5c31\u597d\u4e86\uff0c\u7528\u4e0d\u4e86\u51e0\u5206\u949f\u3002\u4e8e\u662f\u6211\u8003\u8651\u7ed9\u4ed6\u7684mini2440\u6362\u4e0a\u7f51\u7edc\u529f\u80fd\u5f3a\u5927\u7684u-boot\u3002\u663e\u7136\u540e\u9762\u7684\u8fdb\u5c55\u8fdc\u6ca1\u6709\u8fd9\u4e48\u987a\u5229\uff0c\u4e0d\u7136\u5c31\u4e0d\u4f1a\u7279\u522b\u6765\u8bb0\u8ff0\u4e00\u756a\u4e86\u3002<\/p>\n<p>\u5237\u4e0a\u81ea\u5e26\u7684u-boot\u540e\uff0c\u53d1\u73b0MTD\u7684\u5206\u533a\u5f88\u602a\u5f02\uff0ckernel\u533a\u662f\u4ece0\u5f00\u59cb\u7684\u3002\u5fc3\u60f3\uff0c\u4e0d\u81f3\u4e8e\u6709\u8fd9\u4e48\u602a\u5f02\u7684\u9519\u8bef\u7559\u5728\u8fd9\u91cc\u5427\uff0c\u51e0\u79d2\u79cd\u540e\u604d\u7136\u5927\u609f\uff0c\u539f\u6765mini2440\u677f\u4e0a\u6709NOR\u548cNAND 2\u4e2a\u5b58\u50a8\u5668\uff0c\u8fd9\u4e2au-boot\u662f\u4e3aNOR\u51c6\u5907\u7684\u3002\u597d\u5427\uff0c\u81ea\u5df1\u52a8\u624b\u6539\u6539\u3002<\/p>\n<p>\u627e\u5230\u6e90\u4ee3\u7801\uff0c\u53d1\u73b0\u5c45\u7136\u8fd8\u662f1.1.6\uff0c\u771f\u591f\u8001\u7684\u3002\u4e0a\u53cb\u5584\u4e4b\u81c2\u7684\u7f51\u7ad9\u53bb\u4e0b\u8f7d\uff0c\u53d1\u73b0\u4f9d\u7136\u662f1.1.6\uff0c\u8fd9\u4e2a\u2026\u96be\u9053u-boot\u4e0d\u53d7\u6b22\u8fce\uff1f\u4e0d\u8fc7\u6211\u5728\u53cb\u5584\u4e4b\u81c2\u7684\u7f51\u7ad9\u4e0a\u53d1\u73b0\u4e86\u79fb\u690d\u597d\u76842.6.29\u7684\u5185\u6838\uff0c\u53ef\u4ee5\u987a\u4fbf\u62ff\u6765\u8bd5\u8bd5\u3002<!--more--><\/p>\n<p><span id=\"more-103\"><\/span>\u53cb\u5584\u4e4b\u81c2\u7528\u7684\u662fopen24x0\u7684config\uff0c\u4fee\u6539\u4e86u-boot-1.1.6\/include\/configs\/open24x0.h\uff0c\u91cd\u65b0\u5b89\u6392\u4e86MTD\u7684\u5206\u533a\uff0c\u5e76\u4f7fu-boot\u91c7\u7528NAND\u6765\u5b58\u653eenv\u3002\u7136\u540e\u4fee\u6539linux-2.6.29\/arch\/arm\/plat-s3c24xx\/common-friendly-arm.c\uff0c\u628aMTD\u7684\u5206\u533a\u4fe1\u606f\u8c03\u6574\u6210\u4e0eu-boot\u7684\u4e00\u81f4\u3002\u7136\u540e\u7f16\u8bd1\uff0c\u5237\u5199NAND\uff0c\u5173\u6389\u677f\u5b50\uff0c\u9ed8\u9ed8\u7948\u7977\u4e86\u4e00\u4e0b\u4e4b\u540e\uff0c\u6ee1\u6000\u5e0c\u671b\u7684\u6309\u4e0b\u7ea2\u8272\u7684\u7535\u6e90\u5f00\u5173\u2026\u679c\u7136\uff0c\u542f\u52a8\u4e0d\u4e86\u3002<\/p>\n<p>\u4e32\u53e3console\u4e0a\u6253\u5370\u51fa\u6765\u7684\u4fe1\u606f\uff0c\u505c\u5728\u4e86\u201ddone, booting the kernel.\u201d\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u89e3\u538b\u7f29\u6210\u529f\u4e86\uff0c\u4e5f\u8bb8\u662f\u8df3\u8f6c\u5230\u5165\u53e3\u5931\u8d25\u4e86\uff0c\u4e5f\u8bb8\u662f\u5728\u6253\u5370\u51fa\u201dLinux version\u201d\u4e4b\u524d\u51fa\u4e86\u4ec0\u4e48\u95ee\u9898\u3002\u5f53\u7136\uff0c\u4e5f\u6709\u53ef\u80fd\u662f\u4fe1\u606f\u6ca1\u6709\u6253\u5370\u5230\u4e32\u53e3console\u4e0a\u3002\u53ef\u60dc\u624b\u8fb9\u6ca1\u6709\u4eff\u771f\u5668\uff0c\u778e\u731c\u6ca1\u6709\u7528\u3002mini2440\u7684\u677f\u5b50\u5e94\u8be5\u6709\u4e0d\u5c11\u7528\u6237\uff0c\u8fd9\u4e9b\u7528\u6237\u4e2d\u5e94\u8be5\u4e0d\u6b62\u4e00\u4e2a\u4eba\u8bd5\u8fc7u-boot\u3002Google\u4e00\u4e0b\u5427\u3002<\/p>\n<p>\u770b\u6765\u8fd9\u4e2a\u95ee\u9898\u8fd8\u771f\u4e0d\u6b62\u6211\u4e00\u4e2a\u4eba\u9047\u5230\u8fc7\uff0c\u4e0d\u8fc7\u5927\u5bb6\u4f3c\u4e4e\u90fd\u9009\u62e9\u81ea\u5df1\u91cd\u65b0\u79fb\u690du-boot\uff0c\u800c\u4e0d\u662f\u4fee\u6b63\u539f\u6709\u7684u-boot 1.1.6\u3002\u8fd9\u4e2a\u6d3b\u513f\u592a\u82b1\u65f6\u95f4\u4e86\uff0c\u4e0d\u884c\uff0c\u7ee7\u7eedGoogle\u3002\u5728\u7ee7\u7eedGoogle\u4e86\u8fd1\u4e00\u4e2a\u5c0f\u65f6\u4e4b\u540e\uff0c\u603b\u7ed3\u5927\u5bb6\u7684\u95ee\u9898\u4e00\u822c\u662f3\u79cd\u60c5\u51b5\uff1a<\/p>\n<ol>\n<li>console\u8bbe\u7f6e\u6ca1\u6709\u4f20\u9012\u5230\u5185\u6838<\/li>\n<li>u-boot\u7684\u65f6\u949f\u8bbe\u7f6e\u4e0d\u5728405MHz\uff0c\u4e0eKernel\u7684\u4e0d\u4e00\u81f4<\/li>\n<li>Machine ID\u8bbe\u7f6e\u7684\u4e0eKernel\u4e0d\u4e00\u81f4<\/li>\n<\/ol>\n<p>\u7b2c1\u79cd\u60c5\u51b5\u53ef\u4ee5\u6392\u9664\uff0c\u6211\u8bbe\u7f6e\u4e86CMDLINE\u3002\u7b2c2\u79cd\u60c5\u51b5\uff0c\u68c0\u67e5\u4e86u-boot-1.1.6\/board\/open24x0\/boot_init.c\uff0c\u8c8c\u4f3c\u4e5f\u6ca1\u95ee\u9898\u3002\u770b\u6765\u662fMachine ID\u7684\u95ee\u9898\u3002<\/p>\n<p>\u67e5\u770bu-boot-1.1.6\/board\/open24x0\/open24x0.c\u4e0elinux-2.6.29\/include\/asm\/mach-types.h\uff0c\u53d1\u73b0Machine ID\u679c\u7136\u8bbe\u7f6e\u7684\u4e0d\u5bf9\u3002mini2440\u7684ID\u662f1999\uff0c\u800cu-boot\u4e2d\u8bbe\u7f6e\u7684\u662f\u4e09\u661f\u5b98\u65b9\u7684362\u3002\u6539\u5b8c\uff0c\u5237\u5199\uff0c\u91cd\u542f\u3002<\/p>\n<p>\u4f9d\u7136\u4e0d\u7075\u3002<\/p>\n<p>\u8fd9\u5c31\u6709\u70b9\u571f\u4e86\u3002\u6ca1\u6709\u4eff\u771f\u5668\uff0c\u6ca1\u6709\u6253\u5370\u4fe1\u606f\uff0c\u6211\u548cmini2440\u4e4b\u95f4\u53c8\u4e0d\u80fd\u901a\u8fc7\u8111\u7535\u6ce2\u4ea4\u6d41\u2026\u51a5\u601d\u82e6\u60f3\u4e2d\uff0c\u6211\u8fdb\u5165\u4e86\u51c6\u65e0\u610f\u8bc6\u72b6\u6001\uff0c\u5927\u8111\u5728\u8ff7\u60d8\uff0c\u624b\u6307\u5728\u4e0d\u505c\u5730\u7528NOR\u6216\u8005NAND\u542f\u52a8mini2440\u3002\u7a81\u7136\uff0c\u6211\u611f\u5230\u6709\u4ec0\u4e48\u4e1c\u897f\u4e0d\u5bf9\u3002\u9690\u9690\u7ea6\u7ea6\u7684\uff0c\u6211\u4f3c\u4e4e\u770b\u5230\u4e86\u4ec0\u4e48\u4e1c\u897f\uff0c\u4e0d\u5e94\u8be5\u51fa\u73b0\u7684\u4e1c\u897f\u3002\u5b9a\u5b9a\u795e\uff0c\u4e00\u884c\u4e00\u884c\u5730\u7ffb\u770b\u4e32\u53e3console\u65e5\u5fd7\uff0c\u8c8c\u4f3c\u6bcf\u4e00\u884c\u90fd\u5f88\u6b63\u5e38\uff0c\u4f46\u6700\u540e\u6211\u505c\u5728\u4e86SuperVIVI\u542f\u52a8\u7684\u4e00\u884c\u8bed\u53e5\u4e0a\u9762\uff1a\u201dMachine ID: 782\u2033\u3002<\/p>\n<p>782\uff1f\u4e3a\u4ec0\u4e48\u4f1a\u662f782\uff1f\u6211grep\u4e86\u4e00\u4e0blinux-2.6.29\/include\/asm\/mach-types.h\uff0c782\u662fMACH_TYPE_PNX4008\u3002\u5148\u4e0d\u60f3\u90a3\u4e48\u591a\uff0c\u6539\u6210782\u8bd5\u8bd5\u3002\u6539\u5b8c\uff0c\u5237\u5199\uff0c\u91cd\u542f\u3002<\/p>\n<p>Kernel\u6210\u529f\u542f\u52a8\u4e86\u3002<\/p>\n<p>\u56de\u8fc7\u5934\u7814\u7a76782\uff0c\u4e0d\u7531\u54d1\u7136\u5931\u7b11\u3002\u539f\u6765\u662f\u8fd9\u4e2alinux-2.6.29\u79fb\u690d\u7684\u6709\u70b9\u6f66\u8349\uff0cdefconfig\u4e2d\u7684\u5b8f\u5b9a\u4e49\u524d\u540e\u4e0d\u4e00\u81f4\uff0c\u4f7f\u5f97Machine ID\u6ca1\u6709\u8bbe\u7f6e\u4e3a\u9884\u60f3\u7684\u503c\u3002\u597d\u5427\uff0c\u8fd9\u4e2a\u95ee\u9898\u5c31\u7559\u5728\u8fd9\u91cc\u5427\uff0c\u4e5f\u662f\u4e00\u79cd\u4e0d\u548c\u8c10\u7f8e\u3002<\/p>\n<p>\u9644linux-2.6.29\/arch\/arm\/plat-s3c24xx\/common-friendly-arm.c\u4e2d\u7684MTD\u5206\u533a\u8bbe\u7f6e\uff1a<\/p>\n\n<pre class=\"brush: cpp; title: ; quick-code: false; notranslate\" title=\"\">\nstatic struct mtd_partition friendly_arm_default_nand_part[] = {\n    [0] = {\n        .name = \u201cboot\u201d,\n        .size = 0\u00d700040000,\n        .offset = 0,\n    },\n    [1] = {\n        .name = \u201cenv\u201d,\n        .offset = 0\u00d700040000,\n        .size = 0\u00d700010000,\n    },\n    [2] = {\n        .name = \u201ckernel\u201d,\n        .offset = 0\u00d700050000,\n        .size = 0\u00d700200000,\n    },\n    [3] = {\n        .name = \u201croot\u201d,\n        .offset = 0\u00d700250000,\n        .size = 0x03db0000,\n    }\n};\n<\/pre>","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u8f7d\uff1au-boot.binu-boot-1.1.6-mini2440.tar.gz \u540c\u5b66\u4e70\u4e86\u4e00\u5757FriendlyARM\uff08\u53cb\u5584\u4e4b\u81c2\uff09\u505a\u7684mini2440\u7684\u677f\u5b50\uff0c\u677f\u4e0a\u6709\u53cb\u5584\u4e4b\u81c2\u81ea\u5df1\u6269\u5c55\u7684SuperVIVI\uff0c\u5f88\u7b80\u4fbf\u6613\u7528\u7684\u4e00\u4e2abootloader\uff0c\u7279\u522b\u662f\u83dc\u5355\u529f\u80fd\u505a\u7684\u5f88\u8d34\u5fc3\u3002\u7136\u800c\u7f8e\u4e2d\u4e0d\u8db3\u7684\u662f\uff0cSuperVIVI\u9700\u8981\u901a\u8fc7USB\u6765\u66f4\u65b0NAND\u4e0a\u7684\u5185\u5bb9\uff0c\u8fd9\u4e2aUSB\u9a71\u52a8\u5374\u53c8\u53ea\u652f\u6301Windows 2000\uff08Windows XP\u52c9\u5f3a\u80fd\u7528\uff09\uff0c\u4f46\u6211\u7684\u540c\u5b66\u73b0\u5728\u53ea\u6709MacOS X\u548cVista\u673a\u5668\u4e86\uff0c\u7528\u8d77\u6765\u5f88\u662f\u4e0d\u4fbf\u3002 \u53cb\u5584\u4e4b\u81c2\u63d0\u4f9b\u4e86\u4e00\u4e2au-boot\uff0c\u5fc3\u60f3\u5237\u5230NAND\u4e0a\u5c31\u597d\u4e86\uff0c\u7528\u4e0d\u4e86\u51e0\u5206\u949f\u3002\u4e8e\u662f\u6211\u8003\u8651\u7ed9\u4ed6\u7684mini2440\u6362\u4e0a\u7f51\u7edc\u529f\u80fd\u5f3a\u5927\u7684u-boot\u3002\u663e\u7136\u540e\u9762\u7684\u8fdb\u5c55\u8fdc\u6ca1\u6709\u8fd9\u4e48\u987a\u5229\uff0c\u4e0d\u7136\u5c31\u4e0d\u4f1a\u7279\u522b\u6765\u8bb0\u8ff0\u4e00\u756a\u4e86\u3002 \u5237\u4e0a\u81ea\u5e26\u7684u-boot\u540e\uff0c\u53d1\u73b0MTD\u7684\u5206\u533a\u5f88\u602a\u5f02\uff0ckernel\u533a\u662f\u4ece0\u5f00\u59cb\u7684\u3002\u5fc3\u60f3\uff0c\u4e0d\u81f3\u4e8e\u6709\u8fd9\u4e48\u602a\u5f02\u7684\u9519\u8bef\u7559\u5728\u8fd9\u91cc\u5427\uff0c\u51e0\u79d2\u79cd\u540e\u604d\u7136\u5927\u609f\uff0c\u539f\u6765mini2440\u677f\u4e0a\u6709NOR\u548cNAND 2\u4e2a\u5b58\u50a8\u5668\uff0c\u8fd9\u4e2au-boot\u662f\u4e3aNOR\u51c6\u5907\u7684\u3002\u597d\u5427\uff0c\u81ea\u5df1\u52a8\u624b\u6539\u6539\u3002 \u627e\u5230\u6e90\u4ee3\u7801\uff0c\u53d1\u73b0\u5c45\u7136\u8fd8\u662f1.1.6\uff0c\u771f\u591f\u8001\u7684\u3002\u4e0a\u53cb\u5584\u4e4b\u81c2\u7684\u7f51\u7ad9\u53bb\u4e0b\u8f7d\uff0c\u53d1\u73b0\u4f9d\u7136\u662f1.1.6\uff0c\u8fd9\u4e2a\u2026\u96be\u9053u-boot\u4e0d\u53d7\u6b22\u8fce\uff1f\u4e0d\u8fc7\u6211\u5728\u53cb\u5584\u4e4b\u81c2\u7684\u7f51\u7ad9\u4e0a\u53d1\u73b0\u4e86\u79fb\u690d\u597d\u76842.6.29\u7684\u5185\u6838\uff0c\u53ef\u4ee5\u987a\u4fbf\u62ff\u6765\u8bd5\u8bd5\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-6","post","type-post","status-publish","format-standard","hentry","category-2"],"_links":{"self":[{"href":"https:\/\/www.martinliu.info\/index.php?rest_route=\/wp\/v2\/posts\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.martinliu.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.martinliu.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.martinliu.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.martinliu.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6"}],"version-history":[{"count":3,"href":"https:\/\/www.martinliu.info\/index.php?rest_route=\/wp\/v2\/posts\/6\/revisions"}],"predecessor-version":[{"id":112,"href":"https:\/\/www.martinliu.info\/index.php?rest_route=\/wp\/v2\/posts\/6\/revisions\/112"}],"wp:attachment":[{"href":"https:\/\/www.martinliu.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.martinliu.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.martinliu.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}