Is your YeeLoong netbook still too slow?

65 views
Skip to first unread message

wu zhangjin

unread,
Jan 5, 2011, 2:18:39 PM1/5/11
to loongson-dev, Zhang Le, 刘世伟
Hi, Folks

If your YeeLoong netbook is still too slow, It's time for you updating
your system.

Firstly, please update your kernel to the latest 2.6.37 for
Loongson[1], are you still using 2.6.37? oh, no, please ... why
2.6.37? more features like ext4, better response performance with the
session autogroup patch, more power saving support(hibernation,
suspend, backlight, battery...), better user experience(hotkey).

Secondly, If you are a Linux expert, please Install Gentoo for
Loogson[2] maintained by Zhang Le, otherwise, please to to Debian 6.0
for Loongson[3] maintained by Liu Shiwei.

I'm not the expert, so, I have simply installed the pre-installed
Debian 6.0 for Loongson here:
http://www.anheng.com.cn/loongson/install/

[ For experts, welcome Zhang Le to add a quick start for installing
gentoo on Loongson machines ;-) ]

To install it, we can simply download the latest package to one of our
empty partitions on YeeLoong harddrive and add an optoin for it in
/boot/boot.cfg.

For Gnome Desktop:

$ wget -c http://www.anheng.com.cn/loongson/install/loongson2_debian6_20101225.tar.lzma

For LXDE:

$ wget -c http://www.anheng.com.cn/loongson/install/loongson2_debian6_lxde_20101225.tar.lzma

Then, assume you have an empty parition /dev/sdaN, format it to ext4
and mount it to /mnt:

$ mkfs.ext4 /dev/sdaN
$ mount /dev/sdaN /mnt

Decompress the lzma package to /mnt

$ cd /mnt
$ lzma -cd loongson2_debian6_xxxx_.tar.lzma | tar -xf -C /mnt

Then, Copy the kernel images to your current /boot

$ cp -r /mnt/boot/* /boot/

At last, add a new boot option in /boot/boot.cfg, e.g.

title Debian 6.0
kernel (wd0,0)/boot/<put the name of the latest kernel image here>
args console=tty root=/dev/sdaN

Check it and reboot, at last, you will get a faster system.

Gnome has better softwares than LXDE, so, it is recommended, but LXDE
is faster. If you want Gnome faster, you can refer to [4] and use a
light weight login manager(e.g. slim) instead of gdm. and to get a
faster web brower, midori may be a good choice, I have tried it, it is
very fast, for the audio player, moc(music on console) may be a good
choice.

Why the systems maintained by Zhang Le and Liu Shiwei are faster? For
they have added the softwares optimized for Loongson, e.g. Xorg
siliconmotion driver[5], Pixman[6], ffmpeg[7]. and the Gentoo
maintained by Zhang Le also allow the users to compile it with N32 ABI
to get better performance.

Some other optimizations may be not available in the above systems,
e.g. Mplayer[8], this has not been maintained for a long time, but
somebody may reactivate it ;-)

Cheers,
Wu Zhangjin
--------
[1] http://dev.lemote.com/code/linux-loongson-community
[2] http://dev.lemote.com/code/linux-loongson-community#Gentoon32
[3] http://dev.lemote.com/code/linux-loongson-community#Debian6.0Recommend
[4] http://dev.lemote.com/code/linux-loongson-community#Xwindow
[5] http://dev.lemote.com/code/linux-loongson-community/wiki/x11-yeeloong
[6] http://dev.lemote.com/code/Pixman.Loongson
[7] http://gentoo-overlays.zugaina.org/loongson/portage/media-video/ffmpeg/files/ffmpeg-loongson.patch
[8] http://dev.lemote.com/code/mplayer

wu zhangjin

unread,
Jan 5, 2011, 2:24:03 PM1/5/11
to loongson-dev, Zhang Le, 刘世伟
On Thu, Jan 6, 2011 at 3:18 AM, wu zhangjin <wuzha...@gmail.com> wrote:
> Hi, Folks
>
> If your YeeLoong netbook is still too slow, It's time for you updating
> your system.
>
> Firstly, please update your kernel to the latest 2.6.37 for
> Loongson[1], are you still using 2.6.37? oh, no, please ... why
^^^^^ I mean 2.6.27
here, it was a typo ;-)

fyk...@gmail.com

unread,
Jan 5, 2011, 8:09:34 PM1/5/11
to loongson-dev
2011/1/6 wu zhangjin <wuzha...@gmail.com>
better response performance with the
session autogroup patch, 
It seems autogroup didn't enter this kernel. Maybe due to some reference leak to fix at the last moment and the JACK people's complaint about sched_rt.



--
Regards,

- cee1

ZHANG, Le

unread,
Jan 6, 2011, 10:58:55 AM1/6/11
to wu zhangjin, loongson-dev, 刘世伟
On 03:18 Thu 06 Jan , wu zhangjin wrote:
> Hi, Folks
>
> If your YeeLoong netbook is still too slow, It's time for you updating
> your system.
>
> Firstly, please update your kernel to the latest 2.6.37 for
> Loongson[1], are you still using 2.6.37? oh, no, please ... why
> 2.6.37? more features like ext4, better response performance with the
> session autogroup patch, more power saving support(hibernation,
> suspend, backlight, battery...), better user experience(hotkey).
>
> Secondly, If you are a Linux expert, please Install Gentoo for
> Loogson[2] maintained by Zhang Le, otherwise, please to to Debian 6.0
> for Loongson[3] maintained by Liu Shiwei.
>
> I'm not the expert, so, I have simply installed the pre-installed
> Debian 6.0 for Loongson here:
> http://www.anheng.com.cn/loongson/install/
>
> [ For experts, welcome Zhang Le to add a quick start for installing
> gentoo on Loongson machines ;-) ]

Just grab the stage3-loongson2f_n32-20100725.tar.bz2 under
experimental/mips/stages/loongson/ directory of any gentoo mirror, like:
http://mirrors.xmu.edu.cn/gentoo/experimental/mips/stages/loongson/

Then follow gentoo handbook to install it
http://www.gentoo.org/doc/en/handbook/handbook-mips.xml

Basically installing gentoo using a stage3 tarball is as simple as the following
steps:
1. prepare a partition
2. unpack stage3 and portage tarball
3. chroot into the partition and modify some configuration files.
4. install necessary packages and bootloader
Then you are good to go.

--
ZHANG, Le
http://zhangle.is-a-geek.org
0260 C902 B8F8 6506 6586 2B90 BC51 C808 1E4E 2973

asm

unread,
Jan 22, 2011, 10:57:54 PM1/22/11
to loongson-dev
How to obtain Debian 6.0 maintened by Liu Shiwei in english?

I downloaded the last version[1] and decompressed it on USB disk.
Then, I loaded the kernel and the initrd using the console of the pmon
bios and I did the boot (Here I used o initrd of linux-2.6.37-libre-
lemote complied by lxoliva [2], because I do not found one when
descompressed the lzma package). But the system is in chinese, a
language that I do not understand. Is possible to obtain this system
in english?

[1] http://www.anheng.com.cn/loongson/install/loongson2_debian6_lxde_20110116.tar.lzma
[2] http://linux-libre.fsfla.org/pub/linux-libre/lemote/gnewsense/pool/linux-image-2.6.37-libre-lemote_0lxo_mipsel.deb

wu zhangjin

unread,
Jan 23, 2011, 6:18:10 AM1/23/11
to loongs...@googlegroups.com
On Sun, Jan 23, 2011 at 11:57 AM, asm <asm...@gmail.com> wrote:
> How to obtain Debian 6.0 maintened by Liu Shiwei in english?
>
> I downloaded the last version[1] and decompressed it on USB disk.
> Then, I loaded the kernel and the initrd using the console of the pmon
> bios and I did the boot (Here I used o initrd of linux-2.6.37-libre-
> lemote complied by lxoliva [2], because I do not found one when
> descompressed the lzma package

I guess there was one, not remember where it stayed, maybe under the
boot/ directory of your decompressed package?

> ). But the system is in chinese, a
> language that I do not understand. Is possible to obtain this system
> in english?

Of course, you can:

$ dpkg-reconfigure locale

Select what you like with the above command ;-)

Regards,
Wu Zhangjin

> --
> You received this message because you are subscribed to the Google Groups "loongson-dev" group.
> To post to this group, send email to loongs...@googlegroups.com.
> To unsubscribe from this group, send email to loongson-dev...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/loongson-dev?hl=en.
>
>

asm

unread,
Jan 23, 2011, 8:27:09 AM1/23/11
to loongson-dev
On 23 jan, 06:18, wu zhangjin <wuzhang...@gmail.com> wrote:
> On Sun, Jan 23, 2011 at 11:57 AM, asm <asmm...@gmail.com> wrote:
> > How to obtain Debian 6.0 maintened by Liu Shiwei in english?
>
> > I downloaded the last version[1] and decompressed it on USB disk.
> > Then, I loaded the kernel and the initrd using the console of the pmon
> > bios and I did the boot (Here I used o initrd of linux-2.6.37-libre-
> > lemote complied by lxoliva [2], because I do not found one when
> > descompressed the lzma package
>
> I guess there was one, not remember where it stayed, maybe under the
> boot/ directory of your decompressed package?

I did not find it neither under boot/ directory nor initrd/ directory
of decompressed package. Me too tried find it running the command

$ ls -R | grep initrd

under root directory of decompressed package. But I did not find.

> > ). But the system is in chinese, a
> > language that I do not understand. Is possible to obtain this system
> > in english?
>
> Of course, you can:
>
> $ dpkg-reconfigure locale
>
> Select what you like with the above command ;-)

I ran this command with "locale" instead "locales". It works! :-)

Thank you very much,
asm.

PS: Excuse my poor english writing. I am not a native of this language.

wu zhangjin

unread,
Jan 23, 2011, 10:48:29 AM1/23/11
to loongs...@googlegroups.com
On Sun, Jan 23, 2011 at 9:27 PM, asm <asm...@gmail.com> wrote:
> On 23 jan, 06:18, wu zhangjin <wuzhang...@gmail.com> wrote:
>> On Sun, Jan 23, 2011 at 11:57 AM, asm <asmm...@gmail.com> wrote:
>> > How to obtain Debian 6.0 maintened by Liu Shiwei in english?
>>
>> > I downloaded the last version[1] and decompressed it on USB disk.
>> > Then, I loaded the kernel and the initrd using the console of the pmon
>> > bios and I did the boot (Here I used o initrd of linux-2.6.37-libre-
>> > lemote complied by lxoliva [2], because I do not found one when
>> > descompressed the lzma package
>>
>> I guess there was one, not remember where it stayed, maybe under the
>> boot/ directory of your decompressed package?
>
> I did not find it neither under boot/ directory nor initrd/ directory
> of decompressed package. Me too tried find it running the command
>
> $ ls -R | grep initrd
>
> under root directory  of decompressed package. But I did not find.

ooh, sorry, Shiwei didn't provide initrd, only vmlinu* there, I just
thought of you were finding vmilnu*.

initrd is useless for a specific board but only slow down the booting
of the system, so, what is your real requirement?

>
>> > ). But the system is in chinese, a
>> > language that I do not understand. Is possible to obtain this system
>> > in english?
>>
>> Of course, you can:
>>
>> $ dpkg-reconfigure locale
>>
>> Select what you like with the above command ;-)
>
> I ran this command with "locale" instead "locales". It works! :-)

My fault, anyway, cong~~

Regards,
Wu Zhangjin

>
> Thank you very much,
> asm.
>
> PS: Excuse my poor english writing. I am not a native of this language.
>

Alexandre "asm"

unread,
Jan 23, 2011, 1:18:18 PM1/23/11
to loongs...@googlegroups.com
2011/1/23 wu zhangjin <wuzha...@gmail.com>


ooh, sorry, Shiwei didn't provide initrd, only vmlinu* there, I just
thought of you were finding vmilnu*.

initrd is useless for a specific board but only slow down the booting
of the system, so, what is your real requirement?

I want to test the debian 6.0 ported by Liu Shiwei installed on a usb external disk or usb stick. For this I am using the intird, when I do not use happens kernel panic (it can not to find the root file system). It seems works (it boots, starts lxde and I can run commands on it). But wifi is not working. (I already verified that the network-manager is running and, led indicator turns green when press Fn+F5). Now, I need fix this.

Regards,
asm.

wu zhangjin

unread,
Jan 23, 2011, 10:38:11 PM1/23/11
to loongs...@googlegroups.com, 刘世伟
On Mon, Jan 24, 2011 at 2:18 AM, Alexandre "asm" <asm...@gmail.com> wrote:
[snip]

>
> I want to test the debian 6.0 ported by Liu Shiwei installed on a usb
> external disk or usb stick. For this I am using the intird, when I do not
> use happens kernel panic (it can not to find the root file system).

I knew the cause: the USB support was not compiled into the kernel
image but was compiled as modules, so add Shiwei in this loop and I
will add the USB support as Y in the default kernel config asap.

> It seems
> works (it boots, starts lxde and I can run commands on it). But wifi is not
> working. (I already verified that the network-manager is running and, led
> indicator turns green when press Fn+F5). Now, I need fix this.

Can you get any odd information with the dmesg command:

$ dmesg

Not sure which kernel source code did lxoliva use, If he was using the
one from mainline + the old wifi driver, then, the wifi driver will
not work, for I have fixed a mainline problem to make the wifi work.
If you have time, you can download the kernel here:

http://dev.lemote.com/code/linux-loongson-community

and compile the kernel from scratch, but the native compiling is slow,
so, you'd better wait for Shiwei's update If you are not too urgent.

Regards,
Wu Zhangjin

>
> Regards,
> asm.

Reply all
Reply to author
Forward
0 new messages