LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > In The Middle Of Nowhere [edK's blog]
User Name
Password

Notices


In The Middle Of Nowhere

Life, universe and everything...
--
Blog title (C) Orbital
Rate this Entry

fun around MIPS: qemu-system-mips

Posted 11-06-2010 at 10:33 PM by Web31337
Tags arm, mips, nginx, qemu

Yesterday I was surprised when discovered that,... ehm, well... I'm such a newbie in this... that most routers using MIPS not ARM CPU as I thought before
Since that, I've also tried to look at MIPS in QEMU. There is even less information about this, though debian to help I was surprised I've missed it last time when doing experiments with qemu-system-arm, but now it's very helpful with qemu-system-mips.
I used aurel32's page as a start point: http://people.debian.org/~aurel32/qemu/mips/
It went really good, I booted into lenny with no problems, then I've updated packages in that disk image and my next stop was this: http://ftp.us.debian.org/debian/pool/main/l/linux-2.6/
As you can see, debian provides ready-to-use kernel images for most systems, even versatile ARM I didn't see it when experimenting with qemu-system-arm.

So, my first uname -a looked like:
Linux debian-mips 2.6.26-1-4kc-malta #1 Sat Jan 10 21:18:48 UTC 2009 mips GNU/Linux
And now it looks this way:
Linux debian-mips 2.6.36-rc6-4kc-malta #1 Wed Oct 6 07:41:36 UTC 2010 mips GNU/Linux
Not most recent, though prettier than one from 2009

As usual, I set up gcc and built nginx. Comparing with ARM in qemu (256M) the results for building nginx 0.8.53 with the following configure line:
Code:
--conf-path=/etc/nginx/nginx.conf --error-log-path=/usr/local/nginx/logs/error.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-log-path=/usr/local/nginx/logs/access.log --http-client-body-temp-path=/var/lib/nginx/body --with-http_ssl_module --http-proxy-temp-path=/var/lib/nginx/proxy --with-http_stub_status_module --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --without-http_ssi_module --without-http_browser_module --with-file-aio --without-http_scgi_module
are:

Code:
real	24m6.628s
user	23m22.032s
sys	0m43.867s
for mips 2.6.36-rc6, gcc 4.3.2, debian
and
Code:
real	14m13.772s
user	12m5.420s
sys	2m5.530s
for arm, 2.6.34.7, gcc 4.4.3, gentoo

I don't really know what I'm doing... I mean why, I guess I'm just a bit crazy so always looking for something new to me in order to try that and share some successful results
Guess I'll append real P1-200 mhz results for building nginx here a bit later
Posted in etc, hardware
Views 3603 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 05:58 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration