# Log zur Erstellung des Lede Images # entstanden mit freundlicher Unterstuetzung von Jens Scheidemann # # nicht als root starten ! # Vorbereitung sudo apt-get update sudo apt-get install git-core build-essential libssl-dev libncurses5-dev unzip gawk zlib1g-dev mkdir ~/lede cd lede git clone http://git.lede-project.org/source.git cd source # nutze stabilen Zweig git checkout lede-17.01 echo "src-git oldpackages http://git.openwrt.org/packages.git" >> feeds.conf.default echo "src-git openwrtmisc https://github.com/GBert/openwrt-misc" >> feeds.conf.default echo "src-git openwrtfiles https://github.com/GBert/openwrt-files" >> feeds.conf.default echo "src-git railroad https://github.com/GBert/railroad" >> feeds.conf.default scripts/feeds update -a scripts/feeds install can-utils can2udp scripts/feeds install avrdude c2t-new flashrom-spi openocd renesas-flashtool susit stm32flash scripts/feeds install gputils pickle easy-loader scripts/feeds install ftdi_eeprom ftdi2s88 scripts/feeds install io wiringbp-pi scripts/feeds install libpng libwebsockets scripts/feeds install git make scripts/feeds install simple-com joe nano scripts/feeds install luci luci-i18n-base-de # Patches fuer Device Tree kopieren # CAN-Interface wget http://lnxpps.de/bpi/patches/800-dt-sun7i-add-can.patch -P target/linux/sunxi/patches-4.4 wget http://lnxpps.de/bpi/patches/801-dt-sun7i-add-can-bananapi.patch -P target/linux/sunxi/patches-4.4 wget http://lnxpps.de/bpi/patches/802-dt-sun7i-add-can-bananapro.patch -P target/linux/sunxi/patches-4.4 # UART-Anpassung wget http://lnxpps.de/bpi/patches/803-dt-sun7i-uart-0-2-3-bananapi.patch -P target/linux/sunxi/patches-4.4 # Zusaetzliche GPIOs (Deaktivierung SPI) wget http://lnxpps.de/bpi/patches/804-dt-sun7i-no-spi-bananapi.patch -P target/linux/sunxi/patches-4.4 # sonstige Patches (CAN GPIO-IRQ) wget http://lnxpps.de/bpi/patches/805-sun4i-can-overrun.patch -P target/linux/sunxi/patches-4.4 wget http://lnxpps.de/bpi/patches/806-sun7i-gpio-irq.patch -P target/linux/sunxi/patches-4.4 # Makefile, um IR-Receiver zu aktivieren wget http://lnxpps.de/bpi/patches/sunxi_modules.mk cp sunxi_modules.mk target/linux/sunxi/modules.mk # Prepariere USB Gadget wget http://lnxpps.de/bpi/patches/sunxi_Makefile mv sunxi_Makefile target/linux/sunxi/Makefile # Patch, um Kernelmodul kmod-can-sun4i zu erhalten wget http://lnxpps.de/bpi/patches/can.mk.patch patch -p1 < can.mk.patch wget https://github.com/GBert/misc/raw/master/BPi-CAN/config_bpi cp .config config_orig cp config_bpi .config # Default Einstellung wget http://lnxpps.de/bpi/patches/files.tar.xz tar Jxvf files.tar.xz ln -s files_sunxi files make menuconfig # mit Exit verlassen, Aenderungen uebernehmen make clean make -j5 # Quad-Core make -j9 # Octo-Core