[Top] [All Lists]

Re: [loongson-dev] Re: a pre-release of merging loongson patchs to linux

To: Erwan Lerale <>
Subject: Re: [loongson-dev] Re: a pre-release of merging loongson patchs to linux-
From: Wu Zhangjin <>
Date: Sat, 25 Apr 2009 14:17:28 +0800
Cc:,,,,,,, Ralf Baechle <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to:cc :in-reply-to:references:content-type:organization:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=ZKeery/k3vsnSDUzYgnkv/eKqia4gwtVqKa5Gv2gyDg=; b=vmNZo1/VIDS4LL3OT50fLMQq56QRvWVOvXbCdjmecnijf9w3dWMI/cWyIgcWqtc5+H Og1elJJckUt+x0F1k2Q2uigoGgzqMUNaooWScI88HiDeyOK2zYKwSBNxFEFH+ZQcEKME 8xaBIngEk1zM+hkqdFmkQ/MebseD6DWqDN37w=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type :organization:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=JW4m9v9H7ZD3rhOplFQdLTN+3M1vnLmDzUriSEdQXNp9+XxTJxy14EJGNTk3YOOmvY qwwheMQjuCJ9itCJ1Ycj07VlumRuRgpdHfBkx3x477Tw49ixrTtBUP+daaq8b0wztFVi yURkRW37adb/50DsOh+L1EdAzwcVCICbaJ2wM=
In-reply-to: <>
Organization: DSLab, Lanzhou University, China
Original-recipient: rfc822;
References: <1240501332.28136.24.camel@falcon> <> <1240535343.25824.14.camel@falcon> <> <1240556617.23345.10.camel@falcon> <>
> Hello,
> The kernel is compiling fine now. I have been using it for a few hours.

thanks for your work :-)

> I don't understand why some stuff are not included in
> arch/mips/configs/yeeloong2f_defconfig,
> for example the sound chip or the v4l stuff for the webcam.

I just updated the default kernel configuration file for loongson2f
based machines, hope it can help you :-)

> I also had to :
> - add INPUT_EDEV to get the mouse and the keyboard under X (
> - compile external wifi modules from
>   to get proper Wifi performances (or I had to sit on the access point)
> - get and compile the ec_module stuff from git
> - had the PPP and bluetooth support for my 3G connection that's works
> now with wvdial (thanks robert :))
> The box is also complaining when it boots and try to set time :
> xiwen ~ (n32) # hwclock  --debug
> hwclock from util-linux-ng 2.14.2
> hwclock: Open of /dev/rtc failed, errno=2: No such file or directory.
> No usable clock interface found.
> Cannot access the Hardware Clock via any known method.

the previous kernel configuration file not include the "Real Time
Clock", so, no /dev/rtc there, so sorry :-)   

> I have seen some patches related to system clock in the git tree but i
> don't understand.
> What has to be included in the config tree to get suspend/hibernate and 
> cpu_freq working  ?

* try the following configuration options:

Machine selection  --->
             [*] Using cs5536's MFGPT as system clock

Power management options  --->
             [*] Power Management support 
             [*] Suspend to RAM and standby
             [*] Hibernation (aka 'suspend to disk')              
             (/dev/hda3) Default resume partition               

CPU Frequency scaling  --->
             [*] CPU Frequency scaling
             [*]   Loongson-2F CPU Frequency driver            

* basic user manual(from

1. install a shell script 

# apt-get install hibernate

2. modify the configuration file /etc/hibernate/common.conf

* find the "UnloadModules" section, modify it like this

UnloadModules r8187 usbhid ohci_hcd ehci_hcd

remove the # before "LoadModules auto"

* modify the "network" section

DownInterfaces eth0
UpInterfaces auto

* modify the "hardware_tweaks" section

remove the # before "FullSpeedCPU yes"

3. prepare a swap partition, by default, it is configured in kernel
as /dev/hda3

change it to yours swap partition in kernel or configure it
via /sys/power/resume, for example:

# fdisk -l | grep swap | cut -d' ' -f1
# ls -l /dev/sda5
brw-rw---- 1 root disk 8, 5 2009-04-10 10:26 /dev/sda5
# echo 8:5 > /sys/power/resume

4. resume

pass an argument "resume=/dev/hdaX" to kernel, /dev/hdaX is your swap

5. try STD

# hibernate-disk

> It seems to be linked to the clocking nope ?
> Cheers
> Erwan

<Prev in Thread] Current Thread [Next in Thread>