diff --git a/Flash.sh b/Flash.sh deleted file mode 100644 index a92b273..0000000 --- a/Flash.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/bash - -echo -e "\n Setting up environment" -sudo apt-get -y update -sudo apt-get install u-boot-tools -y -sudo apt-get -y install \ - build-essential \ - git \ - fastboot \ - sunxi-tools \ - u-boot-tools \ - cmake \ - screen \ - unzip \ - libncurses-dev \ - ppp \ - cu \ - adb \ - u-boot-tools \ - android-tools-fastboot \ - python-dev \ - python-pip \ - libusb-1.0-0-dev \ - pkg-config \ - libacl1-dev \ - zlib1g-dev \ - liblzo2-dev \ - uuid-dev - -echo -e "\n Adding current user to dialout group" -sudo usermod -a -G dialout $(logname) - -echo -e "\n Adding current user to plugdev group" -sudo usermod -a -G plugdev $(logname) - - -echo -e "\n Adding udev rule for Allwinner device" -echo -e 'SUBSYSTEM=="usb", ATTRS{idVendor}=="1f3a", ATTRS{idProduct}=="efe8", GROUP="plugdev", MODE="0660" SYMLINK+="usb-chip" -SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="1010", GROUP="plugdev", MODE="0660" SYMLINK+="usb-chip-fastboot" -SUBSYSTEM=="usb", ATTRS{idVendor}=="1f3a", ATTRS{idProduct}=="1010", GROUP="plugdev", MODE="0660" SYMLINK+="usb-chip-fastboot" -SUBSYSTEM=="usb", ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", GROUP="plugdev", MODE="0660" SYMLINK+="usb-serial-adapter" -' | sudo tee /etc/udev/rules.d/99-allwinner.rules -sudo udevadm control --reload-rules - -echo -e "\n Installing CHIP-tools" -if [ -d CHIP-tools ]; then - pushd CHIP-tools - git pull - popd -fi -git clone https://github.com/Project-chip-crumbs/CHIP-tools.git - -cd CHIP-tools - -FEL='sudo sunxi-fel' FASTBOOT='sudo fastboot' SNIB=false ./chip-update-firmware.sh