[OpenWrt-Devel] Using the SDK vs toolchain for custom packages; SDK HW requirements;

Stan Grishin stangri at melmac.net
Mon Apr 13 06:14:17 EDT 2020

Is there a difference between using pre-built SDK (from
downloads.openwrt.org) vs the toolchain from git for building custom
packages? I've been using SDK, but here and from PMs on the forum I see
toolchain recommended -- why?

Also, I have only been installing only some libs + luci-base
with ./scripts/feeds install, however I'm seeing recommendations to install
all packages (./scripts/feeds install -a) which on my system (Ubuntu 18.04
8 GB RAM, 2 vCPUs, 160 GB SSD VM) result in the segfault.

After I've downloaded and unpacked a fresh SDK for mvebu/19.07.2, then in
the SDK directory:
rm -f .config && make defconfig
./scripts/feeds update -f
./scripts/feeds install -a
make -j1 V=sc
make[3]: ***
Segmentation fault (core dumped)
make[3]: Leaving directory
time: package/feeds/base/base-files/compile#0.23#0.06#0.41
package/Makefile:111: recipe for target
'package/feeds/base/base-files/compile' failed
make[2]: *** [package/feeds/base/base-files/compile] Error 2
make[2]: Leaving directory
package/Makefile:107: recipe for target
make[1]: ***
Error 2
make[1]: Leaving directory
recipe for target 'world' failed
make: *** [world] Error 2

Am I doing something wrong?

Also, I don't believe this is addressed in wiki for neither SDK nor
toolchain, but in order to build a custom luci package, here's what I do --
I init a git directory in package/luci and with sparse checkout only
checkout luci.mk (and build directory of in18n.pl) from the
appropriate branch, then place custom luci apps in
package/luci/applications. I believe it was also recommended by one of the
core developers but in case it wasn't and it's something I came up with
myself -- is that the proper procedure for building custom (as in not in
the feeds) luci apps?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20200413/35f834f6/attachment.htm>
-------------- next part --------------
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list