stdlf
分类:
2009-09-06 16:01:41
sh arm-elf-tools-20040427.sh
If you get the error message 'tail: cannot open `+43' for reading: No such file or directory' when installing, change line 39 from:
vim -b ./arm-elf-tools-20030314.sh
tail +${SKIP} ${SCRIPT} | gunzip | tar xvf -
to:
tail -n+${SKIP} ${SCRIPT} | gunzip | tar xvf -
make[1]: *** No rule to make target `hello_world.srec', needed by `all'. Stop.
make[1]: Leaving directory `/home/mort/src/targa/u-boot/u-boot-TOT/examples'
make: *** [examples] Error 2
还是参考了博客“senglen.cublog.cn ”,有如下的解决方法:
打开 examples/Makefile
119 $(LIB): .depend $(LIBOBJS)
120 $(AR) crv $@ $(LIBOBJS)
121
122 %: %.o $(LIB)
123 $(LD) -g $(EX_LDFLAGS) -Ttext $(LOAD_ADDR) \
124 -o $@ -e $(<:.o=) $< $(LIB) \
125 -L$(gcclibdir) -lgcc
126 %.srec: %
127 $(OBJCOPY) -O srec $< $@ 2>/dev/null
128
129 %.bin: %
130 $(OBJCOPY) -O binary $< $@ 2>/dev/null
把126行和129行改为:
%.srec: %.o
%.bin: %.o
继续make,顺利make出u-boot.bin
C:\Program Files\Macraigor Systems\Flash Programmer 烧写软件只认s19
C:\Program Files\Macraigor Systems\Flash Programmer目录下有BinToS19.exe可以转bintos19
target RAM starts at 0xc000000,意思是先把文件写入ram,然后再从ram烧到flash中去