Filed in: Projects.Lemote · Modified on : Tue, 12 Jan 10
This is a collection of miscellaneous information about Lemote and the Yeeloong. For information about gNewSense for Yeeloong, refer to GNewSenseToMIPS.
On this page... (hide)
The project will realize the intention of The Free Software Foundation to port the gNewSense distribution (http://www.gnewsense.org/static/homepage/ ) on the Yeeloong laptop (http://www.lemote.com/english/yeeloong.html ) manufactured by Lemote Tech (http://www.lemote.com/ ).

Work in progress
gNewSense Orchid: a possible approach to a mipsel gNewSense port Project Orchid
Add to your /etc/apt/sources.list
http://medan.cinnamonpirate.com/ medan main contrib
or
http://medan.cinnamonpirate.com/ medan main contrib non-free
See: http://lists.gnu.org/archive/html/gnewsense-dev/2009-02/msg00058.html
Testers wanted!
The hardware has a free "bios" (the pmon2000 booloader), and should have a free OS (gNewSense). Its powered by a Godson cpu.
The CPU is a 64-bit MIPS processor licensed by the Institute of Computing Technology (ICT), part of the Chinese Academy of Science and manufactured by STMicroelectronics.
References:
The boot firmware is a free "bios" (the pmon2000 booloader), developed by Opsycon AB (Sweden) and modified by Lemote Tech (China).
References:
| Model | 8101B | 8089B | 8089A |
|---|---|---|---|
| Processor | Loongson 2F,800-900MHz | ||
| Chipset | Northbridge:integrated in CPU Southbridge:AMD CS5536 | ||
| Graphics | SMI712 | ||
| Memory | DDRII 1G | ||
| Hard Drive | SATA 160G | SATA 160G | SSD 8G |
| Screen size | 10.1" | 8.9" | |
| Resolution | 1024×600 | ||
| Camera | 300K pixel | 300K pixel | |
| Input Device | Keyboard, touchpad | ||
| Network | Rtl8139,10/100Mbps+Rtl8187B(wifi) | ||
| Operation System | Redflag Linux/Debian | ||
| USB ports | 3×USB2.0 | 3×USB2.0 | 2×USB2.0 |
| Audio/Video | Speaker,Microphone,VGA | ||
| Card Reader | SD/MMC/MS 3 in 1 | ||
| Battery | 3-Cell | ||
| Dimension | L *H * T = 255*188*250(mm) | ||
| Weight | 1.1Kg | ||
system type : lemote-notebook processor : 0 cpu model : ICT Loongson-2 V0.3 FPU V0.1 BogoMIPS : 528.38 wait instruction : yes microsecond timers : yes tlb_entries : 64 extra interrupt vector : no hardware watchpoint : no ASEs implemented : shadow register sets : 1 core : 0 VCED exceptions : not available VCEI exceptions : not available
To be completed
00:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) 00:08.0 VGA compatible controller: Silicon Motion, Inc. SM712 LynxEM+ (rev b0) 00:09.0 USB Controller: NEC Corporation USB (rev 44) 00:09.1 USB Controller: NEC Corporation USB 2.0 (rev 05) 00:0e.0 ISA bridge: Advanced Micro Devices [AMD] CS5536 [Geode companion] ISA (rev 03) 00:0e.2 IDE interface: Advanced Micro Devices [AMD] CS5536 [Geode companion] IDE (rev 01) 00:0e.3 Multimedia audio controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] Audio (rev 01) 00:0e.4 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] OHC (rev 02) 00:0e.5 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] EHC (rev 02) 00:0e.6 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] UDC (rev 02) 00:0e.7 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] UOC (rev 02)
# deb http://dev.lemote.com/debian-loongson/ loongson main contrib non-free # deb http://dev.lemote.com/debian/ testing main contrib non-free deb http://www.lemote.com/debian-testing/ testing main contrib non-free # deb-src http://www.lemote.com/debian-testing/ testing main contrib non-free # deb http://www.lemote.com/debian-testing/ testing main
PMON2000 2.1 (Bonito) #28: Sun Nov 16 10:25:28 CST 2008
PMON> set
novga = 1 karg = "console=tty root=/dev/hda1" al = /dev/fs/ext2@wd0/boot/vmlinux ethaddr = ff:ff:ff:ff:ff:ff memsize = 256 highmemsize = 768 cpuclock = 797000000 busclock = 66000000 systype = Bonito brkcmd = "l -r @cpc 1" datasize = -b [-b -h -w -d] dlecho = off [off on lfeed] dlproto = none [none XonXoff EtxAck] bootp = no [no sec pri save] hostport = tty0 inalpha = hex [hex symbol] inbase = 16 [auto 8 10 16] moresz = 10 prompt = "PMON> " regstyle = sw [hw sw] regsize = 32 [32 64] rptcmd = trace [off on trace] trabort = ^K ulcr = cr [cr lf crlf] uleof = % showsym = yes [no yes] fpfmt = both [both double single none] fpdis = yes [no yes] Version = LM8089-1.3.3 BuildTime = Nov 16 2008 10:25:27
| Fuloong Mini-PC | ||||
| Model | FL6004 | FL6014 | FL6005 | FL6015 |
| Processor | Loongson 2F,900MHz,integrated DDR Memory Controller | |||
| Chipset | Northbridge:integrated in CPU Southbridge:AMD CS5536 | |||
| Graphics | XGI V2 , 32MB Video memory | |||
| Memory | DDR II 512MB (Support up to 1G) | |||
| Hard Drive | SATA 160G | SSD 8G | SATA 160G | SSD8G |
| Audio | AC'97 , Realtek ALC 655 | |||
| Network | Realtek RTL 8110SC 1000Mbps | |||
| Operation System | Redflag Linux/Debian | |||
| Operating Systems | Xinhua,Rays 2.0 or Debian GNU/Linux | |||
| Interface type | 4*USB2.0 | |||
| Interface type | VGA,DVI,S-Video | VGA | ||
| Interface type | IR interface | / | ||
| Dimension | L*H*T = 181*145*37(mm) | |||
| Weight | 0.78KG | |||
system type : lemote-fulong processor : 0 cpu model : ICT Loongson-2 V0.3 FPU V0.1 BogoMIPS : 532.48 wait instruction : no microsecond timers : yes tlb_entries : 64 extra interrupt vector : no hardware watchpoint : no ASEs implemented : shadow register sets : 1 core : 0 VCED exceptions : not available VCEI exceptions : not available
00:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10) 00:08.0 VGA compatible controller: Silicon Integrated Systems [SiS] 315PRO PCI/AGP VGA Display Adapter 00:0e.0 ISA bridge: Advanced Micro Devices [AMD] CS5536 [Geode companion] ISA (rev 03) 00:0e.2 IDE interface: Advanced Micro Devices [AMD] CS5536 [Geode companion] IDE (rev 01) 00:0e.3 Multimedia audio controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] Audio (rev 01) 00:0e.4 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] OHC (rev 02) 00:0e.5 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] EHC (rev 02) 00:0e.6 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] UDC (rev 02) 00:0e.7 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode companion] UOC (rev 02)
deb http://www.anheng.com.cn/debian lenny main non-free contrib deb-src http://www.anheng.com.cn/debian lenny main non-free contrib deb http://www.anheng.com.cn/debian-security lenny/updates main contrib non-free deb-src http://www.anheng.com.cn/debian-security lenny/updates main contrib non-free
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
EndSection
Section "Device"
Identifier "Configured Video Device"
Option "UseFBDev" "true"
Option "EnableSiSCtrl" "yes"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
EndSection
PMON2000 2.1 (Bonito) #7:2008................17:31:33 CST"
PMON> set
novga = 1 karg = "console=tty root=/dev/hda1" al = /dev/fs/ext2@wd0/boot/vmlinux ethaddr = ff:ff:ff:ff:ff:ff memsize = 256 highmemsize = 256 cpuclock = 800020000 busclock = 66000000 systype = Bonito brkcmd = "l -r @cpc 1" datasize = -b [-b -h -w -d] dlecho = off [off on lfeed] dlproto = none [none XonXoff EtxAck] bootp = no [no sec pri save] hostport = tty0 inalpha = hex [hex symbol] inbase = 16 [auto 8 10 16] moresz = 10 prompt = "PMON> " regstyle = sw [hw sw] regsize = 32 [32 64] rptcmd = trace [off on trace] trabort = ^K ulcr = cr [cr lf crlf] uleof = % showsym = yes [no yes] fpfmt = both [both double single none] fpdis = yes [no yes] Version = 1.2.125
The RTL8187(B) is included in the lemote git 2.6.27.1 version, but not compiled into the kernel as released with the yeeloong. To enable it, see GnewSenseToMIPSLinux.
Alternatively, download the RTL8187B driver from http://dev.lemote.com/drupal/node/53
Execute:
tar xjpf tl8187B_linux_26.1051.0116.2009_driver.tar.bz2 -C /lib/modules/2.6.27.1/kernel/drivers/net/wireless
Loongson 2F: High performance 64-bit superscalar MIPS® microprocessor
This driver makes the Lemote Yeeloong fail sometimes at starting the X server. The solution is to remove this package, and then restart the computer.
Output of dmesg after switching on the webcam with the Fn + Esc key (Camera on/off):
usb 1-1: new high speed USB device using ehci_hcd and address 3 usb 1-1: configuration #1 chosen from 1 choice uvcvideo: Found UVC 1.00 device USB 2.0 Camera (064e:a114) input: USB 2.0 Camera as /class/input/input3 usb 1-1: New USB device found, idVendor=064e, idProduct=a114 usb 1-1: New USB strings: Mfr=2, Product=1, SerialNumber=3 usb 1-1: Product: USB 2.0 Camera usb 1-1: Manufacturer: SuYin
1/ Gnewsense:
- webcam recognized
- module uvcvideo loaded
- camera working with:
/usr/sbin/mplayer tv:// -tv driver=v4l2:width=320:height=200
- camera not working with:
/usr/sbin/mplayer tv:// -tv driver=v4l2:width=320:height=200 -vo xv
- camera not working with:
gst-launch-0.10 v4l2src ! autovideosink
- camera not working with:
luvcview
- camera not working with:
cheese
2/ Debian from http://bjlx.org.cn/loongson/loongson2_debian5_20090315.tar.bz2
- webcam recognized
- module uvcvideo loaded
- camera working with:
/usr/sbin/mplayer tv:// -tv driver=v4l2:width=320:height=200 -vo xv
- camera not working with:
luvcview
- camera not working with:
cheese
3/ Debian from the netboot install (see: http://dev.lemote.com/drupal/node/65 ):
- webcam recognized
- module uvcvideo loaded
- camera working with:
/usr/sbin/mplayer tv:// -tv driver=v4l2:width=320:height=200
- camera working with:
gst-launch-0.10 v4l2src ! autovideosink
- camera not working with:
luvcview
- camera not working with:
cheese
Battery module: ec_batd
Source of the ec_* modules available from: http://www.gentoo-cn.org/~zhangle/ec_module.tar.gz
1/ Gnewsense:
Not working
2/ Debian from http://bjlx.org.cn/loongson/loongson2_debian5_20090315.tar.bz2
Output from dmesg
APM of battery on KB3310B Embedded Controler init. battery vendor (SANYO), cells count(3), with designed capacity(2250),designed voltage(10800), full charged capacity(2250)
The capacity of the battery (as indicated by the battstat-applet-2 in Gnome), is 1h30.
3/ Debian from the netboot install (see: http://dev.lemote.com/drupal/node/65 ):
Not working
Loading of the boot menu from config file:
PMON> path bl -d ide (wd0,0)/boot.cfg
default 1 timeout 3 showmenu 1 title Debian GNU/Linux at hda1 (loongson) kernel (wd0,0)/boot/vmlinux-yeeloong args console=tty root=/dev/hda1 no_auto_cmd resume=/dev/hda3 #initrd (wd0,6)/boot/initrd.img-yeeloong title gNewSense mips-l - hda3 (medan libre) kernel (wd0,2)/boot/vmlinux-2.6.27.1-libre-medan args console=tty root=/dev/hda3 title gNewSense mips-l - hda3 (medan) kernel (wd0,2)/boot/vmlinux-2.6.27.1-medan args console=tty root=/dev/hda3 title Debian mips - hda4 kernel (wd0,0)/boot/vmlinux args console=tty root=/dev/hda4 no_auto_cmd title usb - rescue kernel (usb0,0)/boot/rescue args root=/dev/sda1 console=tty no_auto_cmd rootdelay=7 #initrd (usb0,0)/boot/initrd.img title usb - reinstall - gnewsense mips-l kernel (usb0,0)/netboot/gns/vmlinux initrd (usb0,0)/netboot/gns/initrd.gz args console=tty no_auto_cmd title usb - reinstall - debian/lemote kernel (usb0,0)/netboot/lemote/yl/vmlinux initrd (usb0,0)/netboot/lemote/yl/initrd_yl_netboot.gz args console=tty no_auto_cmd
On the Fuloong mini, the /usr/sbin/update-pmon script may be used to update the /boot/boot.cfg file.
To this end, execute /usr/sbin/update-pmon and adapt the modified /boot/boot.cfg if necessary, especially if you are using a multiboot configuration. Copy it eventually to the root boot.cfg file as set by the PMON boot firmware (see Boot parameter).
So, in this experiment, the active distribution is located on the /dev/hda2 partition. The update-pmon script updates the local /boot/boot.cfg file located on the /dev/hda2 partition. However, the PMON2000 boot firmware is set to use the /boot.cfg file on the /dev/hda1 partition. In order to make the modifications of the boot.cfg file effective, you should copy it to the /dev/hda1 partition, after updating it according to the other distributions eventually installed on the other partitions.
| Distribution name | Source | Installation method | Localization | Kernel + Devices | Upgradeability | Target |
|---|---|---|---|---|---|---|
| gNewSense mipsel-l | http://wiki.gnewsense.org/Projects/GNewSenseToMIPS | usb/tftp + netboot install | Intl | good | Yeeloong/not Fuloong | |
| Openrays | http://openrays.org | extracting of archive | ZH | ? | Fuloong/Yeeloong | |
| Debian Loongson - Gnome (ZH) | http://bjlx.org.cn/loongson/loongson2_debian5_20090315.tar.bz2 | extracting of archive | ZH | ? | Fuloong/Yeeloong + script fix.sh | |
| Debian Netboot install | http://dev.lemote.com/drupal/node/58 | Debian Installer using the netboot install | Intl | ? | Fuloong/Yeeloong | |
| Loonux | http://www.lemote.com/upfiles/8089_OS_v1.1.1/ | initial + extracting of archive | ZH | broken after upgrade | Yeeloong | |
| Debian Loongson KDE (en) | http://www.lemote.com/upfiles/OS/Debian-en/debian-en.tar.gz | extracting of archive | EN | good | Fuloong?/Yeeloong | |
| Medan | D-- http://medan.cinnamonpirate.com/ | usb + extracting of archive | EN | ? | initially for Yeeloong 8089A + running on Yeeloong 8089B | |
| pdaXrom-NG | http://www.pdaxrom.org/index.php/Lemote_YeeLoong_8089_Notebook | usb + HDD | EN | ? | Yeeloong |
BEST CHOICE: Debian mips customized by D-- torrent (wifi, power management, works by default, optimized for speed and space)
Disc image of Debian (medan) for Lemote Yeeloong 8089A. Tester feedback for the 8089B model appreciated.
Lemote Yeeloong chinese default os
Debian mipsel customized for the Yeeloong. All you need to do is to unpack this into your Yeeloong hard disk
Debian mipsel customized for the Yeeloong, with KDE + English localization
A Debian based chinese distribution developed and marketed by Sun Wah Linux Limited.
The release 0.4.3 has been improved by Lemote (Liangjin Peng, penglj at lemote.com) and reflects the state of the loongson2e CPU. The newer loongson2f CPU has introduced newer hardware and the gxemul code remains to be adapted according to this new hardware.
and it is still not usable today.
Lemote has setup a compile farm of four Lemote mini-PC (fuloong mini).
Ask the login parameter in order to access to this hardware remotely (via ssh).
For the moment, send your ssh public key to sysadmin@gnu.org - preferably in a GnuPG signed email. If you are rearing to go or the request seems to be taking too long, feel free to ping djbclark in #gnewsense (freenode IRC).
To access the main machine, do: ssh -A <user>@dev.lemote.com -p 2200
After login, you can connect to build[2-4] to use other machines, if you have requested and been given access to them.
We should probably modify builder to use ccontrol / distcc to make easy use of the multiple machines.
There is a mailing list for everyone who has accounts: loongson-buildfarm@nongnu.org.
You may use 2 systems: the build system and the target system (either the Fuloong mini or the Yeeloong laptop)
Download http://dev.lemote.com/files/resource/download/rescue/rescue-fl
Load it via usb:
load /dev/fs/ext2@usb0/boot/rescue-fl g console=tty root=/dev/sda1 rootdelay=8
You have now a working rescue system with Busybox!
Welcome To Debian Linux Based On Longmeng Computer Please press Enter to activate this console. BusyBox v1.1.3 (2008.08.13:-05:07+0000) Built-in shell (ash)
Then you can have a shell in ramdisk to do things.
Download http://dev.lemote.com/files/resource/download/rescue/rescue-yl
Load it via usb:
load /dev/fs/ext2@usb0/boot/rescue-yl g console=tty root=/dev/sda1 rootdelay=8
You have now a working rescue system with Busybox!
Welcome To Debian Linux Based On Longmeng Computer Please press Enter to activate this console. BusyBox v1.1.3 (2008.08.13:-05:07+0000) Built-in shell (ash)
Then you can have a shell in ramdisk to do things.
To reinstall the whole machine, just put the whole V1.1.x directory (http://www.lemote.com/upfiles/8089_OS_v1.1.1/ ) into a usb stick or disk (first ext2/3 partition, root directory), then use the 'recover' function of the pmon(press tab key during boot up).
1) I downloaded the new version of the os that samy talked about in the mailing list.
2) Formatted an usb key ext2 and put it all inside.
3) Inserted the usb key BEFORE switching on your Lemote Yeeloong.
4) At the pmon boot I pressed del.
At PMON> prompt I wrote:
boot /dev/fs/ext2@usb0/vmlinux
and again a second time:
boot /dev/fs/ext2@usb0/vmlinux
5) The lemote will display a chinese writing and below it, "System is recovering and Please wait for several minutes", then it will reboot.
6) When it rebooted, the kernel didn't load (maybe this was a particular issue related to my situation) so I set again the pmon variable called "al" (autoload):
set al /dev/fs/ext2@wd0/boot/vmlinux
7) The Lemote Yeeloong will then boot automatically into the new updated os.
work in progress
work in progress
http://dev.lemote.com/drupal/node/58
http://dev.lemote.com/drupal/node/58
http://lists.gnu.org/archive/html/gnewsense-dev/2009-02/msg00026.html
http://lists.gnu.org/archive/html/gnewsense-dev/2009-03/msg00024.html
A netboot image can be obtained from:
http://archive.gnewsense.org/gnewsense-mipsel-l/netboot/
vmlinux and initrd.gz in a USB disk (in the example I used ext2)
- Get to pmon2000 prompt and type:
load /dev/fs/ext2@usb0/vmlinux
initrd /dev/fs/ext2@usb0/initrd.gz
g console=tty no_auto_cmd
- Follow installation process in D-I.
load /dev/fs/ext2@wd0c/boot/vmlinux-2.6.27.1-libre-medan
g console=tty no_auto_cmd root=/dev/hda3
(assuming you installed to third partition of the internal
disk, otherwise you'll have to change wd0c and hda3)
And you can make this the default by setting "al" and "karg"
variables.
Post-installation step:
apt-get install gnewsense-pkgsel-desktop
If you got an Xserver error, then modify the /etc/X11/xorg.conf configuration adding:
Section "Device"
Identifier "Configured Video Device"
Driver "fbdev"
Option "UseFBDev" "true"
EndSection
Alternatively, install the xserver-xorg-video-siliconmotion_2.2.8-lemote.r03_mipsel.deb (see
http://dev.lemote.com/drupal/node/49) and copy a xorg.conf from another
working yeeloong installation.
deb http://archive.gnewsense.org/gnewsense-mipsel-l/pruned-upstream mipsel-l main deb http://archive.gnewsense.org/gnewsense-mipsel-l/pruned-upstream-security mipsel-l main deb http://archive.gnewsense.org/gnewsense-mipsel-l/overlay mipsel-l main deb http://archive.gnewsense.org/gnewsense-mipsel-l/pruned-upstream-security mipsel-l main deb http://dev.lemote.com/debian-loongson loongson main
- install and setup a tftp server (for example atftpd)
- copy the files initrd.gz and vmlinux from http://archive.gnewsense.org/gnewsense-mipsel-l/netboot/ onto /var/lib/tftpboot
- boot the Yeeloong
- press DEL
- At the PMON> prompt type
ifaddr rtl0 <addr.of.your.laptop> # to set the ip address of your Yeeloong, e.g. 192.168.1.31 load tftp://<addr.of.your.tftp-server>/vmlinux # to load the kernel image on your tftp server, e.g. 192.168.1.30 initrd tftp://<addr.of.your.tftp-server>/initrd.gz # to load the initial ram disk image g console=tty no_auto_cmd # to set the console
Follow the installation procedure in D-I
work in progress
CAUTION: if carried out incorrectly, the upgrade of the PMON2000 firmware can brick your unit and require a reprogramming of the memory! Be careful!
The upgrade procedure of the PMON2000 boot firmware through software control path:
1. When the yeeloong or fuloong machine power on, press DEL to enter the PMON console.
2. Type the following command to upgrade the firmware
load -r -f bfc00000 method_to_load_pmon_binary_image
When this command is completed, a successful message will output to the display.
CAUTION: This command will damage all the data in the firmware, if wrong data has been writen into it, the machine will do never run up unless taking the firmware off the motherboard and writing correct data into it through the programmer.
Choose a method to load pmon binary image: either using the ftp network protocol or using a local or removable storage unit:
a. Using the tftp network propocol.
Example:
load -r -f bfc00000 tftp://host_ip/pmon-new-image.bin
Prerequisite: the machine must be assigned a static IP
To this end, enter the pmon console, and type the command:
ifaddr rtl0 ip_address
b. Using a local or removable storage.
Example: if the pmon image is located on the first partition of the local hard disk (wd0):
load -r -f bfc00000 /dev/fs/ext2@wd0/pmon-new-image.bin
or, if the pmon image is located on an usb stick (usb0):
load -r -f bfc00000 /dev/fs/ext2@usb0/pmon-new-image.bin
3. Reboot your machine. Your machine will boot from the new firmware.
Note that if you have problems booting from wd0 after you do the upgrade, you should try booting from usb using a rescue linux, and do from it:
fsck.ext3 -fy /dev/hda1
Where /dev/hda1 is the ext3 partition that your vmlinux is on (alhough you might as well just do this for each of your ext3 filesystem partitions). Either many people interrupt the boot process in the wrong place, thus causing some filesystem corruption, around the time they do PMON upgrades, or newer PMON versions are more sensitive to filesystem corruption than older versions.
Official documentation by Lemote Tech:
Please complete/correct
Samy Boutayeb s.boutayeb at free.fr
#gnewsense and #gnewsense-dev on irc.freenode.net
gNewSense is a project developed by volunteers all over the world and it's supported by the Free Software Foundation.
The content in this Web site can be used as follows:
All documentation is available under the terms of the GFDL with no invariant sections. ( note on the license )
Artwork is Free Cultural Work and is available under the terms of the cc-by-sa license.