{"id":317,"date":"2014-10-22T05:31:52","date_gmt":"2014-10-22T05:31:52","guid":{"rendered":"http:\/\/adrhc.go.ro\/wordpress\/?p=317"},"modified":"2014-11-30T16:18:40","modified_gmt":"2014-11-30T14:18:40","slug":"install-linux-headers","status":"publish","type":"post","link":"https:\/\/adrhc.go.ro\/blog\/install-linux-headers\/","title":{"rendered":"Install linux headers"},"content":{"rendered":"<pre class=\"brush:bash shell;toolbar: false\">\r\ncd ~\/compile\r\nrm -r linux-2.6.31.8\r\nrm -r linux_headers\r\nmkdir linux_headers\r\nwget https:\/\/www.kernel.org\/pub\/linux\/kernel\/v2.6\/linux-2.6.31.8.tar.gz\r\ntar xvzf linux-2.6.31.8.tar.gz\r\ncd linux-2.6.31.8\r\nexport ARCH=arm \r\nexport ARM_ARCH=armv5te \r\nexport CLFS_FLOAT=soft\r\nunset CFLAGS\r\nunset CPPFLAGS\r\nunset CXXFLAGS\r\n#For Zyxel NSA310 only:\r\n#Replace \/ffp\/home\/root\/compile\/linux-2.6.31.8\/arch\/arm\/Makefile with\r\n#\/ffp\/home\/root\/temp\/build_NSA310\/trunk\/linux-2.6.31.8\/arch\/arm\/Makefile\r\n#from http:\/\/gpl.nas-central.org\/ZYXEL\/NSA310_GPL\/FW4.40\/build_NSA310.tar.gz\r\ncp -v \/ffp\/home\/root\/temp\/build_NSA310\/trunk\/linux-2.6.31.8\/arch\/arm\/Makefile \/ffp\/home\/root\/compile\/linux-2.6.31.8\/arch\/arm\/Makefile\r\nmake mrproper\r\nmake ARCH=arm ARM_ARCH=armv5te CLFS_FLOAT=soft headers_check\r\nmake ARCH=arm ARM_ARCH=armv5te CLFS_FLOAT=soft INSTALL_HDR_PATH=`pwd`\/..\/linux_headers headers_install\r\ncd ..\/linux_headers\r\n#That's all!\r\n\r\n#the below is the packaging specific for my Zyxel NSA310\r\nmkdir ffp\r\nmv include\/ ffp\/\r\n#makepkg findutils version buildnumber\r\nmakepkg linux-headers 2.6.31.8 ?\r\ncp \/tmp\/linux-headers-2.6.31.8-arm-*.txz ~\/ffp_0.7_armv5\r\nfunpkg -q linux\r\nfunpkg -r linux-headers-2.6.31.8-arm\r\nfunpkg -i ~\/ffp_0.7_armv5\/linux-headers-2.6.31.8-arm-?.txz\r\n<\/pre>\n<pre>\r\n<span style=\"text-decoration: underline;\">Table 4.1. ARM Hard Floating Point Versions<\/span>\r\n<b>fpa\t\tfpe2\t\tfpe3\t\tmaverick<\/b>\r\nvfp\t\tvfpv3\t\tvfpv3-fp16\tvfpv3-d16\r\nvfpv3-d16-fp16\tvfpv3xd\t\tvfpv3xd-fp16\tneon\r\nneon-fp16\tvfpv4\t\tvfpv4-d16\tfpv4-sp-d16\r\nneon-vfpv4\t \t \t \r\n\r\n<span style=\"text-decoration: underline;\">Table 4.3. ARM Archiecture Choices<\/span>\r\narmv4t\tarmv5\tarmv5t\tarmv5te\r\narmv6\tarmv6j\tarmv6t2\tarmv6z\r\narmv6zk\tarmv6-m\tarmv7\tarmv7-a\r\narmv7-r\tarmv7-m\t \t \r\n<\/pre>\n<p><a href=\"http:\/\/cross-lfs.org\/view\/clfs-embedded\/arm\/cross-tools\/variables.html\" target=_blank>For ARCH, ARM_ARCH, CLFS_FLOAT values click also here.<\/a><br \/>\nInspired from <a href=\"http:\/\/cross-lfs.org\/view\/clfs-embedded\/arm\/cross-tools\/linux-headers.html\" target=_blank>here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>cd ~\/compile rm -r linux-2.6.31.8 rm -r linux_headers mkdir linux_headers wget https:\/\/www.kernel.org\/pub\/linux\/kernel\/v2.6\/linux-2.6.31.8.tar.gz tar xvzf linux-2.6.31.8.tar.gz cd linux-2.6.31.8 export ARCH=arm export ARM_ARCH=armv5te export CLFS_FLOAT=soft unset CFLAGS unset CPPFLAGS unset CXXFLAGS #For Zyxel NSA310 only: #Replace \/ffp\/home\/root\/compile\/linux-2.6.31.8\/arch\/arm\/Makefile with #\/ffp\/home\/root\/temp\/build_NSA310\/trunk\/linux-2.6.31.8\/arch\/arm\/Makefile #from http:\/\/gpl.nas-central.org\/ZYXEL\/NSA310_GPL\/FW4.40\/build_NSA310.tar.gz cp [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/adrhc.go.ro\/blog\/install-linux-headers\/#more-317\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Install linux headers<\/span><\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,11],"tags":[],"class_list":["post-317","post","type-post","status-publish","format-standard","hentry","category-howto","category-linux"],"_links":{"self":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/317","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/comments?post=317"}],"version-history":[{"count":0,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/posts\/317\/revisions"}],"wp:attachment":[{"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/media?parent=317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/categories?post=317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adrhc.go.ro\/blog\/wp-json\/wp\/v2\/tags?post=317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}