linux-loongson-2.6.30.2 is ready for you

19 views
Skip to first unread message

Wu Zhangjin

unread,
Jul 22, 2009, 9:42:28 AM7/22/09
to loongs...@googlegroups.com
Hi,

linux-loongson-2.6.30.2 is ready for you, it includes the following
changes:

- update to the latest mainline linux-2.6.30.2
- compressed kernel support picked from linux-loongson-2.6.27.1
(liushiwei)
- standby support fixup

download:

http://dev.lemote.com/cgit/rt4ls.git/snapshot/linux-loongson-2.6.30.2-allinone.tar.bz2

or

git://dev.lemote.com/rt4ls.git linux-loongson/2.6.30/stable

Enjoy it!

Regards,
Wu Zhangjin

Fai Wong

unread,
Jul 22, 2009, 10:26:42 PM7/22/09
to loongs...@googlegroups.com
Hi Wu Zhangjin,

Are there any "optimal" kernel config for each models of Loongson boxes/laptops?

I found some config files in linux-loongson-2.6.30.2-allinone/arch/mips/configs/
fuloong2e_defconfig, fuloong2f_defconfig and yeeloong2f_defconfig
Are they the recommended config files for compiling? Thanks!

Cheers,
Fai

2009/7/22 Wu Zhangjin <wuzha...@gmail.com>:

Wu Zhangjin

unread,
Jul 22, 2009, 11:36:51 PM7/22/09
to loongs...@googlegroups.com
On Thu, 2009-07-23 at 10:26 +0800, Fai Wong wrote:
> Hi Wu Zhangjin,
>
> Are there any "optimal" kernel config for each models of Loongson boxes/laptops?
>
> I found some config files in linux-loongson-2.6.30.2-allinone/arch/mips/configs/
> fuloong2e_defconfig, fuloong2f_defconfig and yeeloong2f_defconfig
> Are they the recommended config files for compiling? Thanks!

I think so, but I'm not sure they are optimal, I think you can remove
most of the modules if you know how to do it.

if you want to use a minimal configuration file and know how to config
it, try it like this:

1. filter all the modules

$ cat arch/mips/configs/xxxx_defconfig | grep -v "=m" > .config

2. choose the other drivers, such as OHCI support, SOUND support...

$ make menuconfig ARCH=mips

Perhaps there is a need to minimize this configuration file later. the
current default configuration include too many modules which never be
used.

Regards,
Wu Zhangjin

Fai Wong

unread,
Jul 23, 2009, 1:51:50 AM7/23/09
to loongs...@googlegroups.com
Hi,

I've tried to build the kernel but it seems that there is something
wrong in Makefile,
when I build it using a seperated object directory, say,
/home/fai/linux-loongson-build/,
the build process is normal, most of the files are compiled but it
stopped with these
messages:

make[4]: *** No rule to make target
`/usr/src/linux-loongson-2.6.30.2-allinone/vmlinux', needed by
`arch/mips/zboot/lm2f/head.o'. Stop.
make[3]: *** [arch/mips/zboot/bzImage] Error 2
make[2]: *** [bzImage] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2

Normally we don't need to build a kernel inside the kernel source
directory using
make -C /usr/src/linux SRC=/usr/src/linux O=/home/fai/linux-loongson-build
to specify the directories.


Cheers,
Fai


2009/7/23 Wu Zhangjin <wuzha...@gmail.com>:

Wu Zhangjin

unread,
Jul 26, 2009, 10:13:37 AM7/26/09
to loongs...@googlegroups.com
Hi,

On Thu, 2009-07-23 at 13:51 +0800, Fai Wong wrote:
> I've tried to build the kernel but it seems that there is something
> wrong in Makefile,
> when I build it using a seperated object directory, say,
> /home/fai/linux-loongson-build/,
> the build process is normal, most of the files are compiled but it
> stopped with these
> messages:
>
> make[4]: *** No rule to make target
> `/usr/src/linux-loongson-2.6.30.2-allinone/vmlinux', needed by
> `arch/mips/zboot/lm2f/head.o'. Stop.
> make[3]: *** [arch/mips/zboot/bzImage] Error 2
> make[2]: *** [bzImage] Error 2
> make[1]: *** [sub-make] Error 2
> make: *** [all] Error 2
>
> Normally we don't need to build a kernel inside the kernel source
> directory using
> make -C /usr/src/linux SRC=/usr/src/linux O=/home/fai/linux-loongson-build
> to specify the directories.
>

Sorry, I'm so late to reply to you.

I just cleaned up the whole zboot implementation and make it be compiled
outside the kernel source directory. besides, I have made it support
64bit and three different compressing algorithm(gzip,bzip2 & lzma).

$ file arch/mips/loongson/image/zImage
arch/mips/loongson/image/zImage: ELF 64-bit LSB executable, MIPS,
MIPS-III version 1 (SYSV), statically linked, not stripped

NOTE: this zImage file will be generated automatically when you compile
the kernel with "make", no extra "make zImage" needed, and the original
raw vmlinux is reserved there.

$ ls -lh arch/mips/loongson/image/zImage
-rwxr-xr-x 1 falcon falcon 1.9M 07-26 21:23
arch/mips/loongson/image/zImage

$ ls -lh vmlinux // use bzip2 algorithm
-rwxr-xr-x 1 falcon falcon 7.2M 07-26 21:23 vmlinux

by default, the gzip algorithm is selected, but lzma is recommended,
which can generate smaller kernel image, but Seems lzma need more time
to decompress.

and BTW, I have tuned the kernel standby support to save more power for
you(about 5W, no extra shell scripts needed), welcome to play with it,
try to do it in command line(resume it via a press on the keyboard):

$ echo standby > /sys/power/state

or

using the applications: kpowersave or gnome-power-manager.

Download:

git://dev.lemote.com/rt4ls.git linux-loongson/2.6.30/stable

or

http://dev.lemote.com/cgit/rt4ls.git/snapshot/linux-loongson-2.6.30.2-allinone.tar.bz2

Zhang Le

unread,
Jul 28, 2009, 3:59:49 PM7/28/09
to loongs...@googlegroups.com
It seems that wireless connection can't survive standby.
I have to restart it. Is this normal behavior?

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

Wu Zhangjin

unread,
Jul 28, 2009, 10:59:06 PM7/28/09
to loongs...@googlegroups.com, ya...@lemote.com, 孙海勇, lemote-...@lists.lemote.com
On Wed, 2009-07-29 at 03:59 +0800, Zhang Le wrote:
> It seems that wireless connection can't survive standby.
> I have to restart it. Is this normal behavior?

Just checked it, Seems the wireless connection can not survive with the
old NetworkManager on yeeloong2f, but If I use the new "NetworkManager
Applet(0.7.0.100)" tool, it can survive after resuming from standby. I
think the new "NetworkManager Applet" tool can check the connection
automatically, but the old one can not.

so, you are recommended to use the "Network Manager Applet" if you do
not want to restart the wireless connection manually. (and perhaps there
is a 'bug' in rtl8787b wifi drivers, I need to ensure it later. what
about the situation of your wifi connection after resuming in your
machine(not yeeloong)?)

anybody, if you want to try this new "NetworkManager Applet" tool,
please tell me, then I can send a copy of it to you. because this tool
is not that stable to be in the debian repository yet.

and BTW, just added a new change to the latest linux-loongson-2.6.30.2:

make the LID opening action wakeup yeeloong from standby mode, welcome
to play with it.

Regards,
Wu Zhangjin

刘世伟

unread,
Jul 31, 2009, 10:54:51 AM7/31/09
to loongs...@googlegroups.com
fuloong2f 6002/6003 UDMA100 patch
udma100.diff

Wu Zhangjin

unread,
Jul 31, 2009, 10:26:39 PM7/31/09
to loongs...@googlegroups.com, Liu Shiwei
Hi,

On Fri, 2009-07-31 at 22:54 +0800, 刘世伟 wrote:
> fuloong2f 6002/6003 UDMA100 patch

--- linux-yeeloong/arch/mips/loongson/common/cmdline.c 2009-07-26
20:53:56.000000000 +0800
+++
rt4ls/arch/mips/loongson/common/cmdline.c 2009-07-31 22:49:19.000000000
+0800
@@ -52,6 +52,8 @@

if ((strstr(arcs_cmdline, "console=")) == NULL)
strcat(arcs_cmdline, " console=ttyS0,115200");
+ if ((strstr(arcs_cmdline, "ide_core.ignore_cable=")) == NULL)
+ strcat(arcs_cmdline, " ide_core.ignore_cable=0");
if ((strstr(arcs_cmdline, "root=")) == NULL)
strcat(arcs_cmdline, " root=/dev/hda1");
}

any more detail comment on this patch? what it fixed? does yeeloong2f
need it?

thanks!

Regards,
Wu Zhangjin

刘世伟

unread,
Jul 31, 2009, 10:51:26 PM7/31/09
to wuzha...@gmail.com, loongs...@googlegroups.com
only 6002/6003 and fuloong2e need it ,


2009/8/1, Wu Zhangjin <wuzha...@gmail.com>:

Wu Zhangjin

unread,
Aug 1, 2009, 12:59:15 AM8/1/09
to loongs...@googlegroups.com
On Fri, 2009-07-31 at 22:54 +0800, 刘世伟 wrote:
> fuloong2f 6002/6003 UDMA100 patch

Applied, thanks!

Reply all
Reply to author
Forward
0 new messages