How to built custom .ipk use the LEDE SDK?

  • I have been reference Using the SDK ,I only want to build custom *.ipk for install in WNDR3800 device(mips architecture MPU)

  • But when run make -j1 V=s in 'lede-sdk-17.01.2-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-x86_64' folder as normal user(not root),and I get following error,what's wrong with me???

  • lede-sdk-17.01.2-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/host/bin/sed: line 3: /home/actg/Develop/lede-sdk-17.01.2-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-x86_64/staging_dir/host/bin/../lib/ld-linux-x86-64.so.2: cannot execute binary file: Exec format error

I am using the Ubuntu 16.04 32bit environment, and has been install all build tools.

Well that is the issue,you need 64 bit OS.
Why do you even use 32 bit version of Ubuntu?

I have the same issue that 248668342 user. I'm using Debian 7.11 32 bits.
Someone have solution for this?

‘lede-sdk-17.01.2-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-x86_64

You need to 64 bit OS in the buildhost to use the SDK.

and why even run a 32bit OS in the first place?

Hy hnyman,
Thanks for your reply.
I'm using a older machine (Intel(R) Pentium(R) 4 CPU 3.00GHz) to compile. That's why I used 32 bits.