summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Westerhof <mwester@dls.net>2006-12-24 19:12:06 +0000
committerMike Westerhof <mwester@dls.net>2006-12-24 19:12:06 +0000
commitf8a2e56da94229ca24c532cf8003d5e87916c1a2 (patch)
tree3129c71ac6743e75adc2d6e5b562bb2910e86392
parent48d622333374e9d674429c14f472abc0966c272a (diff)
parenteeb8e07d60ca182da85106ff5526c7f09be01497 (diff)
merge of '56608badb3c66e42a7caddfbac78081041eb2557'
and 'a3ab5903c2c74cd3642d81725e59591a9c7cfb54'
-rw-r--r--packages/images/slugos-image.bb20
1 files changed, 19 insertions, 1 deletions
diff --git a/packages/images/slugos-image.bb b/packages/images/slugos-image.bb
index 82cd6f2b73..a85179f174 100644
--- a/packages/images/slugos-image.bb
+++ b/packages/images/slugos-image.bb
@@ -6,7 +6,7 @@
DESCRIPTION = "Generic SlugOS image"
HOMEPAGE = "http://www.nslu2-linux.org"
LICENSE = "MIT"
-PR = "r41"
+PR = "r42"
COMPATIBLE_MACHINE = "nslu2"
@@ -136,6 +136,24 @@ nslu2_pack_image() {
-o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.flashdisk.img \
${NSLU2_SLUGIMAGE_ARGS}
rm -rf ${DEPLOY_DIR_IMAGE}/slug
+
+ # Create an image for the DSM-G600 as well
+ install -d ${DEPLOY_DIR_IMAGE}/firmupgrade
+ install -m 0755 ${DEPLOY_DIR_IMAGE}/zImage-dsmg600${ARCH_BYTE_SEX} \
+ ${DEPLOY_DIR_IMAGE}/firmupgrade/ip-ramdisk
+ install -m 0644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
+ ${DEPLOY_DIR_IMAGE}/firmupgrade/rootfs.gz
+ touch ${DEPLOY_DIR_IMAGE}/firmupgrade/usr.cramfs
+ chmod 0644 ${DEPLOY_DIR_IMAGE}/firmupgrade/usr.cramfs
+ echo "hwid=1.0.1" >${DEPLOY_DIR_IMAGE}/firmupgrade/version.msg
+ echo "model=dsm-g600" >>${DEPLOY_DIR_IMAGE}/firmupgrade/version.msg
+ echo "vendor=dlink" >>${DEPLOY_DIR_IMAGE}/firmupgrade/version.msg
+ echo "" >>${DEPLOY_DIR_IMAGE}/firmupgrade/version.msg
+ chmod 0744 ${DEPLOY_DIR_IMAGE}/firmupgrade/version.msg
+ tar -c -f ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.dsmg600.bin \
+ -C ${DEPLOY_DIR_IMAGE} firmupgrade
+ rm -rf ${DEPLOY_DIR_IMAGE}/firmupgrade
+
fi
}