Slashdot Mirror


LinuxBIOS Gets GUI

LWATCDR writes "Has a great write up on combining LinuxBios a Linux kernel, busybox, X, a window manager, and rxvt into a two meg flash chip. So what does get you? A six second boot time for one. All sorts of uses come to mind. Terminals to use with the Linux Terminal server. A very fast booting embedded system like a Car computer. With every one pushing for multi-core cpus, mega gigabyte drives and many gigabytes of ram it is interesting to see how small you can go."

39 of 171 comments (clear)

  1. Re:Two megs? by stoolpigeon · · Score: 5, Informative

    tfa is like 10 sentences - including this one The setup: LinuxBIOS + a Linux kernel + BusyBox + a tiny X11 server (Kdrive) + the Matchbox window manager + rxvt.(emphasis mine)

    --
    It's hard to believe that's how Micronians are made. Why don't we see it right now by having you both kiss one another?
  2. Slashdotted by $RANDOMLUSER · · Score: 3, Funny

    I hope they weren't running their webserver with it.

    --
    No folly is more costly than the folly of intolerant idealism. - Winston Churchill
  3. Re:Two megs? by Sparr0 · · Score: 5, Informative

    Your misconception illustrates precisely why projects like this are awesome. No, the summary was not incorrect. They really did this in TWO MEBIBYTES. Two gigs would be completely non-impressive, you can fit any desktop linux distro in that. Doing it all without X in 1.44MB, with dozens of diagnostic tools, is common on rescue floppy distros. Adding an X server (*NOT* XFree or XOrg, mind you) in under 2MiB is impressive but not impossible.

  4. Uh... by Anonymous Coward · · Score: 2, Informative

    No, this is pretty much exactly what "embedded" meant all along.

  5. Impressive, but unnecessary by ArcherB · · Score: 2, Interesting

    While the X server was quite cool, I don't see what functionality it can bring at this stage of the game. I want to see a Linux BIOS that works for my hardware that allows me all the features of my existing BIOS. If you can do that with X, great! But right now, I want function over form. A text base menu like what I have now would be fine.

    --
    There is no "I disagree" mod for a reason. Flamebait, Troll, and Overrated are not substitutes.
    1. Re:Impressive, but unnecessary by Dielectric · · Score: 4, Insightful

      I think you missed the point. It's running a fully graphical Linux in 2MB of solid-state memory. It just happens to be residing in the BIOS chip, which means no other hardware is necessary to get a functioning system. I think it's awfully cool.

    2. Re:Impressive, but unnecessary by Kazoo+the+Clown · · Score: 2, Interesting

      Yes, though I'd be interested in some HOWTO regarding putting bootable Linux in a BIOS chip that doesn't include X11, but basic SVGAlib or even headless and the ability to insert some custom applications. I'd like to turn some old diskless PC hardware and a vid capture card into an IP cam with some custom security functions...

      The OP leads me to believe it's possible.

      I've got an old PROM/PIC burner that I could dust off, now I wonder if that could be used to burn some BIOS chips with this sort of thing. Time to take another look at the Linux BIOS project...

  6. Re:Two megs? by vidarh · · Score: 4, Interesting
    You do realize there's more than one X server out there, don't you?

    For example, Xvnc only takes about 800KB compressed. Yes, it doesn't display, but bolting a framebuffer driver onto it would only take a few KB - in fact you could fit both Xvnc and a full featured vnc client into less than 1MB. There are at least a few small "proper" X servers (that drives a display instead of keeping it's own frame buffer) out there that would fit in 2MB too - I only mentions Xvnc since that's the only one I happen to have installed.

  7. How small you _can_ you go? by bubbl07 · · Score: 3, Funny

    [...] it is interesting to see how small you can go."
    Apparently, it's normal and happens to lots of computers. It's not the size of the hard drive, it's how fast you can boot up.
  8. Re:Embedded linux by jimstapleton · · Score: 2, Interesting

    No, that would only happen if you got it to install on your bed.

    So far, I've only gotten NetBSD to do that... Right after I installed it on my toaster, and before I installed it on my electric can opener.

    --
    34486853790
    Connection too slow for X forwarding? Try "ssh -CX user@host"
  9. Re:Two megs? by Sobrique · · Score: 3, Insightful
    In IT, size matters - small is good.

    Explains a lot really :)

  10. Re:Two megs? by Rob+the+Bold · · Score: 4, Funny

    Uh, shouldn't that be a two gig flash chip, not two meg? X is a bit bigger than two megs, last time I checked.

    Two gigs? What do you need? Pre-downloaded pr0n?

    --
    I am not a crackpot.
  11. Better video by oneandoneis2 · · Score: 4, Informative

    There's a better quality video (i.e. a non-YouTube one) available at http://downloads.sourceforge.net/fornix/linuxbios. ogg

    --
    So.. it has come to this
  12. FBUI by Anonymous Coward · · Score: 4, Interesting

    Ahh...but then there's also FBUI, which is a full blown GUI system that runs as an in kernel module (~50k). Has some light weight libraries for interfacing with it. Would save tons more room than kdrive with all this other stuff. No networkable hooks though

  13. Good to see by Cruise_WD · · Score: 2, Insightful

    Between this, and the Linux support for SIM cards, how long until we can make our own linux phone? A completely DIY phone might even tempt me to get one...

    --
    [ cruise / casual-tempest.net / xenogamous.com / transference.org / quantam sufficit ]
    1. Re:Good to see by ThogScully · · Score: 4, Interesting

      The initial OpenMokos have just shipped to developers. They'll hopefully be more generally available toward the end of this year. I'm excited to get one as soon as I can, and no I'm not affiliated with them - I just think they are doing some awesome work.
      -N

      http://www.openmoko.com/

      --
      I've nothing to say here...
  14. Re:Two megs? by KiloByte · · Score: 3, Insightful

    MEBIBYTES
    Please, stop this. The efforts by Academie Englaise to redefine the value of pi^H^Hmegabyte has failed miserably, and there is no reason to have this idea in a place other than MS Bob, UnifiedRoot or DOPA -- in the bit bucket where all asinine failed proposals go.
    --
    The creatures outside looked from Alt-Right to Antifa; but already it was impossible to say which was which.
  15. Re:Embedded linux by Chmcginn · · Score: 2, Insightful

    Or if you installed it in one of those... ah... programmable marital aids... that might get used in a bed. Bedded, if you will.

    --
    Have you been touched by his noodly appendage?
  16. Yeah, but... by guy-in-corner · · Score: 3, Funny

    ...does it run Windows?

    Sorry.

    1. Re:Yeah, but... by mr_mischief · · Score: 2, Insightful

      You're being humorous, and it's pretty fuinny. There's a point here just waiting to be made, though.

      Since it's LinuxBIOS we're talking about, it could be a thin client which also has the option to boot off any drive the system is capable of using for boot. So while you can't fit the Windows installation into the BIOS flash, you could have a well-featured small Linux in the BIOS which then boots into Windows, OS/2, FreeBSD, NetBSD, other BSDs, Darwin, Solaris, a full Linux installation, or anything else that runs on the PCs LinuxBIOS can be the BIOS for.

      PCs used to come with DOS in ROM, and QNX has had kernel+GUI+other stuff in this kind of space for years although I've never seen QNX on the BIOS flash. It's cool to see someone doing it with LinuxBIOS. EPOC/Symbian, WinCE/PocketPC, Palm, etc all have GUIs, too. Maybe something like this could lead Linux to be truly competitive in that kind of market eventually. I had Debian Small running on my Psion 5mx, which was really cool. Still, even having a Sempron, Celeron, Geode, or C7 board with no disk and no Compactflash that gives me a small, power-efficient smart terminal to stick in the living room or kitchen would be great.

  17. Re:Two megs? by pipatron · · Score: 4, Funny

    Indeed, it's well known and accepted that Mebioctets is the only correct word for this.

    See for example http://zapatopi.net/labs/kibioctets.html

    --
    c++; /* this makes c bigger but returns the old value */
  18. Re:Two megs? by udippel · · Score: 4, Funny
    In IT, size matters - small is good.
    Explains a lot really :)


    Micro-soft ?

  19. Re:Impressive, but .... usefull! by chrwei · · Score: 3, Informative

    Given that is for a BIOS project, the primary goal is to load another OS off larger storage medium. So why an GUI? Easy, what do you do when your main OS fails? You reach for a bootable recovery CD or USB drive. Oh, but you aren't at home and didn't bring it with you! Gah! Oh wait, you can boot the BIOS in GUI mode and get on the internet and use a web browser and all sorts of stuff!

    Even better, what happens when your grandmothers primary OS fails? Think she can use CLI tools and fsck the disk and other such things? What about a GUI where she can point and click through a diagnostic wizard? Maybe even click something to let you ssh in and fix it remotely?

    Realistically, I don't think the setup will stay at 2Meg, but I don't think it will need to be more than 32Meg since you can have a fully useful PDA in 32Meg. And if more storage is needed, it can always be extended by using the "recovery partition" concept.

    I'll admit that it's arguable that all this is necessary, but I'd argue that enabling the public to know if the issue is RAM or HDD or some other easily swapable part is necessary in taking the frustration out of owning a computer, as well as in reducing waste. There are too many people that don't know that memory can go bad and be replaced easily and that the computer itself is still quite useful. A diag wizard in the bios can fix this problem.

    --
    - Disclaimer: Information in this post deemed reliable but not guaranteed.
  20. Re:Two megs? by cyclop · · Score: 4, Funny

    Whoa, a Linux BIOS with pre-downloaded pr0n! It would have an instant market! "From cold iron to pr0n in 6 seconds!"

    --
    -- Patent no.123456: A way to personalize /. comments with a sig attached to the end.
  21. Re:Two megs? by Sparr0 · · Score: 3, Insightful

    I think the hard drive industry might disagree with you. Everyone says it's just a recent marketting gimmick to cheat people out of space, but every HD I have ever bought, since 20MB was "huge", was rated in decimal multiples.

    Oh yeah, DVDs are measured in decimal multiples too. 4.7GB == 4700000000B.

    You're just on the losing side of a very long argument. It probably won't be over until English is history, but it will end in our favor eventually.

  22. Re:Who are the idiots working on this project? by drinkypoo · · Score: 4, Insightful

    You could be the idiot working on this project. You want additional hardware support? Join up and help produce it. People aren't idiots simply because they're not providing what you want. Alternatively you could also hire a developer for the period of time it takes to support your chosen hardware...

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  23. Re:Two megs? by drinkypoo · · Score: 2, Insightful

    Why is it asinine to ask people to use words in a way that makes sense? Simply because some people are too stupid and/or obstinate to use words as they are meant? I mean, that's a good argument, but I still think that accuracy is more important than your comfort level.

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  24. Re:Two megs? by heinousjay · · Score: 2, Insightful

    Hope springs eternal, apparently. All your "team" needs to realize is that when a word is clumsy in pronunciation (such as mebibyte) people won't use it.

    --
    Slashdot - where whining about luck is the new way to make the world you want.
  25. Re:Two megs? by slackmaster2000 · · Score: 4, Funny

    It's asinine because of the douchebag factor.

    So you're talking to your uncle who's asking you, the family "computer genius", some questions about which memory module he should consider buying to upgrade his computer. You say something like, "well, I think that you should get at least two gibibytes total." Your uncle replies, "What's a gibibyte?" You proudly declare, "A gibibyte is 1,024 mebibytes, or two to the power of 30 bytes. Computers are binary machines, and memory is manufactured in sizes accordingly, not using base-10, which would yield 'megabytes' and 'gigabytes', which are 1 million and 1 billion bytes, respectively. Thus, when we talk about computer memory, we use mebibytes and gibibytes, even though manufacturers incorrectly use megabytes and gigabytes on their packaging."

    Your uncle thanks you and after you depart he turns to your father and says, "what a douchebag."

    Another reason to not use mebibyte and gibibyte or any of the baby-talk bytes, unless it's absolutely necessary, is that they're not recognized by Firefox's spell checker.

  26. Absolutely by Weaselmancer · · Score: 2, Informative

    They're using KDrive, one of the build options of XFree/XOrg done by Keith Packard specifically for embedded or small targets. At my last job we were compiling that for a MIPS target, and the X executable came in at around 650k IIRC.

    It's the support libraries and fonts that make an X install huge. Drop those and you can easily squeak in a busybox implementation in 2 Megs.

    That being said - this is a fantastic hack. Everyone in the thread is thinking embedded computers for cars, but not me. I'm thinking Geode chips, PC/104 boards and industrial control.

    And since I'm thinking about it, thank you Keith if you happen to read this. The other guy I was working with on this project actually got in touch with you over IRC and you helped us out with some problems we were having. Very nice of you to give us a hand - we really appreciated it.

    --
    Weaselmancer
    rediculous.
  27. Re:Two megs? by bflong · · Score: 4, Informative

    Just an FYI, KDrive *is* xorg. it's built from the official sources and is part of the source code tree and build system of xorg.
    http://en.wikipedia.org/wiki/Kdrive

    --
    Why is it so hot? Where am I going? What am I doing in this handbasket?
  28. Incorrect Slashdot article title:not LinuxBIOS GUI by Anonymous Coward · · Score: 2, Insightful

    The title of the Slashdot article is completely incorrect and misleading.

    The GUI shown is just a normal Linux GUI which runs after Linux has booted. The fact that its code is stored in the same flash device as the LinuxBIOS is just simple aggregation, and totally irrelevant.

    It has nothing to do with the LinuxBIOS code at all, and it is certainly not a GUI for LinuxBIOS.

    Great work in making it fit into 2 meg, but really bad Slashdot title.

  29. Re:Two megs? by ehrichweiss · · Score: 3, Insightful

    This has less to do with SI and more to do with a way to approximate the values in semi-easy-to-understand binary/hexadecimal representations. Since 1,024 was close to 1,000, the idea of 1024 bytes being a binary equivalent to a "kilo" was not a large leap and it's easier to remember 0x400 bytes equals a kilobyte than 0x3E8 bytes, or that 0x100000 bytes instead of 0xF4240 equals a meg. As programmers(or at least us low level language programmers) we live and breath in the binary world and rarely have to think in decimal terms comparatively.

    What kills me is that I'm betting that a large majority of people who argue for the 1,000 byte kilobyte will gladly accept "ginormous", "omgwtfbbq" "aiiiggghttt"and "teh" and all the other language abuses and will see absolutely nothing wrong with their use. I'm sure that whoever dreamed up the "mebi" thing thinks they are making things easier but until us older programmers and hardware engineers die, that's not gonna take hold very well. Of course it speaks volumes that the term "mebi" is almost 10 years old now and still hasn't taken hold.

    One might also note that memory is the reason we use these terms in the first place since hard drives and the like didn't come about for a long while so trying to make the language even more confusing, and garbled, because hard drive manufacturers want to skimp on drive size seems asinine, and they DO want to skimp on drive since formatting 160Gb, whether it's 160,000,000,000 bytes or 160x1024x1024x1024 bytes, only yields about 140,000,000,000 bytes.

    --
    0x09F911029D74E35BD84156C5635688C0
  30. Re:Fast boot times? by Ostrich25 · · Score: 3, Funny

    My car stereo (www.empeg.com) has been able to fast boot linux from flash for over 7 years.
    I don't have that much time to wait for my car stereo to boot! Even my iPod can boot in less than 7 years.
  31. Re:How small? Gavin's 3721 byte OS! by KlaymenDK · · Score: 2, Interesting

    In 2004, Gavin Barraclough wrote an OS (from scratch) in only 3721 bytes:

    "This is a 32-bit multitasking operating system for x86 computers, with GUI and filesystem, support for loading and executing user applications in elf binary format, with ps2 mouse and keyboard drivers, and vesa graphics. And a command shell. And an application - a simple text-file viewer."

    Granted, it may not be the must useful (or maintainable!) OS ...

    http://www.de.ioccc.org/years.html#2004_gavin

  32. Re:Two megs? by joe_plastic · · Score: 2, Informative

    ogg theora video of the same.

  33. Re:Two megs? by slackmaster2000 · · Score: 3, Insightful

    The whole world has moved on now that we've all figured out that our hard drives are going to be a tad bit smaller than we thought. Then again, the memory companies have helped to even things out. The last time I bought 1 gigabyte of RAM, I was pleasantly suprised to have received 73,741,824 extra bytes!

    How about we all just pretend that we know what we're talking about when we say that our internet connection is "8 megs" or that our hard drive is "200 gigs" or that we have a "3 gig" processor. None of these statements are accurate, but we know what they mean and they're close enough for the sake of discussion.

    There's nothing wrong with saying "mebibyte" or "gibibyte", aside from the potential for them to sound like a three year old trying to pronounce "megabyte" and "gigabyte." ... well, and the fact that every single time you try to throw them into a general discussion somebody is going to call you on it. Every time. Every single time. It's patently obvious nerdiness, and somebody will always jump on it, and people like us will jump into the fray.

  34. Re:Two megs? by illumin8 · · Score: 2, Insightful

    I think the hard drive industry might disagree with you. Everyone says it's just a recent marketting gimmick to cheat people out of space, but every HD I have ever bought, since 20MB was "huge", was rated in decimal multiples.
    Just because an industry has co-opted our terminology for data storage doesn't mean we need to play their game and change our terminology to be more "politically correct." In fact, I would argue that we've been talking about bytes, kilobytes, megabytes, and gigabytes a lot longer than they've been cheating consumers on storage, so we have more of a right to use the term "megabyte" than they do.

    The day I start saying mebibytes will be a cold day in hell.
    --
    "When the president does it, that means it's not illegal." - Richard M. Nixon
  35. Re:Two megs? by Lord+Ender · · Score: 2, Insightful

    MEBIBYTES
    Please, stop this.
    No, you stop this. Who the hell are you to redefine kilo to mean 2^10? It has ALWAYS meant 10^3--since long before there existed a word which meant 2^10. Now we have a word which means 1024 (kibi) and we still have a word that means 1000 (kilo), so we can stop all this ambiguous bullshit and just use precise, clear terminology.

    So PLEASE, stop trying to redefine kilo to mean 1024!
    --
    A slashdotter who didn't build his own computer is like a Jedi who didn't build his own lightsaber.