Question about u-boot.kwb September 16, 2010 10:03PM |
Registered: 14 years ago Posts: 4 |
make u-boot.kwb #echo "Creating u-boot.bin.512k padded to 512k" #dd if=u-boot.bin of=u-boot.bin.512k ibs=512K conv=sync echo "Removing bad u-boot.kwb" rm u-boot.kwb
KWD_CONFIG = $(SRCTREE)/board/$(BOARDDIR)/kwbimage.cfg
$(obj)u-boot.kwb: $(obj)u-boot.bin $(obj)tools/mkimage -n $(KWD_CONFIG) -T kwbimage \ -a $(TEXT_BASE) -e $(TEXT_BASE) -d $< $@
Re: Question about u-boot.kwb September 17, 2010 12:59AM |
Registered: 14 years ago Posts: 18 |
Re: Question about u-boot.kwb September 17, 2010 06:51AM |
Registered: 14 years ago Posts: 107 |
#!/bin/sh -e usage() { echo "Usage: $0 [-d]" exit 1 } case $# in 0) allow_dirty= ;; 1) if [ "_$1" = "_-d" ]; then allow_dirty=true; else usage; fi ;; *) usage ;; esac if tools/setlocalversion | grep dirty; then if [ "$allow_dirty" ]; then echo Warning: building dirty version as requested. else echo Please commit changes first. exit 1 fi fi export CROSS_COMPILE=arm-linux-gnueabi- git tag -f last-built make mrproper make dockstar_config make u-boot.kwb perl -e 'for ($i=0;$i<512;$i++){printf("\xFF" x 1024)}' > /tmp/ff.512k cat u-boot.bin /tmp/ff.512k | dd of=u-boot.bin.512k bs=1 count=512k cat u-boot.kwb /tmp/ff.512k | dd of=u-boot.kwb.512k bs=1 count=512k
Re: Question about u-boot.kwb September 17, 2010 03:30PM |
Registered: 14 years ago Posts: 18 |
Re: Question about u-boot.kwb September 17, 2010 03:45PM |
Registered: 14 years ago Posts: 107 |
Re: Question about u-boot.kwb September 17, 2010 04:17PM |
Registered: 14 years ago Posts: 18 |
Re: Question about u-boot.kwb September 18, 2010 10:14PM |
Registered: 14 years ago Posts: 18 |
Re: Question about u-boot.kwb September 18, 2010 10:20PM |
Registered: 14 years ago Posts: 107 |
Re: Question about u-boot.kwb September 18, 2010 11:12PM |
Registered: 14 years ago Posts: 18 |
Re: Question about u-boot.kwb September 19, 2010 11:11AM |
Registered: 14 years ago Posts: 107 |