<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>vm-kernel &#187; loongson</title>
	<atom:link href="http://vm-kernel.org/blog/tag/loongson/feed/" rel="self" type="application/rss+xml" />
	<link>http://vm-kernel.org/blog</link>
	<description>All about emulation and virtualization</description>
	<lastBuildDate>Sat, 17 Apr 2010 03:51:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Gdium linux kernel support status</title>
		<link>http://vm-kernel.org/blog/2010/04/16/gdium-linux-kernel-support-status/</link>
		<comments>http://vm-kernel.org/blog/2010/04/16/gdium-linux-kernel-support-status/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 13:20:42 +0000</pubDate>
		<dc:creator>yajin</dc:creator>
				<category><![CDATA[kernel]]></category>
		<category><![CDATA[loongson]]></category>
		<category><![CDATA[gdium]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://vm-kernel.org/blog/?p=227</guid>
		<description><![CDATA[After several days working, the 2.6.34-rc2 kernel is working on gdium expect sound. Of course most of the codes are from mandriva and Philippe's work.
I will make some code clean and make the sound work in the next few days. It seems the sm501 sound driver needs a hardcoded 8051 firmware to work. Damn it. [...]]]></description>
			<content:encoded><![CDATA[<p>After several days working, the 2.6.34-rc2 kernel is working on gdium expect sound. Of course most of the codes are from mandriva and Philippe's work.</p>
<p>I will make some code clean and make the sound work in the next few days. It seems the sm501 sound driver needs a hardcoded 8051 firmware to work. Damn it. After these works are done, I will send the patches to<a href="http://groups.google.com/group/loongson-dev"> loongson-dev</a> maillist and merge it to <a href="http://dev.lemote.com/code/linux-loongson-community">linux-loongson-community</a> and linux-mips mainline at last.</p>
<p>I am keeping moving....... Please wait.</p>
<p>ps: The linux kernel for gdium repository is <a href="http://repo.or.cz/w/linux-2.6/linux-mips/linux-gdium.git">here</a>.</p>
<blockquote><p>kill-bill:~# uname -a<br />
Linux kill-bill 2.6.34-rc2 #24 PREEMPT Fri Apr 16 21:01:51 CST 2010 mips64 GNU/Linux<br />
kill-bill:~# cat /proc/cpuinfo<br />
system type             : dexxon-gdium-2f-10inches<br />
processor               : 0<br />
cpu model               : ICT Loongson-2 V0.3  FPU V0.1<br />
BogoMIPS                : 598.01<br />
wait instruction        : no<br />
microsecond timers      : yes<br />
tlb_entries             : 64<br />
extra interrupt vector  : no<br />
hardware watchpoint     : yes, count: 0, address/irw mask: []<br />
ASEs implemented        :<br />
shadow register sets    : 1<br />
core                    : 0<br />
VCED exceptions         : not available<br />
VCEI exceptions         : not available
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://vm-kernel.org/blog/2010/04/16/gdium-linux-kernel-support-status/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install debian lenny on yeeloong 8089/8101</title>
		<link>http://vm-kernel.org/blog/2010/03/27/install-debian-lenny-on-yeeloong-80898101/</link>
		<comments>http://vm-kernel.org/blog/2010/03/27/install-debian-lenny-on-yeeloong-80898101/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 06:28:51 +0000</pubDate>
		<dc:creator>yajin</dc:creator>
				<category><![CDATA[loongson]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[yeeloong]]></category>

		<guid isPermaLink="false">http://vm-kernel.org/blog/?p=221</guid>
		<description><![CDATA[NOTICE/TIPS:
[For one want to install the debian 6.0, there is a more easy way. See the following link.
http://www.anheng.com.cn/loongson/install/readme.txt (In Chinese).]
Yesterday I installed the debian lenny on yeeloong 8101, the 10.1 inch notebook based on loongson 2F CPU for a friend. Then I find there is less English document describing how to do this. So I [...]]]></description>
			<content:encoded><![CDATA[<p>NOTICE/TIPS:<br />
[For one want to install the debian 6.0, there is a more easy way. See the following link.<br />
<a href="http://www.anheng.com.cn/loongson/install/readme.txt">http://www.anheng.com.cn/loongson/install/readme.txt</a> (In Chinese).]</p>
<p>Yesterday I installed the debian lenny on yeeloong 8101, the 10.1 inch notebook based on loongson 2F CPU for a friend. Then I find there is less English document describing how to do this. So I write the process down to anyone who is interested in installing debian on yeloong. There are many ways to do it I choose the way of using a debian network installer. Please make sure you have a internet connection first.</p>
<p>1. First download the kernel and initrd to your PC.</p>
<blockquote><p>wget http://dev.lemote.com/drupal/sites/default/files/kernel-2.6.27-LM8089.tar.gz<br />
wget http://dev.lemote.com/drupal/sites/default/files/initrd_yl_netboot.gz</p></blockquote>
<p>2. Decompress kernel on your PC.</p>
<blockquote><p>tar zxvf kernel-2.6.27-LM8089.tar.gz</p></blockquote>
<p>You will get the kernel vmlinux and the directory named lib. The lib directory contains all the kernel modules.</p>
<p>3. Format your USB disk with ext2 partition and copy vmlinux, directory lib and initrd_yl_netboot.gz to the usb disk.</p>
<p>4. Insert the usb disk to your netbook and boot it</p>
<p>5. Enter the PMON command line.</p>
<p>There are two ways to enter the PMON(the bootloader of yeeloong) command line. One is press DEL when booting. The other way is click C when you see the boot menu.</p>
<p>Use the following commands to load the kernel and initrd, which contains the debian network installer.</p>
<blockquote><p>load /dev/fs/ext2@usb0/vmlinux<br />
initrd /dev/fs/ext2@usb0/initrd_yl_netboot.gz</p></blockquote>
<p>Please be patient. The initrd command may need more than 5 miniutes to be finished.</p>
<p>Sometimes the PMON bootloader may hang when you boot with a usb disk inserted. I do not know why. The workaround is booting into the default linux system and inserting the usb disk and then rebooting. Or you can use a tftp method to load the kernel and initrd.</p>
<p>At last use the following command to launch the debian network installer.</p>
<blockquote><p>g console=tty no_auto_cmd</p></blockquote>
<p>Then just install the debian as normal.</p>
<p>6. Install debian lenny</p>
<p>After debian configurating the DHCP, it will complain about "no kernel modules were found" and will let you choose "continue the install without loading kernel modules?", just choose Yes(the default answer is No) to continue.</p>
<p>When in the part of Partition disks, it will complain about "The current kernel doesn't support the Logical Volume Manager. You may need to load the lvm-mod modules" and the background becomes red. Do not be scared. Just click continue. <img src='http://vm-kernel.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Then everything goes as it should be. But at last, debian installer will say "no installable kernel was found in the defined APT sources.... Continue without installing a kernel". Do not click Yes too quickly. We need to copy the kernel and all the modules into new system first. Please make sure that the USB disk is still inserting on the notebook. Use ALT+F2 to active a console. Mount the use disk and copy kernel and libs.</p>
<blockquote><p>mount /dev/sda1 /target/mnt<br />
cp /mnt/vmlinux /target/boot<br />
cp -rf /mnt/lib/modules /target/lib/</p></blockquote>
<p>Then click ALT+F1 return to the debian installer. Click Yes to continue installing.</p>
<p>7. Install Desktop environment</p>
<p>You can install LXDE or gnome as your desktop. I prefer LXDE because it is light.</p>
<blockquote><p>apt-get install lxde</p></blockquote>
<p>Install the X server driver.</p>
<blockquote><p>wget http://www.anheng.com.cn/loongson2f/lenny/xorg-server/xserver-xorg-video-siliconmotion_2.2.8-lemote.r04_mipsel.deb<br />
dpkg -i xserver-xorg-video-siliconmotion_2.2.8-lemote.r04_mipsel.deb</p></blockquote>
<p>Change the xorg.conf according to <a href="http://wiki.gnewsense.org/Projects/GNewSenseToMIPSYeeloongXorgConf">this link</a>.</p>
<p>8. Trouble shooting</p>
<p>(1) My wifi does not work</p>
<p>You can see "rtl8187: rtl8187_open process failed because radio off" if you use dmesg to see the message. Use FN+F5 to turn on the wifi first. You will see such message "<span style="font-family: Courier New;">rtl8187: SCI interrupt Methord Will Turn Radio On</span>" on your console.</p>
<p>(2) My sound does not work</p>
<p>Use alsamixer to adjust the volume. But install alsa-utils first.</p>
<p>(3) OOPS, I forget to copy kernel to my new installed system. I can not boot it now. What should I do?</p>
<p>You can load the kernel using tftp method.</p>
]]></content:encoded>
			<wfw:commentRss>http://vm-kernel.org/blog/2010/03/27/install-debian-lenny-on-yeeloong-80898101/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>QEMU Does NOT Support MIPS Host Anymore</title>
		<link>http://vm-kernel.org/blog/2009/03/26/qemu-does-not-support-mips-host-anymore/</link>
		<comments>http://vm-kernel.org/blog/2009/03/26/qemu-does-not-support-mips-host-anymore/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 06:42:03 +0000</pubDate>
		<dc:creator>yajin</dc:creator>
				<category><![CDATA[emulation]]></category>
		<category><![CDATA[loongson]]></category>
		<category><![CDATA[gdium]]></category>
		<category><![CDATA[MIPS]]></category>
		<category><![CDATA[qemu]]></category>

		<guid isPermaLink="false">http://vm-kernel.org/blog/2009/03/26/qemu-does-not-support-mips-host-anymore/</guid>
		<description><![CDATA[New version of qemu does not support MIPS host anymore.
For the sake of portability, the new version of qemu uses TCG, a tiny code generator, instead of dyngen to generate host code. That means one backend is needed for each host architecture. There are i386,x86_64,ppc,ppc64 and hppa backend in TCG, but MIPS is not on [...]]]></description>
			<content:encoded><![CDATA[<p>New version of qemu does not support MIPS host anymore.</p>
<p align="justify">For the sake of portability, the new version of qemu uses TCG, a tiny code generator, instead of dyngen to generate host code. That means one backend is needed for each host architecture. There are i386,x86_64,ppc,ppc64 and hppa backend in TCG, but MIPS is not on the list.</p>
<p align="justify">I confirm this conclusion on the <a href="http://www.nongnu.org/qemu/status.html">status page of qemu web site</a>. The MIPS's status is 'Not Supported'. Perhaps these days the most emergent work is to add MIPS host support, instead of loongson guest support to qemu.</p>
]]></content:encoded>
			<wfw:commentRss>http://vm-kernel.org/blog/2009/03/26/qemu-does-not-support-mips-host-anymore/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My New Toy: Gdium Liberty 1000</title>
		<link>http://vm-kernel.org/blog/2009/03/16/my-new-toy-gdium-liberty-1000/</link>
		<comments>http://vm-kernel.org/blog/2009/03/16/my-new-toy-gdium-liberty-1000/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 07:40:03 +0000</pubDate>
		<dc:creator>yajin</dc:creator>
				<category><![CDATA[ARM/MIPS]]></category>
		<category><![CDATA[loongson]]></category>
		<category><![CDATA[gdium]]></category>
		<category><![CDATA[OLPH]]></category>

		<guid isPermaLink="false">http://vm-kernel.org/blog/2009/03/16/my-new-toy-gdium-liberty-1000/</guid>
		<description><![CDATA[This morning I eventually received my gdium liberty 1000 from zjs express, nearly 5 days after its shipping! Last time I use sf express to ship my mp4 player to Beijing in less than 2 days. I understand, because of the battery stuff can not be shipped by airline, but 5 days is excessive for [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">This morning I eventually received my gdium liberty 1000 from <a href="http://www.zjs.com.cn/eng/index.aspx">zjs express</a>, nearly 5 days after its shipping! Last time I use <a href="http://en.sf-express.com/">sf express</a> to ship my mp4 player to Beijing in less than 2 days. I understand, because of the battery stuff can not be shipped by airline, but 5 days is excessive for train and even for truck!</p>
<p>Although a little dissatisfied with the shipping express, gdium seems very attractive to me at my first glance for its smart size and its black color. It spend me a little time to make the battery work because I do not know how to assemble the battery at first. The speed of gdium is not as good as I had expected for a 900MHZ CPU. But there is room for optimization because of the N32 MIPS ABI. The screen resolution is excellent, 1024*600 is enough for most of the web sites. The Chinese fonts display very well when I visit the sina.com.cn, thanks to <a href="http://wenq.org/index.cgi">wqy fonts</a>. The Youtube videos can also display very well in Firefox. Awesome! I do not find which plugin does firefox use to display the flash, gnash maybe? The gtk desktop is not very fluent, but that's ok because I will replace it with a lightweight desktop.</p>
<p>Gdium, to me, is a development platform more than a notebook for daily use. I want a MIPS development platform for a long time and gdium is the very one. It is better than the <a href="http://www.lemote.com/english/yeeloong.html">yeeloong</a> notebook, which I planned to buy a few months ago, for gdium has an bigger LCD and good look.</p>
<p>I have too many plans on this new toy, porting android, porting lguest and kvm. But the issue is there is no uart interface on gdium. If you want the uart interface, you need to seal it by yourself. That is too hard to me, a hardware beginner.</p>
<p>If there is an emulator of gdium, life would be much easier. I can use the emulator to test the pmon/linux kernel and lguest porting. I know I can develop a gdium emulator based on qemu, but I have done too much about the emulator stuff, <a href="http://vm-kernel.org/qemu-omap3.htm">qemu-omap3</a>, <a href="http://code.google.com/p/jz-hacking/wiki/qemujz">qemu-jz</a>, virtualmips and a little fed up with emulator development. But emulator is really a big helper for kernel related development......</p>
<p>Following is my todo list these months.</p>
<ul>
<li>install debian and a lightweight desktop for gdium</li>
<li>develop an emulator of gdium based on qemu</li>
<li>port lguest and kvm to MIPS</li>
<li>port android to gdium and tune the performance of dalvik runtime on MIPS target</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://vm-kernel.org/blog/2009/03/16/my-new-toy-gdium-liberty-1000/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Let&#039;s bring virtualization into MIPS&#039;s world</title>
		<link>http://vm-kernel.org/blog/2009/02/25/lets-bring-virtulization-into-mipss-world/</link>
		<comments>http://vm-kernel.org/blog/2009/02/25/lets-bring-virtulization-into-mipss-world/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 07:35:19 +0000</pubDate>
		<dc:creator>yajin</dc:creator>
				<category><![CDATA[ARM/MIPS]]></category>
		<category><![CDATA[JZ]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[jz-hacking]]></category>
		<category><![CDATA[Links:Virtualization]]></category>
		<category><![CDATA[loongson]]></category>

		<guid isPermaLink="false">http://vm-kernel.org/blog/2009/02/25/lets-bring-virtulization-into-mipss-world/</guid>
		<description><![CDATA[I have spent about 1 month in making linux run on onda vx747 and it works now. Although it is a achievement, it's not the end of project jz-hacking.
These days I am always thinking about bringing virtualization into MIPS's world. You know, xen has been ported into ARM by Samsung and kvm into PPC by [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">I have spent about 1 month in making <a href="http://vm-kernel.org/blog/2009/02/24/linux-on-onda-vx747/">linux run on onda vx747</a> and it works now. Although it is a achievement, it's not the end of project jz-hacking.</p>
<p align="justify">These days I am always thinking about bringing virtualization into MIPS's world. You know, <a href="http://www.youtube.com/watch?v=ylEy-WT3JF4">xen has been ported into ARM</a> by Samsung and <a href="http://kvm.qumranet.com/kvmwiki/KvmForum2008?action=AttachFile&amp;do=get&amp;target=kdf2008_10.pdf">kvm into PPC by IBM</a>. X86, not even to say,  has the most complete support of virtualization in hardware and software. But to MIPS, there is nothing. Neither there is no virtualization support in MIPS's world nor anyone wants to do this(at least I have NOT heard of that).</p>
<p align="justify">I think you may ask who needs virtualization or why we need virtualization in MIPS's world. Well, that's a good question which is not easy to answer. Let's divide MIPS's world into two parts: high performance computing and embedded devices. For the first part, the advantage of virtualization is obvious, for example, making better resource utilization.To the embedded world, let's use mobile phone as an example, using virtualization can make your device more secure by isolating the critical part, communicating protocol for example, from feature rich os(linux for example). Because of isolation, the virus on linux can not control your system's critical part.</p>
<p align="justify">Loongson has done great job in developing 2E and 2F, but that's not enough. I find that loongson has put many effort into x86 binary translation acceleration in last few years. That's a good point to get more market share. But we need to consider one thing first, if one customer wants to buy a MIPS translated x86 cpu, why does not he buy a x86 cpu directly? I think there is one area which loongson should put even more effort into. That is virtualization!</p>
<p align="justify">Virtualization can be achieved by hardware and/or software, with the better performance if hardware supports this feature. To the software virtualization, we already have xen/kvm/lguest and OKL4(it seems to focus on embedded world). Xen is a paravirtualization solution while kvm is a full virtualization solution. The most obvious difference between paravirtualization and full virtualization is prarvirtualization needs to modify the guest operation system while full virtualization needn't. Of course you can do this in full virtualization to achieve better performance.</p>
<p align="justify">According to MIPS, I think there should be a solution of virtualization. Either kvm or xen is ok. The important part is that we need to have one. That's what I was planned todo even in one year ago when I was busy developing virtualmips. I spent some days on porting <a href="http://lguest.ozlabs.org/">lguest</a> to jz4740 in last July. But at last I gave up. Now I want to do it again. I plan to port lguest to jz4740 and  loongson 2f first. With the help of this experience, I can gain some knowledge about virtualization on MIPS platform. And then kvm is planned to be ported to loongson 2f. Image that one day we can run five linux operating systems on loongson 2f at the same time, is it cool?</p>
<p align="justify">If you are interested in virtualization, let's work together to make this happen. Do not leave MIPS alone while other boys all have virtualization to play with. <img src='http://vm-kernel.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://vm-kernel.org/blog/2009/02/25/lets-bring-virtulization-into-mipss-world/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
