diff options
Diffstat (limited to 'package')
-rw-r--r-- | package/adkinstall/Makefile | 11 | ||||
-rw-r--r-- | package/adkinstall/src/adkinstall.foxg20 | 51 | ||||
-rw-r--r-- | package/madplay/Makefile | 4 |
3 files changed, 60 insertions, 6 deletions
diff --git a/package/adkinstall/Makefile b/package/adkinstall/Makefile index f8ada2ebe..5a1823cc3 100644 --- a/package/adkinstall/Makefile +++ b/package/adkinstall/Makefile @@ -5,12 +5,12 @@ include ${TOPDIR}/rules.mk PKG_NAME:= adkinstall PKG_VERSION:= 1.0 -PKG_RELEASE:= 3 -PKG_DESCR:= installer for compact flash or nand/mtd devices +PKG_RELEASE:= 4 +PKG_DESCR:= installer for cf, mmc, sd or mtd devices PKG_SECTION:= base -PKG_DEPENDS:= parted sfdisk +PKG_DEPENDS:= parted sfdisk e2fsprogs -PKG_TARGET_DEPENDS:= alix wrap rb532 +PKG_TARGET_DEPENDS:= alix wrap rb532 foxg20 WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION} NO_DISTFILES:= 1 @@ -31,6 +31,9 @@ do-install: ifeq ($(ADK_LINUX_MIPS_RB532),y) ${INSTALL_BIN} ./src/adkinstall.rb532 \ $(IDIR_ADKINSTALL)/sbin/adkinstall +else ifeq ($(ADK_LINUX_ARM_FOXBOARD),y) + ${INSTALL_BIN} ./src/adkinstall.foxg20 \ + $(IDIR_ADKINSTALL)/sbin/adkinstall else ${INSTALL_BIN} ./src/adkinstall $(IDIR_ADKINSTALL)/sbin endif diff --git a/package/adkinstall/src/adkinstall.foxg20 b/package/adkinstall/src/adkinstall.foxg20 new file mode 100644 index 000000000..fec746ef0 --- /dev/null +++ b/package/adkinstall/src/adkinstall.foxg20 @@ -0,0 +1,51 @@ +#!/bin/sh +# installs a rootfs tar archive from OpenADK onto a micro SD card +# special script for foxboard netus aka foxg20 + +if [ -z $1 ];then + printf "Please give your root tar archive as first parameter\n" + exit 1 +fi +if [ -z $2 ];then + printf "Please give your kernel as second parameter\n" + exit 1 +fi + +printf "Creating partition scheme\n" +parted -s /dev/mmcblk0 mklabel msdos +sleep 2 +maxsize=$(env LC_ALL=C parted /dev/mmcblk0 -s unit cyl print |awk '/^Disk/ { print $3 }'|sed -e 's/cyl//') +rootsize=$(($maxsize-2)) +parted -s /dev/mmcblk0 unit cyl mkpartfs primary fat32 0 5 +parted -s /dev/mmcblk0 unit cyl mkpart primary ext2 5 $rootsize +parted -s /dev/mmcblk0 unit cyl mkpart primary fat32 $rootsize $maxsize +parted -s /dev/mmcblk0 set 1 boot on +sfdisk --change-id /dev/mmcblk0 3 88 >/dev/null 2>&1 +sleep 2 +sync +printf "Installing kernel\n" +mount -t vfat /dev/mmcblk0p1 /mnt +cp $2 /mnt/uImage +sync +umount /mnt +mke2fs /dev/mmcblk0p2 +mount -t ext2 /dev/mmcblk0p2 /mnt + +printf "Extracting install archive\n" +tar -C /mnt -xzpf $1 +if [ $? -ne 0 ];then + printf "Extracting of install archive failed" + exit 1 +fi + +chmod 1777 /mnt/tmp +chmod 4755 /mnt/bin/busybox +sync +umount /mnt +if [ $? -ne 0 ];then + printf "Unmounting filesystem failed" + exit 1 +else + printf "Successfully installed.\n" + exit 0 +fi diff --git a/package/madplay/Makefile b/package/madplay/Makefile index 9fd699efb..c052d6155 100644 --- a/package/madplay/Makefile +++ b/package/madplay/Makefile @@ -17,7 +17,7 @@ PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=mad/} \ include ${TOPDIR}/mk/package.mk -$(eval $(call PKG_template,MADPLAY,madplay,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) +$(eval $(call PKG_template,MADPLAY,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) CONFIGURE_ENV+= BUILD_CC="${TARGET_CC}" HOSTCC=${HOST_CC} \ LIBS="-lz" \ @@ -29,7 +29,7 @@ CONFIGURE_ARGS+= --disable-debugging \ --without-libiconv-prefix \ --without-libintl-prefix \ --without-esd \ - --with-alsa + --without-alsa post-install: ${INSTALL_DIR} ${IDIR_MADPLAY}/usr/bin |