$ make menuconfig The program 'make' can be found in the following packages: * make * make-guile Try: sudo apt-get install <selected package> 解決方法: sudo apt-get install make $ make menuconfig Makefile:345: *** mixed implicit and normal rules: deprecated syntax config/mkconfig > config.in make -C /home/enos/RT288x_SDK/source/config/scripts/lxdialog all make[1]: Entering directory '/home/enos/RT288x_SDK/source/config/scripts/lxdialog' /bin/sh: 1: cc: not found -e >> Unable to find the Ncurses libraries. >> >> You must have Ncurses installed in order >> to use 'make menuconfig' Makefile:31: recipe for target 'ncurses' failed make[1]: *** [ncurses] Error 1 make[1]: Leaving directory '/home/enos/RT288x_SDK/source/config/scripts/lxdialog' Makefile:213: recipe for target 'menuconfig' failed make: *** [menuconfig] Error 2 解決方法: sudo apt-get install gcc libncurses5-dev make -C /home/enos/RT288x_SDK/source/vendors/Ralink/MT7620/. dir_v=/home/enos/RT288x_SDK/source/vendors/Ralink/MT7620/. -f /home/enos/RT288x_SDK/source/vendors/vendors-common.mak image make[2]: Entering directory '/home/enos/RT288x_SDK/source/vendors/Ralink/MT7620' cc -DUSE_HOSTCC -o mkimage -I/home/enos/RT288x_SDK/source/user/mkimage/include /home/enos/RT288x_SDK/source/user/mkimage/crc32.c /home/enos/RT288x_SDK/source/user/mkimage/mkimage.c /home/enos/RT288x_SDK/source/user/mkimage/crc32.c:15:18: fatal error: zlib.h: No such file or directory #include "zlib.h" ^ compilation terminated. /home/enos/RT288x_SDK/source/vendors/Ralink/MT7620/./Makefile:149: recipe for target 'mkimage' failed make[2]: *** [mkimage] Error 1 make[2]: Leaving directory '/home/enos/RT288x_SDK/source/vendors/Ralink/MT7620' Makefile:29: recipe for target 'image' failed make[1]: *** [image] Error 2 make[1]: Leaving directory '/home/enos/RT288x_SDK/source/vendors' Makefile:323: recipe for target 'image' failed make: *** [image] Error 2 解決方法: sudo apt-get install zlib1g-dev /home/enos/RT288x_SDK/source/user/iptables-1.4.10/libtool: 1: eval: libtool_args+=: not found /home/enos/RT288x_SDK/source/user/iptables-1.4.10/libtool: 1: eval: libtool_args+=: not found libtool: link: /opt/buildroot-gcc342/bin/mipsel-linux-gcc libiptc/.libs/libip4tc.so extensions/libext4.a ./.libs/libxtables.so -lm /opt/buildroot-gcc342/bin/../mipsel-buildroot-linux-uclibc/sysroot/usr/lib/crt1.o: In function `__start': (.text+0x18): undefined reference to `main' collect2: ld returned 1 exit status Makefile:531: recipe for target 'iptables-multi' failed make[5]: *** [iptables-multi] Error 1 make[5]: Leaving directory '/home/enos/RT288x_SDK/source/user/iptables-1.4.10' Makefile:833: recipe for target 'all-recursive' failed make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory '/home/enos/RT288x_SDK/source/user/iptables-1.4.10' Makefile:385: recipe for target 'all' failed make[3]: *** [all] Error 2 make[3]: Leaving directory '/home/enos/RT288x_SDK/source/user/iptables-1.4.10' Makefile:177: recipe for target 'iptables-1.4.10' failed make[2]: *** [iptables-1.4.10] Error 2 make[2]: Leaving directory '/home/enos/RT288x_SDK/source/user' Makefile:169: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/home/enos/RT288x_SDK/source/user' Makefile:427: recipe for target 'user_only' failed make: *** [user_only] Error 2 解決方法: sudo ln -fs /bin/bash /bin/sh Image Name: Linux Kernel Image Created: Fri Jul 24 10:53:48 2015 Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 4316615 Bytes = 4215.44 kB = 4.12 MB Load Address: 0x80000000 Entry Point: 0x8000C150 Kernel Size: 0x00000000 make[2]: Leaving directory '/home/enos/RT288x_SDK/source/vendors/Ralink/MT7620' make[1]: Leaving directory '/home/enos/RT288x_SDK/source/vendors' cp /home/enos/RT288x_SDK/source/images/enos_uImage /tftpboot cp: cannot create regular file ‘/tftpboot’: Permission denied Makefile:323: recipe for target 'image' failed 解決方法: sudo mkdir /tftpboot; sudo chmod 777 /tftpboot bison -y -d gram.y && mv y.tab.c gram.c /bin/sh: bison: command not found Makefile:31: recipe for target 'gram.c' failed make[3]: *** [gram.c] Error 127 make[3]: Leaving directory '/home/enos/RT288x_SDK/source/user/radvd-1.0' Makefile:177: recipe for target 'radvd-1.0' failed make[2]: *** [radvd-1.0] Error 2 make[2]: Leaving directory '/home/enos/RT288x_SDK/source/user' Makefile:169: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/home/enos/RT288x_SDK/source/user' Makefile:427: recipe for target 'user_only' failed make: *** [user_only] Error 2 解決方法: sudo apt-get install bison flex scanner.l && mv lex.yy.c scanner.c /bin/sh: flex: command not found Makefile:28: recipe for target 'scanner.c' failed make[3]: *** [scanner.c] Error 127 make[3]: Leaving directory '/home/enos/RT288x_SDK/source/user/radvd-1.0' Makefile:177: recipe for target 'radvd-1.0' failed make[2]: *** [radvd-1.0] Error 2 make[2]: Leaving directory '/home/enos/RT288x_SDK/source/user' Makefile:169: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/home/enos/RT288x_SDK/source/user' Makefile:427: recipe for target 'user_only' failed make: *** [user_only] Error 2 解決方法: sudo apt-get install flex

ubuntu 15.04 才有的問題

make[3]: Entering directory '/home/enos/RT288x_SDK/source/user/busybox' Makefile:1262: *** mixed implicit and normal rules: deprecated syntax /home/enos/RT288x_SDK/source/user/busybox/Makefile:421: *** mixed implicit and normal rules: deprecated syntax /home/enos/RT288x_SDK/source/user/busybox/Makefile:1262: *** mixed implicit and normal rules: deprecated syntax make[4]: *** No rule to make target 'silentoldconfig'. Stop. Makefile:497: recipe for target 'include/autoconf.h' failed make[3]: *** [include/autoconf.h] Error 2 make[3]: Leaving directory '/home/enos/RT288x_SDK/source/user/busybox' Makefile:177: recipe for target 'busybox' failed make[2]: *** [busybox] Error 2 make[2]: Leaving directory '/home/enos/RT288x_SDK/source/user' Makefile:169: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/home/enos/RT288x_SDK/source/user' Makefile:427: recipe for target 'user_only' failed make: *** [user_only] Error 2 解決方法: vi user/busybox/Makefile--- user-old/busybox/Makefile 2015-07-27 13:47:37.904017728 +0800 +++ user/busybox/Makefile 2015-07-27 13:49:20.712446619 +0800 @@ -418,7 +418,7 @@ -include $(srctree)/arch/$(ARCH)/Makefile export KBUILD_DEFCONFIG -config %config: scripts_basic outputmakefile FORCE +%config: scripts_basic outputmakefile FORCE $(Q)mkdir -p include $(Q)$(MAKE) $(build)=scripts/kconfig $@ $(Q)$(MAKE) -C $(srctree) KBUILD_SRC= .kernelrelease 改完記得要 make clean 再 make, 不然會有奇怪的錯誤。 ## Booting image at bc050000 ... raspi_read: from:50000 len:40 Image Name: Linux Kernel Image Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 5757730 Bytes = 5.5 MB Load Address: 80000000 Entry Point: 8000c150 raspi_read: from:50040 len:57db22 Verifying Checksum ... OK Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover 解決方法: 這個問題是在於 ubuntu 15.04 的 lzma 版本為 5.1.x,而 Ralink bootcode 的開發環境的 lzma 版本為 4.32.7,很不幸的是 lzma 的 5.x 並無法相容於 4.x,所以會造成 bootloader 無法解壓的問題。只要重新安裝 Ralink SDK 的 toolchain 目錄中的 lzma 版本即可。
創作者介紹

邱小新の工作筆記

台南小新 發表在 痞客邦 PIXNET 留言(1) 人氣()


留言列表 (1)

發表留言
  • Guest
  • 請問您有遇過編譯ralink sdk時發生:relocation R_MIPS_HI16 against `__gnu_local_gp' can not be used when making a shared object; recompile with -fPIC

    我在編譯uclibc++及有遇到這問題
找更多相關文章與討論