NetBSD Progress On Sega's Dreamcast
See below for a sample dmesg output,
Please stay tuned for more information!
- Hubert Feyrer, The NetBSD Project
Copyright (c) 1996, 1997, 1998, 1999, 2000
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 1.5_ALPHA (DREAMCAST) #8: Fri Jul 14 01:42:14 JST 2000
msaitoh@vslock.xxx.yyy:/var/sources/src/sys/arch/evbsh3/compile/DREAMCAST
total memory = 16384 KB
avail memory = 12988 KB
using 230 buffers containing 920 KB of memory
mainbus0 (root)
shb0 at mainbus0
scif0 at shb0 port 0xffe80000-0xffe8000f irq 12
scif0: console
biomask c0000000 netmask c0000000 ttymask e0000000
md0: internal 1440K image area
rn_init: radix functions require max_keylen be set
boot device:
root on md0a dumps on md0b
cannot mount root, error = 22
root device (default md0a):"
Of course, what you do with a Dreamcast running NetBSD is up to you. Errr ... just what could you do with a Dreamcast running NetBSD?
Now all we need is a Dreamcast emulator running on NetBSD running Dreamcast :)
Well, I *could* build a mountain of mashed potatoes and call it Mount Spudmore, but is that a good reason to do it? Hell no.
You port bee-es-dee
to another game console.
Now go get a life.
Sheesh.
A netbsd port to dreamcast would be ideal for people to learn *nix and open source really easy.
It'd be *nix for dummies.
Just pop in the netbsd CD (dreamcast does run on CD's does it ? I don't know for sure) and you're off. The users could mess with the system all they'd want. On the next reboot of the dreamcast you'd have a fresh install again.
And I know you could do this with a PC too. But then you'd have to build a VERY generic kernel, or several ones depending on the PC config. The single dreamcast platform is so much simpler to make a distro for.
Gandhi drank urine every morning and was obsessed with feces -- is he really the expert to be quoted on when it comes to civilization??
--
Irina Romanov
Irina Romanov
NetBSD was able to get their code bootstrapped due to a programming backdoor left in by Sega which lets the console be started from the second session of a standard CDROM, as opposed to sega's proprietary GDROM format. This was the same method used by the Gameshark CDX disc. Unfortunately, due to recent innovations using this boot method, Sega is rumored to be phasing out the backdoor in the newest releases of the Dreamcast to keep third-party developers happy.
Anyway, I hope Sega gets themselves in gear and releases the Dreamcast NIC sometime soon. Then all we need is a NetBSD-based distributed.net client disc.. ;>
Check out Marcus Comstedt's site for more tasty tidbits about Dreamcast programming.
Not that this is likely to work too well with a DreamCast unit; I suspect they don't do DSL...
If you're not part of the solution, you're part of the precipitate.
Those factors would likely make such a unit pretty useful as a "cheap terminal," rather like the $200 Think NIC units.
Unfortunately, I suspect the cost and effort would outweigh the cost of a Think NIC, meaning that while the concept is still a "cool hack," it's not a terribly practical one...
If you're not part of the solution, you're part of the precipitate.
Unfortunately, more hardware costs more money, so that the Dreamcast + NIC + more RAM (of some form) is liable to put the pricetag way past that of the rather similar Think NIC that already has the "more RAM" and the NIC.
If you're not part of the solution, you're part of the precipitate.
Of course, what you do with a Dreamcast running NetBSD is up to you. Errr ... just what could you do with a Dreamcast running NetBSD?
Nethack.
Xpilot...
--
The DC controler ports are pretty fast. I had a thery that they were USB, but after reading more I don't think they are, they are "only" around 3Mbits/sec each. The modem module can be remoed, and an ethernet can be pluged in (if they ever start selling it) which might make the DC a useful MP3 player. A Zip drive (with USB ports) can also be hooked up (I'm unclear on how).
So it's a bit limited as a Unix box, but not toatally worthless.
Besides with NetBSD on it I could play nethack on it, which somehow appeals to me :-)
This is not true. I travelled to Japan in Early June. I asked the customs officer if the Sony Playstation 2 had any export controls on it, since I was thinking of buying a few to bring back to the US. He told me that no, there were no export controls on it. That the whole thing was some confusion at central government and was cleared up within two days. He also told me that I'd only have to worry about import issues on the country I was bringing them into.
He didn't come out and say it, but some of my Japanese friends did. It was just a ploy by Sony to make the playstation sound really cool.
Oh, there is one last issue with taking a PS2 out of Japan. Sony will not honor the warantees on these units outside of Japan. At least that's what I was told by my Japenese friends. That was a deal killer for me.
ObOnTopic: I think that the port to dreamcast is way cool. Look at how useful the NetBSD/hpcmips port is for the WindowsCE machines that are now being dumped on the market cheaply.
I'd love to see some proof of this. An url would be nice.
This sig is false.
Let me comment on the export ban by the Japanese government on the PS2 by stating categorically that it was a move planned at SOny and only incidentally carried out by the government. It had nothing to do with whether the PS2 could be used for a weapons system and everything to do with whether third parties could export it independently to the US and other countries for resale. F'chrissakes, they allowed people to take a maximum of one out of the country; how many do terrorists using that kind of technology (if there are any) need to reverse engineer it?
One other thing: It's a well-known fact in Japan that the ban will be lifted just a little earlier than the US release of the PS2.
dude that is a serial port
precisely...dude needs to lay off the cnn/c-span
i mean damn
(Now that word I like!)
It's about a cool hack for the hell of it. I already bought the thing so that I could play games. The only people who would do this are hackers anyhow. You wanna cheap terminal? Go get an old VTxxx and a long serial cable.
Blar.
Linux running on the Dreamcast was demoed at a recent LinuxUserGroup meeting in the Tokyo area.
Though there was no shell yet, but the kernel booted and could be manipulated via the VS. communication cable. Quite impressive.
Slightly offtopic, but Tucows opened a BSD section now. Find it here.
Just in case...
-- It's always darker before it goes pitch black.
Only thing is, some other human being didn't put the mountain there...
Nerd rage is the funniest rage.
There is the doom/ps util. Allows graphical "admin" of a box. Be vewy vewy quiet, I'm hunting your wogin shell...
Check it out.
Of course a BSD port of a more modern game would be needed, but I think a few Internet-Enabled-Rocket-Launcher applications could be very popular...
-- http://thegirlorthecar.com funny dating game for guys
I've been doing a bit of work putting linux on the N64 because they are the cheapest platform I can find. Most of the hard work is done since GCC for it is here but there is lots to do. I want to get the thigns to talk to each other over their high speed serial controller interface but I don't have any docs and all the sample code just isn't abuseing the hardware that way.
I figured that a cost of about AU$200 (thats about US $130) per machine, you could build a large cluster of 64 bit machines.
At least with dreamcast you won't need a custom cartrage but at least with a custom cart, there is room for a fast I/O device.
Well, I *could* build a mountain of mashed potatoes and call it Mount Spudmore, but is that a good reason to do it? Hell no.
_I'd_ check it out, if you took some snapshots and put it up on the web. And you could probably make slashdot quickies with something like that.
Heck, if you were Canadian, there'd probably be some sort of Can-Con art grant you could get, and tons of PEI farmers would donate the 'materials'.
[/me gets to thinking]
Adam
ChainSaw Linux
I've heard that Linux on SH is further along in terms of booting to console then NetBSD is. I also have a Linux bias, but I'm willing to try out NetBSD when I get my stuff together. I've been wanting to try out FreeBSD as a devel. platform for a while now, just haven't had the time or motivation ;P.
SDL is the Simple Direct media Library at libsdl.org. It's a small, low-level (but it sits over X, the frame buffer, GGI, DirectX, etc.) multimedia library that is responsible for most of Loki's ports to Linux.
Marcus
I don't really agree with some of the other posts which say this is limited to serving content or security, I see the advantages of this is increasing the ability to port *nix games and to be able to develop for multiple platforms at once.
I'm pushing for Linux to be ported to the DC, because then we can have a port of OpenGL (I hear the PowerVR2 supports it natively), and SDL (which AFAIK has been ported to FreeBSD) among other things. Just porting OpenGL and/or SDL would allow QuakeForge to be compiled for DC with probably little to no modifications. With a ppp driver in the kernel (or on a ramdisk if you prefer) you will have netplay for these types of games with a *minimum* of porting effort. Any linux games that don't require X (unless you want to port X, but why??) could be ported, off the top of my head I can think of xmame, lsdldoom, just to name some obvious ones.
Here's what I thought needed to be done:
Get the linux kernel up and running with a console on the serial port.
Allow the kernel to load a ramdisk from a CDR.
Write an accel. frame buffer to access the DC's frame buffer.
Impose certain constraints on the dev. system since this is a *console* and not an athalon w/ 128MB ram. One constraint would be instead of porting glibc, use newlib instead (is this even possible?). This would eliminate the majority of command-line Linux utils, but why would you want these anyway?
Port SDL using the frame buffer, I have no clue about OpenGL though.
This would replace WinCE as a devel. system, and allow broke college students such as myself to go nuts with the DC. Third-party developers might even be interested in this.
Marcus
If a substantial portion of people/companies go out and buy 100+ machines each for their own compute farms, the manufacturers are going to eventually notice that the ratio of games bought to consoles sold is declining. At some point they will attempt to prevent non-game (or really, non-royalty generating uses of their hardware. Kind of like the whole i-opener fiasco.
However, there is probably a point up to which the manufacturers are happy to have unix ported because it will increase their raw sales figures, and act as an incentive for game development companies, whose suits would never conceive of the idea that a console might be used for something other than gaming, to port to the console.
When information is power, privacy is freedom.
I give up...
:-(
A few months ago I hoped that one day I will have at least one machine of every port NetBSD runs on (except pc532 wich is just too rare), but they are too fast for me.
By the way, how soon after the introduction of the PS2 will we be seeing network cards for them?
Don't need'em. PS2 has USB and firewire ports. Just plug in a USB ethernet adaptor or modem. When PS2 will support ethernet or a modem is a different question.
// TODO: fix sig
turn any TV into a desktop, you don't even need a VGA monitor.
An intriguing idea, what about the resolution issue? Text that is normal-sized and easy to read on a desktop monitor will become incomprehensible on the average TV.
-J
Karma: T-rexcellent.
I am always impressed when NetBSD makes it to another platform.
It is the sole reason that a number of hardware platforms are still viable.
Good work, guys!
--
Max V.
There should be a moratorium on the use of the apostrophe.
Max V.
NeXTMail/MIME Mail welcome
Seth
$5 / month hosted VPS on linux = awesome!
That was 29 years before Hillary and Tenzing.
-- "I can't tell the future, I just work there." -- The Doctor
Now back to porting OpenBSD to a games platform...so consider this overtly paranoid scenario that might just scare the pants off export authorities:
Games platform with massive graphics processing power + OpenBSD = Massively secure and un-crackable* encrypted system for controlling nuclear weapons from so-called rogue states!
(*some may argue that OpenBSD merely creates this illusion)
Now wouldn't that be an amusing thought!
-- "I can't tell the future, I just work there." -- The Doctor
Have you seen Dextrose for the N64? great place to find assemblers, compilers, and sources for writing stuff for the N64.
kick some CAD
What strikes me as amazing is that I know a couple of guys who ran out of machines and where running out of time during a render for a film production. These little boxes just happened to be a cheap way to get renders kicking! Now, nothing like seeing a render farm of dreamcasts?!
kick some CAD
You can do that with RedHat :) You can install over NFS, FTP, or HTTP (maybe others).
BTW, you will love FreeBSD (my OS of choice) as soon as you work out its differences. In FreeBSD there are man pages for everything including kernel modules. I have a USB mouse that I couldn't get working at first, I got frustrated looking for HOW-TOs (as I would in linux) then typed `man usb' and voila, up came how to get it working, then a `man ums' for the specifics of usb mice.
He who knows not, and knows he knows not is a wise man
People are typing that this cannot be useful in any way, but I say that is completely false! Obviously the reson to port BSD to the dreamcast is so that they can then port Nethack to that platform. The NetBSD folks realize that the Dreamcast is a gaming platform, and they will treat it as such.... why with fortune, nethack, and hunt on there (for the multiplayer experiece) this could be sold as dreamcast software in stores.
He who knows not, and knows he knows not is a wise man
Think about what porting an open BSD or Linux over to a closed, proprietary console system does:
It opens the console.
All of a sudden, you've got an open, cheap, extensible platform. It's got sound, it's got video output to TV or VGA, it's got a CD-ROM drive, it's got a modem, it's got a keyboard, and it's got the possibility for further expansion through the serial port, as well as swapping out the modem for an ethernet card in the future.
You could port VNC to it under GGI or SVGALIB or even plain old X, and turn any TV into a desktop, you don't even need a VGA monitor.
Take it one step further, and now it's a cheap network computer or thin client, with a light word processing app, web browser, and solitaire game on a free ISP like NetZero or whatever.
Or maybe it's an MP3 player stereo component with an on-screen interface and cool visualization options. Hell, it'd fit great in your car.
Or let's take this as far as you can go. Why not port something really massive to it? Say, something like the Unreal engine. There are projects out there like Digitalo's Virtual Reality Notre Dame Project, where you can tour giant heritage structures like the Notre Dame de Paris Cathedral in full 3D, led around by a virtual tour guide, and teach kids things they'd never otherwise learn. Porting the engine to the Dreamcast (there's already an x86 Linux and PSX2 port) would give you a $199 learning console that plugs right into the TVs most schools already have (moreso than computers), and suddenly gives them classroom access to more power and technology than any PC initiative ever did. From light web browsing to 3D learning applications, a BSD port to the Dreamcast could make dreams of computers in the classroom real.
Disclaimer: Yeah, I'm an engine licensee, producing 3D tours using the engine with my Unrealty product. But I want to see a cheap platform for them as much as any teacher who's seen the potential for such a thing.
--Vito
1. mountain
.oO0Oo.
2. you'll be able to pick 'em up for $30 soon enough
3. you need inspiration
There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
Although cool, I cant really see the point of doing this. Too much bloat for no real improvement in overall performance and the security aspects are pretty much mute.
More race stuff in one place,
than any one place on the net.
6. Seasoned Sysadmins These users have grown up and do not feel it necessary to pigeonhole the rest of the users on the networks and servers they administer. They do not feel compelled to quote the jargon file or write in threeleet-speak in order to impress their peers.
I have read many above questioning porting NetBSD for the Dreamcast. If nothing else, would the developers 'selfish intrests' in an excellent computer science exercise justify their actions?
Quit the bitching!
Kyle Gibbons
Had someone ported linux to the dreamcast people would be spouting off about its new million and one uses. Since NetBSD has been ported its like "oh well BSD is ported to another arch".
Only the State obtains its revenue by coercion. - Murray Rothbard
Of course, what you do with a Dreamcast running NetBSD is up to you. Errr ...
just what could you do with a Dreamcast running NetBSD?
Nethack.
Yeah, the shitty dreamcast broswer could be replaced
with mozilla on NetBSD.
FYI, the Japanese (at lest the original ones) have 33.6 kbps modems. The US ones have 56kbps modems.
While a port of NetBSD to the Dreamcast platform seems frivolous right now, in a few years, when it has been replaced by the next generation of gaming consoles, instead of adding it to the local landfill, the owner will be able to set it up as an Internet console or low volume web server or any of several other tasks it would suited for.
But perhaps the best reason of all for porting an OS to an unconventional hardware platform is because they could.
I call it 'mountain climber' logic.
Knunov
Why do users with IDs under 100,000 or over 700,000 usually have the most worthwhile comments?
It doesn't have a network card (only a 33.6 kbps modem).
One is coming out by the end of summer. They have already said it will be DSL and cable-modem compatible.
Josh Sisk
If Sega come up with a easy way to add 10baseT to the system then NFS and another server turns it into a quite interesting.
There is a NIC coming out, release date is somewhere near the end of summer.
I agree the playstation 2 makes a much more capable target, particularly with USB and PCMCIA.
I believe they have dropped the PCMIA slot to make room for the drive bay. I'm not 100% sure of this, however.
Josh Sisk
Is anyone else as impressed by how much time this guy spends posting all this stuff? What a loser.
Get of the computer man, and step outside. See that bright, yellow light? That's the sun.
Josh Sisk
The hardest question is what are you going to do with such a machine? Beowolves? Internetting? Or play? But then, playing is much better from it's Original OS, isn't it?
Thus, what has been proven once again about the NetBSD and all the *nix community:
1. It CAN be ported to Dreamcast
2. It is not very useful, when ported.
Conclusion: Once a game machine, always a game machine. End of story.
Yes, Dreamcast could make a nice terminal, although working with a TV on low resolution can be rather unpretty. If used for research purposes only, it could make some students happy. From the marketing point of view, Dreamcast platform has much less to offer then a PS2. If you get a PS2 with usb network card, keyboard, boot it up with a linux port - voala, there you have a very powerful machine, ready to go online with your cable modem or ADSL. Giving people a fully working Linux box would bring all those crazy gamers in the world of Unix. And if the PS2 distro has minimum bugs, they'll love it!
this is really cool.
now I'm gonna have to get
a friggin' dreamcast!
So porting *BSD doesn't count as OSS innovation? What does, then? Writing apps *primarily* for Linux?
Come on. Part of the OSS spirit is doing something "because we can." That's why you see systems like Linux and *BSD being ported to hardware that, generally, makes no sense from a practical point of view. Can there be a point to this? I dunno; I'd have to get a look at a Dreamcast and at what you can do with this *BSD before I say "sure." But it sounds like a fun project, that's for sure.
Whats this got to do with porting to the DC? Its clear from your posting you have NO IDEA what open source software and MP3.com are about. MP3.com is a place where unsigned or little- known artists ( such as www.mp3.com/elementuk ) can get free promotion for their band by giving away songs on the site. There is absoloutely NO pirate music on their (unlike Napster/ Gnutella). Open Source software is the way it is because people feel generous and want to give back something to the free software community or think there room for improvement in the code which other people could deal with. Research before you post about things you have no idea about in the future please!
LOL, was waiting for someone to say that!
Fear the government that fears your guns. Fear the government that fears your computers. Remove them from my email.
But if you have a Dreamcast already and you'd like to hook it up and play with NetBSD on it you shouldn't be able to?
:)
You may jest about watches, but if they progress to the level of power needed to run NetBSD, it will be ported. NetBSD already runs on a wide range of mips based windows CE devices, and that gives mobile unix with exceptional battery life.
What is impressive is not that it runs on the Dreamcast, but how little Dreamcast specific changes were needed to the NetBSD tree to get it to this point.
Besides, some people find it cool
The Dreamcast shares many of the same interface and resource limitations as set top boxes, embedded devices and palmtop devices (each to differing extents). NetBSD was ported to the arm32 based shark, which was DEC's reference network computer platform (later killed due to pressure from Microsoft), but Network computing and others released systems based both on the hardware and on the NetBSD distribution. If it helps you can think of the Dreamcast as a low cost reference platform on which to experiment with interfaces, limited resources and (to a very limited extent) unusual video acceleration, but its also a good way to show to many people that all the world is not a PC, and that they have hardware around the house that could run unix. It was also interesting to see how few Dreamcast specific changes were needed to the NetBSD tree in order to get it to this point. If I had a Dreamcast then I would probably get a keyboard and a CD with ssh, lynx, pppd and a bunch of other tools. If Sega come up with a easy way to add 10baseT to the system then NFS and another server turns it into a quite interesting X and web browsing terminal. I agree the playstation 2 makes a much more capable target, particularly with USB and PCMCIA.