Page 1 of 1

OpenWrt v18.06.1 VMware version

Posted: 26 Oct 2018, 12:04
by admin
First building a new source for v18.06-snapshot (r8378) working as desired.

Image

Next 'git checkout v18.06.1' to revert to that level. Resulting in the following WARNING during build:

Image

awaiting final results and testing. Not needed, build failed:

Code: Select all

 make[2] toolchain/compile
 make[3] -C toolchain/gdb compile
 make[3] -C toolchain/binutils compile
 make[3] -C toolchain/gcc/initial compile
 make[3] -C toolchain/kernel-headers compile
 make[3] -C toolchain/musl compile
 make[3] -C toolchain/gcc/final compile
 make[3] -C toolchain/fortify-headers compile
 make[3] -C toolchain/yasm compile
 make[2] target/compile
 make[3] -C target/linux compile
 make[2] diffconfig
 make[2] package/cleanup
 make[2] package/compile
 make[3] -C package/libs/libubox host-compile
make -r world: build failed. Please re-run make with -j1 V=s to see what's going on
/home/openwrt/LEDEBUILDS/vmware/18.06/openwrt/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 1
Next run one of the commands specified in the WARNING.
make defconfig

Again this failed on building libubox (fatal error: json.h: No such file or directory)...

Code: Select all

[ 40%] Built target ubox
make[6]: Entering directory '/home/openwrt/LEDEBUILDS/vmware/18.06/openwrt/build_dir/hostpkg/libubox-2018-07-25-c83a84af'
make[6]: Leaving directory '/home/openwrt/LEDEBUILDS/vmware/18.06/openwrt/build_dir/hostpkg/libubox-2018-07-25-c83a84af'
make[6]: Entering directory '/home/openwrt/LEDEBUILDS/vmware/18.06/openwrt/build_dir/hostpkg/libubox-2018-07-25-c83a84af'
[ 42%] Building C object CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o
/home/openwrt/LEDEBUILDS/vmware/18.06/openwrt/build_dir/hostpkg/libubox-2018-07-25-c83a84af/blobmsg_json.c:21:19: fatal error: json.h: No such file or directory
  #include <json.h>
                   ^
compilation terminated.
CMakeFiles/blobmsg_json.dir/build.make:62: recipe for target 'CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o' failed
make[6]: *** [CMakeFiles/blobmsg_json.dir/blobmsg_json.c.o] Error 1
make[6]: Leaving directory '/home/openwrt/LEDEBUILDS/vmware/18.06/openwrt/build_dir/hostpkg/libubox-2018-07-25-c83a84af'
CMakeFiles/Makefile2:216: recipe for target 'CMakeFiles/blobmsg_json.dir/all' failed
make[5]: *** [CMakeFiles/blobmsg_json.dir/all] Error 2
make[5]: Leaving directory '/home/openwrt/LEDEBUILDS/vmware/18.06/openwrt/build_dir/hostpkg/libubox-2018-07-25-c83a84af'
Makefile:129: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/openwrt/LEDEBUILDS/vmware/18.06/openwrt/build_dir/hostpkg/libubox-2018-07-25-c83a84af'
Makefile:104: recipe for target '/home/openwrt/LEDEBUILDS/vmware/18.06/openwrt/build_dir/hostpkg/libubox-2018-07-25-c83a84af/.built' failed
make[3]: *** [/home/openwrt/LEDEBUILDS/vmware/18.06/openwrt/build_dir/hostpkg/libubox-2018-07-25-c83a84af/.built] Error 2
make[3]: Leaving directory '/home/openwrt/LEDEBUILDS/vmware/18.06/openwrt/package/libs/libubox'
Command exited with non-zero status 2
time: package/libs/libubox/host-compile#0.13#0.02#0.63
package/Makefile:107: recipe for target 'package/libs/libubox/host/compile' failed
make[2]: *** [package/libs/libubox/host/compile] Error 2
make[2]: Leaving directory '/home/openwrt/LEDEBUILDS/vmware/18.06/openwrt'
package/Makefile:103: recipe for target '/home/openwrt/LEDEBUILDS/vmware/18.06/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile' failed
make[1]: *** [/home/openwrt/LEDEBUILDS/vmware/18.06/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/openwrt/LEDEBUILDS/vmware/18.06/openwrt'
/home/openwrt/LEDEBUILDS/vmware/18.06/openwrt/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2
I got this error every time after using git checkout command.
No clue why.

And when we get a build done, it stays a -too high- SNAPSHOT version, not a 18.0.1:

Code: Select all

BusyBox v1.28.3 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 18.06-SNAPSHOT, r7361-4fb73b6
 -----------------------------------------------------
Linux OpenWrt-VM05 4.14.78 #0 SMP Tue Oct 23 08:59:31 2018 x86_64 GNU/Linux
--
OpenWrt 18.06-SNAPSHOT r7361-4fb73b6 / LuCI openwrt-18.06 branch (git-18.298.56913-463fb04)
DG.

Re: OpenWrt v18.06.1 VMware version

Posted: 28 Oct 2018, 00:19
by admin
After several build failures did a make distclean, to clear all settings. (or even rebuild everything, git clone https://git.openwrt.org/openwrt/openwrt.git/)
Followed by command: git checkout v18.06.1
This should result in the right linux build-configuration to build a OpenWrt-18.06.1 version firmware.

The right current active build version can be checked with: git branch -a

Code: Select all

$ git branch -a
  18.06.1
  master
  openwrt-18.06
* v18.06.1
  remotes/origin/HEAD -> origin/master
  remotes/origin/lede-17.01
  remotes/origin/master
  remotes/origin/openwrt-18.06
A '*' will mark the current active version.

--
Command git show-ref
Will result in a list with git heads and tags.

Code: Select all

$ git show-ref
4fb73b61c0838ca6bbffb6b563f7cd0fdb074ac5 refs/heads/18.06.1
9ac73502405b4d4f110e4901df7d05b7f7bcd781 refs/heads/master
4fb73b61c0838ca6bbffb6b563f7cd0fdb074ac5 refs/heads/openwrt-18.06
70255e3d624cd393612069aae0a859d1acbbeeae refs/heads/v18.06.1
6026356578b436dfe06ec9ab4736e524cde60dc6 refs/remotes/origin/HEAD
01a8f0e444c9b52f100eff878cc7011fffeddeaf refs/remotes/origin/lede-17.01
6026356578b436dfe06ec9ab4736e524cde60dc6 refs/remotes/origin/master
4fb73b61c0838ca6bbffb6b563f7cd0fdb074ac5 refs/remotes/origin/openwrt-18.06
5e419b20de47b518c15ebff8d2370b14c0c4bde1 refs/tags/reboot
b2c0a3598369590ed8a14f126369d3f64ba25716 refs/tags/v17.01.0
f807a41456e943f89cd8626ca5947aa872a867fc refs/tags/v17.01.0-rc1
8eea930f9785c9f5c8a562edfeda05cfbd00cdc2 refs/tags/v17.01.0-rc2
08160a8aab7d705212221f798f66030250bd8c3e refs/tags/v17.01.1
69d8988682d88bdf47bd453dd968838b0eb0f8dd refs/tags/v17.01.2
1edb66f5f051b003b0ad5fcc3a08acb9d0700d9e refs/tags/v17.01.3
a0a7b1065cfa073570186958c919b6ed04837d86 refs/tags/v17.01.4
f9d18e2bb1d1e008774b0da99c73625602d33bd5 refs/tags/v17.01.5
ea72e0b1f937357db7b8faec250ecd385e29f138 refs/tags/v17.01.6
d243cf3da5b88a15485cae19c9c2f0b8b9aa5caa refs/tags/v18.06.0
bd01c2d3a34145e4823ae62b99496c9a9b722a57 refs/tags/v18.06.0-rc1
373a8f47ac809b4bb0fdb56cfcdfcbe3bb2fda8e refs/tags/v18.06.0-rc2
b261a1195fca2b8b951203f0f1464d163455b9c3 refs/tags/v18.06.1
--
Command: git tag
Wil give only the available git tags:

Code: Select all

$ git tag
reboot
v17.01.0
v17.01.0-rc1
v17.01.0-rc2
v17.01.1
v17.01.2
v17.01.3
v17.01.4
v17.01.5
v17.01.6
v18.06.0
v18.06.0-rc1
v18.06.0-rc2
v18.06.1
--

And after the right make commands we have our first v18.06.1 OpenWrt version for vmware available!

Code: Select all

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 18.06.1, r7258-5eb055306f
 -----------------------------------------------------
Linux OpenWrt-VM05 4.14.63 #0 SMP Thu Aug 16 07:51:15 2018 x86_64 GNU/Linux
Next we want some packages on higher level firmware as default, like TOR (0.3.4.8-1 instead of 0.3.2.10-1)
Therefore you need to adjust feeds/packages/net/tor/Makefile, like in this toptic with other older levels: https://forum.openwrt.org/t/solved-tor- ... ts/15079/2
Also all older versions of TOR needs to be removed from build environment -search the build folder on the version number;) and rm -rf them-
With the next build (after make menuconfig & make) the newer version should be implemented!

Latest vmware version has the following packages or tools added:
  • htop
  • htpdate
  • nano
  • vmxnet
  • tor
  • luci-app-privoxy
  • luci-app-statistics
  • luci-app-OpenVPN
  • luci-app-Adblock
  • luci-app-commands
Next a v18.06.1 version for P-2812HNU-F1...
(needs also LED-GPIO, Wireless?, -check latest manifest file)

Wip
DG.