Youku YK-L1c

Report problems and success stories with Gargoyle on various hardware platforms.

Moderator: Moderators

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Youku YK-L1c

Post by Lantis »

If you build packages as a module, you can install them later by setting up your own package repository. If you don’t build them at all they are obviously not available.
Packages built in are smaller than ones installed after by a small amount. You can’t remove packages after to gain space.

The DTS would be the place to look which is probably in the Linux sources to find out partition sizes. If you do “cat /proc/mtd” I think we can also see.
If the image is too big it won’t build properly.

First time build depending on system is ~6-8 hours. Subsequent rebuilds can be 45 minutes or less
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

ghorvath
Posts: 46
Joined: Thu Sep 29, 2016 12:03 pm

Re: Youku YK-L1c

Post by ghorvath »

Ok, something is wrong, this is the tail:

Code: Select all

ERROR: module '/mnt/work/ghorvath/gargoyle/custom-src/build_dir/target-mips_24kc_musl/linux-ar71xx/linux-4.9.117/net/ipv4/netfilter/*weburl*.ko' is missing.
modules/netfilter.mk:1089: recipe for target '/mnt/work/ghorvath/gargoyle/custom-src/bin/targets/ar71xx/generic/packages/kmod-ipt-weburl_4.9.117-1-e8a8a40d3e08cdff890d1f2b45bb4dfa_mips_24kc.ipk' failed
make[4]: *** [/mnt/work/ghorvath/gargoyle/custom-src/bin/targets/ar71xx/generic/packages/kmod-ipt-weburl_4.9.117-1-e8a8a40d3e08cdff890d1f2b45bb4dfa_mips_24kc.ipk] Error 1
make[4]: Leaving directory '/mnt/work/ghorvath/gargoyle/custom-src/package/kernel/linux'
Command exited with non-zero status 2
time: package/kernel/linux/compile#3.95#0.22#9.32
package/Makefile:107: recipe for target 'package/kernel/linux/compile' failed
make[3]: *** [package/kernel/linux/compile] Error 2
make[3]: Leaving directory '/mnt/work/ghorvath/gargoyle/custom-src'
package/Makefile:103: recipe for target '/mnt/work/ghorvath/gargoyle/custom-src/staging_dir/target-mips_24kc_musl/stamp/.package_compile' failed
make[2]: *** [/mnt/work/ghorvath/gargoyle/custom-src/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[2]: Leaving directory '/mnt/work/ghorvath/gargoyle/custom-src'
/mnt/work/ghorvath/gargoyle/custom-src/include/toplevel.mk:216: recipe for target 'world' failed
make[1]: *** [world] Error 2
make[1]: Leaving directory '/mnt/work/ghorvath/gargoyle/custom-src'
I am not entirely sure where does the ar71xx come from, since I wanted to compile only the custom target, and in menuconfig I chose the youku-yk1 device with the appropriate target and subtarget.

I added now a new directory called youku-yk1 in targets/ramips/profiles, copied the config file saved from openwrt menuconfig, and try to run make ramips.youku-yk1. Maybe this will work. I will report back.

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Youku YK-L1c

Post by Lantis »

Yes that is the exact error I was suggesting to create a new profile to avoid.
I don’t know exactly why it happens, and it doesn’t happen every time.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

ghorvath
Posts: 46
Joined: Thu Sep 29, 2016 12:03 pm

Re: Youku YK-L1c

Post by ghorvath »

New error :(

Code: Select all

checking for mipsel-openwrt-linux-musl-gcc option to accept ISO C89... (cached) none needed
checking whether mipsel-openwrt-linux-musl-gcc understands -c and -o together... (cached) yes
./configure: line 5540: syntax error near unexpected token `external'
./configure: line 5540: `AM_GNU_GETTEXT(external)'
Makefile:139: recipe for target '/mnt/work/ghorvath/gargoyle/ramips-src/build_dir/target-mipsel_24kc_musl/msmtp-ssl/msmtp-1.6.2/.configured_68b329da9893e34099c7d8ad5cb9c940' failed
make[4]: *** [/mnt/work/ghorvath/gargoyle/ramips-src/build_dir/target-mipsel_24kc_musl/msmtp-ssl/msmtp-1.6.2/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 2
make[4]: Leaving directory '/mnt/work/ghorvath/gargoyle/ramips-src/package/msmtp'
Command exited with non-zero status 2
time: package/msmtp/ssl/compile#2.04#0.24#5.68
package/Makefile:107: recipe for target 'package/msmtp/compile' failed
make[3]: *** [package/msmtp/compile] Error 2
make[3]: Leaving directory '/mnt/work/ghorvath/gargoyle/ramips-src'
package/Makefile:103: recipe for target '/mnt/work/ghorvath/gargoyle/ramips-src/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile' failed
make[2]: *** [/mnt/work/ghorvath/gargoyle/ramips-src/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[2]: Leaving directory '/mnt/work/ghorvath/gargoyle/ramips-src'
/mnt/work/ghorvath/gargoyle/ramips-src/include/toplevel.mk:216: recipe for target 'world' failed
make[1]: *** [world] Error 2
make[1]: Leaving directory '/mnt/work/ghorvath/gargoyle/ramips-src'
Whar can I do now?

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Youku YK-L1c

Post by Lantis »

Quickest way forward is to unselect Gargoyle email notifications package. I’d have to investigate why it isn’t compiling. It seems to work ok for me.

Also, I have a bit of time this week. I’ll try to fire off a build for your device and see how it goes.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

ghorvath
Posts: 46
Joined: Thu Sep 29, 2016 12:03 pm

Re: Youku YK-L1c

Post by ghorvath »

Lantis wrote: Also, I have a bit of time this week. I’ll try to fire off a build for your device and see how it goes.
Thank you very much, that would be a great help.

In the meantime, I did another config, this time without choosing these email notifications, and got a more troubling error:

Code: Select all

rivers/net/ethernet/mtk/gsw_mt7620.c: In function 'mt7620_hw_init':
drivers/net/ethernet/mtk/gsw_mt7620.c:171:14: error: 'mdio_mode' undeclared (first use in this function); did you mean 'd_move'?
  } else if (!mdio_mode) {
              ^~~~~~~~~
              d_move
drivers/net/ethernet/mtk/gsw_mt7620.c:171:14: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:328: recipe for target 'drivers/net/ethernet/mtk/gsw_mt7620.o' failed
make[10]: *** [drivers/net/ethernet/mtk/gsw_mt7620.o] Error 1
scripts/Makefile.build:587: recipe for target 'drivers/net/ethernet/mtk' failed
make[9]: *** [drivers/net/ethernet/mtk] Error 2
scripts/Makefile.build:587: recipe for target 'drivers/net/ethernet' failed
make[8]: *** [drivers/net/ethernet] Error 2
scripts/Makefile.build:587: recipe for target 'drivers/net' failed
make[7]: *** [drivers/net] Error 2
Makefile:1035: recipe for target 'drivers' failed
make[6]: *** [drivers] Error 2
make[6]: Leaving directory '/mnt/work/ghorvath/gargoyle/ramips-src/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/linux-4.14.60'
Makefile:26: recipe for target '/mnt/work/ghorvath/gargoyle/ramips-src/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/linux-4.14.60/.image' failed
make[5]: *** [/mnt/work/ghorvath/gargoyle/ramips-src/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/linux-4.14.60/.image] Error 2
make[5]: Leaving directory '/mnt/work/ghorvath/gargoyle/ramips-src/target/linux/ramips'
Makefile:13: recipe for target 'install' failed
make[4]: *** [install] Error 2
make[4]: Leaving directory '/mnt/work/ghorvath/gargoyle/ramips-src/target/linux'
Command exited with non-zero status 2
time: target/linux/install#235.08#16.46#255.96
target/Makefile:23: recipe for target 'target/linux/install' failed
make[3]: *** [target/linux/install] Error 2
make[3]: Leaving directory '/mnt/work/ghorvath/gargoyle/ramips-src'
target/Makefile:19: recipe for target '/mnt/work/ghorvath/gargoyle/ramips-src/staging_dir/target-mipsel_24kc_musl/stamp/.target_install' failed
make[2]: *** [/mnt/work/ghorvath/gargoyle/ramips-src/staging_dir/target-mipsel_24kc_musl/stamp/.target_install] Error 2
make[2]: Leaving directory '/mnt/work/ghorvath/gargoyle/ramips-src'
/mnt/work/ghorvath/gargoyle/ramips-src/include/toplevel.mk:216: recipe for target 'world' failed
make[1]: *** [world] Error 2
make[1]: Leaving directory '/mnt/work/ghorvath/gargoyle/ramips-src'
Maybe I put in too many packages, and the build would have been too big? In any case, I will try yet anothe config. I am just wondering, do I always need to do a make dist-clean between compiles? Or if I change the config file, is there a way that I can proceed which would finish faster?

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Youku YK-L1c

Post by Lantis »

Don’t do a distclean, just do a clean. That will save you downloading the packages repeatedly (which is incredibly slow).

You can also “make FULL_BUILD=true ramips.yourprofile”
Which will also do a “clean”
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Youku YK-L1c

Post by Lantis »

I've encountered (and fixed) the first problem to do with msmtp.
https://github.com/ericpaulbishop/gargoyle/pull/764

The build is now continuing, and looks to be past any major hurdles. I'll check it again tomorrow.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

ghorvath
Posts: 46
Joined: Thu Sep 29, 2016 12:03 pm

Re: Youku YK-L1c

Post by ghorvath »

Lantis wrote:I've encountered (and fixed) the first problem to do with msmtp.
Thanks. I will take a look if it indeed fixes the problem for me.

However, the problem I mentioned above (with drivers/net) seems to be a bigger one. I only enabled the internationalization, the usb-printer, the usb-storage and the openvpn packages, and it still gives the same error. So I guess it was not about the size of the final build, but there is something why I cannot compile the ethernet driver. Maybe I am missing some debian package, but I installed everything from this page: https://openwrt.org/docs/guide-develope ... uildsystem

Maybe I need to set something else in the menuconfig, apart from target, subtarget, device, and the gargoyle packages?

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Youku YK-L1c

Post by Lantis »

This commit fixes your problem upstream:
https://git.openwrt.org/?p=openwrt/open ... 16e75aeff9

I have pushed that into Gargoyle in the same PR linked above as well.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply