<?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; lenny</title>
	<atom:link href="http://vm-kernel.org/blog/tag/lenny/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>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>
