Image Builder not cooperating, giving me numerous error messages

Hi, I'm trying to build a custom image for my TP-Link Archer C6 v2. I need it to have 802.1x support, which needs the "wpa-supplicant-openssl" package, but due to the router only having 8MB of flash memory, I can't install it. I wanted to build a custom image with the image builder, remove unnecessary packages and install "wpa-supplicant-openssl". However, the image builder is not cooperating and is giving me multiple error messages.

The command I have created and am trying to use goes as follows:
make image PROFILE=tplink_archer-c6-v2 PACKAGES=“kmod-ath10k ath10k-firmware-qca9888 wpa-supplicant-openssl uhttpd uhttpd-mod-ubus libiwinfo-lua luci-base luci-app-firewall luci-mod-admin-full luci-theme-bootstrap -ppp -ppp-mod-pppoe -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables -wpad-basic-wolfssl -kmod-ath10k-ct -ath10k-firmware-qca9888-ct” CONFIG_IPV6=n

After executing the command, the following 'invalid command' error messages show up.

make: invalid option -- '-'
make: invalid option -- '6'
make: invalid option -- 'a'
make: invalid option -- 'a'
make: invalid option -- '-'
make: invalid option -- 'a'
make: invalid option -- 'c'
make: invalid option -- '-'
make: invalid option -- 'a'
make: invalid option -- '1'
make: invalid option -- '0'
make: invalid option -- '-'

Moreover, the following 'not a target' messages show up.

Not a target:
wpa-supplicant-openssl:
Command line target.
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.

Not a target:
uhttpd:
Command line target.
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.

Not a target:
uhttpd-mod-ubus:
Command line target.
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.

Not a target:
luci-base:
Command line target.
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.

Not a target:
luci-app-firewall:
Command line target.
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.

Not a target:
luci-theme-bootstrap:
Command line target.
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.

Not a target:
image:
Command line target.
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.

Not a target:
luci-mod-admin-full:
Command line target.
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.

Not a target:
libiwinfo-lua:
Command line target.
Implicit rule search has not been done.
Modification time never checked.
File has not been updated.

Not a target:
ath10k-firmware-qca9888:
Command line target.
Implicit rule search has not been done.
Modification time never checked.
File has not been updated

I am unsure how to continue from here. As far as I understand from the guide on image building, I am taking the correct steps, but the image builder is not cooperating. Am I doing something wrong? Thanks for any help.

Looks like a command line syntax error to me...

Tried the online version?

I understand it says that, but I really don't see the problem - even the following really simple command gives me the 'invalid option' error messages.

make image PROFILE=tplink_archer-c6-v2 PACKAGES=“-kmod-ath10k-ct -ath10k-firmware-qca9888-ct”

Haven't tried the online version, since the page wouldn't load for me.

Online builder works from here...

Look for misplace spaces.

Try putting putting the PROFILE value in quotes, and make sure you’re using straight quotes and not any curly quotes. Your posted command looks a little curly.

2 Likes

Indeed they were curly. I copied the command from "Build image for devices with only 4MB flash" which uses curly quotes for their commands. I didn't notice that up until your comment. Now at least it accepts my commands. I feel dumb. However, now I get "cannot find dependency kernel" error messages even building just the plain image without any options so I gotta see what the issue there could be.

The quotes are correct in the wiki source, but Dokuwiki seems to be converting them for display. Maybe @tmomas has some advice on whether it can be fixed to avoid similar problems by others copying/pasting the code.

1 Like

For the release (I'm guessing 21.02) image builder or any kind of snapshot one?

I have fixed the wiki page now.

3 Likes