<?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; debian</title>
	<atom:link href="http://vm-kernel.org/blog/tag/debian/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>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>eth0 is missing on my gdium PCB board</title>
		<link>http://vm-kernel.org/blog/2009/03/28/eth0-is-missing-on-my-gdium-pcb-board/</link>
		<comments>http://vm-kernel.org/blog/2009/03/28/eth0-is-missing-on-my-gdium-pcb-board/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 09:32:03 +0000</pubDate>
		<dc:creator>yajin</dc:creator>
				<category><![CDATA[loongson]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[gdium]]></category>
		<category><![CDATA[udev]]></category>

		<guid isPermaLink="false">http://vm-kernel.org/blog/2009/03/28/eth0-is-missing-on-my-gdium-pcb-board/</guid>
		<description><![CDATA[I have an extra gdium pcb board with uart interface from fred. Thanks  .
Today I try to compile the kernel by myself and the new kernel works well except for network card. I can not see eth0 using ifconfig command. Then I check the pci list of my gdium PCB and find the RTL8139D [...]]]></description>
			<content:encoded><![CDATA[<p>I have an extra gdium pcb board with uart interface from fred. Thanks <img src='http://vm-kernel.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Today I try to compile the kernel by myself and the new kernel works well except for network card. I can not see eth0 using ifconfig command. Then I check the pci list of my gdium PCB and find the RTL8139D is on the list.</p>
<blockquote><p>kill-bill:~# ifconfig eth0   <br />eth0: error fetching interface information: Device not found</p></blockquote>
<blockquote></blockquote>
<blockquote><p>kill-bill:~# lspci     <br />00:00.0 MIPS: STMicroelectronics STLS2F Host Bridge (rev 01)      <br />00:0d.0 Network controller: RaLink RT2561/RT61 802.11g PCI      <br />00:0e.0 Display controller: Silicon Motion, Inc. SM501 VoyagerGX Rev. AA (rev c0      <br />)      <br />00:0f.0 USB Controller: NEC Corporation USB (rev 44)      <br />00:0f.1 USB Controller: NEC Corporation USB 2.0 (rev 05)      <br />00:10.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139      <br />C+ (rev 10)      <br />00:11.0 USB Controller: NEC Corporation USB (rev 44)      <br />00:11.1 USB Controller: NEC Corporation USB 2.0 (rev 05)</p>
</blockquote>
<p>That shows rtl8139 is successfully initialized by the kernel. But why there is no eth0 device?</p>
<p>Then I grep eth0 in dmesg and find that something is wrong with udev.</p>
<blockquote><p>kill-bill:~# dmesg | grep eth0     <br />eth0: RealTek RTL8139 at 0x9000000051a2a100, 00:d0:35:10:00:20, IRQ 39      <br />eth0:&#160; Identified 8139 chip type 'RTL-8100B/8139D'      <br />udev: renamed network interface eth0 to eth1</p>
</blockquote>
<p>I cat the udev net rule and find that it sets 8139d with MAC address 00:d0:35:10:00:20 to eth1. That's exactly the network card on my gdium PCB. </p>
<blockquote><p>kill-bill:~# cat /etc/udev/rules.d/70-persistent-net.rules     <br /># This file was automatically generated by the /lib/udev/write_net_rules      <br /># program run by the persistent-net-generator.rules rules file.      <br />#      <br /># You can modify it, as long as you keep each rule on a single line. </p>
<p># PCI device 0x10ec:0x8139 (8139too)     <br />SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;00:d0:35:10:04:a9&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth0&quot; </p>
<p># PCI device 0x1814:0x0301 (rt61pci)     <br />SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;00:0e:8e:19:3d:68&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;wlan*&quot;, NAME=&quot;wlan0&quot; </p>
<p># PCI device 0x10ec:0x8139 (8139too)     <br />SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;00:d0:35:10:00:20&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth1&quot; </p>
<p># PCI device 0x1814:0x0301 (rt61pci)     <br />SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;00:0e:8e:19:3b:18&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;wlan*&quot;, NAME=&quot;wlan1&quot;</p>
</blockquote>
<p>I know why dev does that now. The debian system is installed on my gdium, not on the PCB and then I just use it on the PCB board. When udev finds there is another 8139d network card with different MAC address it adds another entry in rules to rename it to eth1. After changing the eth1 to eth0 in 70-persistent-net.rules, the network works now.</p>
<p>Following is the kernel information of my new kernel.:)</p>
<blockquote><p>kill-bill:~# dmesg | grep 2.6.24     <br />Linux version 2.6.24.5-gdiumv3-2.2mnb (root@debian) (gcc version 4.3.3 (GCC) ) #      <br />2 Sat Mar 28 16:00:59 CST 2009</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://vm-kernel.org/blog/2009/03/28/eth0-is-missing-on-my-gdium-pcb-board/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How to Install Debian Lenny on Gdium</title>
		<link>http://vm-kernel.org/blog/2009/03/20/how-to-install-debian-lenny-on-gdium/</link>
		<comments>http://vm-kernel.org/blog/2009/03/20/how-to-install-debian-lenny-on-gdium/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 07:01:01 +0000</pubDate>
		<dc:creator>yajin</dc:creator>
				<category><![CDATA[loongson]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[gdium]]></category>
		<category><![CDATA[lenny]]></category>

		<guid isPermaLink="false">http://vm-kernel.org/blog/2009/03/20/how-to-install-debian-lenny-on-gdium/</guid>
		<description><![CDATA[Although Vincent has given us a how to article of debian on gdium, but there are some detailed things missed. So I rewrite it here with some more detailed steps.
(1) Prepare the new USB disk
Format the new USB disk with at least tow partitions, one is ext2 partition for the root file system and the [...]]]></description>
			<content:encoded><![CDATA[<p>Although <a href="http://www.gdium.com/en/user/408">Vincent</a> has given us <a href="http://www.gdium.com/en/node/872">a how to article</a> of debian on gdium, but there are some detailed things missed. So I rewrite it here with some more detailed steps.</p>
<p>(1) Prepare the new USB disk</p>
<p>Format the new USB disk with at least tow partitions, one is ext2 partition for the root file system and the other is swap space. You can use fdisk to do this.</p>
<p>(2) Install the debian base system using debootstrap</p>
<p>You need to install the debootstrap in gdium first.</p>
<blockquote><p>urpmi debootstrap</p></blockquote>
<p>Mount the new USB disk to your gdium, /mnt for example. Replace /dev/sdc1 to the name of your USB device.</p>
<blockquote><p><span style="background-color: #ffffff;">mount /dev/sdc1 /mnt</span></p></blockquote>
<p>Install the debian base system using debootstrap. You can change lenny to sid if you want to use the debian testing system. To me, I prefer lenny.</p>
<blockquote><p>debootstrap --arch=mipsel lenny /mnt</p></blockquote>
<p>It will download the packages and install to system. So please be patient if your network speed is slow.</p>
<p>Copy /etc/resolv.conf  to your new system and set the hostname of the new system.</p>
<blockquote><p><span style="background-color: #ffffff;">copy /etc/resolv.conf  /mnt/etc/resolv.conf</span></p>
<p><span style="background-color: #ffffff;">echo YOUHOSTNAME &gt; /mnt/etc/hostname</span></p></blockquote>
<p>Chroot to your new system.</p>
<blockquote><p><code>chroot /mnt /bin/bash</code></p></blockquote>
<p><span id="more-155"></span></p>
<p><code>(3) Install the kernel image</code></p>
<blockquote><p><code><span style="background-color: #ffffff;">wget <a title="http://lebesgue.cowpig.ca/~philippe/gdium/linux-2.6.24-gdium-1_2.6.24-gdium-1_mipsel.deb" href="http://lebesgue.cowpig.ca/~philippe/gdium/linux-2.6.24-gdium-1_2.6.24-gdium-1_mipsel.deb">http://lebesgue.cowpig.ca/~philippe/gdium/linux-2.6.24-gdium-1_2.6.24-gdium-1_mipsel.deb</a></span></code></p>
<p><code><span style="background-color: #ffffff;">dpkg -i linux-2.6.24-gdium-1_2.6.24-gdium-1_mipsel.deb</span></code></p></blockquote>
<p><code>Change /etc/modules to the following:</code></p>
<blockquote><p>gdium_laptop<br />
ipv6<br />
i2c_gpio<br />
sm501_gpio<br />
lm75<br />
hwmon_vid<br />
hwmon<br />
eeprom<br />
i2c_dev</p></blockquote>
<p><code>Install udev in debian. Otherwise the debian will complain about rtc after rebooting.<br />
</code></p>
<blockquote><p><code>apt-get install udev</code></p></blockquote>
<p><code>(4) Reboot your gdium and set the env parameters pf PMON</code></p>
<p><code>Reboot the gdium and press DEL on the keyboard when gdium powers up to enter the PMON console. Set the env parameters of PMON to let it loads the correct kernel image and find the correct root file system.</code></p>
<blockquote><p><code><span style="background-color: #ffffff;">set al <a>/dev/fs/ext2@usbg0/boot/vmlinuz-2.6.24-gdium-1</a></span></code></p>
<p><code><span style="background-color: #ffffff;">set karg console=tty0 root=/dev/sda1 rootwait video=sm501fb:1024x600 init=/sbin/init</span></code></p>
<p><code><span style="background-color: #ffffff;">reboot</span></code></p></blockquote>
<p><code>Please change root=/dev/sda1 according to your USB disk's partition setting.</code></p>
<p><code>(5) Install software in debian</code></p>
<blockquote><p><code><span style="background-color: #ffffff;">apt-get install lm-sensors</span></code></p></blockquote>
<p><code><span style="background-color: #ffffff;">Change the /etc/sensors3.conf to the following:</span></code></p>
<blockquote><p>chip "lm75-*"<br />
set temp1_max      40<br />
set temp1_max_hyst 35</p></blockquote>
<p>Install the video card driver.</p>
<blockquote><p><span style="background-color: #ffffff;">apt-get install xorg</span></p>
<p><span style="background-color: #ffffff;">wget <a title="http://lebesgue.cowpig.ca/~philippe/gdium/xserver-xorg-video-siliconmotion_1.7.0-0_mipsel.deb" href="http://lebesgue.cowpig.ca/~philippe/gdium/xserver-xorg-video-siliconmotion_1.7.0-0_mipsel.deb">http://lebesgue.cowpig.ca/~philippe/gdium/xserver-xorg-video-siliconmotion_1.7.0-0_mipsel.deb</a></span></p>
<p><span style="background-color: #ffffff;">dpkg -i xserver-xorg-video-siliconmotion_1.7.0-0_mipsel.deb</span></p></blockquote>
<p>Install lxde desktop. Of course you can install xfce4 or gnome.</p>
<blockquote><p><span style="background-color: #ffffff;">apt-get install lxde</span></p></blockquote>
<p>Install the wireless card driver and wicd. Change the /etc/apt/sources.list to the following.</p>
<blockquote><p>deb <a href="http://ftp.us.debian.org/debian">http://ftp.us.debian.org/debian</a> lenny main non-free<br />
deb <a href="http://apt.wicd.net">http://apt.wicd.net</a> lenny extras</p></blockquote>
<blockquote><p>apt-get update</p>
<p>apt-get install firmware-ralink wicd wireless-tools</p>
<p>modprobe rt61pci</p></blockquote>
<p>Ok. Now you have a working debian lenny system with lxde desktop.</p>
<p>Issues &amp; solutions:</p>
<p>(1) portmap hangs and you can't turn off gdium</p>
<p>Add the following lines to /etc/network/interfaces.</p>
<blockquote><p>auto lo<br />
iface lo inet loopback</p></blockquote>
<p>(2)cannot access mtab: Input/output error</p>
<p>That's because /etc/fstab is not configured. Add the follow lines into your /etc/fstab. You can add or delete the partitions if you want.</p>
<blockquote><p>/dev/sda1 / ext3 noatime 1 1<br />
/dev/sda4 swap swap defaults 0 0<br />
none /tmp tmpfs defaults 0 0<br />
none /var/log tmpfs defaults 0 0<br />
none /proc proc defaults 0 0<br />
none /sys/kernel/debug debugfs defaults 0 0</p></blockquote>
<p>(3) Sound does not work on my system!!</p>
<p>Add you the the audio group.</p>
<blockquote><p>usermod -a - G audio yajin</p></blockquote>
<p>(4) The system can not display Chinese characters.</p>
<blockquote><p>apt-get install locales</p>
<p>dpkg-reconfigure locales</p></blockquote>
<p>Please make sure zh_CN locale is selected. You can install wqy fonts if you want.</p>
<blockquote><p>apt-get install xfonts-wqy ttf-wqy-zenhei</p></blockquote>
<p>(5) How to display the flash player in youtube</p>
<blockquote><p><span style="background-color: #ffffff;">apt-get install swfdec-mozilla</span></p></blockquote>
<p>The feedbacks are welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://vm-kernel.org/blog/2009/03/20/how-to-install-debian-lenny-on-gdium/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
