{"id":286246,"date":"2023-10-29T20:10:15","date_gmt":"2023-10-29T12:10:15","guid":{"rendered":"https:\/\/gulass.cn\/lnhpzbyyznhd.html"},"modified":"2023-10-29T20:10:15","modified_gmt":"2023-10-29T12:10:15","slug":"lnhpzbyyznhd","status":"publish","type":"post","link":"https:\/\/gulass.cn\/lnhpzbyyznhd.html","title":{"rendered":"Linux\u5185\u6838\u914d\u7f6e\u3001\u7f16\u8bd1\u3001\u79fb\u690d\uff08\u5185\u6838\uff09\u7684\u914d\u7f6e"},"content":{"rendered":"

linux\u5185\u6838\u914d\u7f6e\u3001\u7f16\u8bd1\u3001\u79fb\u690d<\/p>\n

1\u3001\u524d\u8a00<\/p>\n

Linux<\/a>\u5185\u6838\uff1a3.14<\/p>\n

\u76ee\u6807\u677f\uff1aExynos4412-FS4412\u5f00\u53d1\u677f<\/p>\n

\u5b66\u4e60\u76ee\u6807\uff1a\u4ece\u4e0b\u8f7d\u4e00\u4e2a\u5168\u65b0\u7684Linux\u5185\u6838\uff0c\u5e76\u5c06linux\u5185\u6838\u7ecf\u8fc7\u914d\u7f6e\u3001\u7f16\u8bd1\u8fc7\u540e\uff0c\u79fb\u690d\u5230\u6211\u4eec\u7684\u76ee\u6807\u7248\u3002<\/p>\n

2\u3001linux\u5185\u6838\u7684\u914d\u7f6e<\/p>\n

\u914d\u7f6e\u4e4b\u524d\uff1a\u9996\u5148\u9886\u5230\u6211\u4eec\u7684\u677f\u5b50\uff0c\u9996\u5148\u8981\u505a\u7684\u5c31\u662f\u627e\u5230\u76f8\u5173\u7684\u8d44\u6599\u3001pdf\u3001\u6e90\u7801\u7b49\u7b49\uff0c\u9886\u5230\u90a3\u4e9b\u8d44\u6599\u4ee5\u540e\uff0c\u63a5\u4e0b<\/p>\n

\u6765\u8981\u505a\u7684\u5c31\u662f\u76f4\u89c2\u91cd\u8981\u7684\u4e00\u6b65\u5c31\u662f\u5224\u5b9a\u8be5linux\u662f\u5426\u652f\u6301\u6211\u4eec\u7684\u677f\u5b50\uff0c\u8fd9\u513f\u8bf4\u7684\u652f\u6301\u5c31\u662f\u5728\u6784\u67b6\u548c\u677f\u5b50\u4e24\u65b9\u9762\u90fd\u652f\u6301\uff0c\u5224\u522b\u65b9\u5f0f\u5982\u4e0b\uff1a<\/p>\n

linux3.14\/arch\u76ee\u5f55\u4e0b\u4e3a\u6784\u67b6<\/p>\n

arch\/arm\/configs\/\u4ee5arm\u6784\u67b6\u548c\u672c\u677f\u5b50\u4e3a\u4f8b\uff0c\u5728\u6b64\u76ee\u5f55\u4e0b\u627e\u5230exynos_defconfig<\/p>\n

\u8fd9\u8bf4\u660e\u652f\u6301\u6211\u4eec\u7684\u677f\u5b50linux\u516c\u793e\uff0c\u5047\u5982\u53d1\u89c9\u4e0d\u652f\u6301\u6211\u4eec\u7684\u677f\u5b50\uff0c\u6211\u4eec\u53ef\u4ee5\u9009\u62e9\u9ad8\u7248\u672c\u7684linux\u5185\u6838\u77a7\u77a7\u652f\u6301\u4e0d\u652f\u6301\uff0c\u6216\u5219\u5411\u8ba2\u8d2d\u677f\u5b50\u7684\u5382\u5546\u8981\uff0c\u518d\u6216\u5219\u5411\u516c\u53f8\u670b\u53cb\u3001\u7ec4\u957f\u3001\u8001\u677f\u8981\uff0c\u603b\u4f1a\u6709\u89e3\u51b3\u7684\u529e\u6cd5\u3002<\/p>\n

makemrproper<\/p>\n

\u8be5\u547d\u4ee4<\/a>\u4f1a\u5220\u6389\u6240\u6709\u7684\u4e4b\u524d\u7f16\u8bd1\u751f\u6210\u6587\u4ef6\u3001\u5185\u6838\u914d\u7f6e\u6587\u4ef6(.config\u6587\u4ef6)\u548c\u5404\u7c7b\u5907\u4efd\u6587\u4ef6\uff0c<\/p>\n

\u6240\u4ee5\u51e0\u4e4e\u53ea\u5728\u7b2c\u4e00\u6b21\u6267\u884c\u5185\u6838\u7f16\u8bd1\u524d\u624d\u7528\u8fd9\u6761\u547d\u4ee4<\/p>\n

\u6ce8\uff1a<\/p>\n

makeclean\u547d\u4ee4\u5219\u662f\u7528\u4e8e\u5220\u6389\u5927\u591a\u6570\u7684\u7f16\u8bd1\u751f\u6210\u6587\u4ef6\uff0c\u5e76\u4e14\u4f1a\u4fdd\u7559\u5185\u6838\u7684\u914d\u7f6e\u6587\u4ef6.config\uff0c<\/p>\n

\u5185\u6838\u914d\u7f6e\u6587\u4ef6\u5728\u54ea\u4e2a\u76ee\u5f55_\u5185\u6838\u914d\u7f6e\u6587\u4ef6_arm linux \u5185\u6838 \u914d\u7f6e<\/p>\n

\u8fd8\u6709\u8db3\u591f\u7684\u7f16\u8bd1\u652f\u6301\u6765\u6784\u5efa\u6269\u5145\u6a21\u5757\u3002\u6240\u4ee5\u4f60\u82e5\u53ea\u60f3\u5220\u6389\u524d\u4e00\u6b21\u7f16\u8bd1\u8fc7\u7a0b\u7684\u6b8b\u7559\u6570\u636e\uff0c<\/p>\n

\u53ea\u9700\u6267\u884cmakeclean\u547d\u4ee4\u3002<\/p>\n

\u603b\u800c\u8a00\u4e4barm linux \u5185\u6838 \u914d\u7f6e<\/strong>\uff0cmakemrproper\u5220\u6389\u7684\u8303\u56f4\u6bd4makeclean\u5927\uff0c<\/p>\n

\u5b9e\u9645\u4e0a\uff0cmakemrproper\u5728\u5177\u4f53\u6267\u884c\u65f6\u7b2c\u4e00\u6b65\u5c31\u662f\u8c03\u7528makeclean<\/p>\n

\u66f4\u6539linux-3.14\u76ee\u5f55\u4e0bMakefile<\/p>\n

ARCH=arm\/*\u544a\u8bc9make\u5728\u7f16\u8bd1\u7684\u65f6\u4faf\u53bb\u6309\u7167arm\u6784\u67b6\u7684\u914d\u7f6e\u53bb\u7f16\u8bd1\uff0c\u9ed8\u8ba4X86*\/<\/p>\n

\/*makeexynos_fs4412_config\u53bbarch\/arm\/configs\/\u53bb\u627e\uff0c\u4e0d\u914d\u7f6e\u627e\u4e0d\u5230*\/<\/p>\n

CROSS_COMPILE=arm-linux-<\/p>\n

\u9009\u62e9\u4e00\u4e2a\u548c\u5f00\u53d1\u677f\u63a5\u8fd1\u7684\u7f16\u8bd1\u914d\u7f6e<\/p>\n

\u914d\u7f6e\u7684\u6a21\u677f\u5728arch\/arm\/configs\/\u4e0b<\/p>\n

cparch\/arm\/configs\/exynos_defconfigarch\/arm\/configs\/exynos_fs4412_defconfig<\/p>\n

makeexynos_fs4412_config--->\u7528exynos_fs4412_defconfig\u5c06.config\u8986\u76d6\u6389<\/p>\n

\u6216\u5219\uff1acparch\/arm\/configs\/exynos_fs4412_defconfig.config<\/p>\n

\u6267\u884c\u914d\u7f6e\u547d\u4ee4(\u526a\u88c1\u5185\u6838)<\/p>\n

makemenuconfig<\/p>\n

\u5185\u6838\u914d\u7f6e\u6587\u4ef6\u5728\u54ea\u4e2a\u76ee\u5f55_\u5185\u6838\u914d\u7f6e\u6587\u4ef6_arm linux \u5185\u6838 \u914d\u7f6e<\/p>\n

makemenuconfig\u56fe\u5f62\u5316\u754c\u9762\uff0c\u9009\u62e9\u987b\u8981\u7684\u529f\u80fd\uff0c\u4fdd\u5b58\uff08\u4e5f\u662f\u4fdd\u5b58\u5230.config\uff09<\/p>\n

\u987b\u8981\u88c5sudoapt-getinstalllibncurse-dev<\/p>\n

\u4f8b\u5982\u8bf4\u6253\u5f00\u7f51\u5361\u3001NFS\u7b49\u9a71\u52a8\u529f\u80fd\u3002---->\u5185\u6838\u6bd4uboot\u7f16\u8bd1\u7b80\u5355<\/p>\n

3\u3001\u5185\u6838\u7f16\u8bd1<\/p>\n

\u6ce8\uff1a<\/p>\n

1\u3001uboot-2013\/tools\u76ee\u5f55\u4e0b\u662f\u4e3a\u5185\u6838\u7b49\u63d0\u4f9b\u7684\u4e00\u4e9b\u5de5\u5177\u547d\u4ee4\u3002<\/p>\n

\u7f16\u8bd1\u5185\u6838\u65f6\u5c31\u7528\u5230mkimage\u547d\u4ee4\uff08\u751f\u6210\u955c\u50cf\u6587\u4ef6\uff09<\/p>\n

2\u3001\u62f7\u8d1d\u5230linux-3.14\/usr\/bin\u8ba9make\u80fd\u627e\u5230\u547d\u4ee4<\/p>\n

makeuImage-j4(\u56db\u6838\uff1a\u90094\u53cc\u6838\uff1a\u90098-->\u6700\u591a8)<\/p>\n

----->mkimagenotfound--->\u89c1\u91cc\u9762\u7684\u6ce8\u91ca<\/p>\n

(\u7f16\u8bd1\uff0cu\u4ee3\u8868uboot\u542f\u52a8zImage\u5176\u4ed6\u542f\u52a8)<\/p>\n

\u627e\u4e00\u4e2a\u548c\u677f\u5b50\u76f8\u4eff\u7684\u8bbe\u5907\u6811\u3010\u63cf\u8ff0\u771f\u5b9e\u5316\u5b66\u786c\u4ef6--\u4f7f\u7528\u786c\u4ef6\u5fc5\u987b\u6dfb\u52a0\u8fdb\u6765\u3011<\/p>\n

arch\/arm\/boot\/dts\u8bbe\u5907\u6811\u76ee\u5f55\uff08\u677f\u5b50\u7684\u8bbe\u5907\u6811\uff09-->\u3010\u63cf\u8ff0\u677f\u5b50\u4e0a\u6709\u4ec0\u4e48\u771f\u5b9e\u7684\u6570\u5b66\u786c\u4ef6\u8bbe\u5907\u3011<\/p>\n

cparch\/arm\/boot\/dts\/exynos4412-origen.dtsarch\/arm\/boot\/dts\/exynos4412-fs4412.dts<\/p>\n

viarch\/arm\/boot\/dts\/Makefile<\/p>\n

exynos4412-origen.dtb---->exynos4412-fs4412.dtb<\/p>\n

cdlinux-3.14<\/p>\n

makedtbs(\u7f16\u8bd1arch\/arm\/boot\/dts\/\u6240\u6709\u7684\u8bbe\u5907\u6811)<\/p>\n

cparch\/arm\/boot\/uImage~\/tftp<\/p>\n

cparch\/arm\/boot\/dts\/exynos4412-fs4412.dtb~\/tftp<\/p>\n

\u4e0b\u8f7d---->\u73b0\u8c61\uff1a\u542f\u52a8\u65f6\u505c\u5728\u67d0\u5904<\/p>\n

\u5728\u677f\u5b50\u4e0a\u8bbe\u7f6e\u4ee5\u4e0b\u73af\u5883\u53d8\u91cf\uff1a(\u6839\u6587\u4ef6\u7cfb\u7edf<\/a>\u901a\u8fc7nfs\u4ee5\u6302\u8f7d\u597d)<\/p>\n

setenvbootcmdtftp41000000uImage;tftp42000000exynos4412-fs4412.dtb;<\/p>\n

bootm41000000-42000000<\/p>\n

save<\/p>\n

\u4e0b\u8f7d\u5b8c\u6210\u4ee5\u540e\uff1a<\/p>\n

\u63d0\u793a\u4fe1\u606f\uff1acannotopenroot\"nfs\"fsrootnotmount(\u6302\u8f7d\u6839\u6587\u4ef6\u7cfb\u7edf)<\/p>\n

1\u3001\u5185\u6838\u4e2d\u7684\u7684nfs(\u987e\u5ba2\u7aef\uff09\u6ca1\u6709\u6253\u5f00\uff1f<\/p>\n

----><\/p>\n

makemenuconfig<\/p>\n

\/NFS\u67e5\u627e\u76f8\u5173NFS_Client\u7684\u5185\u5bb9\u6253\u5f00\u4fdd\u5b58\u7f16\u8bd1<\/p>\n

Filesystems-->NetworkFileSystem-->NFSclientsupport\uff08Y\uff09<\/p>\n

------>\u4e0b\u8f7d\u4ee5\u540e\uff1a\u4ecd\u7136\u4e0d\u884c<\/p>\n

2\u3001\u5185\u6838\u4e2d\u7f51\u8def\u529f\u80fd\u6ca1\u5f00\u542f\uff1f\u6ca1\u914d\u7f6e\uff1f<\/p>\n

--->NetworkingSupport-->Networkingoptions---><\/p>\n

\u6253\u5f00IP:kernellevelautoconfiguration\uff08\u4eceUboot\u83b7\u53d6IPserverip\uff09<\/p>\n

Filesystems-->NetworkFileSystem--><\/p>\n

NFSclientsupport--->Y<\/p>\n

--->RootfilesystemonNFS(Y)<\/p>\n

---->\u4ecd\u7136\u505c\u5728\u90a3\uff01<\/p>\n

\u6ce8\u610f\uff1aubootkernel\u662f\u4e24\u4e2a\u4e0d\u540c\u7684\u8f6f\u4ef6\uff0c\u72ec\u7acb\u7684\uff0ckernel\u8ba8\u538cuboot\u4f1a\u4ece\u5934\u5f00\u59cb\u521d\u59cb\u5316<\/p>\n

3.\u7f51\u5361\u6ca1\u6253\u5f00\uff1f<\/p>\n

makemenuconfig---->\u641c\u7d22dm9000--->\u6253\u5f00<\/p>\n

DeviceDrivers-->Networkdevicesupport--->Ethernetdriversupport<\/p>\n

\u73b0\u8c61\uff1a--->\u4ecd\u7136\u6709\u95ee\u9898<\/p>\n

4\u3001\u8bbe\u5907\u6811\u4e2d\u662f\u5426\u771f\u7684\u6dfb\u52a0\u4e86dm9000\u786c\u4ef6\u8bbe\u5907\uff1f<\/p>\n

viarch\/arm\/boot\/dts\/exynos4412-fs4412.dts\u89c2\u5bdf\u662f\u5426\u6709dm9000\u7684\u8282\u70b9\uff1f---->\u5e76\u6ca1\u6709<\/p>\n

---->\u5982\u4eca\u6211\u4eec\u6765\u6dfb\u52a0\u8fd9\u4e2a\u8282\u70b9\uff0c\u662f\u4e0d\u662f\u6709\u70b9\u72af\u8499\u5462\uff1f\u5982\u4f55\u6dfb\u52a0\u5462\uff1f<\/p>\n

---->\u8fd8\u597d\u5185\u6838\u7ed9\u6211\u4eec\u63d0\u4f9b\u4e86\u4e00\u4e9b\u6848\u4f8b\uff0c\u7528\u6765\u6539\u4e00\u6539<\/p>\n

linux-3.14\/Documentation\/devicetree\/bindings\/net\/davicom-dm9000.txt<\/p>\n

\u6ce8\uff1alinux-3.14\/Documentation\u4e0b\u6709soc\u4e0a\u7684\u5185\u5bb9\u5728arm\/\uff0c\u4e5f\u6709\u5916\u90e8\u7684net\/<\/p>\n

ethernet@18000000{<\/p>\n

compatible=\"davicom,dm9000\";<\/p>\n

reg=;\/\/IndexADDR\u3001Index\u539a\u5ea6\u3001DATAADDR\u3001\u957f\u5ea6<\/p>\n

interrupt-parent=;\/\/DM9000\u4e2d\u65ad\u5f15\u811a\u63a5\u5230\u54ea\u91cc\u6309\u7167\u5934\u6587\u4ef6\u5f80\u4e0a\u8ffdgpx0\u7684\u5b9a\u4e49<\/p>\n

interrupts=;\/\/6-->22\u53f7\u4e2d\u65ad4gic.txt<\/p>\n

local-mac-address=[0000deadbeef];<\/p>\n

davicom,no-eeprom;<\/p>\n

};<\/p>\n

---->\u5c06\u91cc\u9762\u7684\u8282\u70b9\u6dfb\u52a0\u5230\u8bbe\u5907\u6811\u4e2d\uff0c\u518d\u5ea6\u4e0b\u8f7darm linux \u5185\u6838 \u914d\u7f6e<\/strong>\uff0c\u603b\u7b97\u89c1\u5230\u4e86\u9633\u5149\uff01\u89c9\u5f97\u751f\u547d\u53c8\u6709\u4e86\u8272\u8c03\uff01<\/p>\n

4\u3001\u81f3\u6b64linux\u4f0a\u7538\u56ed\u8bba\u575b\uff0c\u6211\u4eec\u7684\u5185\u6838\u65e9\u5df2\u7f16\u8bd1\u548c\u79fb\u690d\u5b8c\u6bd5\uff0c\u5728\u6211\u4eec\u7684\u677f\u5b50\u4e0a\u65e9\u5df2\u5b8c\u5168\u53ef\u4ee5\u4f7f\u7528\u5566\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5185\u6838\u914d\u7f6e\u3001\u7f16\u8bd1\u3001\u79fb\u690d2\u3001linux\u5185\u6838\u7684\u914d\u7f6e\u8be5\u547d\u4ee4\u4f1a\u5220\u9664\u6240\u6709\u7684\u4e4b\u524d\u7f16\u8bd1\u751f\u6210\u6587\u4ef6\u3001\u5185\u6838\u914d\u7f6e\u6587\u4ef6(.config\u6587\u4ef6)\u548c\u5404\u79cd\u5907\u4efd\u6587\u4ef6\uff0c3\u3001\u5185\u6838\u7f16\u8bd1(\u7f16\u8bd1arch\/arm\/boot\/dts\/\u6240\u6709\u7684\u8bbe\u5907\u6811)\u4e0b\u6709soc\u4e0a\u7684\u5185\u5bb9\u5728arm\/\uff0c\u4e5f\u6709\u5916\u90e8\u7684net\/<\/p>\n","protected":false},"author":1,"featured_media":286247,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-286246","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/286246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=286246"}],"version-history":[{"count":0,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/286246\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/286247"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=286246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=286246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=286246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}