openwrt移植到tiny210編譯出現的問題

編譯時報錯:

patching file drivers/Kconfig
patching file drivers/Makefile
patching file include/linux/switch.h
Hunk #1 FAILED at 166.
Hunk #2 succeeded at 232 (offset 33 lines).
1 out of 2 hunks FAILED -- rejects in file include/linux/switch.h
Patch platform/802-switch-support.patch does not apply (enforce with -f)
make[4]: *** [/home/openwrt-dreambox/dreambox/branches/dreambox-EOL/build_dir/linux-s5pv210_tq210/linux-2.6.35.7/.quilt_checked] Error 1
make[4]: Leaving directory `/home/openwrt-dreambox/dreambox/branches/dreambox-EOL/target/linux/s5pv210'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/home/openwrt-dreambox/dreambox/branches/dreambox-EOL/target/linux'
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory `/home/openwrt-dreambox/dreambox/branches/dreambox-EOL'
make[1]: *** [/home/openwrt-dreambox/dreambox/branches/dreambox-EOL/staging_dir/ target-arm_v7-a_uClibc-0.9.30.1_eabi/stamp/.target_compile] Error 2
make[1]: Leaving directory `/home/openwrt-dreambox/dreambox/branches/dreambox-EO                                                                             L'
make: *** [world] 錯誤 2

經過網上查找友善官方給出了Bug修復補丁

http://www.arm9home.net/read.php?tid-80695-fpage-0-toread--page-1.html

但是我發現將新補丁覆蓋了原來的那個補丁後,make還是出現同樣的問題,

後經查找發現dreambox-EOL下有兩處802-switch-support.patch文件,我替換的位置不正確,

需要替換dreambox-EOL/build_dir/linux-s5pv210_tiny210/linux-2.6.35.7/patches/platform/目錄下的802-switch-support.patch才能生效。

同時我將補丁稍作修改,資源見:http://download.csdn.net/detail/daidi1989/9733945


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章