Once again: thanks a lot, this is great news!
Since your last update I have been busy rolling kernels with the
updated sources but soon suspended my efforts when I felt that the
Gdium was overheating due to lm_sensors not being functional and thus
fancontrol not operating the fan.
One question remains: now that the 'master' branch has been updated
with improved gdium support, is the 'gdium' branch deprecated?
On 01:12 15 Nov 10, wu zhangjin wrote:
> Hi, all
>
> New status of linux-loongson-community for Gdium:
>
> Sensors, Backlight, Function/Hotkey, AC/battery drivers work with
> arch/mips/configs/gdium_small_defconfig, but sound and pm/suspend
> still not work.
>
> 1. Sensors
>
> lm75 driver must be enabled as y or m, then you can use 'sensors'
> command to get the board(or cpu? not sure) temperature.
>
> 2. Backlight
>
> pwm_backlight common driver(CONFIG_BACKLIGHT_PWM) must be enabled as y
> or m, then you can use kpowersave or gnome-power-manager to change the
> backlight, or you can use the interface
> /sys/class/backlight/pwm-backlight/brightness directly.
>
> 3. Function/Hotkey drivers(include hid-gdium and gdium_laptop)
>
> All of the Fn key should work now(except the ones for the volume/mute
> changing).
>
> CONFIG_HID_GDIUM and CONFIG_GDIUM_LAPTOP must be enabled as y or m.
>
> With the help of function key, you can change the backlight via Fn+F8/F9.
>
> More function key maps are defined as follows:
>
> drivers/hid/hid-gdium.c:
>
> { KEY_F1, KEY_CAMERA },
> { KEY_F2, KEY_CONNECT },
> { KEY_F3, KEY_MUTE },
> { KEY_F4, KEY_VOLUMEUP},
> { KEY_F5, KEY_VOLUMEDOWN },
> { KEY_F6, KEY_SWITCHVIDEOMODE },
> { KEY_F7, KEY_F19 }, /* F7+12. Have to use existant keycodes */
> { KEY_F8, KEY_BRIGHTNESSUP },
> { KEY_F9, KEY_BRIGHTNESSDOWN },
> { KEY_F10, KEY_SLEEP },
> { KEY_F11, KEY_PROG1 },
> { KEY_F12, KEY_PROG2 },
> { KEY_UP, KEY_PAGEUP },
> { KEY_DOWN, KEY_PAGEDOWN },
> { KEY_INSERT, KEY_NUMLOCK },
> { KEY_DELETE, KEY_SCROLLLOCK },
> { KEY_T, KEY_STOPCD },
> { KEY_F, KEY_PREVIOUSSONG },
> { KEY_H, KEY_NEXTSONG },
> { KEY_G, KEY_PLAYPAUSE },
>
> 4. AC/Battery driver
>
> gdium_laptop also provides a AC/battery driver, which can be used to
> monitor the AC/Battery working status, but the battery driver need to
> be improved to provide the information of
> POWER_SUPPLY_PROP_TIME_TO_EMPTY_NOW and
> POWER_SUPPLY_PROP_TIME_TO_FULL_NOW, I have done some statistic on the
> time to empty and full, will get a formula for it later.
>
> -------------
>
> BTW:
>
> 1. I have no time to work on the left sound and pm drivers in the next
> 2 or 3 months, so, If you folks have interest or time, welcome your
> patches, thanks in advance.
>
> 2. Some notes to forward-port the sound and pm drivers:
>
> 2.1. sound driver
>
> may need to port the following three patches:
>
> SM501 ASoC driver // You can search these patches after issuing
> "git log", the same to the following ones
> gdium_sound_fixes.patch
> GB36_sm502_mfd_rewrite.patch
>
> from
>
> git://git.opensde.net/users/amery/linux-2.6.29-gdium
>
> But simply copy them from the above git repo to our git repo will not
> work for the mainline has changed some sound APIs, please refer to the
> "ASoC: multi-component - ASoC Multi-Component Support" commit of the
> mainline and the other implementations under sound/soc/
>
> 2.2 pm/suspend driver
>
> may need to port "stl2_suspend2.patch" from
> git://git.opensde.net/users/amery/linux-2.6.29-gdium, but please check
> the potential conflict between it and the mainline:
> arch/mips/loongson/common/pm.c, arch/mips/power/
>
> And to enable the cpufreq driver support for Gdium, the sm501-pwm
> based external timer should be enabled, therefore, we may need to port
> "gdium_clock.patch", to make it work normally with cpufreq, its
> oneshot mode must be fixed at first.
>
> Best Regards,
> Wu Zhangjin
>
> On Tue, Nov 9, 2010 at 1:08 PM, 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].
> >> 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].
> 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].
For more options, visit this group at
http://groups.google.com/group/loongson-dev?hl=en.