Problem during my image build

Hmm. strange. Sounds like a bug.

I looked into menuconfig in master, and to my surprise you are right. There are two items for each mvebu router:

                    │  Use the arrow keys to navigate this window or press the      │  
                    │  hotkey of the item you wish to select followed by the <SPACE │  
                    │  BAR>. Press <?> for additional information about this        │  
                    │ ┌────^(-)───────────────────────────────────────────────────┐ │  
                    │ │( ) Linksys WRT1900AC v1                                   │ │  
                    │ │( ) Linksys Cobra (Linksys WRT1900AC v2)                   │ │  
                    │ │( ) Linksys WRT1900AC v2                                   │ │  
                    │ │(X) Linksys Rango (Linksys WRT3200ACM)                     │ │  
                    │ │(X) Linksys WRT3200ACM                                     │ │  
                    │ │( ) Linksys Venom (Linksys WRT32X)                         │ │  
                    │ └────v(+)───────────────────────────────────────────────────┘ │  
                    ├───────────────────────────────────────────────────────────────┤  
                    │                    <Select>      < Help >                     │

So when I will make my next build, i run "make clean" before which step, to be sure?

Depends a bit on what you are doing.
(e.g. if you are testing changes, it makes sense to do latest before the final build.)

The point is that doing a "make clean" before the build, either before source updates or before the final make, ensures that all built stuff is done from the same source versions. The packages configure scripts may during the build sniff features from other libraries etc., so having part of stuff built earlier may sometimes lead into strange bugs. It is easier to have all firmware components built at the same time.

I usually do "make clean" after I have finalized a build, have transferred the binaries from Virtualbox to PC, compared the manifests & diffs and have flashed the firmware. I clean it "for the next build".

Depending on your workflow, you can do make clean before update sources (git pull, feeds update ,...) or just before the final make, or ...

1 Like
                    │ │( ) Linksys Cobra (Linksys WRT1900AC v2)                   │ │  
                    │ │( ) Linksys WRT1900AC v2                                   │ │  
                    │ │(X) Linksys Rango (Linksys WRT3200ACM)                     │ │  
                    │ │(X) Linksys WRT3200ACM                                     │ │  
                    │ │( ) Linksys Venom (Linksys WRT32X)                         │ │  

Seems to happen in master menuconfig for all those mvebu routers that have an "alternative name" defined. If you select the router in menuconfig, both name versions get selected. Likely just a design feature, but looks strange.

Possibly by design, likely originating from this commit by @mwarning and merged by @hauke . They may know if that is intentional.
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=88f8b63a3db241bdcaaaa7e5c8ae1169e6446902

The commit title does not mention "adding alternatives names" in addition of "splitting the name to components", but that is the place where the second name for each router has been added.

Interesting. This is not intentional and needs to get fixed.
I have created a bug report: https://bugs.openwrt.org/index.php?do=details&task_id=3580

EDIT: Despite my first impression, this display is indeed intentional.

1 Like

Out of curiosity, when you added that alternative name, where did you expect it to show up?

Expected would have been a single entry called Linksys WRT3200ACM (Linksys Rango).
The original intention was to have these alternative names in the build system to output them to json for the firmware selector (https://firmware-selector.openwrt.org/).

I assume that the handling of the alternative names in menuconfig might come straight from kernel config system, and is not OpenWrt specific, so I doubt that it will/should be fixed.

........ I guess I need to restart again, the ''make'' is still at the same step since 5 hours.?

make -j4
make[2]: Entering directory '/home/james80/openwrt/scripts/config'
cc -O2   -c -o conf.o conf.c
cc   conf.o confdata.o expr.o lexer.lex.o parser.tab.o preprocess.o symbol.o util.o   -o conf
make[2]: Leaving directory '/home/james80/openwrt/scripts/config'
time: target/linux/prereq#0.36#0.28#0.65
 make[1] world
 make[2] tools/compile
 make[2] package/cleanup
 make[3] -C tools/flock compile
 make[3] -C tools/xz compile
 make[3] -C tools/sed compile
 make[3] -C tools/tar compile
 make[3] -C tools/patch compile
 make[3] -C tools/lzma compile
 make[3] -C tools/autoconf-archive compile
 make[3] -C tools/m4 compile
 make[3] -C tools/pkgconf compile
 make[3] -C tools/mtools compile
 make[3] -C tools/patch-image compile
 make[3] -C tools/sstrip compile
 make[3] -C tools/zip compile
 make[3] -C tools/zstd compile
 make[3] -C tools/expat compile
 make[3] -C tools/autoconf compile
 make[3] -C tools/libressl compile
 make[3] -C tools/automake compile
 make[3] -C tools/missing-macros compile
 make[3] -C tools/libtool compile
 make[3] -C tools/dosfstools compile
 make[3] -C tools/cmake compile
 make[3] -C tools/mkimage compile
 make[3] -C tools/flex compile
 make[3] -C tools/e2fsprogs compile
 make[3] -C tools/fakeroot compile
 make[3] -C tools/gengetopt compile
 make[3] -C tools/mklibs compile
 make[3] -C tools/mm-macros compile
 make[3] -C tools/patchelf compile
 make[3] -C tools/gmp compile
 make[3] -C tools/libelf compile
 make[3] -C tools/bison compile
 make[3] -C tools/mpfr compile
 make[3] -C tools/bc compile
 make[3] -C tools/findutils compile
 make[3] -C tools/mpc compile
 make[3] -C tools/padjffs2 compile
 make[3] -C tools/quilt compile
 make[3] -C tools/zlib compile
 make[3] -C tools/make-ext4fs compile
 make[3] -C tools/firmware-utils compile
 make[3] -C tools/mtd-utils compile
 make[3] -C tools/squashfskit4 compile
 make[2] toolchain/compile
 make[3] -C toolchain/binutils compile
 make[3] -C toolchain/gdb compile
 make[3] -C toolchain/fortify-headers 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[2] target/compile
 make[3] -C target/linux compile
 make[2] buildinfo
 make[2] package/compile
 make[3] diffconfig buildversion feedsversion
 make[3] -C package/libs/libjson-c host-compile
 make[3] -C package/libs/ncurses host-compile
 make[3] -C package/libs/toolchain compile
 make[3] -C package/system/fwtool host-compile
 make[3] -C package/system/usign host-compile
 make[3] -C feeds/luci/modules/luci-base host-compile
 make[3] -C package/utils/lua host-compile
 make[3] -C feeds/luci/contrib/package/csstidy host-compile
 make[3] -C feeds/packages/lang/golang/golang host-compile
 make[3] -C package/kernel/gpio-button-hotplug compile
 make[3] -C package/libs/libubox host-compile
 make[3] -C package/system/opkg host-compile
 make[3] -C package/system/ucert host-compile
                    



If you have problems, discard multi-thread compilation and enable verbosity

make V=s

(and enable logging in menuconfig)

thanks again for your time and help,

If you have problems, discard multi-thread compilation . Enable Logging

multi thread .. you mean to just compile a really basic image?

I mean that you use "-j 4" meaning that 4 packages are compiled simulatenously by 4 threads.

It is hard to see even from the logs, which package is the one breaking compilation...

Build single-threaded, "-j 1" (or actually, no j at all)

finaly it seems worse.. stuck there

:~/openwrt$ make V=s
time: target/linux/prereq#0.33#0.26#0.60
make[1]: Entering directory '/home/james80/openwrt'
make[2]: Entering directory '/home/james80/openwrt'
make[3]: Entering directory '/home/james80/openwrt/target/linux'
make[4]: Entering directory '/home/james80/openwrt/target/linux/mvebu'
rm -f /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/localversion
/home/james80/openwrt/scripts/kconfig.pl  + /home/james80/openwrt/target/linux/generic/config-5.4 /home/james80/openwrt/target/linux/mvebu/config-5.4 > /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.target
awk '/^(#[[:space:]]+)?CONFIG_KERNEL/{sub("CONFIG_KERNEL_","CONFIG_");print}' /home/james80/openwrt/.config >> /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.target
echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.target
echo "# CONFIG_KALLSYMS_ALL is not set" >> /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.target
echo "CONFIG_KALLSYMS_UNCOMPRESSED=y" >> /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.target
/home/james80/openwrt/scripts/package-metadata.pl kconfig /home/james80/openwrt/tmp/.packageinfo /home/james80/openwrt/.config 5.4 > /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.override
/home/james80/openwrt/scripts/kconfig.pl 'm+' '+' /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.target /dev/null /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.override > /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.set
mv /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.set /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.old
grep -v INITRAMFS /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.old > /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.set
echo 'CONFIG_INITRAMFS_SOURCE=""' >> /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.set
echo '# CONFIG_INITRAMFS_FORCE is not set' >> /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.set
rm -rf /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/modules
cmp -s /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.set /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.prev || { cp /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.set /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config; cp /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.set /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.prev; }
export MAKEFLAGS= ; [ -d /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/user_headers ] || make -C /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91 KCFLAGS="-fmacro-prefix-map=/home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi=target-arm_cortex-a9+vfpv3-d16_musl_eabi" HOSTCFLAGS="-O2 -I/home/james80/openwrt/staging_dir/host/include  -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="arm-openwrt-linux-muslgnueabi-" ARCH="arm" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Wed Jan 20 00:57:05 2021" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/home/james80/openwrt/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/home/james80/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V=''  cmd_syscalls=  KERNELRELEASE=5.4.91 CC="arm-openwrt-linux-muslgnueabi-gcc" INSTALL_HDR_PATH=/home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/user_headers headers_install
grep '=[ym]' /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.config.set | LC_ALL=C sort | mkhash md5 > /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.vermagic
touch /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.configured
rm -f /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/vmlinux /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/System.map
make -C /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91 KCFLAGS="-fmacro-prefix-map=/home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi=target-arm_cortex-a9+vfpv3-d16_musl_eabi" HOSTCFLAGS="-O2 -I/home/james80/openwrt/staging_dir/host/include  -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="arm-openwrt-linux-muslgnueabi-" ARCH="arm" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Wed Jan 20 00:57:05 2021" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/home/james80/openwrt/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/home/james80/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V=''  cmd_syscalls=  KERNELRELEASE=5.4.91 CC="arm-openwrt-linux-muslgnueabi-gcc" modules
make[5]: Entering directory '/home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91'
  CALL    scripts/checksyscalls.sh
  CALL    scripts/atomic/check-atomics.sh
  Building modules, stage 2.
  MODPOST 122 modules
make[5]: Leaving directory '/home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91'
touch /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.91/.modules
make -C image compile TARGET_BUILD=
make[5]: Entering directory '/home/james80/openwrt/target/linux/mvebu/image'
make[5]: Nothing to be done for 'compile'.
make[5]: Leaving directory '/home/james80/openwrt/target/linux/mvebu/image'
make[4]: Leaving directory '/home/james80/openwrt/target/linux/mvebu'
make[3]: Leaving directory '/home/james80/openwrt/target/linux'
time: target/linux/compile#15.33#14.14#34.99
make[2]: Leaving directory '/home/james80/openwrt'
export MAKEFLAGS= ;make -w -r buildinfo
make[2]: Entering directory '/home/james80/openwrt'
 make[3] diffconfig buildversion feedsversion
make[2]: Leaving directory '/home/james80/openwrt'
make[2]: Entering directory '/home/james80/openwrt'
rm -rf /home/james80/openwrt/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/root-mvebu
make[2]: Leaving directory '/home/james80/openwrt'
make[2]: Entering directory '/home/james80/openwrt'
make[3]: Entering directory '/home/james80/openwrt/package/libs/libjson-c'
mkdir -p /home/james80/openwrt/dl
SHELL= flock /home/james80/openwrt/tmp/.json-c-0.15-nodoc.tar.gz.flock -c '  	/home/james80/openwrt/scripts/download.pl "/home/james80/openwrt/dl" "json-c-0.15-nodoc.tar.gz" "99bca4f944b8ced8ae0bbc6310d6a3528ca715e69541793a1ef51f8c5b4b0878" "" "https://s3.amazonaws.com/json-c_releases/releases/"    '
make[3]: Leaving directory '/home/james80/openwrt/package/libs/libjson-c'
time: package/libs/libjson-c/host-compile#0.55#0.48#0.97
make[3]: Entering directory '/home/james80/openwrt/package/libs/libubox'
mkdir -p /home/james80/openwrt/dl
SHELL= flock /home/james80/openwrt/tmp/.libubox-2020-12-12-35787769.tar.xz.flock -c '  	/home/james80/openwrt/scripts/download.pl "/home/james80/openwrt/dl" "libubox-2020-12-12-35787769.tar.xz" "97dc4eba01cf2c5d6a6d0db3747e0cdc0d95cb87e51b3115272e7d3e69a8b255" "" || (  	echo "Checking out files from the git repository..."; mkdir -p /home/james80/openwrt/tmp/dl && cd /home/james80/openwrt/tmp/dl && rm -rf libubox-2020-12-12-35787769 && [ \! -d libubox-2020-12-12-35787769 ] && git clone  https://git.openwrt.org/project/libubox.git libubox-2020-12-12-35787769 && (cd libubox-2020-12-12-35787769 && git checkout 357877693ca363b12e6e7e14d345639b2440cd07 && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=`cd libubox-2020-12-12-35787769 && git log -1 --format='\''@%ct'\''` && rm -rf libubox-2020-12-12-35787769/.git && 	tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c libubox-2020-12-12-35787769 | 	xz -zc -7e > /home/james80/openwrt/tmp/dl/libubox-2020-12-12-35787769.tar.xz && mv /home/james80/openwrt/tmp/dl/libubox-2020-12-12-35787769.tar.xz /home/james80/openwrt/dl/ && rm -rf libubox-2020-12-12-35787769;  )    '
make[3]: Leaving directory '/home/james80/openwrt/package/libs/libubox'
time: package/libs/libubox/host-compile#0.48#0.55#0.97
make[3]: Entering directory '/home/james80/openwrt/package/system/opkg'
mkdir -p /home/james80/openwrt/dl
SHELL= flock /home/james80/openwrt/tmp/.opkg-2020-12-24-9bbc7eae.tar.xz.flock -c '  	/home/james80/openwrt/scripts/download.pl "/home/james80/openwrt/dl" "opkg-2020-12-24-9bbc7eae.tar.xz" "baa32d1b381d0eb2e224f4742974581c6705c13814662442ebd1288a91c2d577" "" || (  	echo "Checking out files from the git repository..."; mkdir -p /home/james80/openwrt/tmp/dl && cd /home/james80/openwrt/tmp/dl && rm -rf opkg-2020-12-24-9bbc7eae && [ \! -d opkg-2020-12-24-9bbc7eae ] && git clone  https://git.openwrt.org/project/opkg-lede.git opkg-2020-12-24-9bbc7eae && (cd opkg-2020-12-24-9bbc7eae && git checkout 9bbc7eae91edc3dbb020e2a50d51d9a3fbbf31ca && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=`cd opkg-2020-12-24-9bbc7eae && git log -1 --format='\''@%ct'\''` && rm -rf opkg-2020-12-24-9bbc7eae/.git && 	tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c opkg-2020-12-24-9bbc7eae | 	xz -zc -7e > /home/james80/openwrt/tmp/dl/opkg-2020-12-24-9bbc7eae.tar.xz && mv /home/james80/openwrt/tmp/dl/opkg-2020-12-24-9bbc7eae.tar.xz /home/james80/openwrt/dl/ && rm -rf opkg-2020-12-24-9bbc7eae;  )    '
make[3]: Leaving directory '/home/james80/openwrt/package/system/opkg'
time: package/system/opkg/host-compile#0.50#0.59#1.04
make[3]: Entering directory '/home/james80/openwrt/package/libs/toolchain'
mkdir -p /home/james80/openwrt/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/root-mvebu/stamp
SHELL= flock /home/james80/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/toolchain/.pkgdir/libc/. /home/james80/openwrt/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/root-mvebu/'
touch /home/james80/openwrt/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/root-mvebu/stamp/.libc_installed
mkdir -p /home/james80/openwrt/bin/targets/mvebu/cortexa9/packages /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/toolchain/ipkg-arm_cortex-a9_vfpv3-d16/libgcc/CONTROL /home/james80/openwrt/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/pkginfo
install -d -m0755 /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/toolchain/ipkg-arm_cortex-a9_vfpv3-d16/libgcc/lib
cp -fpR /home/james80/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-8.4.0_musl_eabi/lib/libgcc_s.so.* /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/toolchain/ipkg-arm_cortex-a9_vfpv3-d16/libgcc/lib/
find /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/toolchain/ipkg-arm_cortex-a9_vfpv3-d16/libgcc -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
export CROSS="arm-openwrt-linux-muslgnueabi-"  NO_RENAME=1 ; NM="arm-openwrt-linux-muslgnueabi-nm" STRIP="/home/james80/openwrt/staging_dir/host/bin/sstrip -z" STRIP_KMOD="/home/james80/openwrt/scripts/strip-kmod.sh" PATCHELF="/home/james80/openwrt/staging_dir/host/bin/patchelf" /home/james80/openwrt/scripts/rstrip.sh /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/toolchain/ipkg-arm_cortex-a9_vfpv3-d16/libgcc
rstrip.sh: /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/toolchain/ipkg-arm_cortex-a9_vfpv3-d16/libgcc/lib/libgcc_s.so.1: shared object
(cd /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/toolchain/ipkg-arm_cortex-a9_vfpv3-d16/libgcc/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo "[ -x "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo "[ -x "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm;  )
install -d -m0755 /home/james80/openwrt/bin/targets/mvebu/cortexa9/packages
/home/james80/openwrt/staging_dir/host/bin/fakeroot /home/james80/openwrt/scripts/ipkg-build -m "" /home/james80/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/toolchain/ipkg-arm_cortex-a9_vfpv3-d16/libgcc /home/james80/openwrt/bin/targets/mvebu/cortexa9/packages



what about that command : git clone https://git.openwrt.org/openwrt/openwrt.git
If I want create a build from trunk, master vs 19.07.5, if I understand, I need to add something like that here : git clone https://git.openwrt.org/openwrt/openwrt.git -b trunk?

Normal git stuff

There is no trunk, as the git term is master

Master is the main branch, but it is quite similar at any other branch.

After cloning, you can switch branches with git checkout.

git checkout openwrt-19.07
git checkout master

But note that all patches, all package feeds etc. are branch-specific. ( I keep separate buildroots for master and 19.07)

Finaly I did it, my first one, at least one complete but I guess I can't try it, here errors :slight_smile:

Collected errors:
 * check_data_file_clashes: Package libustream-openssl20201210 wants to install file /home/james/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/root-mvebu/lib/libustream-ssl.so
	But that file is already provided by package  * libustream-wolfssl20201210
 * opkg_install_cmd: Cannot install package libustream-openssl20201210.
 * check_data_file_clashes: Package libustream-openssl20201210 wants to install file /home/james/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/root-mvebu/lib/libustream-ssl.so
	But that file is already provided by package  * libustream-wolfssl20201210
 * opkg_install_cmd: Cannot install package luci-ssl-openssl.
 * check_data_file_clashes: Package syslog-ng wants to install file /home/james/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/root-mvebu/sbin/logread
	But that file is already provided by package  * logd
 * opkg_install_cmd: Cannot install package syslog-ng.
make[2]: *** [package/Makefile:69: package/install] Error 255
make[2]: Leaving directory '/home/james/openwrt'
make[1]: *** [package/Makefile:109: /home/james/openwrt/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/james/openwrt'
make: *** [/home/james/openwrt/include/toplevel.mk:234: world] Error 2

moreover, I dont have builds in folder.....

build

Well, the build process ended in error, so why would you have builds ...

You have selected packets that cause conflicts. You are trying e.g. install LuCI with Openssl (causing libustream-openssl to be included) although you have not disabled the default libustream-wolfssl from the build.

Just first build a simple image.
Practice the basic build process first.

And only then start selecting more complex packages.

I use this kind of recipe for my own builds. Note that I disable some default packages:

# Use "make defconfig" to expand this to a full .config
CONFIG_TARGET_mvebu=y
CONFIG_TARGET_mvebu_cortexa9=y
CONFIG_TARGET_mvebu_cortexa9_DEVICE_linksys_wrt3200acm=y

# Per-package build logs in <buildroot>/logs
CONFIG_DEVEL=y
CONFIG_BUILD_LOG=y

# Debugging options (build gdbserver, include package debug)
CONFIG_PACKAGE_gdbserver=m
CONFIG_DEBUG=y

# Include package list in build
CONFIG_INCLUDE_CONFIG=y

# Longer waiting for failsafe button push
CONFIG_IMAGEOPT=y
CONFIG_PREINITOPT=y
CONFIG_TARGET_PREINIT_TIMEOUT=5

# Busybox tweaks
CONFIG_BUSYBOX_CUSTOM=y
#CONFIG_BUSYBOX_CONFIG_DIFF=y
CONFIG_BUSYBOX_CONFIG_FEATURE_EDITING_SAVEHISTORY=y
CONFIG_BUSYBOX_CONFIG_FEATURE_EDITING_SAVE_ON_EXIT=y
CONFIG_BUSYBOX_CONFIG_FEATURE_LESS_FLAGS=y
CONFIG_BUSYBOX_CONFIG_FEATURE_LESS_REGEXP=y
CONFIG_BUSYBOX_CONFIG_FEATURE_LESS_WINCH=y

# Add-on programs
CONFIG_PACKAGE_ccrypt=y
CONFIG_PACKAGE_curl=y
CONFIG_LIBCURL_OPENSSL=y
CONFIG_PACKAGE_diffutils=y
CONFIG_DROPBEAR_ECC=y
CONFIG_PACKAGE_htop=y
CONFIG_PACKAGE_irqbalance=y
CONFIG_PACKAGE_nano=y
CONFIG_PACKAGE_patch=y
CONFIG_PACKAGE_tcpdump-mini=y
CONFIG_PACKAGE_tree=y
CONFIG_PACKAGE_wget-ssl=y

# Improve entropy generation for kernel
CONFIG_PACKAGE_haveged=y

# USB device mount & file systems support
CONFIG_PACKAGE_block-mount=y
CONFIG_PACKAGE_kmod-usb-storage=y
CONFIG_PACKAGE_kmod-fs-cifs=y
CONFIG_PACKAGE_kmod-fs-exfat=y
CONFIG_PACKAGE_libblkid=y
CONFIG_PACKAGE_kmod-fs-ext4=y
CONFIG_PACKAGE_kmod-fs-hfsplus=y
CONFIG_PACKAGE_kmod-fs-msdos=y
CONFIG_PACKAGE_kmod-fs-vfat=y
CONFIG_PACKAGE_ntfs-3g=y
CONFIG_PACKAGE_kmod-nls-cp1250=y
CONFIG_PACKAGE_kmod-nls-cp437=y
CONFIG_PACKAGE_kmod-nls-cp850=y
CONFIG_PACKAGE_kmod-nls-iso8859-1=y
CONFIG_PACKAGE_kmod-nls-iso8859-15=y
CONFIG_PACKAGE_kmod-nls-utf8=y

# IPv6 support
CONFIG_PACKAGE_6in4=y
CONFIG_PACKAGE_6to4=y
CONFIG_PACKAGE_6rd=y

# IPv6 NAT support (ip6tables NAT extensions, ipt-nat6 and nf-nat6 kmods)
CONFIG_PACKAGE_ip6tables-mod-nat=y

# WLAN/WPS support
CONFIG_PACKAGE_hostapd-utils=y
CONFIG_WPA_MSG_MIN_PRIORITY=4
CONFIG_PACKAGE_wpad-openssl=y
# CONFIG_PACKAGE_wpad-basic-wolfssl is not set
# CONFIG_PACKAGE_libustream-wolfssl is not set

# SSL certificates
CONFIG_PACKAGE_ca-certificates=y

# Luci (SSL from OpenSSL)
CONFIG_PACKAGE_luci-ssl-openssl=y
CONFIG_PACKAGE_luci-app-commands=y
CONFIG_PACKAGE_luci-app-ddns=y
CONFIG_PACKAGE_luci-app-sqm=y
CONFIG_PACKAGE_luci-app-uhttpd=y
CONFIG_PACKAGE_luci-app-upnp=y
CONFIG_PACKAGE_luci-app-wol=y
# CONFIG_LUCI_JSMIN is not set

# Luci statistics
CONFIG_PACKAGE_luci-app-statistics=y
CONFIG_PACKAGE_collectd-mod-conntrack=y
CONFIG_PACKAGE_collectd-mod-cpufreq=y
CONFIG_PACKAGE_collectd-mod-entropy=y
CONFIG_PACKAGE_collectd-mod-ping=y
CONFIG_PACKAGE_collectd-mod-sensors=y
CONFIG_PACKAGE_lm-sensors=y
CONFIG_PACKAGE_collectd-mod-thermal=y
CONFIG_PACKAGE_collectd-mod-uptime=y

# kernel support for tunnels, VPNs
CONFIG_PACKAGE_kmod-tun=y

# wireguard
CONFIG_PACKAGE_luci-app-wireguard=y

# PPTP support
CONFIG_PACKAGE_luci-proto-ppp=y
CONFIG_PACKAGE_ppp-mod-pptp=y

# iptables add-on ipsec
CONFIG_PACKAGE_iptables-mod-ipsec=y

# Support for IETF BCP38
CONFIG_PACKAGE_luci-app-bcp38=y

# Adblock package with Luci support, initially disabled
CONFIG_PACKAGE_luci-app-adblock=y

# GUI to switch boot partition
CONFIG_PACKAGE_luci-app-advanced-reboot=y

# nlbwmon app
CONFIG_PACKAGE_luci-app-nlbwmon=y

# chaoskey TRNG USB dongle
CONFIG_PACKAGE_kmod-chaoskey=y

Example of disabling wolfssl in favor of openssl:

CONFIG_PACKAGE_wpad-openssl=y
# CONFIG_PACKAGE_wpad-basic-wolfssl is not set
# CONFIG_PACKAGE_libustream-wolfssl is not set

Ps. my mvebu CPU frequency scaling build sources can be found at
https://www.dropbox.com/sh/sorrebbshah0pfa/AABiU6Wi_bWlIqnmwHEGEiKua

1 Like

great thanks, and those config settings, I can '' copy pasted'' directly somewhere or I need to check and uncheck all in menu config?

btw, about your cpu patch, I am pretty far to be able to add something like that :rofl:

Just look at the contents your config file ".config"
You could add that to the end of that and then run make defconfig, but there might still be already set dependencies, so I do it a bit differently:

My workflow is that I keep this short 100-line recipe as a file and copy it to be the new .config , then use "make defconfig" to expand it to the normal full .config, with all dependencies added etc. Then I make.

finaly I managed,
first build done but I did not think I would have a snapshot, but I restarted 4-5 times from scratch for that build so .....

but here what I have, btw, even LuCi was not there.

VHT-NSS 2
650.0 Mbit/s, 80 MHz, VHT-MCS 7, VHT-NSS 2, Short GI

OpenWrt 19.07-SNAPSHOT r11281-c21d59dc11 / LuCI openwrt-19.07 branch git-21.018.57536-6ba9740
Kernel Version	4.14.215

btw, how I can know if I have version with dnsmasq patch ?
thanks