web-legacy/milkymist-wiki/wiki/index.php?title=Linux.html

309 lines
20 KiB
HTML
Raw Normal View History

2014-09-19 12:52:20 +08:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="MediaWiki 1.14.0" />
<meta name="keywords" content="Linux" />
<link rel="alternate" type="application/x-wiki" title="Edit" href="http://milkymist.org/wiki/index.php?title=Linux&amp;action=edit" />
<link rel="edit" title="Edit" href="http://milkymist.org/wiki/index.php?title=Linux&amp;action=edit" />
<link rel="shortcut icon" href="../favicon.ico" />
<link rel="search" type="application/opensearchdescription+xml" href="opensearch_desc.php" title="Milkymist Wiki (en)" />
<link title="Creative Commons" type="application/rdf+xml" href="http://milkymist.org/wiki/index.php?title=Linux&amp;action=creativecommons" rel="meta" />
<link rel="copyright" href="http://www.milkymist.org/wiki/index.php?title=Copyright" />
<link rel="alternate" type="application/rss+xml" title="Milkymist Wiki RSS Feed" href="http://milkymist.org/wiki/index.php?title=Special:RecentChanges&amp;feed=rss" />
<link rel="alternate" type="application/atom+xml" title="Milkymist Wiki Atom Feed" href="http://milkymist.org/wiki/index.php?title=Special:RecentChanges&amp;feed=atom" />
<title>Linux - Milkymist Wiki</title>
<link rel="stylesheet" href="skins/common/shared.css%3F195.css" type="text/css" media="screen" />
<link rel="stylesheet" href="skins/common/commonPrint.css%3F195.css" type="text/css" media="print" />
<link rel="stylesheet" href="skins/monobook/main.css%3F195.css" type="text/css" media="screen" />
<!--[if lt IE 5.5000]><link rel="stylesheet" href="/wiki/skins/monobook/IE50Fixes.css?195" type="text/css" media="screen" /><![endif]-->
<!--[if IE 5.5000]><link rel="stylesheet" href="/wiki/skins/monobook/IE55Fixes.css?195" type="text/css" media="screen" /><![endif]-->
<!--[if IE 6]><link rel="stylesheet" href="/wiki/skins/monobook/IE60Fixes.css?195" type="text/css" media="screen" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="/wiki/skins/monobook/IE70Fixes.css?195" type="text/css" media="screen" /><![endif]-->
<link rel="stylesheet" href="http://milkymist.org/wiki/index.php?title=MediaWiki:Common.css&amp;usemsgcache=yes&amp;ctype=text%2Fcss&amp;smaxage=18000&amp;action=raw&amp;maxage=18000" type="text/css" />
<link rel="stylesheet" href="http://milkymist.org/wiki/index.php?title=MediaWiki:Print.css&amp;usemsgcache=yes&amp;ctype=text%2Fcss&amp;smaxage=18000&amp;action=raw&amp;maxage=18000" type="text/css" media="print" />
<link rel="stylesheet" href="http://milkymist.org/wiki/index.php?title=MediaWiki:Monobook.css&amp;usemsgcache=yes&amp;ctype=text%2Fcss&amp;smaxage=18000&amp;action=raw&amp;maxage=18000" type="text/css" />
<link rel="stylesheet" href="http://milkymist.org/wiki/index.php?title=-&amp;action=raw&amp;maxage=18000&amp;gen=css" type="text/css" />
<!--[if lt IE 7]><script type="text/javascript" src="/wiki/skins/common/IEFixes.js?195"></script>
<meta http-equiv="imagetoolbar" content="no" /><![endif]-->
<script type= "text/javascript">/*<![CDATA[*/
var skin = "monobook";
var stylepath = "/wiki/skins";
var wgArticlePath = "/wiki/index.php?title=$1";
var wgScriptPath = "/wiki";
var wgScript = "/wiki/index.php";
var wgVariantArticlePath = false;
var wgActionPaths = {};
var wgServer = "http://milkymist.org";
var wgCanonicalNamespace = "";
var wgCanonicalSpecialPageName = false;
var wgNamespaceNumber = 0;
var wgPageName = "Linux";
var wgTitle = "Linux";
var wgAction = "view";
var wgArticleId = "328";
var wgIsArticle = true;
var wgUserName = null;
var wgUserGroups = null;
var wgUserLanguage = "en";
var wgContentLanguage = "en";
var wgBreakFrames = false;
var wgCurRevisionId = "1805";
var wgVersion = "1.14.0";
var wgEnableAPI = true;
var wgEnableWriteAPI = true;
var wgSeparatorTransformTable = ["", ""];
var wgDigitTransformTable = ["", ""];
var wgRestrictionEdit = [];
var wgRestrictionMove = [];
/*]]>*/</script>
<script type="text/javascript" src="skins/common/wikibits.js%3F195"><!-- wikibits js --></script>
<!-- Head Scripts -->
<script type="text/javascript" src="skins/common/ajax.js%3F195"></script>
<script type="text/javascript" src="http://milkymist.org/wiki/index.php?title=-&amp;action=raw&amp;gen=js&amp;useskin=monobook"><!-- site js --></script>
</head>
<body class="mediawiki ltr ns-0 ns-subject page-Linux skin-monobook">
<div id="globalWrapper">
<div id="column-content">
<div id="content">
<a name="top" id="top"></a>
<h1 id="firstHeading" class="firstHeading">Linux</h1>
<div id="bodyContent">
<h3 id="siteSub">From Milkymist Wiki</h3>
<div id="contentSub"></div>
<div id="jump-to-nav">Jump to: <a href="index.php%3Ftitle=Linux.html#column-one">navigation</a>, <a href="index.php%3Ftitle=Linux.html#searchInput">search</a></div> <!-- start content -->
<p>Right now Milkymist ships with the RTEMS operating system. Linux actually does boot on the device, but the special capabilities of the Milkymist are not ported to work. We hope that this can be made to happen.
</p>
<table cellspacing="0" cellpadding="1" style="padding: 1%; margin:0 0 1% 0; border:1px solid #fe0000; background:#ffacac; width:100%">
<tr>
<td>
<p>Our Linux development is focused here: <a href="https://github.com/milkymist/linux-milkymist" class="external free" title="https://github.com/milkymist/linux-milkymist" rel="nofollow">https://github.com/milkymist/linux-milkymist</a>
</p>
</td></tr></table>
<table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1"><a href="index.php%3Ftitle=Linux.html#The_Importance_of_Linux"><span class="tocnumber">1</span> <span class="toctext">The Importance of Linux</span></a></li>
<li class="toclevel-1"><a href="index.php%3Ftitle=Linux.html#Latest"><span class="tocnumber">2</span> <span class="toctext">Latest</span></a></li>
<li class="toclevel-1"><a href="index.php%3Ftitle=Linux.html#OpenWrt"><span class="tocnumber">3</span> <span class="toctext">OpenWrt</span></a>
<ul>
<li class="toclevel-2"><a href="index.php%3Ftitle=Linux.html#boot_OpenWrt"><span class="tocnumber">3.1</span> <span class="toctext">boot OpenWrt</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="index.php%3Ftitle=Linux.html#TODO"><span class="tocnumber">4</span> <span class="toctext">TODO</span></a></li>
</ul>
</td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
<a name="The_Importance_of_Linux" id="The_Importance_of_Linux"></a><h2><span class="editsection">[<a href="http://milkymist.org/wiki/index.php?title=Linux&amp;action=edit&amp;section=1" title="Edit section: The Importance of Linux">edit</a>]</span> <span class="mw-headline"> The Importance of Linux </span></h2>
<p>From Werner:
</p>
<pre>
200% agreed on the importance of having Linux - already for escaping
USB driver hell. (Well, the major hell. You'll still get the minor
hell of fishing exciting new bugs out of the host controller.)
But I think you're putting the cart before the horse when it comes to
the distribution. The choice of distribution should be driven by the
availability of able hands who will do all that messy maintenance work.
That may be OpenWrt, but maybe it's OE, Debian, or such.
I wouldn't worry so much about which distribution you end up with, as
long as someone else is taking care of maintaining it&nbsp;;-)
</pre>
<a name="Latest" id="Latest"></a><h2><span class="editsection">[<a href="http://milkymist.org/wiki/index.php?title=Linux&amp;action=edit&amp;section=2" title="Edit section: Latest">edit</a>]</span> <span class="mw-headline"> Latest </span></h2>
<pre>
Here is what I know about Linux on Milkymist One:
For over a year, Takeshi Matsuya in Japan worked on it, but I
haven't seen commits from him after March 2011.
Sources are here
https://github.com/tmatsuya/linux-2.6/commits/master
Lars started doing some work in December/January, and lately
has been continuing, I think. You can see Lars committing stuff
just yesterday... There may also have been others helping, Michael
Walle maybe? I am not sure.
Many people told me they think Linux only make sense and will take
off with an MMU, which first has to be added to the Milkymist SoC.
Latest status was that there was some planning, but afaik nobody
started implementing yet
http://lists.milkymist.org/pipermail/devel-milkymist.org/2011-April/001418.html
http://lists.milkymist.org/pipermail/devel-milkymist.org/2011-April/001472.html
I am pretty sure that Linux will boot on M1 today, it did already
many months ago and Lars and others have been doing more work since
then. However, I am not sure about the status of peripheral support
(drivers) on M1. It could be that quite a few are missing -
video-in, mimi, dmx,&nbsp;?
That's all I know, hope it helps.
Wolfgang
</pre>
<a name="OpenWrt" id="OpenWrt"></a><h2><span class="editsection">[<a href="http://milkymist.org/wiki/index.php?title=Linux&amp;action=edit&amp;section=3" title="Edit section: OpenWrt">edit</a>]</span> <span class="mw-headline"> OpenWrt </span></h2>
<p>From Lars Peter Clausen:
</p>
<pre>
Well it works more or less, I can boot a kernel and run my OpenWrt userland.
Though peripheral support is limited to the basics. So VGA, Keyboard and
network will work but none of the fancy stuff that makes the milkymist unique,
like dmx or rendering.
</pre>
<p>you can find openwrt images, SDK, etc. <a href="http://fidelio.qi-hardware.com/~xiangfu/build-milkymist/" class="external text" title="http://fidelio.qi-hardware.com/~xiangfu/build-milkymist/" rel="nofollow">here</a> with folder name <b>openwrt-milkymist.minimal-yyyymmdd-HHMM</b>. source code is <a href="https://github.com/milkymist/openwrt-milkymist" class="external text" title="https://github.com/milkymist/openwrt-milkymist" rel="nofollow">here</a>
</p>
<a name="boot_OpenWrt" id="boot_OpenWrt"></a><h3><span class="editsection">[<a href="http://milkymist.org/wiki/index.php?title=Linux&amp;action=edit&amp;section=4" title="Edit section: boot OpenWrt">edit</a>]</span> <span class="mw-headline">boot OpenWrt</span></h3>
<ol><li> wget <a href="http://fidelio.qi-hardware.com/~xiangfu/build-milkymist/milkymist-openwrt.minimal-20120127-1251/openwrt-lm32-root.ext4" class="external free" title="http://fidelio.qi-hardware.com/~xiangfu/build-milkymist/milkymist-openwrt.minimal-20120127-1251/openwrt-lm32-root.ext4" rel="nofollow">http://fidelio.qi-hardware.com/~xiangfu/build-milkymist/milkymist-openwrt.minimal-20120127-1251/openwrt-lm32-root.ext4</a> -O initrd.bin
</li><li> wget <a href="http://fidelio.qi-hardware.com/~xiangfu/build-milkymist/milkymist-openwrt.minimal-20120127-1251/simpleImage.milkymist_one" class="external free" title="http://fidelio.qi-hardware.com/~xiangfu/build-milkymist/milkymist-openwrt.minimal-20120127-1251/simpleImage.milkymist_one" rel="nofollow">http://fidelio.qi-hardware.com/~xiangfu/build-milkymist/milkymist-openwrt.minimal-20120127-1251/simpleImage.milkymist_one</a> -O boot.bin
</li><li> copy them to your tftp folder like <b>/var/lib/tftpboot</b>, change your IP to 192.168.0.14
</li><li> press 'ESC' while m1 booting. type 'netboot'
</li><li> boot log
</li></ol>
<pre>
I: MAC address: 10:e2:d5:00:00:00
I: Press Q or ESC to abort boot
I: Booting from network...
I: MAC &nbsp;: 10:e2:d5:00:00:00
I: Local IP&nbsp;: 192.168.0.42
I: Remote IP: 192.168.0.14
I: Successfully downloaded 2257896 bytes from boot.bin over TFTP
I: Unable to download cmdline.txt over TFTP
I: No command line parameters found
I: Successfully downloaded 4217856 bytes from initrd.bin over TFTP
I: Booting...
P<EFBFBD>b
B<EFBFBD>K
P
D<EFBFBD>I<EFBFBD>M<EFBFBD>N<EFBFBD>C
c
inux version 3.0.0+ (xiangfu@fidelio) (gcc version 4.5.4 20110526 (prerelease) (Linaro GCC 4.5-2011.06-0) ) #1 Thu Aug 4 17:54:19 CEST 2011
bootconsole [early0] enabled
... ...
NET: Registered protocol family 15
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 4096KiB [1 disk] into ram disk... done.
VFS: Mounted root (ext2 filesystem) readonly on device 1:0.
devtmpfs: mounted
Freeing unused kernel mem: 104k freed
init started: BusyBox v1.18.5 (2011-08-04 17:45:52 CEST)
BusyBox v1.18.5 (2011-08-04 17:45:52 CEST) hush - the humble shell
Enter 'help' for a list of built-in commands.
/ # help
Built-in commands:
------------------
. Run commands in a file
bg Resume a job in the background
break Exit from a loop
cd Change directory
continue Start new loop iteration
... ...
</pre>
<a name="TODO" id="TODO"></a><h2><span class="editsection">[<a href="http://milkymist.org/wiki/index.php?title=Linux&amp;action=edit&amp;section=5" title="Edit section: TODO">edit</a>]</span> <span class="mw-headline"> TODO </span></h2>
<p>Please help us by listing what needs to be done and what you want to help with.
</p>
<ul><li> MMU
</li><li> Minimac2 driver (current uclinux support old version)
</li><li> AC97 driver
</li><li> USB device/host driver (also need work around softusb core)
</li><li> Memorycard driver
</li><li> VGA frame-buffer driver
</li></ul>
<table cellspacing="5" cellpadding="0" style="margin:0em 0em 1em 0em; border:1px solid #cccccc; background-color:#f9f9f9;width:100%">
<tr>
<td><i>This section is incomplete. You can help by <a href="http://milkymist.org/wiki/index.php?title=Linux&amp;action=edit" class="external text" title="http://milkymist.org/wiki/index.php?title=Linux&amp;action=edit" rel="nofollow">expanding it</a></i>.
</td></tr></table>
<!--
NewPP limit report
Preprocessor node count: 29/1000000
Post-expand include size: 565/2097152 bytes
Template argument size: 83/2097152 bytes
Expensive parser function count: 0/100
-->
<!-- Saved in parser cache with key sbsql1-mw_:pcache:idhash:328-0!1!0!!en!2 and timestamp 20140823131815 -->
<div class="printfooter">
Retrieved from "<a href="index.php%3Ftitle=Linux.html">http://milkymist.org/wiki/index.php?title=Linux</a>"</div>
<div id='catlinks' class='catlinks'><div id="mw-normal-catlinks"><a href="http://milkymist.org/wiki/index.php?title=Special:Categories" title="Special:Categories">Categories</a>:&#32;<span dir='ltr'><a href="http://milkymist.org/wiki/index.php?title=Category:Incomplete&amp;action=edit&amp;redlink=1" class="new" title="Category:Incomplete (page does not exist)">Incomplete</a></span> | <span dir='ltr'><a href="http://milkymist.org/wiki/index.php?title=Category:Linux&amp;action=edit&amp;redlink=1" class="new" title="Category:Linux (page does not exist)">Linux</a></span> | <span dir='ltr'><a href="http://milkymist.org/wiki/index.php?title=Category:Developers&amp;action=edit&amp;redlink=1" class="new" title="Category:Developers (page does not exist)">Developers</a></span></div></div> <!-- end content -->
<div class="visualClear"></div>
</div>
</div>
</div>
<div id="column-one">
<div id="p-cactions" class="portlet">
<h5>Views</h5>
<div class="pBody">
<ul>
<li id="ca-nstab-main" class="selected"><a href="index.php%3Ftitle=Linux.html" title="View the content page [c]" accesskey="c">Page</a></li>
<li id="ca-talk" class="new"><a href="http://milkymist.org/wiki/index.php?title=Talk:Linux&amp;action=edit&amp;redlink=1" title="Discussion about the content page [t]" accesskey="t">Discussion</a></li>
<li id="ca-edit"><a href="http://milkymist.org/wiki/index.php?title=Linux&amp;action=edit" title="You can edit this page.&#10;Please use the preview button before saving [e]" accesskey="e">Edit</a></li>
<li id="ca-history"><a href="http://milkymist.org/wiki/index.php?title=Linux&amp;action=history" title="Past versions of this page [h]" accesskey="h">History</a></li> </ul>
</div>
</div>
<div class="portlet" id="p-personal">
<h5>Personal tools</h5>
<div class="pBody">
<ul>
<li id="pt-login"><a href="http://milkymist.org/wiki/index.php?title=Special:UserLogin&amp;returnto=Linux" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o">Log in / create account</a></li>
</ul>
</div>
</div>
<div class="portlet" id="p-logo">
<a style="background-image: url(http://www.milkymist.org/wikilogo.png);" href="../wiki.html" title="Visit the main page [z]" accesskey="z"></a>
</div>
<script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
<div class='generated-sidebar portlet' id='p-navigation'>
<h5>Navigation</h5>
<div class='pBody'>
<ul>
<li id="n-mainpage-description"><a href="../wiki.html">Main Page</a></li>
<li id="n-portal"><a href="http://milkymist.org/wiki/index.php?title=Milkymist_Wiki:Community_Portal" title="About the project, what you can do, where to find things">Community portal</a></li>
<li id="n-currentevents"><a href="http://milkymist.org/wiki/index.php?title=Milkymist_Wiki:Current_events" title="Find background information on current events">Current events</a></li>
<li id="n-recentchanges"><a href="http://milkymist.org/wiki/index.php?title=Special:RecentChanges" title="The list of recent changes in the wiki [r]" accesskey="r">Recent changes</a></li>
<li id="n-randompage"><a href="http://milkymist.org/wiki/index.php?title=Special:Random" title="Load a random page [x]" accesskey="x">Random page</a></li>
<li id="n-help"><a href="http://milkymist.org/wiki/index.php?title=Help:Contents" title="The place to find out">Help</a></li>
</ul>
</div>
</div>
<div id="p-search" class="portlet">
<h5><label for="searchInput">Search</label></h5>
<div id="searchBody" class="pBody">
<form action="http://milkymist.org/wiki/index.php?title=Special:Search" id="searchform"><div>
<input id="searchInput" name="search" type="text" title="Search Milkymist Wiki [f]" accesskey="f" value="" />
<input type='submit' name="go" class="searchButton" id="searchGoButton" value="Go" title="Go to a page with this exact name if exists" />&nbsp;
<input type='submit' name="fulltext" class="searchButton" id="mw-searchButton" value="Search" title="Search the pages for this text" />
</div></form>
</div>
</div>
<div class="portlet" id="p-tb">
<h5>Toolbox</h5>
<div class="pBody">
<ul>
<li id="t-whatlinkshere"><a href="http://milkymist.org/wiki/index.php?title=Special:WhatLinksHere/Linux" title="List of all wiki pages that link here [j]" accesskey="j">What links here</a></li>
<li id="t-recentchangeslinked"><a href="http://milkymist.org/wiki/index.php?title=Special:RecentChangesLinked/Linux" title="Recent changes in pages linked from this page [k]" accesskey="k">Related changes</a></li>
<li id="t-specialpages"><a href="http://milkymist.org/wiki/index.php?title=Special:SpecialPages" title="List of all special pages [q]" accesskey="q">Special pages</a></li>
<li id="t-print"><a href="http://milkymist.org/wiki/index.php?title=Linux&amp;printable=yes" title="Printable version of this page [p]" accesskey="p">Printable version</a></li> <li id="t-permalink"><a href="http://milkymist.org/wiki/index.php?title=Linux&amp;oldid=1805" title="Permanent link to this version of the page">Permanent link</a></li> </ul>
</div>
</div>
</div><!-- end of the left (by default at least) column -->
<div class="visualClear"></div>
<div id="footer">
<div id="f-poweredbyico"><a href="http://www.mediawiki.org/"><img src="skins/common/images/poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki" /></a></div>
<div id="f-copyrightico"><a href="http://www.milkymist.org/wiki/index.php?title=Copyright"><img src="skins/common/images/gnu-fdl.png" alt='GNU Free Documentation License 1.3 and CC-BY-SA 3.0 Unported' /></a></div>
<ul id="f-list">
<li id="lastmod"> This page was last modified on 31 January 2012, at 04:38.</li>
<li id="viewcount">This page has been accessed 4,418 times.</li>
<li id="copyright">Content is available under <a href="http://www.milkymist.org/wiki/index.php?title=Copyright" class="external " title="http://www.milkymist.org/wiki/index.php?title=Copyright">GNU Free Documentation License 1.3 and CC-BY-SA 3.0 Unported</a>.</li>
<li id="privacy"><a href="http://milkymist.org/wiki/index.php?title=Milkymist_Wiki:Privacy_policy" title="Milkymist Wiki:Privacy policy">Privacy policy</a></li>
<li id="about"><a href="http://milkymist.org/wiki/index.php?title=Milkymist_Wiki:About" title="Milkymist Wiki:About">About Milkymist Wiki</a></li>
<li id="disclaimer"><a href="http://milkymist.org/wiki/index.php?title=Milkymist_Wiki:General_disclaimer" title="Milkymist Wiki:General disclaimer">Disclaimers</a></li>
</ul>
</div>
</div>
<script type="text/javascript">if (window.runOnloadHook) runOnloadHook();</script>
<!-- Served in 0.214 secs. --></body></html>