{"id":214,"date":"2010-09-10T17:48:29","date_gmt":"2010-09-10T08:48:29","guid":{"rendered":"http:\/\/phpdev.comsys-blog.com\/?p=214"},"modified":"2010-09-10T17:48:29","modified_gmt":"2010-09-10T08:48:29","slug":"%e7%8e%84%e7%ae%b1-kuro-boxt4%e3%80%802-6-kernels-no-longer-build-correctly-with-old-version-of-binutils","status":"publish","type":"post","link":"https:\/\/tamura.jp\/?p=214","title":{"rendered":"\u7384\u7bb1 KURO-BOX\/T4\u306basterisk\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u524d\u306b\u30ab\u30fc\u30cd\u30eb\u30bd\u30fc\u30b9\u3092\u3069\u3046\u306b\u304b\u3059\u308b"},"content":{"rendered":"<p>make\u3059\u308b\u306e\u306b\u5fc5\u8981\u306a\u3082\u306e\u3092\u3044\u308d\u3044\u308d\u5165\u308c\u3066\u304a\u304f<br \/>\n# apt-get install gcc g++ libc6-dev make linux-libc-dev ncurses-dev perl-modules patch<\/p>\n<p>dahdi asterisk \u3092make\u3059\u308b\u306e\u306b\u3044\u308d\u3044\u308d\u3044\u308b\u305f\u3081\u3001<br \/>\n\u4e0b\u8a18URL\u304b\u3089\u3001linux-2.6.30.tar.bz2 \u3092\u30c0\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3002<\/p>\n<p><a href=\"http:\/\/kuroutoshikou.com\/important\/opensource\/\">http:\/\/kuroutoshikou.com\/important\/opensource\/<\/a><\/p>\n<p>\/tmp \u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u3068\u3057\u3066\u3002<\/p>\n<p># cd \/usr\/src\/<br \/>\n# bzip2 -dc \/tmp\/linux-2.6.30.tar.bz2 | tar xvf &#8211;<br \/>\n# ln -s linux-2.6.30 linux<br \/>\n# cd linux<\/p>\n<p>\u3055\u3066\u3001\u3053\u3053\u3067 make modules \u3092\u884c\u3044\u305f\u3044\u306e\u3060\u3051\u308c\u3069\u3001\u3053\u308c\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u306e\u3067\u3001\u3044\u308d\u3044\u308d\u3059\u308b\u3002<\/p>\n<p>\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u306e\u4f5c\u6210<br \/>\n#ln -s \/usr\/bin\/ls \/usr\/bin\/powerpc-linux-gnu-ld<br \/>\n#ln -s \/usr\/bin\/objcopy \/usr\/bin\/powerpc-linux-gnu-objcopy<\/p>\n<p>Makefile\u304c\u30c0\u30e1\u30c0\u30e1\u306a\u306e\u3067\u3001\u4fee\u6b63\u3059\u308b\u3002<\/p>\n<p>&#8212;&#8212;-patch \u306e\u4e2d\u8eab \u2193&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\ndiff -ur linux-2.6.30_org\/Makefile linux-2.6.30\/Makefile<br \/>\n&#8212; linux-2.6.30_org\/Makefile\u00a02010-09-11 21:56:12.000000000 +0900<br \/>\n+++ linux-2.6.30\/Makefile\u00a02010-09-11 21:59:55.000000000 +0900<br \/>\n@@ -1,7 +1,7 @@<br \/>\n\u00a0VERSION = 2<br \/>\n\u00a0PATCHLEVEL = 6<br \/>\n\u00a0SUBLEVEL = 30<br \/>\n-EXTRAVERSION = .1-BUFFALO<br \/>\n+EXTRAVERSION = .1-BUFFALO-svn1376<br \/>\n\u00a0NAME = Man-Eating Seals of Antiquity<br \/>\n\u00a0<br \/>\n\u00a0# *DOCUMENTATION*<br \/>\n@@ -338,6 +338,7 @@<br \/>\n\u00a0CFLAGS_MODULE\u00a0\u00a0 = $(MODFLAGS)<br \/>\n\u00a0AFLAGS_MODULE\u00a0\u00a0 = $(MODFLAGS)<br \/>\n\u00a0LDFLAGS_MODULE\u00a0 =<br \/>\n+LDFLAGS_MODULE_PREREQ\u00a0 =<br \/>\n\u00a0CFLAGS_KERNEL\u00a0=<br \/>\n\u00a0AFLAGS_KERNEL\u00a0=<br \/>\n\u00a0<br \/>\n@@ -363,7 +364,7 @@<br \/>\n\u00a0export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION<br \/>\n\u00a0export ARCH SRCARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC<br \/>\n\u00a0export CPP AR NM STRIP OBJCOPY OBJDUMP MAKE AWK GENKSYMS PERL UTS_MACHINE<br \/>\n-export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS<br \/>\n+export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE LDFLAGS_MODULE_PREREQ CHECK CHECKFLAGS<br \/>\n\u00a0<br \/>\n\u00a0export KBUILD_CPPFLAGS NOSTDINC_FLAGS LINUXINCLUDE OBJCOPYFLAGS LDFLAGS<br \/>\n\u00a0export KBUILD_CFLAGS CFLAGS_KERNEL CFLAGS_MODULE<br \/>\ndiff -ur linux-2.6.30_org\/arch\/powerpc\/Makefile linux-2.6.30\/arch\/powerpc\/Makefile<br \/>\n&#8212; linux-2.6.30_org\/arch\/powerpc\/Makefile\u00a02010-09-11 21:57:28.000000000 +0900<br \/>\n+++ linux-2.6.30\/arch\/powerpc\/Makefile\u00a02010-09-11 22:00:24.000000000 +0900<br \/>\n@@ -93,7 +93,7 @@<br \/>\n\u00a0\u00a0KBUILD_CFLAGS += $(call cc-option,-mtune=power4)<br \/>\n\u00a0endif<br \/>\n\u00a0else<br \/>\n-LDFLAGS_MODULE\u00a0+= arch\/powerpc\/lib\/crtsavres.o<br \/>\n+LDFLAGS_MODULE_PREREQ += arch\/powerpc\/lib\/crtsavres.o<br \/>\n\u00a0endif<br \/>\n\u00a0<br \/>\n\u00a0ifeq ($(CONFIG_TUNE_CELL),y)<br \/>\n@@ -231,7 +231,7 @@<br \/>\n\u00a0\u00a0\u00a0echo &#8216;disable kernel modules&#8217; ; \\<br \/>\n\u00a0\u00a0\u00a0false ; \\<br \/>\n\u00a0\u00a0fi<br \/>\n&#8211;\u00a0@if ! \/bin\/echo dssall | $(AS) -many -o $(TOUT) &gt;\/dev\/null 2&gt;&amp;1 ; then \\<br \/>\n+\u00a0@if ! [[ &#8220;\/bin\/echo dssall | $(AS) -many -o $(TOUT) &gt;\/dev\/null 2&gt;&amp;1&#8221; ]] ; then \\<br \/>\n\u00a0\u00a0\u00a0echo -n &#8216;*** ${VERSION}.${PATCHLEVEL} kernels no longer build &#8216; ; \\<br \/>\n\u00a0\u00a0\u00a0echo &#8216;correctly with old versions of binutils.&#8217; ; \\<br \/>\n\u00a0\u00a0\u00a0echo &#8216;*** Please upgrade your binutils to 2.12.1 or newer&#8217; ; \\<br \/>\ndiff -ur linux-2.6.30_org\/scripts\/Makefile.modpost linux-2.6.30\/scripts\/Makefile.modpost<br \/>\n&#8212; linux-2.6.30_org\/scripts\/Makefile.modpost\u00a02010-09-11 22:17:16.000000000 +0900<br \/>\n+++ linux-2.6.30\/scripts\/Makefile.modpost\u00a02010-09-11 22:16:20.000000000 +0900<br \/>\n@@ -122,14 +122,21 @@<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cmd_cc_o_c = $(CC) $(c_flags) $(CFLAGS_MODULE)\u00a0\\<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0 -c -o $@ $&lt;<br \/>\n\u00a0<br \/>\n-$(modules:.ko=.mod.o): %.mod.o: %.mod.c FORCE<br \/>\n+quiet_cmd_as_o_S = AS $(quiet_modtag)\u00a0 $@<br \/>\n+cmd_as_o_S\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = $(CC) $(a_flags) $(AFLAGS_MODULE) -c -o $@ $&lt;<br \/>\n+<br \/>\n+$(LDFLAGS_MODULE_PREREQ): %.o: %.S FORCE<br \/>\n+\u00a0$(call if_changed_dep,as_o_S)<br \/>\n+<br \/>\n+$(modules:.ko=.mod.o): %.mod.o: %.mod.c $(LDFLAGS_MODULE_PREREQ) FORCE<br \/>\n\u00a0\u00a0$(call if_changed_dep,cc_o_c)<br \/>\n\u00a0<br \/>\n\u00a0targets += $(modules:.ko=.mod.o)<br \/>\n\u00a0<br \/>\n\u00a0# Step 6), final link of the modules<br \/>\n\u00a0quiet_cmd_ld_ko_o = LD [M]\u00a0 $@<br \/>\n&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0 cmd_ld_ko_o = $(LD) -r $(LDFLAGS) $(LDFLAGS_MODULE) -o $@\u00a0\u00a0\\<br \/>\n+\u00a0\u00a0\u00a0\u00a0\u00a0 cmd_ld_ko_o = $(LD) -r $(LDFLAGS) $(LDFLAGS_MODULE_PREREQ)\u00a0\\<br \/>\n+\u00a0\u00a0\u00a0\u00a0 $(LDFLAGS_MODULE) -o $@\u00a0\u00a0\\<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0 $(filter-out FORCE,$^)<br \/>\n\u00a0<br \/>\n\u00a0$(modules): %.ko :%.o %.mod.o FORCE<br \/>\n&#8212;&#8212;-patch \u306e\u4e2d\u8eab \u2191&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>#make modules<\/p>\n<p>\u3053\u308c\u3067\u6e96\u5099\u306f\u7d42\u308f\u308a\u3002<br \/>\n\u5f8c\u306f\u3001dahdi daudi-tools asterisk \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<p>\uff41\uff53\uff54\uff45\uff52\uff49\uff53\uff4b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u305d\u306e\u5f8c<\/p>\n<p>\u901a\u8a71\u9332\u97f3\u306e\u53d7\u4fe1\u5074\u3068\u7740\u4fe1\u5074\u304c\u5225\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u3001sox\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<p>#apt-get install sox<\/p>\n","protected":false},"excerpt":{"rendered":"<p>make\u3059\u308b\u306e\u306b\u5fc5\u8981\u306a\u3082\u306e\u3092\u3044\u308d\u3044\u308d\u5165\u308c\u3066\u304a\u304f # apt-get install gcc g++ libc6-dev make linux-libc-dev ncurses-dev perl-modules patch [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[54,56,57,60,62,67,82],"class_list":["post-214","post","type-post","status-publish","format-standard","hentry","category-kuro-boxt4","tag-asterisk","tag-crtsavres","tag-57","tag-kuro-boxt4","tag-modules","tag-powerpc","tag-82"],"_links":{"self":[{"href":"https:\/\/tamura.jp\/index.php?rest_route=\/wp\/v2\/posts\/214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tamura.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tamura.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tamura.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tamura.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=214"}],"version-history":[{"count":0,"href":"https:\/\/tamura.jp\/index.php?rest_route=\/wp\/v2\/posts\/214\/revisions"}],"wp:attachment":[{"href":"https:\/\/tamura.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tamura.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tamura.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}