Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo on a Linksys WRT310N
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1224
Location: Jefferson, USA

PostPosted: Thu Apr 29, 2010 2:21 pm    Post subject: Gentoo on a Linksys WRT310N Reply with quote

Is this doable? I'd need to use uclibc. The router is MIPS-based. Can I make a MIPS image that goesn't have GCC, Portage, and other large things on it?
Back to top
View user's profile Send private message
Mousee
Apprentice
Apprentice


Joined: 29 Mar 2004
Posts: 291
Location: Illinois, USA

PostPosted: Thu Apr 29, 2010 3:16 pm    Post subject: Reply with quote

At first it looks do-able. Typically, so long as you can attach some form of additional storage device to it (ie. SD Memory Card or similar), you could toss your kernel and initrd image into FLASH memory and boot into Linux that way. Your problem however would be the small flash memory size that particular device has: only 4 megs. The kernel alone will probably take up at least that much space. If you can find a way around that then it might be possible. It does support the minimal and regular "dd-wrt" images so I can't imagine it's "impossible" - just a lot more work than it's worth.
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1224
Location: Jefferson, USA

PostPosted: Thu Apr 29, 2010 3:22 pm    Post subject: Reply with quote

Yeah I really want it, though.

My understanding is that you're supposed to setup a chroot environment and put the file system there. So I'd probably just build a VM for the cross development stuff. It seems like I'd maintain this chroot and then make a script that strips un-needed stuff out of it (Portage, Python, etc.) and then makes it into a bin image.

Anyone tried this?
Back to top
View user's profile Send private message
beandog
Developer
Developer


Joined: 04 May 2003
Posts: 2007
Location: /usa/utah

PostPosted: Thu Apr 29, 2010 3:47 pm    Post subject: Reply with quote

http://www.gentoo.org/proj/en/base/embedded/handbook/

Good luck
_________________
If it ain't broke, tweak it. packages | dvds | blurays | blog | home
Back to top
View user's profile Send private message
beandog
Developer
Developer


Joined: 04 May 2003
Posts: 2007
Location: /usa/utah

PostPosted: Thu Apr 29, 2010 3:49 pm    Post subject: Reply with quote

wswartzendruber wrote:
It seems like I'd maintain this chroot and then make a script that strips un-needed stuff out of it (Portage, Python, etc.) and then makes it into a bin image.


Look into emerge -K and quickpkg, since that's what they do.
_________________
If it ain't broke, tweak it. packages | dvds | blurays | blog | home
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures 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