龙芯开源社区

 找回密码
 注册新用户(newuser)
查看: 8587|回复: 9

Yeeloong 8189B: Debian Wheezy/sid and the Webcam, lm-sensors etc.

  [复制链接]
发表于 2011-9-3 19:40:51 | 显示全部楼层 |阅读模式
本帖最后由 AdmiralThrawn 于 2011-9-4 07:57 编辑

Hi!

I am from Austria, Europe, and I bought a Lemote Yeeloong 8189B when I visited China. I have now successfully installed Debian Wheezy/sid Linux on the machine, but there a a few things still missing, and maybe somebody knows a solution?

1.) The Webcam

It is not detected by lsusb at all. Hardware switch does nothing. All v4l*, webcam* packages are installed, all *uvc* packages are installed. I guess the uvc drivers are in the kernel, which is called linux-3.0.0-1-loongson-2f. I tried all kinds of tools, but they all fail reading /dev/video0, since the device is simply not there, as lsusb suggests. Any ideas?

2.) lm-sensors

sensors-detect won't do anything. Fails to detect sensors. the file /etc/sensors.d/yeeloong-sensors.conf is there. The Yeeloong platform drivers should be installed, as stuff like display backlight brightness adjustment or sound volume adjustment work just fine. How can I get lm-sensors to read any HW sensors on this machine? I'd like to see stuff like fan speed, cpu temperature etc.

3.) Wifi

Works, but the rtl8187 kernel driver fails to switch to Ad-Hoc mode, so only infrastructure mode works. "iwconfig wlan0 mode Ad-Hoc" would just fail, saying that the mode is unsupported in the driver. Is it possible to just load another driver module that comes with linux-3.0.0-1-loongson-2f?


4.) Battery (edited in)

Yep, the system doesn't recognize when it's running on AC and when it's running on Battery. Any way to get the Battery interface to be recognized? Would be nice to see the charge level...


5.) This FORUM:

Posting here is extremely difficult for an english speaking person because of the Chinese questionnaire / Captcha. I never seem to be able to put the correct Chinese answer inside, maybe wrong letters. English Answers don't work, i ALWAYS have to wait for the question asking what the english name of Godson is, because that is the only one I can actually enter in english. ;) Would be nice to have a fully english Interface in this forum, optionally.

Thank you very much!
发表于 2011-9-4 09:07:07 | 显示全部楼层
本帖最后由 gnix 于 2011-9-4 09:08 编辑

Hi,AdmiralThrawn
Did you try press Fn + Esc and check is there a file named '/dev/video0'?

my english is poor,can you understand what i say?
发表于 2011-9-4 21:16:39 | 显示全部楼层
Hi,AdmiralThrawn
Did you try press Fn + Esc and check is there a file named '/dev/video0'?

my e ...
gnix 发表于 2011-9-4 09:07



    we should pay care to friends who is not from china.You understand.
 楼主| 发表于 2011-9-5 16:23:25 | 显示全部楼层
Thanks for your replies!

/dev/video0 exists (but is not mapping to an actual device!).
Fn + Esc does nothing (dmesg doesn't report anything when pressing Fn + Esc)

I have manually loaded the uvc kernel driver:
modprobe uvcvideo

uvc module loads, but still no webcam device detected. The most troublesome thing is, that lsusb doesn't even show the cam as being there on the USB 2.0 bus. Out of ideas...

Thanks!
发表于 2011-9-5 20:55:41 | 显示全部楼层
回复 1# AdmiralThrawn


    I suggest you to try the old kernel 2.6.X,because it worked well in my machine and the webcam of yeloong worked.But I am not using Debian ,so I don't know the situation of linux 3.0 in debian now .And I am using archloong ,the archlinux for loongson,and it is working well and faster than Debian.
    This is the website of archloong : www.archloong.info  (I sorry ,there also is not a website in english.But you can use the Google translate.) And why not have a try?
    And I will ask others for help for your problem.
 楼主| 发表于 2011-9-5 21:46:09 | 显示全部楼层
Hello!

You were right, the Kernel was indeed the problem. Now, my Debian installation was one hell of a lot of work, including manually patching and rebuilding certain system libraries for everything to work fine (fixing memory alignment bugs). I really don't want to do another setup now. ;) Another guy from Europe suggested to try out the Libre Kernel from here:

http://www.fsfla.org/download/linux-libre/lemote/gnewsense/pool/

So, I installed the Libre Kernel 3.0.4 from there, built myself an Initrd and rebooted. Now the Webcam works, Sensors work, Battery Monitoring works, everything is perfect!!

Thanks a lot!
发表于 2011-9-5 22:08:54 | 显示全部楼层
回复 8# AdmiralThrawn


    I am very happy to hear that.Maybe gnewsense will work better,because it was built for loongson but not MIPS(Debian was built for MIPS).And Richard Matthew Stallman using it.
发表于 2011-9-6 08:06:42 | 显示全部楼层
 楼主| 发表于 2011-9-6 14:39:35 | 显示全部楼层
Yes, I tried the Kernel you linked too (bjlx). For some strange reason this one seems to give me far faster X11 / Gnome than the other two! Things are getting better and better!

Thank you very much!
 楼主| 发表于 2011-9-6 19:36:05 | 显示全部楼层
I now also got Truecrypt to work! I compiled the newest version 7.1 for Loongson-2f using C(XX)FLAGS="-march=loongson2f -mtune=loongson2f -O3". I am using Truecrypt a lot on Windows XP, so I wanted some interoperability. Now Truecrypt works together nicely with the ntfs-3g driver, and I can mount my encrypted disks, which were formatted for Windows XP use originally! Nice. I am using AES256 encryption right there, here is a small RAM-based benchmark showing the performance of Loongson-2f 797MHz for crypto stuff:

本版积分规则

小黑屋|手机版|Archiver|Lemote Inc.  

GMT+8, 2019-1-21 21:19 , Processed in 0.184391 second(s), 17 queries .

快速回复 返回顶部 返回列表