Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://github.com/escalade/LEDE <<< escalade's github page, for openwrt/LEDE buildsystem optimized for TP-Link C2600/Netgear R7x00/Linksys EA8500
- :::::::::::::::::::::::
- :: key documentation ::
- :::::::::::::::::::::::
- https://openwrt.org/docs/guide-developer/start <<< openWRT/LEDE Developer Guide
- https://openwrt.org/docs/guide-developer/build-system/start <<< build system details
- https://openwrt.org/docs/techref/buildroot <<< kernel version details
- https://openwrt.org/docs/guide-developer/quickstart-build-images <<< quickstart Image Building Guide
- https://openwrt.org/docs/guide-developer/build-system/install-buildsystem <<< details on software needed for linux distro's (BSD + MAC too)
- :::::::::::::::::::::::::::::::::::::
- :: @fedora-25 TemplateVM (qubes 4) ::
- :::::::::::::::::::::::::::::::::::::
- [user@fedora-25 ~]$ sudo dnf install subversion git python rsync man-db gawk gettext unzip file wget zip @development-tools gcc-c++ ncurses-c++-libs ncurses ncurses-devel zlib-devel zlib-static perl-Thread-Queue perl-threads @c-development @development-tools @development-libs zlib-static
- - shutdown this VM
- :::::::::::::::::::::::::::::::::::::::::::::
- :: @dom0 EXPAND DISK IMAGE AppVM (qubes 4) ::
- :::::::::::::::::::::::::::::::::::::::::::::
- qvm-volume extend <vm_name>:root <size>
- -OR-
- qvm-volume extend <vm_name>:private <size>
- - Example:
- ** BEFORE:
- [agentdcooper@dom0 ~]$ qvm-ls -o full untrusted -d
- NAME STATE DISK PRIV-CURR PRIV-MAX PRIV-USED ROOT-CURR ROOT-MAX ROOT-USED
- untrusted Halted 335 335 2048 16% 0 10240 0%
- ** ADDED 40G:
- [agentdcooper@dom0 ~]$ qvm-volume extend untrusted:private 40G
- ** AFTER:
- [agentdcooper@dom0 ~]$ qvm-ls -o full untrusted -d
- NAME STATE DISK PRIV-CURR PRIV-MAX PRIV-USED ROOT-CURR ROOT-MAX ROOT-USED
- untrusted Halted 335 335 38148 0% 0 10240 0%
- ::::::::::::::::::::::::::::::::
- :: @untrusted AppVM (qubes 4) ::
- ::::::::::::::::::::::::::::::::
- - all Template packages just installed should be now accessible via @untrusted and all AppVMs based on the @fedora-25 Template
- cd /devel
- git clone https://github.com/escalade/LEDE.git escalade-LEDE
- cd escalade-LEDE
- - check file ~/devel/escalade-LEDE/include/kernel-version.mk
- -- look for the KERNEL VERSION line to see which version it will be using if interested
- - I chose to update to escalde's latest "escalade" branch, to get access to the newer kernel (4.9.77)
- $ git pull origin escalade
- From https://github.com/escalade/LEDE
- * branch escalade -> FETCH_HEAD
- ...SNIP... ...SNIP...
- ./scripts/feeds update -a
- ./scripts/feeds install -a
- - copy over escalade's configs (in my case) for TP-Link C2600 to the main build directory, so we can import it into make menuconfig:
- cp profiles/c2600 ./c2600
- make menuconfig
- - load = "c2600"
- "Target System" ⇒ "Qualcomm Atheros IPQ806X"
- "Target Profile" ⇒ "TP-LINK Archer C2600"
- "Base System" ⇒ "*" >> wireless-tools
- "Administration" ⇒ "*" >> htop
- "Firmware" ⇒ "M" >> rt2800-usb-firmware
- "Firmware" ⇒ "M" >> rtl8821ae-firmware
- "Kernel Modules" ⇒ "Wireless Drivers ⇒ "M" >> kmod-lib80211, kmod-rt2800-usb, kmod-rt2x00-lib, kmod-rtl8187, kmod-rtl8821ae
- "Utilities" ⇒ "*" >> bc, file, findutils-find, findutils-locate, usbutils
- - save = ".config"
- - exit
- make
- :::::::::::::::::::::::::::::::
- :: MOUNTING USB TO COPY DATA ::
- :::::::::::::::::::::::::::::::
- - using Qubes disk attach tool
- -- attach "dom0:sde" = USB drive (whole drive) to "untrusted VM"
- :::::::::::::::::::
- :: @untrusted VM ::
- :::::::::::::::::::
- sudo su
- fdisk -l
- cd ~user/devel
- mkdir usb
- mount /dev/xvdi usb
- mkdir usb/latest-escalade-LEDE-build-05022018
- - this copies the recently compiled+built packages & images
- [root@untrusted devel]# ls -al escalade-LEDE/bin
- total 16
- drwxr-xr-x 4 user user 4096 Apr 20 21:15 .
- drwxrwxr-x 19 user user 4096 May 1 06:57 ..
- drwxr-xr-x 3 user user 4096 May 1 05:46 packages
- drwxr-xr-x 3 user user 4096 Apr 20 21:14 targets
- cp -R ~user/devel/escalade-LEDE/bin/* ../usb/latest-escalade-LEDE-build-05022018/
- sync usb
- umount usb
- exit
- :::::::::::
- :: @dom0 ::
- :::::::::::
- sudo su
- sync /dev/sde
- eject /dev/sde
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement