diff options
-rwxr-xr-x | scripts/install.sh | 10 | ||||
-rw-r--r-- | target/linux/config/Config.in.usb | 3 | ||||
-rw-r--r-- | target/x86_64/Makefile | 2 |
3 files changed, 7 insertions, 8 deletions
diff --git a/scripts/install.sh b/scripts/install.sh index 6d27c4854..81001381f 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -62,10 +62,11 @@ serial=0 speed=115200 panicreboot=10 keep=0 +grub=0 function usage { cat >&2 <<EOF -Syntax: $me [-f filesystem] [-c cfgfssize] [-d datafssize] [-k] [-n] +Syntax: $me [-f filesystem] [-c cfgfssize] [-d datafssize] [-k] [-n] [-g] [-p panictime] [±q] [-s serialspeed] [±t] <target> <device> <archive> Partition sizes are in MiB. Filesystem type is currently ignored (ext4). To keep filesystem on data partition use -k. @@ -75,7 +76,7 @@ EOF exit $1 } -while getopts "c:d:f:hknp:qs:t" ch; do +while getopts "c:d:f:ghknp:qs:t" ch; do case $ch { (c) if (( (cfgfs = OPTARG) < 0 || cfgfs > 16 )); then print -u2 "$me: -c $OPTARG out of bounds" @@ -92,6 +93,7 @@ while getopts "c:d:f:hknp:qs:t" ch; do fs=$OPTARG ;; (h) usage 0 ;; (k) keep=1 ;; + (g) grub=1 ;; (p) if (( (panicreboot = OPTARG) < 0 || panicreboot > 300 )); then print -u2 "$me: -p $OPTARG out of bounds" exit 1 @@ -142,7 +144,7 @@ tgt=$2 src=$3 case $target { -(banana-pro|raspberry-pi|raspberry-pi2|solidrun-imx6|default) ;; +(banana-pro|pcengines-apu|raspberry-pi|raspberry-pi2|solidrun-imx6|default) ;; (*) print -u2 "Unknown target '$target', exiting" exit 1 ;; @@ -284,7 +286,7 @@ else fi if (( grub )); then - tar -xOzf "$src" boot/grub/core.img >"$T/core.img" + tar -xOf "$src" boot/grub/core.img >"$T/core.img" integer coreimgsz=$($statcmd "$T/core.img") else coreimgsz=65024 diff --git a/target/linux/config/Config.in.usb b/target/linux/config/Config.in.usb index 79a7d840b..b2f8f695b 100644 --- a/target/linux/config/Config.in.usb +++ b/target/linux/config/Config.in.usb @@ -202,9 +202,6 @@ endmenu menu "USB devices support" -config ADK_KERNEL_USB_NET_DRIVERS - tristate - config ADK_KERNEL_USB_STORAGE tristate "Support for USB storage devices" select ADK_KERNEL_SCSI diff --git a/target/x86_64/Makefile b/target/x86_64/Makefile index e4e0c4d1d..f90498fa5 100644 --- a/target/x86_64/Makefile +++ b/target/x86_64/Makefile @@ -80,7 +80,7 @@ ifeq ($(ADK_TARGET_FS),usb) targethelp: @echo 'The root tarball is: ${FW_DIR}/${ROOTFSTARBALL}' @echo "To install everything to USB use:" - @echo "sudo ./scripts/install.sh -t /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)" + @echo "sudo ./scripts/install.sh -g -t default /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)" endif ifeq ($(ADK_TARGET_FS),iso) targethelp: |