linux-sunxi / u-boot-sunxi

Allwinner A1x native u-boot support
https://github.com/linux-sunxi/u-boot-sunxi/wiki
317 stars 333 forks source link

Failed to compile the uboot at first step, pls help. #68

Closed ioleon13 closed 10 years ago

ioleon13 commented 10 years ago

I downloaded the src and compile it as the following steps. The gcc version is gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) $ sudo make distclean CROSS_COMPILE=arm-linux-gnueabihf- $ sudo make Cubieboard2_config CROSS_COMPILE=arm-linux-gnueabihf- Configuring for Cubieboard2 - Board: sun7i, Options: CUBIEBOARD2,SPL,SUNXI_GMAC,STATUSLED=244,STATUSLED1=245,FAST_MBUS $ sudo make Cubieboard2 CROSS_COMPILE=arm-linux-gnueabihf- GEN include/autoconf.mk.dep GEN include/autoconf.mk make: *\ No rule to make target `Cubieboard2'. Stop.

ioleon13 commented 10 years ago

Hello! I found the root caused of the issue, in the step of $ sudo make Cubieboard2 CROSS_COMPILE=arm-linux-gnueabihf- you should modify to: $ sudo make CROSS_COMPILE=arm-linux-gnueabihf- I found this solution in sunxi's official doc: http://linux-sunxi.org/U-Boot#Compilation