MIPS and QEMU

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
Tapti
Posts: 7
Joined: Mon May 23, 2011 9:13 am
Location: India

MIPS and QEMU

Post by Tapti »

Hi,

I'm considering developing an OS for MIPS architecture (not yet decided on the platform). I don't intend to go out and buy a development board, yet, so QEMU is my immediate choice. Just curious if anyone has tried it before? Are there any insurmountable challenges along the way?

Btw, this is a hobby project and I chose MIPS because I wanted a RISC processor (please - no debates on RISC v/s CISC :P )

Is developing on MIPS drastically more difficult than developing on ARM (ARM being more popular)? I have read through the MIPS documentation and read the books ... and I'm decently comfortable with the architecture.

Thanks,
Tapti.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: MIPS and QEMU

Post by Combuster »

Besides ARM, processors with RISC designs in common use are far and few between. Finding a real MIPS machine with a similar configuration to what QEMU provides will be difficult, and probably even more so will be finding the few bits of hardware documentation that do exist.

It is not an insurmountable challenge, but from experience the vast majority of people lack the patience, skill and google-fu to get somewhere meaningful.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Tapti
Posts: 7
Joined: Mon May 23, 2011 9:13 am
Location: India

Re: MIPS and QEMU

Post by Tapti »

:(

After spending days trying to get it working on MIPS, I'm starting to agree with you. Which means switching to ARM, since I want a RISC processor.

But I still feel MIPS is one of the simplest and cleanest architectures around. Though there must be reasons why MIPS isn't as popular as ARM.

Thanks for the help, :)
Tapti.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: MIPS and QEMU

Post by Combuster »

If you don't mind getting rid of QEMU, "homebrew" is a very useful google query for the vast majority of architectures - MIPS included. :wink:
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Kazinsal
Member
Member
Posts: 559
Joined: Wed Jul 13, 2011 7:38 pm
Libera.chat IRC: Kazinsal
Location: Vancouver
Contact:

Re: MIPS and QEMU

Post by Kazinsal »

The closest thing there is to a massively-available MIPS box is the PlayStation 2 (its Emotion Engine CPU implements MIPS-III and a fair bit of MIPS-IV). Or, if you fancy shipping from Japan, there's always Sony's PS2-based DVR that failed. Either way, you'd have to learn how to do homebrew for the PlayStation 2, which QEMU doesn't emulate. Thankfully there are decent PS2 emulators out there these days, but they're quite resource-intensive and not necessarily accurate.
OSwhatever
Member
Member
Posts: 595
Joined: Mon Jul 05, 2010 4:15 pm

Re: MIPS and QEMU

Post by OSwhatever »

Tapti wrote:Though there must be reasons why MIPS isn't as popular as ARM.
ARM has been very good at providing their customers support, comprehensive tools, peripheral IPs and development aid. They simply provide a good range of support so that the customers can develop their systems as planned. Also, ARM is like an established standard in the embedded world, there are loads of engineers who know ARM processors which often leads to that they choose ARM.
User avatar
xenos
Member
Member
Posts: 1118
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

Re: MIPS and QEMU

Post by xenos »

I used to play around with an ET9000, which is a DVB-S receiver based on Broadcom's BCM7405, and even wrote a simple Hello world! example for it. Playing around with MIPS can certainly be fun, once you have some platform for testing your code. But I agree with the others that ARM seems to be more common these days.
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Re: MIPS and QEMU

Post by Brynet-Inc »

There are a lot of MIPS devices on the market these days, you might find OpenWrt wiki/forums a useful source of information, you can usually find serial pinouts.. SoC information, occasionally enough references to find a datasheet with some google fu.

WikiDevi is also handy to search for devices, and other information.
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
xenos
Member
Member
Posts: 1118
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

Re: MIPS and QEMU

Post by xenos »

Brynet-Inc wrote:WikiDevi is also handy to search for devices, and other information.
Why didn't I know this before? This site looks great, I've been looking for something like this for years!
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
Lucretia
Posts: 7
Joined: Sat Jan 29, 2011 2:30 pm
Contact:

Re: MIPS and QEMU

Post by Lucretia »

You could always go for a smaller embedded OS and use a chipkit board which uses a PIC32 which is MIPS.

And yes, I think MIPS is easier than ARM, by a long way.

Also, there's no reason why you can't just use QEMU or some other MIPS simulator to start on. There are a ton of ols SGI machines out there that would suffice, an Indy? Full docs are available for them.

Luke.
Post Reply