Hi Federico, The new variable make sense, it sounds to me that this the way to go.
The proposed workaround doesn't work for me as the generated .config seems to ignore the following snippet included in my playbook as it always generates a non desired subtarget. Anyway the workaround breaks the idea of the generator as in that case only one target could be supported. Thanks for your help and your support. Thanks # workaround to avoid conflicts between wpad and wpad-mini > - "# CONFIG_PACKAGE_wpad-mini is not set" > - 'CONFIG_TARGET_SUBTARGET="mt7620"' > - 'CONFIG_TARGET_PROFILE="ramips_mt7620_DEVICE_gl-mt300a"' > # supported architectures > openwisp2fw_source_archs: > - ramips Here is the generated .config : # > # Automatically generated file; DO NOT EDIT. > # LEDE Configuration > # > CONFIG_MODULES=y > CONFIG_HAVE_DOT_CONFIG=y > # CONFIG_TARGET_arm64 is not set > # CONFIG_TARGET_sunxi is not set > # CONFIG_TARGET_apm821xx is not set > # CONFIG_TARGET_ath25 is not set > # CONFIG_TARGET_ar71xx is not set > # CONFIG_TARGET_at91 is not set > # CONFIG_TARGET_brcm2708 is not set > # CONFIG_TARGET_bcm53xx is not set > # CONFIG_TARGET_brcm47xx is not set > # CONFIG_TARGET_brcm63xx is not set > # CONFIG_TARGET_cns3xxx is not set > # CONFIG_TARGET_octeon is not set > # CONFIG_TARGET_gemini is not set > # CONFIG_TARGET_mpc85xx is not set > # CONFIG_TARGET_imx6 is not set > # CONFIG_TARGET_mxs is not set > # CONFIG_TARGET_adm8668 is not set > # CONFIG_TARGET_adm5120 is not set > # CONFIG_TARGET_xburst is not set > # CONFIG_TARGET_ixp4xx is not set > # CONFIG_TARGET_lantiq is not set > # CONFIG_TARGET_malta is not set > # CONFIG_TARGET_mvebu is not set > # CONFIG_TARGET_kirkwood is not set > # CONFIG_TARGET_mediatek is not set > CONFIG_TARGET_ramips=y > # CONFIG_TARGET_rb532 is not set > # CONFIG_TARGET_mcs814x is not set > # CONFIG_TARGET_layerscape is not set > # CONFIG_TARGET_oxnas is not set > # CONFIG_TARGET_armvirt is not set > # CONFIG_TARGET_ipq806x is not set > # CONFIG_TARGET_au1000 is not set > # CONFIG_TARGET_arc770 is not set > # CONFIG_TARGET_archs38 is not set > # CONFIG_TARGET_ar7 is not set > # CONFIG_TARGET_omap is not set > # CONFIG_TARGET_uml is not set > # CONFIG_TARGET_zynq is not set > # CONFIG_TARGET_x86 is not set > CONFIG_TARGET_ramips_rt305x=y > # CONFIG_TARGET_ramips_mt7620 is not set > # CONFIG_TARGET_ramips_mt7621 is not set > # CONFIG_TARGET_ramips_mt7628 is not set > # CONFIG_TARGET_ramips_mt7688 is not set > # CONFIG_TARGET_ramips_rt3883 is not set > # CONFIG_TARGET_ramips_rt288x is not set > # CONFIG_TARGET_MULTI_PROFILE is not set > CONFIG_TARGET_ramips_rt305x_Default=y > # CONFIG_TARGET_ramips_rt305x_DEVICE_px-4885-4M is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_px-4885-8M is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_carambola is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_a5-v11 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_w502u is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_freestation5 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_wr6202 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_mr-102n is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_air3gii is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_ALL02393G is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_all0256n-4M is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_all0256n-8M is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_all5002 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_all5003 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_asl26555-8M is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_asl26555-16M is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_atp-52b is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_awapn2403 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_awm002-evb-4M is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_awm002-evb-8M is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_awm003-evb is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_rt-g32-b1 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_rt-n10-plus is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_rt-n13u is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_wl-330n is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_wl-330n3g is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_hw550-3g is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_f5d8235-v2 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_f7c027 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_WHRG300N is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_dap-1350 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_DCS930 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_DCS930LB1 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_dir-300-b1 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_dir-300-b7 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_dir-320-b1 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_dir-600-b1 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_dir-610-a1 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_dir-615-d is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_dir-615-h1 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_dir-620-a1 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_dir-620-d1 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_dwr-512-b is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_wizard8800 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_3g-6200n is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_3g-6200nl is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_esr-9753 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_fonera20n is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_mpr-a1 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_mpr-a2 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_broadway is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_hlk-rm04 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_ht-tm02 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_d105 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_m2m is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_jhr-n805r is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_jhr-n825r is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_jhr-n926r is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_mofi3500-3gn is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_nw718 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_wnce2001 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_bc2 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_wt1520-4M is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_wt1520-8M is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_nixcore-x1-16M is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_nixcore-x1-8M is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_miniembplug is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_miniembwifi is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_psr-680w is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_mzk-dp150n is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_mzk-w300nh2 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_mzk-wdpr is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_ip2202 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_m3 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_m4-4M is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_m4-8M is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_x5 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_x8 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_pwh2004 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_rt5350f-olinuxino is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_rt5350f-olinuxino-evb is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_v22rw-2x2 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_WL-341V3 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_wl-351 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_sl-r7205 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_wcr-150gn is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_tew-714tru is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_rut5xx is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_3g150b is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_3g300m is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_w150m is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_w306r-v20 is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_ur-326n4g is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_ur-336un is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_vocore-16M is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_vocore-8M is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_wizfi630a is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_wr512-3gn-4M is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_wr512-3gn-8M is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_ncs601w is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_xdxrn502j is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_nbg-419n is not set > # CONFIG_TARGET_ramips_rt305x_DEVICE_nbg-419n2 is not set > CONFIG_HAS_SUBTARGETS=y > CONFIG_HAS_DEVICES=y > CONFIG_TARGET_BOARD="ramips" > CONFIG_TARGET_SUBTARGET="rt305x" > CONFIG_TARGET_PROFILE="Default" > CONFIG_TARGET_ARCH_PACKAGES="mipsel_24kc" > CONFIG_DEFAULT_TARGET_OPTIMIZATION="-Os -pipe -mno-branch-likely -mips32r2 > -mtune=24kc" Le jeudi 2 février 2017 19:08:43 UTC+5:30, Federico Capoano a écrit : > > Argh, you hit on the same problem I hit a week ago: > https://github.com/openwisp/ansible-openwisp2-imagegenerator/issues/3 > > It is not possible to specify subtargets and specific profiles yet. I have > to implement this. > > I was thinking of introducing a new variable that would deprecate the old > one, something like: > > openwisp2fw_source_targets: > - board: ar71xx > subtarget: Generic > profile: Default > - board: ramips > subtarget: ramips_mt7620 > profile: ramips_mt7620_XIAOMI-MIWIFI-MINI > - board: ramips > subtarget: ramips_mt7620 > profile: DEVICE_gl-mt300a > > The entire process could become more complex, so I have to find the time > to test this idea a bit and implement it. > > For the moment I think you can workaround this issue in two ways: > > 1. manual > compile the default target, go in the source directory and proceed > manually with a make menuconfig and proceed to select your desired target > > 2. ugly temporary workaround > you could try using the variable *openwisp2fw_source_other_configs* in > the following way: > > # other OpenWRT/LEDE configurations > openwisp2fw_source_other_configs: > # busybox > - CONFIG_BUSYBOX_CUSTOM=y > - CONFIG_BUSYBOX_CONFIG_FEATURE_EDITING_SAVEHISTORY=y > - CONFIG_BUSYBOX_CONFIG_FEATURE_EDITING_SAVE_ON_EXIT=y > - CONFIG_BUSYBOX_CONFIG_FEATURE_REVERSE_SEARCH=y > - CONFIG_BUSYBOX_CONFIG_FEATURE_VI_UNDO=y > - CONFIG_BUSYBOX_CONFIG_WATCH=y > # workaround to avoid conflicts between wpad and wpad-mini > - "# CONFIG_PACKAGE_wpad-mini is not set" > # workaround to compile GL-MT300A > CONFIG_TARGET_SUBTARGET="mt7620" > CONFIG_TARGET_PROFILE="DEVICE_gl-mt300a" > > I am sorry you had to go through all of this to find out about this issue, > but now that I know that I'm not the only one facing this issue I will be > more motivated to fix it in the short term. > > Federico > > > On Thu, Feb 2, 2017 at 1:14 PM Xavier Maysonnave <[email protected] > <javascript:>> wrote: > >> Hi Federico, >> >> I have built a while ago a LEDE firmware for my device a GL-MT300A, I use >> it as a reference, especially the content of the .config file. >> >> This one contains the following: >> >> CONFIG_TARGET_BOARD="ramips" >> CONFIG_TARGET_SUBTARGET="mt7620" >> CONFIG_TARGET_PROFILE="DEVICE_gl-mt300a" >> >> My playbook contains the following: >> >> openwisp2fw_source_archs: >> - ramips >> >> I made many tests but I don't know how to specify the subtarget and the >> profile ? >> >> Thanks >> >> >> >> Le jeudi 2 février 2017 17:37:23 UTC+5:30, Federico Capoano a écrit : >>> >>> That's great news! >>> >>> While developing the ansible image generator, I tried setting LEDE as >>> the default but I couldn't compile successfully most of the time so I had >>> to switch back to OpenWRT. >>> >>> When the LEDE stable will be out, if we like it more than OpenWRT, I'd >>> be happy to switch the image generator to use the new LEDE stable as >>> default. >>> >>> Federico >>> >>> >>> On Thursday, February 2, 2017 at 12:56:43 PM UTC+1, Xavier Maysonnave >>> wrote: >>>> >>>> Hi Federico, >>>> >>>> I switched to the LEDE project as their 17.01.RC1 is out. >>>> I didn't face the previous crash, now I try to build for my real target >>>> a GL-MT300A. >>>> I'll provide feedback. >>>> >>>> Thanks >>>> >>>> Le samedi 28 janvier 2017 16:44:32 UTC+5:30, Xavier Maysonnave a écrit : >>>>> >>>>> Hi All, >>>>> >>>>> I started to experiment the image generator following the Readme.md >>>>> and faces some questions : >>>>> >>>>> 1 - in the hosts file I specified an IP address instead of ' >>>>> mycompiler.mydomain.com' >>>>> However in the playbook.yml file at the beginning there is : >>>>> - hosts: your_host_here >>>>> I assume we need also to reference 'mycompiler.mydomain.com' >>>>> That way we can organize multiple compiler servers if needed ? >>>>> >>>>> 2 - I don't understand how the root_password is encrypted as I do not >>>>> see any salt in the playbook.yml except the one described in the >>>>> luci_openwisp entry. >>>>> >>>>> 3 - Is there somewhere an exhaustive list of variables we can use, >>>>> it's a little bit magic for me :-) >>>>> >>>>> Thanks. >>>>> >>>>> -- >> You received this message because you are subscribed to the Google Groups >> "OpenWISP" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
