On Tue, Nov 9, 2010 at 6:08 AM, wu zhangjin <[email protected]> wrote:

> Hi, mengqian & all
>
> Sorry for my late response.
>
> Based on the previous work of Arnaud Patard[1] and Yajin[2], just
> finished a basic 2.6.37 support(pci, irq, reset, video) for Gdium and
> pushed it into our master branch[3], two default config files has been
> added:
>
> arch/mips/configs/gdium_{minimal,small}_defconfig
>
> The minimal one is prepared for the rescue/recover system, the small
> one can be used for desktop or development.
>
> With anyone of the above config files, the kernel is bootable, the
> later enabled more supports(wireless), if you need more drivers,
> please refer to arch/mips/configs/lemote2f_defconfig.
>
> To boot the kernel, you may need to install the modules into the
> board's /lib/modules and copy the vmlinuz or vmlinux to the board's
> /boot, and then, config the pmon(bootloader) environment variables and
> boot with the new kernel:
>
> 1. Enter into the PMON commandline
>
> power on your board, and press the 'C' key till you get the following
> prompt.
>
> PMON>
>
> 2. Set the path to the kernel image in the "al" environment variable
>
> // take a look at the existing environment variables
> PMON> env
> // or take a look at an indicated environment variable: al
> PMON> env al
> // backup the old al
> PMON> set old_al $al
> // set the new al, assume your kernel image(vmlinuz-2.6.37) is put at
> the 2nd partition of your usb storage
> PMON> set al /dev/fs/e...@usbg0/boot/vmlinuz-2.6.37
>
> 3. Set the kernel command line parameters in "karg"
>
> PMON> env karg
> PMON> set old_karg $karg
> // Assume your root filesystem is at the 2nd partition of your usb storage
> PMON> set kargs "console=tty1 root=/dev/sda2 rootwait init=/sbin/finit-mdv"
>
> 4. Load & Boot
>
> // Load the kernel image
> PMON> load $al
> // Boot it
> PMON> g $karg
>
> If you want to load a kernel image from the tftp server, please enable
> the network connection via the bootloader at first.
>
> PMON> devls
> ...
> rtl0
> PMON> set ifconfig rtl0:<local_ip_addresss> // for example: set
> ifconfig rtl0:192.168.0.131
> PMON> load tftp://<tftp_server_ip_address>/path/to/tftpboot/vmlinuz
> ....
>
> To get more information about gdium, PMON and the available systems on
> it, please refer to [4].
>
> More efforts are needed to forward-port the following supports from
> 2.6.29[3] to 2.6.37:
>
> The EC support(hotkey, battery ...) from
> drivers/platform/mips/gdium-laptop.c (seems no big change)
> The sm501 based sound support from sound/soc/sm501 (may need enough
> effort for the mainline has changed a lot)
> The pm support(mainly "suspend to RAM") from
> arch/mips/lemote/lm2f/*pm* (stl2_suspend2.patch, this may be hard too
> but should be easy for basic pm support, the Hibernation should be
> usable currently.)
>
> Currently, I have no schedule to work on them, but I hope they may be
> available one by one in the coming 3 ~ 6 weeks, which means 2.6.37 in
> our linux-loongson-community git repository.
>
> Best Regards,
> Wu Zhangjin
> ------
> [1] git://git.opensde.net/users/amery/linux-2.6.29-gdium
> [2] http://repo.or.cz/w/linux-2.6/linux-mips/linux-gdium.git (2.6.35-rc2)
> [3] http://dev.lemote.com/code/linux-loongson-community
> [4] More
> [4.1] FAQ
> http://www.gdium.com/en/support/faq
> [4.2] How to Install Debian Lenny on Gdium
> http://vm-kernel.org/blog/2009/03/20/how-to-install-debian-lenny-on-gdium/
> [4.3] PMON
> http://olph.gdium.com/wiki/doku.php/system:pmon
>
> On Wed, Oct 20, 2010 at 7:34 PM, 包孟謙 <[email protected]> wrote:
> > This is a question mainly for Gdium owners, but all input is welcome.
> >
> > Did anyone successfully manage to (compile and) run a more recent
> > kernel thatn 2.6.29... (from Mandriva's G-linux) on his/her Gdium?
> >
> > Even if proper support for audio and hotkeys is not ported, I am
> > considering compiling a kernel from newer sources so I could update
> > udev, include Huawei K3765 support, etc.
> >
> > In theory, I believe, the Yeelong sources should be compatible (except
> > for the Gdium specific hotkeys, audio). The Gdium lacks the VIA
> > southbridge but I do not think that should be a problem.
> >
> > Does anyone have any experience with experimenting with "Yeelong"
> > kernels on the Gdium?
> >
> > Please let me know.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "loongson-dev" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> [email protected]<loongson-dev%[email protected]>
> .
> > For more options, visit this group at
> http://groups.google.com/group/loongson-dev?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "loongson-dev" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<loongson-dev%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/loongson-dev?hl=en.
>
>

"Based on the previous work of Arnaud Patard[1] and Yajin[2], just
finished a basic 2.6.37 support(pci, irq, reset, video) for Gdium and
pushed it into our master branch[3]"

That is great news! I have been struggling with Yajin's tree (2.6.32, I
think) which seemed to have an affinity for IO warnings and lock-ups. Also
the Mandriva-managed 2.6.29.6 sources fail to compile because they are
prepared for a different binutils patchset, besides those sources are very
old anyway. I am used to customizing the kernel for my desktop and
fileserver, so without this opportunity I felt a bit restricted - which
just will not not do for a Loongson system ;)

"The pm support(mainly "suspend to RAM") from
arch/mips/lemote/lm2f/*pm* (stl2_suspend2.patch, this may be hard too
but should be easy for basic pm support, the Hibernation should be
usable currently.)"

Actually, I have yet to experiment with hibernation / standby on the Gdium.
I feel that with Gentoo, it already boots and halts sufficiently quick
without this support. But I definitely welcome the effort, and I will
experiment with suspend-to-disk now that I know it is available.


Thank you all, Wu Zhangjin, Zhou Yajin, Zhang Le, Arnaud Patard, Philippe
Vachon and others for continuing development on the Loongson systems,
especially the non-Lemote one ;)

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

Reply via email to