Problems with building an image

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
TiMoxD
Posts: 13
Joined: Mon Feb 28, 2022 5:12 pm

Problems with building an image

Post by TiMoxD »

Compiler problem:
Can't make a custom build on v.1.13 and getting different errors.
I tried Ubuntu 18.04.1 and 18.04 server (as indicated here viewtopic.php?t=11883), and I tried Ubuntu 20.04.4, but failed too.


Errors:

Ubuntu 18:" Build failed - please re-run with -j1 to see the real error message. "
(I added -j1, -j 1, v=s, v=99 and everything else but strangely it doesn't give more details)

Ubuntu 20: it compiles successfully but I only end with a bunch of extra folders like ath79-src and images and smth like that, but no .bin files at all. (My friend suggested going into the -src folder and do "make" there, but it doesn't make any difference)


Why do I want a custom build?
I just bought an Archer C60 v2 when I found it supported in v.1.13, but upon trial, it seems that there is no enough storage. That's were Lantis, thankfully, recommended building a custom firmware with removing some extra stuff as USB_SUPPORT (my router doesn't have a usb port anyways), BUT I always seem to fail in compiling one. I followed the tutorial carefully but with no luck. Is there anything I can do to solve the storage problem without building a new .bin ?
If not, then how could I solve the Ubunto errors I'm getting?

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

Re: Problems with building an image

Post by Lantis »

I was in the process of replying to your PM.
Here's what i did.

Code: Select all

make FULL_BUILD=true ath79.ath10k
Wait until it has patched in the custom netfilter modules.
Ctrl+C and kill the build

Code: Select all

cd ath79-src/
make menuconfig
Under target devices, unselect all except yours.
Under administration -> Gargoyle, unselect usb-storage-full and usb-storage-noshare, webcam, usb-printer, minidlna.
Search and disable minidlna and gargoyle-mjpg-streamer.

Escape and save the config.

Code: Select all

cp -r targets/ath79/profiles/ath10k/ targets/ath79/profiles/ath10k-nousb/
cp ath79-src/.config targets/ath79/profiles/ath10k-nousb/config

make FULL_BUILD=true ath79.ath10k-nousb
Which is kind of similar to the "make custom" instructions here: https://www.gargoyle-router.com/wiki/do ... umentation
But we shortcut the full custom stage by taking a profile which is similar enough as a base.

The resulting image for me was 7.25MB which should give you a bit more room to play with an should be a working image.
https://lantisproject.com/gargoyle_cust ... 10k-nousb/
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.

TiMoxD
Posts: 13
Joined: Mon Feb 28, 2022 5:12 pm

Re: Problems with building an image

Post by TiMoxD »

PERFECT !! Just installed the .bin it and it is working perfectly ❤️
Thank you so much for your help. I will also try to build my own .bin for learning purposes.

Thanks once more.

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

Re: Problems with building an image

Post by Lantis »

TiMoxD wrote:
Wed Mar 02, 2022 5:38 am
Ubuntu 18:" Build failed - please re-run with -j1 to see the real error message. "
(I added -j1, -j 1, v=s, v=99 and everything else but strangely it doesn't give more details)
You need a more modern ubuntu to compile 1.13. I have provided docker images you can try to use to build forward, but i've never tested it.
TiMoxD wrote:
Wed Mar 02, 2022 5:38 am
Ubuntu 20: it compiles successfully but I only end with a bunch of extra folders like ath79-src and images and smth like that, but no .bin files at all. (My friend suggested going into the -src folder and do "make" there, but it doesn't make any difference)
The image would be under images/ath79/, that's how the process works. If it compiled successfully, it should have been there.
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.

TiMoxD
Posts: 13
Joined: Mon Feb 28, 2022 5:12 pm

Re: Problems with building an image

Post by TiMoxD »

I guess it didn't compile correctly because it took around 10 minutes only, and I saw users saying that it takes a few hours. Most probably because I messed up the config file.

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

Re: Problems with building an image

Post by Lantis »

On an 8th gen i7 + SSD, i built that whole thing in about 45 minutes. It's pretty fast on modern hardware, especially if you're only building a single target.
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.

TiMoxD
Posts: 13
Joined: Mon Feb 28, 2022 5:12 pm

Re: Problems with building an image

Post by TiMoxD »

I'll try it out using your method and hope it works. Just finishing the setup of the new router.

Btw I have another question. I installed Gargoyle on a wireless router, which is connected to my ISP router which also has WLAN, and clients can connect to it. Can I use bandwidth control on clients connected to the ISP router (running stock firmware) ?

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

Re: Problems with building an image

Post by Lantis »

No, if you want to control bandwidth etc, you need to make Gargoyle the only wireless access point (or any other APs are downstream of Gargoyle anyway).
It would also need to be in Gateway mode
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