Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Buid OpenWRT in Gentoo way?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fpemud
Apprentice
Apprentice


Joined: 15 Feb 2012
Posts: 281

PostPosted: Mon Nov 14, 2016 8:38 am    Post subject: Buid OpenWRT in Gentoo way? Reply with quote

I'm going to build a x86 home router.

Is it doable that I build and install OpenWRT in Gentoo's way? For example to write ebuild for each OpenWRT component.
I don't like building OpenWRT image on another machine and flash it into the target machine.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Mon Nov 14, 2016 12:04 pm    Post subject: Reply with quote

I'm not sure if I understood your question completly.

Yes you may build software on your gentoo box.
Yes you may create ebuilds to automate those software building process.
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1764

PostPosted: Mon Nov 14, 2016 8:41 pm    Post subject: Reply with quote

And yes, you can build the image using your router, but it's gonna take ages, so you better stop here, take a step back, and go towards "cross compilation" instead
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5922

PostPosted: Tue Nov 15, 2016 6:15 am    Post subject: Reply with quote

If it's x86 there's not much to be gained from OpenWRT, its main advantage is installing on ARM systems with 4MB of storage and difficult hardware.

You might even find it easier to build Gentoo the OpenWRT way (build on a host to separate root, package it all up on squashfs/jffs, transfer that fs image to the target).
Back to top
View user's profile Send private message
fpemud
Apprentice
Apprentice


Joined: 15 Feb 2012
Posts: 281

PostPosted: Tue Nov 15, 2016 8:36 am    Post subject: Reply with quote

To be clear, I'd like to build OpenWRT on the router.

Generally, you should build OpenWRT on another machine and flash the image into the router.
I don't like this process.

I'd like to install Gentoo on the router first, then build and install OpenWRT component on the router just like installing gnome.
My home router does more than routing, so it would be power enough.

OpenWRT is sophisticate, I don't think I'm good at messing with the configuration of dnsmasq etc.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum