daily pastebin goal
83%
SHARE
TWEET

escalade-openwrt-LEDE-optimized-buildsystem-on-qubes4

a guest May 2nd, 2018 114 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. https://github.com/escalade/LEDE       <<< escalade's github page, for openwrt/LEDE buildsystem optimized for TP-Link C2600/Netgear R7x00/Linksys EA8500
  2.  
  3. :::::::::::::::::::::::
  4. :: key documentation ::
  5. :::::::::::::::::::::::
  6. https://openwrt.org/docs/guide-developer/start                      <<< openWRT/LEDE Developer Guide
  7. https://openwrt.org/docs/guide-developer/build-system/start         <<< build system details
  8. https://openwrt.org/docs/techref/buildroot                          <<< kernel version details
  9.  
  10. https://openwrt.org/docs/guide-developer/quickstart-build-images    <<< quickstart Image Building Guide
  11.  
  12. https://openwrt.org/docs/guide-developer/build-system/install-buildsystem   <<< details on software needed for linux distro's (BSD + MAC too)
  13.  
  14. :::::::::::::::::::::::::::::::::::::
  15. :: @fedora-25 TemplateVM (qubes 4) ::
  16. :::::::::::::::::::::::::::::::::::::
  17.  
  18. [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
  19.  
  20.     - shutdown this VM
  21.  
  22. :::::::::::::::::::::::::::::::::::::::::::::
  23. :: @dom0 EXPAND DISK IMAGE AppVM (qubes 4) ::
  24. :::::::::::::::::::::::::::::::::::::::::::::
  25. qvm-volume extend <vm_name>:root <size>
  26. -OR-
  27. qvm-volume extend <vm_name>:private <size>
  28.  
  29. - Example:
  30.  ** BEFORE:
  31.         [agentdcooper@dom0 ~]$ qvm-ls -o full untrusted -d
  32.         NAME       STATE   DISK  PRIV-CURR  PRIV-MAX  PRIV-USED  ROOT-CURR  ROOT-MAX  ROOT-USED
  33.         untrusted  Halted  335   335        2048      16%        0          10240     0%
  34.  
  35.  ** ADDED 40G:
  36.         [agentdcooper@dom0 ~]$ qvm-volume extend untrusted:private 40G
  37.  
  38.  ** AFTER:
  39.         [agentdcooper@dom0 ~]$ qvm-ls -o full untrusted -d
  40.         NAME       STATE   DISK  PRIV-CURR  PRIV-MAX  PRIV-USED  ROOT-CURR  ROOT-MAX  ROOT-USED
  41.         untrusted  Halted  335   335        38148     0%         0          10240     0%
  42.  
  43. ::::::::::::::::::::::::::::::::
  44. :: @untrusted AppVM (qubes 4) ::
  45. ::::::::::::::::::::::::::::::::
  46. - all Template packages just installed should be now accessible via @untrusted and all AppVMs based on the @fedora-25 Template
  47.  
  48. cd /devel
  49. git clone https://github.com/escalade/LEDE.git escalade-LEDE
  50. cd escalade-LEDE
  51.  
  52.     - check file ~/devel/escalade-LEDE/include/kernel-version.mk
  53.     -- look for the KERNEL VERSION line to see which version it will be using if interested
  54.     - I chose to update to escalde's latest "escalade" branch, to get access to the newer kernel (4.9.77)
  55.  
  56.     $ git pull origin escalade
  57.         From https://github.com/escalade/LEDE
  58.          * branch            escalade   -> FETCH_HEAD
  59.           ...SNIP...     ...SNIP...
  60.  
  61. ./scripts/feeds update -a
  62. ./scripts/feeds install -a
  63.  
  64.     - 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:
  65.  
  66. cp profiles/c2600 ./c2600
  67.  
  68. make menuconfig
  69.  
  70.  
  71.         - load = "c2600"
  72.     "Target System" ⇒ "Qualcomm Atheros IPQ806X"
  73.     "Target Profile" ⇒ "TP-LINK Archer C2600"
  74.     "Base System"    ⇒ "*" >> wireless-tools
  75.     "Administration" ⇒ "*" >> htop
  76.     "Firmware"       ⇒ "M" >> rt2800-usb-firmware
  77.     "Firmware"       ⇒ "M" >> rtl8821ae-firmware
  78.     "Kernel Modules" ⇒ "Wireless Drivers ⇒ "M" >> kmod-lib80211, kmod-rt2800-usb, kmod-rt2x00-lib, kmod-rtl8187, kmod-rtl8821ae
  79.     "Utilities"      ⇒ "*" >> bc, file, findutils-find, findutils-locate, usbutils
  80.         - save = ".config"
  81.         - exit
  82.  
  83. make
  84.  
  85. :::::::::::::::::::::::::::::::
  86. :: MOUNTING USB TO COPY DATA ::
  87. :::::::::::::::::::::::::::::::
  88. - using Qubes disk attach tool
  89. -- attach "dom0:sde" = USB drive (whole drive) to "untrusted VM"
  90.  
  91. :::::::::::::::::::
  92. :: @untrusted VM ::
  93. :::::::::::::::::::
  94. sudo su
  95. fdisk -l
  96. cd ~user/devel
  97. mkdir usb
  98. mount /dev/xvdi usb
  99. mkdir usb/latest-escalade-LEDE-build-05022018
  100.  
  101.     - this copies the recently compiled+built packages & images
  102.    
  103.         [root@untrusted devel]# ls -al escalade-LEDE/bin
  104.         total 16
  105.         drwxr-xr-x  4 user user 4096 Apr 20 21:15 .
  106.         drwxrwxr-x 19 user user 4096 May  1 06:57 ..
  107.         drwxr-xr-x  3 user user 4096 May  1 05:46 packages
  108.         drwxr-xr-x  3 user user 4096 Apr 20 21:14 targets
  109.  
  110.  
  111. cp -R ~user/devel/escalade-LEDE/bin/* ../usb/latest-escalade-LEDE-build-05022018/
  112. sync usb
  113. umount usb
  114. exit
  115.  
  116.  
  117. :::::::::::
  118. :: @dom0 ::
  119. :::::::::::
  120. sudo su
  121. sync /dev/sde
  122. eject /dev/sde
  123. exit
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top