Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo on relatively small MIPS system
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
luigi.galvani
n00b
n00b


Joined: 23 Mar 2011
Posts: 5

PostPosted: Wed Mar 23, 2011 7:49 pm    Post subject: Gentoo on relatively small MIPS system Reply with quote

Have you ever tried to install Gentoo natively on the system CPU mips24k (in my case Atheros AR7161 680 MHz)? It has 128MB RAM, only 64MB flash, but it has 3xminipci so it should be possible to add a CF card for more disk space ... link to HW information is here. I like gentoo, it occurred to me to try it instead of OpenWRT.
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4121
Location: Houston, Republic of Texas

PostPosted: Wed Mar 23, 2011 7:52 pm    Post subject: Reply with quote

i suppose it could work, though a few things to keep in mind:

-you wont have any nice pretty OpenWRT management interface
-you will probably want to build this on another machine; see this guide for info on cross-compilation : http://www.gentoo.org/proj/en/base/embedded/handbook/
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
luigi.galvani
n00b
n00b


Joined: 23 Mar 2011
Posts: 5

PostPosted: Wed Mar 23, 2011 8:11 pm    Post subject: Reply with quote

thanks for the quick reply. Management interface isn't important for me, nor my current OpenWRT don't have it installed. For crosscompiling I'm ready:

E6410 Henry # gcc-config-l
[1] i686-pc-linux-gnu-4.5.2 *
[2] mips-linux-4.5.2-uClibc *
[3] x86_64-pc-linux-gnu-4.4.4 *
:-)

I would not mind compiling natively on a slow system - I don't care that it will do a few days ... and I can use distcc .. Exists something like "gentoo minimal install CD", but for these cases (only TFTP boot system without :-( serial console)?
Back to top
View user's profile Send private message
Raptor85
Apprentice
Apprentice


Joined: 29 Dec 2007
Posts: 208

PostPosted: Wed Mar 23, 2011 9:09 pm    Post subject: Reply with quote

specwise it's significantly faster w/ more memory than my Cobalt Raq2, my skytone alpha, or my friend's Qube , so it should work just fine....but if you value your sanity do NOT compile directly on it.

the Raq and the Qube we had to netboot using tftp, easiest way to set them up is have ssh start up on boot, the skytone you build a light system and tar it on the root of a SD card. Seeing as what your device is, tftp boot is almost definitely the way to go. MIPS systems in general don't have a standard BIOS interface like x86/AMD64 systems do, so there's no real universal boot cd's, each manufacturer is a bit different in how you do an install. Check the MIPS guide here, it's mostly for Cobalt/SGI systems but much of it may apply http://www.gentoo.org/doc/en/handbook/handbook-mips.xml?part=1&chap=2
Back to top
View user's profile Send private message
blueness
Developer
Developer


Joined: 25 Nov 2009
Posts: 25
Location: Buffalo, NY

PostPosted: Mon Apr 04, 2011 9:56 pm    Post subject: Re: Gentoo on relatively small MIPS system Reply with quote

luigi.galvani wrote:
Have you ever tried to install Gentoo natively on the system CPU mips24k (in my case Atheros AR7161 680 MHz)? It has 128MB RAM, only 64MB flash, but it has 3xminipci so it should be possible to add a CF card for more disk space ... link to HW information is here. I like gentoo, it occurred to me to try it instead of OpenWRT.


I have a two working installations of gentoo on Atheros AR7161 680 MHz based boards. They are both uclibc. The first is on some Mikrotik boards, 433AH 433UAH and 450G. For those, I used a technique of bootstrapping into the filesystem house on a different box via NFS. I discussed that here -> http://opensource.dyc.edu/mips-devel I did it for debian first and then switched to gentoo-uclibc. I built that chroot starting from a buildroot env and boostrapping up. However, the NFS rootfs technique is now failing because portage introduced locking which breaks over NFS.

The other is using a RouterStation by Ubiquity. There I have the filesystem on a SD card and I chroot in after ssh-ing into the OpenWRT env. Its working nicely and I use it as a development environment, BUT becareful because updating the toolchain will likely break something.

If your interested I can pass this stuff onto you.
Back to top
View user's profile Send private message
tomk
Administrator
Administrator


Joined: 23 Sep 2003
Posts: 7219
Location: Sat in front of my computer

PostPosted: Tue Apr 05, 2011 10:34 am    Post subject: Reply with quote

Moved from Installing Gentoo to Gentoo on Alternative Architectures as it fits better here.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
flameman
n00b
n00b


Joined: 10 Apr 2011
Posts: 44

PostPosted: Thu Apr 14, 2011 7:17 pm    Post subject: Reply with quote

hi
i am planning to buy and develop a ram rootfs for "UBIQUITI Routerstation Pro"
very interesting peace of hw

=P
Back to top
View user's profile Send private message
flameman
n00b
n00b


Joined: 10 Apr 2011
Posts: 44

PostPosted: Mon Sep 05, 2011 1:00 pm    Post subject: Re: Gentoo on relatively small MIPS system Reply with quote

[quote="blueness"]
luigi.galvani wrote:
Have you ever tried to install Gentoo natively on the system CPU mips24k (in my case Atheros AR7161 680 MHz)? It has
If your interested I can pass this stuff onto you.



are you still around ? i have routerstation/pro by ubiquiti
i am having a bit of issue with
- mmc/sd
- mtd

are you able to boot your board with a yourown kernel ? or you are just using the openwrt on and than chroot ?

here i am able to boot with a kernel of mine (2.6.32, and 2.6.39), i can manage the pci address space and register a pci-multi-uart card
but the mmc/sd and the mtd are not working
Back to top
View user's profile Send private message
blueness
Developer
Developer


Joined: 25 Nov 2009
Posts: 25
Location: Buffalo, NY

PostPosted: Tue Sep 06, 2011 6:12 pm    Post subject: Re: Gentoo on relatively small MIPS system Reply with quote

flameman wrote:


are you still around ? i have routerstation/pro by ubiquiti
i am having a bit of issue with
- mmc/sd
- mtd

are you able to boot your board with a yourown kernel ? or you are just using the openwrt on and than chroot ?

here i am able to boot with a kernel of mine (2.6.32, and 2.6.39), i can manage the pci address space and register a pci-multi-uart card
but the mmc/sd and the mtd are not working


I chroot only on the RouterStation. On the Mikrotik both boot my own kernel and build my own userland. Look at the patches openwrt is using, there may be something in there to make both the mmc/sd and mtd work. Post back here if you find anything.
Back to top
View user's profile Send private message
flameman
n00b
n00b


Joined: 10 Apr 2011
Posts: 44

PostPosted: Tue Sep 20, 2011 1:26 pm    Post subject: Reply with quote

i have hacked a 2.6.39 vanilla kernel that is now working for routerboard/pro
- usb mass storage is working
- mmc/sd over spi is working (with scsi emulation)
- prom parameter integrated (board choiche fix)

unfotunately i have stll issue with mtd
so i can't see the any partition =(

also there a lot of issues with (mini) pci bus
i have a 4 serial device on that bus that causes bad aligment issues
dunno why, i have to investigate
Back to top
View user's profile Send private message
flameman
n00b
n00b


Joined: 10 Apr 2011
Posts: 44

PostPosted: Sun Sep 25, 2011 3:21 pm    Post subject: Reply with quote

Quote:

[ 6.300000] ipw2100: Intel(R) PRO/Wireless 2100 Network Driver, git-1.2.2
[ 6.300000] ipw2100: Copyright(c) 2003-2006 Intel Corporation
[ 6.310000] ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.2.2kdq
[ 6.320000] ipw2200: Copyright(c) 2003-2006 Intel Corporation
[ 6.320000] ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
[ 6.330000] PCI error 1 at PCI addr 0x10000024
[ 6.330000] Data bus error, epc == 80265488, ra == 802706f0
[ 6.330000] Oops[#1]:
[ 6.330000] Cpu 0
[ 6.330000] $ 0 : 00000000 00000000 deadc0de 20000000
[ 6.330000] $ 4 : 87aeae9c 00000024 00000001 000000fa
[ 6.330000] $ 8 : 00000000 801d7f90 00000000 00000000
[ 6.330000] $12 : 00000000 00000000 00000000 726b2043
[ 6.330000] $16 : 00000000 80550000 87aeae9c 00000024
[ 6.330000] $20 : 00000001 80550000 08000000 000000fa
[ 6.330000] $24 : 00000000 802102c0
[ 6.330000] $28 : 87816000 87817bc0 07ffff00 802706f0
[ 6.330000] Hi : 0000001c
[ 6.330000] Lo : 00000000
[ 6.330000] epc : 80265488 0x80265488
[ 6.330000] Not tainted
[ 6.330000] ra : 802706f0 0x802706f0
[ 6.330000] Status: 1000f403 KERNEL EXL IE
[ 6.330000] Cause : 1080001c
[ 6.330000] PrId : 00019374 (MIPS 24Kc)
[ 6.330000] Modules linked in:
[ 6.330000] Process swapper (pid: 1, threadinfo=87816000, task=87818000, tls)
[ 6.330000] Stack : 80550000 87aeae7c 804a8964 804ad040 87aeae7c 87aeae80 870
[ 6.330000] 87aeae7c 804a8964 87aeae9c 803f5900 87aeae80 87aeae80 000
[ 6.330000] 00000000 00000000 80500760 87805a04 87817cb8 87817cbf 87c
[ 6.330000] 87aea003 00000002 87aea005 00000010 87b8a980 801d6d74 870
[ 6.330000] 00000000 801d52c8 00000002 0000000a ffffffff ffffffff 00f
[ 6.330000] ...
[ 6.330000] Call Trace:[<802706f0>] 0x802706f0
[ 6.330000] [<801d6d74>] 0x801d6d74
[ 6.330000] [<801d52c8>] 0x801d52c8
[ 6.330000] [<80273220>] 0x80273220
[ 6.330000] [<802efe44>] 0x802efe44
[ 6.330000] [<8012c6d4>] 0x8012c6d4
[ 6.330000] [<802effb4>] 0x802effb4
[ 6.330000] [<802f02f8>] 0x802f02f8
[ 6.330000] [<803ae938>] 0x803ae938
[ 6.330000] [<8012e170>] 0x8012e170
[ 6.330000] [<801ec6e4>] 0x801ec6e4
[ 6.330000] [<8021c258>] 0x8021c258
[ 6.330000] [<8012d984>] 0x8012d984
[ 6.330000] [<8021c56c>] 0x8021c56c
[ 6.330000] [<803a9c40>] 0x803a9c40
[ 6.330000] [<801cf2e8>] 0x801cf2e8
[ 6.330000] [<8021c68c>] 0x8021c68c
[ 6.330000] [<8021b210>] 0x8021b210
[ 6.330000] [<8021c620>] 0x8021c620
[ 6.330000] [<8021b570>] 0x8021b570
[ 6.330000] [<801cf7ec>] 0x801cf7ec
[ 6.330000] [<8021bd94>] 0x8021bd94
[ 6.330000] [<8021cac0>] 0x8021cac0
[ 6.330000] [<8012d15c>] 0x8012d15c
[ 6.330000] [<801ec964>] 0x801ec964
[ 6.330000] [<803b0368>] 0x803b0368
[ 6.330000] [<805147d8>] 0x805147d8
[ 6.330000] [<80210c80>] 0x80210c80
[ 6.330000] [<805146fc>] 0x805146fc
[ 6.330000] [<80514798>] 0x80514798
[ 6.330000] [<800609bc>] 0x800609bc
[ 6.330000] [<80125658>] 0x80125658
[ 6.330000] [<800b4414>] 0x800b4414
[ 6.330000] [<80502978>] 0x80502978
[ 6.330000] [<802a9e8c>] 0x802a9e8c
[ 6.330000] [<80063c00>] 0x80063c00
[ 6.330000] [<805028bc>] 0x805028bc
[ 6.330000] [<80063bf0>] 0x80063bf0
[ 6.330000]
[ 6.330000]
[ 6.330000] Code: 8e420000 00531021 8c420000
[ 6.330000] 1054000e 2411000a 0809952a 2631ffff 0c075e14
[ 6.330000] Disabling lock debugging due to kernel taint
[ 6.620000] Kernel panic - not syncing: Attempted to kill init!
[ 6.630000] Rebooting in 0 seconds..+



it seems the pci bus has a lot of issue


see also this

https://forum.openwrt.org/viewtopic.php?pid=136865
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