How to build Turris OS 3.x?

I have Ubuntu 18.04 LTS on WSL. I downloading stabile version from git

git clone -b stable

next I set last hash

git reset --hard 5079f6146d96518ff704e7797c270d9d78136b31 


USE_CCACHE=1 ./compile_omnia_fw -j 2 LOGFILE=1 BUILD_LOG=1 IS_TTY=1

but only feeds is download
at last

make -j1 V=s 

And I have got error:

patching file include/net/inet_ecn.h
Hunk #1 FAILED at 115.
1 out of 1 hunk FAILED -- rejects in file include/net/inet_ecn.h
patching file include/net/ipv6.h
Hunk #2 succeeded at 417 (offset 19 lines).
Hunk #3 succeeded at 477 (offset 19 lines).
Hunk #4 succeeded at 487 (offset 19 lines).
Hunk #5 succeeded at 633 (offset 20 lines).
Hunk #6 succeeded at 763 (offset 20 lines).
patching file include/net/secure_seq.h
patching file include/uapi/linux/in.h
patching file net/core/secure_seq.c
patching file net/ipv6/ip6_fib.c
patching file net/netfilter/nf_conntrack_proto_tcp.c
patching file net/xfrm/xfrm_input.c
patching file net/ipv4/tcp_input.c
Hunk #1 succeeded at 3683 (offset 5 lines).
patching file include/uapi/linux/if_pppox.h
patching file net/ipv6/netfilter/nf_log_ipv6.c
Patch platform/902-unaligned_access_hacks.patch does not apply (enforce with -f)
Makefile:24: recipe for target '/home/dariusz/openwrt/build_dir/target-mips_34kc_uClibc-' failed
make[4]: *** [/home/dariusz/openwrt/build_dir/target-mips_34kc_uClibc-] Error 1
make[4]: Leaving directory '/home/dariusz/openwrt/target/linux/ar71xx'
Makefile:13: recipe for target 'compile' failed
make[3]: *** [compile] Error 2
make[3]: Leaving directory '/home/dariusz/openwrt/target/linux'
target/Makefile:21: recipe for target 'target/linux/compile' failed
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory '/home/dariusz/openwrt'
target/Makefile:16: recipe for target '/home/dariusz/openwrt/staging_dir/target-mips_34kc_uClibc-' failed
make[1]: *** [/home/dariusz/openwrt/staging_dir/target-mips_34kc_uClibc-] Error 2
make[1]: Leaving directory '/home/dariusz/openwrt'
/home/dariusz/openwrt/include/ recipe for target 'world' failed
make: *** [world] Error 2
1 Like

Ejj Daro…

You should have try to switch to the proper branch first:
e.g. git branch v3.11.5
and then try to build

Is OK ?

dariusz@DAREK-PC:~/openwrt$ git reset --hard cf15b4012eb1b3fce797e544785521c3166b9e21
HEAD is now at cf15b4012e Merge branch 'test' into stable

You are trying to build test branch.

Try typing git branch and than tap TAB to see possibibble branches. And choose one of the stable one so 3.11.5 for example

1 Like

it is:

dariusz@DAREK-PC:~/openwrt$ git branch
* stable

It just compiles with the command:

USE_CCACHE=1 ./compile_omnia_fw -j 2 LOGFILE=1 BUILD_LOG=1 IS_TTY=1

Still error:!Al9SOzV9G1pNgZAaDPNbEYfeRJS3ig?e=6ayMAQ

Turris os 3 can only be compiled on ubuntu 14.04

Tos 4 can be compiled on a more recent linux distro

Where I find the Ubuntu 14.04 ISO ?

1 Like

Other error:

Now i have Ubuntu 14.04 and still no success. :frowning:

And i used:

USE_CCACHE=1 ./compile_omnia_fw -j1 LOGFILE=1 BUILD_LOG=1 IS_TTY=1 V=s 

I don’t want to discourage to build Turris OS 3.x, but I would rather focus it on the upcoming version of Turris OS 4.0, which runs on top of stable OpenWrt 18.06.04 as they are fewer dependencies and because of that can be build on almost distribution and you will save a lot of time.

I know you are asking how to build it, because you would like to have package xsltproc.

I appreciate the effort. I wouldn’t give up so easily, but if there is package in a newer version of OpenWrt and we are working on automatic migration from Turris OS 3.x to 4.x , it just will be easier if you try it and let’s focus on the issue, which you reported to us that HDDs are not detected.


I see that you have overcome my problems 100%. I could stay on TOS 4.x beta 9, but unfortunately the biggest minus of this beta is the problem with HDD, where I need to have access to data.