What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

How to select components when build from source ?

snowman

Occasional Visitor
Let's say if I want to remove the following components from the firmware; how does one do that?
Minidlna
Netatalk

The dlna and Apple file server are feature I can live without :-) And those are the 2 things that's currently giving me problem when building firmware from source.

Thanks
Grasshopper
 
Let's say if I want to remove the following components from the firmware; how does one do that?
Minidlna
Netatalk

The dlna and Apple file server are feature I can live without :) And those are the 2 things that's currently giving me problem when building firmware from source.

Thanks
Grasshopper

I think you would be better off fixing the build environment instead of trying to remove components.

Using the info from RMerlin's GitHub - https://github.com/RMerl/asuswrt-merlin/wiki/Compile-Firmware-from-source-using-Ubuntu - I built a Ubuntu 14.04 Server environment yesterday that successfully compiles the latest snapshot without any issues.

I used the delian-build-image script (https://github.com/assarbad/build-asuswrt-merlin) to run the compile. Tried it using both USE_SUDO and without - both ways built fine. To get the Ubuntu 14.04 environment working correctly, I ran "./debian-build-image --prereq" as documented on the build-asuswrt-merlin page.

Once that was complete, running ./debian-build-image AC-RT87U worked like a champ.

Good luck!
Mark
 
Thank you Mark!!
Trying that now.
Did you run apt-get update/upgrade after OS installed?
Could the upgrade might have broke some dependency?

Is this your version of Ubuntu
Ubuntu 14.04.2 LTS (GNU/Linux 3.16.0-30-generic x86_64)

This is much harder than I thought lol..
 
Thank you Mark!!
Trying that now.
Did you run apt-get update/upgrade after OS installed?
Could the upgrade might have broke some dependency?

Is this your version of Ubuntu
Ubuntu 14.04.2 LTS (GNU/Linux 3.16.0-30-generic x86_64)

This is much harder than I thought lol..

I built the VM environment using an ISO downloaded from Ubuntu (Ubuntu Server not Workstation) on 3/24/15 and did do a full apt-get update - updating all security items and upgradable components.

My kernel is slightly newer than yours:

Ubuntu 14.04.2 LTS (GNU/Linux 3.16.0-33-generic x86_64)

Building the environment was pretty straight forward - I literally cut / pasted from the build documentation to install the needed packages (including the extra ones need for the x64 environment). Checked out the code, downloaded debian-build-image, ran it with --preg to get the missing components and that was it.

I don't think any of the upgrades caused an issue - I ran a full compile this morning and it built fine. Again, I'm only building for the RT87U - could be one of the other models might have an issue, which one are you building for?

Thanks!
Mark
 
failed at Netatalk again :-(
I am building for rt87u as well.
Let me try to upgrade the kernel so it matches yours.

Did you also performed this section?
Notes for Ubuntu 13.10 and later
 
failed at Netatalk again :-(
I am building for rt87u as well.
Let me try to upgrade the kernel so it matches yours.

Did you also performed this section?
Notes for Ubuntu 13.10 and later

I only installed the package, I did not do the other steps. Reading the docs on the debian-build-image, it stated "The script takes care of the steps mentioned above for Ubuntu 13.10 and newer." So I didn't run the other commands, I let the debian-build-image script handle it.

Hope this helps!
Mark
 
Thank you for taking the time Mark!!

Upgraded the kernel: <-- this is me grasping for straw
Ubuntu 14.04.2 LTS (GNU/Linux 3.16.0-33-generic x86_64)

still failed at netatalk-3.0.5 :-(

configure.ac:59: error: possibly undefined macro: AC_LTDL_DLLIB
configure.ac:61: error: possibly undefined macro: AC_LTDL_DLSYM_USCORE

don't think install libltdl-dev will help since it should getting it from toolchain?
but giving that a try now.
 
Thank you for taking the time Mark!!

Upgraded the kernel: <-- this is me grasping for straw
Ubuntu 14.04.2 LTS (GNU/Linux 3.16.0-33-generic x86_64)

still failed at netatalk-3.0.5 :-(

configure.ac:59: error: possibly undefined macro: AC_LTDL_DLLIB
configure.ac:61: error: possibly undefined macro: AC_LTDL_DLSYM_USCORE

don't think install libltdl-dev will help since it should getting it from toolchain?
but giving that a try now.
You are probably right - I don't think libltdl-dev will make any difference. The only thing I can think of is to do a hard git reset and make sure you have the latest source:

git --reset hard
git pull

This should give you a clean set of source.

Thanks!
Mark
 
Thanks for all the help Mark!!

TRX Image:
Total Size .... : 38490112 (37588.0 KB) (36.7 MB)
CRC-32 ........ : 925BDB9A
Runtime: 39:36

I guess this is the perfect example of "when you make something idiot proof; I just become better idiot"

Installed the following packages
python-dev autotools-dev libltdl-dev libtool autoconf autopoint intltool

I guess the initial apt-get failed because
automake-1.11 was not found.
weird debian-build-image didn't catch it...
It did installed whole bunch other packages.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top