Failed to install OpenWrt 18.06.1

The openwrt with the version 18.06.1 is downloaded from _https://github.com/openwrt/openwrt/releases/tag/v18.06.1. But when I build it by referring to the READMED file in the project's directory. It fails. It seems there're no commits.

Below are the log information from the terminal. Could you please give some help or reminders?

cys@cys-VirtualBox:~/openwrt-18.06.1$ make V=99
fatal: your current branch 'master' does not have any commits yet
fatal: your current branch 'master' does not have any commits yet
fatal: your current branch 'master' does not have any commits yet
fatal: your current branch 'master' does not have any commits yet
time: target/linux/prereq#0.15#0.05#0.21
make[1]: Entering directory '/home/cys/openwrt-18.06.1'
cd "/home/cys/openwrt-18.06.1"; git log --format=%h -1 toolchain > /home/cys/openwrt-18.06.1/tmp/.ver_check
fatal: your current branch 'master' does not have any commits yet
make[2]: Entering directory '/home/cys/openwrt-18.06.1'
cd "/home/cys/openwrt-18.06.1"; git log --format=%h -1 toolchain > /home/cys/openwrt-18.06.1/tmp/.ver_check
fatal: your current branch 'master' does not have any commits yet
make[2]: *** No rule to make target '/home/cys/openwrt-18.06.1/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.3.0_musl_eabi/stamp/.ver_check', needed by '/home/cys/openwrt-18.06.1/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/.prepared'.  Stop.
make[2]: Leaving directory '/home/cys/openwrt-18.06.1'
tools/Makefile:150: recipe for target '/home/cys/openwrt-18.06.1/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.tools_compile_yyyyyyyyynyyyyynyynnyyyynyyyyyyyyyyyyyyynyynynnyyynnyy' failed
make[1]: *** [/home/cys/openwrt-18.06.1/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.tools_compile_yyyyyyyyynyyyyynyynnyyyynyyyyyyyyyyyyyyynyynynnyyynnyy] Error 2
make[1]: Leaving directory '/home/cys/openwrt-18.06.1'
/home/cys/openwrt-18.06.1/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2

Many thanks,
Yongsheng

I see the files' size about openwrt18.06.1 is much smaller than the latest development version which is downloaded from "https://git.openwrt.org/openwrt/openwrt.git".

Apparently building does not work from source code snapshots due to a lack of Git metadata. Simply build from a proper Git clone instead.

I agree with you. Could you tell me how I could get the openwrt-18.06.1 from Git clone?

The command "git clone -b chaos_calmer https://github.com/openwrt/openwrt" couldn't run any more.

Thanks.

git clone https://git.openwrt.org/openwrt/openwrt.git
cd openwrt
git checkout v18.06.1
1 Like

That's it. Thank you so much.