diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-03-25 15:34:40 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2015-03-25 15:34:40 +0000 |
commit | d84fafb9f34be7f92b01938acafcc828d9f00478 (patch) | |
tree | c5baca1b1a43d65e12276ac1a24d5eec8370bb49 /target/linux/brcm63xx/image/redbootscript.template | |
parent | 77e3d442b0a246a953706ed34f257c3c07ade12a (diff) | |
download | upstream-d84fafb9f34be7f92b01938acafcc828d9f00478.tar.gz upstream-d84fafb9f34be7f92b01938acafcc828d9f00478.tar.bz2 upstream-d84fafb9f34be7f92b01938acafcc828d9f00478.zip |
brcm63xx: add Livebox 1 firmware image generation
Currently there isn't images ready for flashing liveboxes boards. This
patch adds a script and the code to call it in the bcm63xx images
builder makefile to generate the livebox 1 firmware.
I removed some lines to avoid generating unneded files in the bin/ dir
for this board. And added code to generate a squashed rootfs aligned to
64 kB since the current one in the /bin dir is 128 kB aligned and
doesn't work. Still no sysupgrade support for this board. Upgrading from
within openwrt can be done writing with mtd the kernel, and then the 64k
aligned rootfs.
Regards
Signed-off-by: Daniel Gonzalez <dgcbueu@gmail.com>
[jogo: use sed instead of a separate shell script for the boot script, make it
respect the load address]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 44982
Diffstat (limited to 'target/linux/brcm63xx/image/redbootscript.template')
-rw-r--r-- | target/linux/brcm63xx/image/redbootscript.template | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/image/redbootscript.template b/target/linux/brcm63xx/image/redbootscript.template new file mode 100644 index 0000000000..a007c849cf --- /dev/null +++ b/target/linux/brcm63xx/image/redbootscript.template @@ -0,0 +1,15 @@ +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 |