Author: jogo Date: 2015-07-25 14:12:06 +0200 (Sat, 25 Jul 2015) New Revision: 46489
Removed: trunk/target/linux/brcm63xx/image/redbootscript.template Modified: trunk/target/linux/brcm63xx/image/Makefile Log: brcm63xx: use new tool for generating redboot images Simplify image/Makefile by using the new perl script for RedBoot. Signed-off-by: ?\195?\129lvaro Fern?\195?\161ndez Rojas <[email protected]> Signed-off-by: Jonas Gorski <[email protected]> Modified: trunk/target/linux/brcm63xx/image/Makefile =================================================================== --- trunk/target/linux/brcm63xx/image/Makefile 2015-07-25 12:12:03 UTC (rev 46488) +++ trunk/target/linux/brcm63xx/image/Makefile 2015-07-25 12:12:06 UTC (rev 46489) @@ -100,21 +100,11 @@ dd if=$(KDIR)/root.squashfs of="$(BIN_DIR)/$(IMG_PREFIX)-$(2)-root.squashfs" bs=64k conv=sync echo -ne \\xDE\\xAD\\xC0\\xDE >> "$(BIN_DIR)/$(IMG_PREFIX)-$(2)-root.squashfs" # Generate the scripted image - $(CP) ./redbootscript.template $(BIN_DIR)/redbootscript - let \ - kernellen="$$$$(stat -c%s $(BIN_DIR)/$(IMG_PREFIX)-$(2)-vmlinux.gz)" \ - rootfsdatalen="$$$$(stat -c %s $(BIN_DIR)/$(IMG_PREFIX)-$(2)-root.squashfs)" \ - rootfsaddr="0xBE430000 + kernellen" \ - rootfslen="0xBEBF0000 - rootfsaddr" \ - offset2="0x1000 + kernellen"; \ - $(SED) "s,%loadaddr,$(strip $(LOADADDR)),g" \ - -e "s,%kernellen,$$$$(printf '%#x' $$$$kernellen),g" \ - -e "s,%offset2,$$$$(printf '%#x' $$$$offset2),g" \ - -e "s,%rootfsdatalen,$$$$(printf '%#x' $$$$rootfsdatalen),g" \ - -e "s,%rootfsaddr,$$$$(printf '%#x' $$$$rootfsaddr),g" \ - -e "s,%rootfslen,$$$$(printf '%#x' $$$$rootfslen),g" \ - "$(BIN_DIR)/redbootscript" - + $(TOPDIR)/scripts/redboot-script.pl \ + -k $(BIN_DIR)/$(IMG_PREFIX)-$(2)-vmlinux.gz \ + -r $(BIN_DIR)/$(IMG_PREFIX)-$(2)-root.squashfs \ + -a $(strip $(LOADADDR)) -f 0xbe430000 -l 0x7c0000 \ + -s 0x1000 -t 20 -o $(BIN_DIR)/redbootscript dd if="$(BIN_DIR)/redbootscript" of="$(BIN_DIR)/redbootscript.padded" bs=4096 conv=sync cat \ "$(BIN_DIR)/redbootscript.padded" \ Deleted: trunk/target/linux/brcm63xx/image/redbootscript.template =================================================================== --- trunk/target/linux/brcm63xx/image/redbootscript.template 2015-07-25 12:12:03 UTC (rev 46488) +++ trunk/target/linux/brcm63xx/image/redbootscript.template 2015-07-25 12:12:06 UTC (rev 46489) @@ -1,15 +0,0 @@ -fis init -f - -fconfig boot_script true -fconfig boot_script_data -fis load -b %loadaddr -d kernel -exec -c "noinitrd" %loadaddr - - -fconfig boot_script_timeout 20 - -fis create -o 0x1000 -f 0xBE430000 -l %kernellen kernel - -fis create -o %offset2 -s %rootfsdatalen -f %rootfsaddr -l %rootfslen rootfs - -reset _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
