hdliuguanqun / openwrt-for-embedded

Automatically exported from code.google.com/p/openwrt-for-embedded
0 stars 0 forks source link

编译s3c64xx时,在最后image阶段,把uboot和uImage整合到一起时出错! #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
BIN_DIR=/home/richardnee/2.OpenWRT/0-OpenWRT-for-Embedded/trunk-10.03.1/bin/s3c6
4xx 
/home/richardnee/2.OpenWRT/0-OpenWRT-for-Embedded/trunk-10.03.1/scripts/combined
-image.sh 
/home/richardnee/2.OpenWRT/0-OpenWRT-for-Embedded/trunk-10.03.1/bin/s3c64xx/open
wrt-s3c64xx-mini6410-uImage 
/home/richardnee/2.OpenWRT/0-OpenWRT-for-Embedded/trunk-10.03.1/bin/s3c64xx/open
wrt-s3c64xx-mini6410-jffs2-64k.img 
/home/richardnee/2.OpenWRT/0-OpenWRT-for-Embedded/trunk-10.03.1/bin/s3c64xx/open
wrt-mini6410-jffs2-64k.bin
--: 
/home/richardnee/2.OpenWRT/0-OpenWRT-for-Embedded/trunk-10.03.1/scripts/combined
-image.sh: Permission denied
make[4]: *** [install] Error 126
make[4]: Leaving directory 
`/home/richardnee/2.OpenWRT/0-OpenWRT-for-Embedded/trunk-10.03.1/target/linux/s3
c64xx/image'
make[3]: *** [install] Error 2

Original issue reported on code.google.com by richard....@gmail.com on 2 Jun 2012 at 4:20

GoogleCodeExporter commented 9 years ago
target/linux/s3c64xx/image/Makefile中有该部分的定义:
define Image/Build/MINI6410
  BIN_DIR=$(BIN_DIR) $(TOPDIR)/scripts/combined-image.sh \
         $(UIMAGE) \
         $(BIN_DIR)/$(IMG_PREFIX)-$(1).img \
         $(BIN_DIR)/openwrt-$(2)-$(1).bin
#  BIN_DIR=$(BIN_DIR) $(TOPDIR)/scripts/slugimage.pl \
#       -F -L $(BIN_DIR)/apex/apex-$(2)-16mb-armeb.bin \
#       -k $(BIN_DIR)/openwrt-$(2)-zImage \
#       -r rootfs:$(BIN_DIR)/$(IMG_PREFIX)-$(1).img \
#       -p -o $(BIN_DIR)/openwrt-$(2)-$(1)-16mb.bin
endef

原因:
应该是$(TOPDIR)/scripts/combined-image.sh运行权限的问题!

Original comment by richard....@gmail.com on 2 Jun 2012 at 4:22

GoogleCodeExporter commented 9 years ago
查看权限:
# ls -l $(TOPDIR)/scripts/combined-image.sh
-rw-r--r--  1 richardnee richardnee 1020 2012-04-19 09:56 combined-image.sh

解决方法:修改权限,可执行!
# chmod a+x $(TOPDIR)/scripts/combined-image.sh

Original comment by richard....@gmail.com on 2 Jun 2012 at 4:29