Lemote

Filed in: Projects.Lemote · Modified on : Fri, 25 Jun 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)

  1. 1. Short description
  2. 2. Detailed description
  3. 3. Roadmap
  4. 4. Subgoals
    1. 4.1 Overview
    2. 4.2 Project ORCHID
    3. 4.3 Other projects
  5. 5. Background
    1. 5.1 Call for volunteers:
    2. 5.2 Press review:
    3. 5.3 Mailing list threads
  6. 6. The hardware
    1. 6.1 The CPU
    2. 6.2 The boot firmware
    3. 6.3 Manufacturer: Lemote Tech (China)
  7. 7. The models
    1. 7.1 The Yeeloong netbook
    2. 7.2 The Fuloong mini
  8. 8. Devices and drivers
    1. 8.1 Wifi (RTL8187B)
    2. 8.2 CPU
    3. 8.3 xserver-xorg-video-siliconmotion
    4. 8.4 Webcam
    5. 8.5 Battery monitoring
  9. 9. Boot firmware: PMON2000
    1. 9.1 The pmon bios
    2. 9.2 The original pmon2000 boot firmware
    3. 9.3 PMON2000 Documentation
    4. 9.4 Boot parameter
    5. 9.5 Examples of a "boot.cfg" file
    6. 9.6 Updating of the PMON configuration
  10. 10. Distributions available & planned
    1. 10.1 Overview of the distributions
    2. 10.2 Distributions on the Yeeloong netbook
    3. 10.3 Distributions on the Fuloong mini
  11. 11. Download links
  12. 12. Emulation
    1. 12.1 The gxemul emulator from Lemote
    2. 12.2 Download
    3. 12.3 The original gxemul emulator
  13. 13. Remote access to development hosts
  14. 14. Preliminary work
    1. 14.1 Creation of a recovery system for the Fuloong mini
    2. 14.2 Creation of a recovery system for the Yeeloong laptop
    3. 14.3 Creation of a multiboot system for the Fuloong mini
    4. 14.4 Creation of a multiboot system for the Yeeloong laptop
    5. 14.5 Creation of a netboot system for the Fuloong mini
    6. 14.6 Creation of a netboot system for the Yeeloong laptop
    7. 14.7 Upgrade of the PMON boot firmware
  15. 15. Documentation
  16. 16. Links
  17. 17. Discussions
  18. 18. Resources/infrastructure exchange
    1. 18.1 Possible ressources needed
    2. 18.2 Resources offered by participant
  19. 19. Participants
  20. 20. Contact
  21. 21. Communication channels

1.  Short description

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/).

2.  Detailed description

3.  Roadmap

Work in progress

4.  Subgoals

4.1  Overview

  • mipsel architecture
  • pmon2000 bootloader
  • build gNewSense/MIPS
  • maintain a repository for the kernel + software
  • a standard way to compare kernel performance
  • configure + test
  • clean recovery + reinstallation procedure
  • update procedure
  • write documentation

4.2  Project ORCHID

gNewSense Orchid: a possible approach to a mipsel gNewSense port Project Orchid

4.3  Other projects

Avaneya has a MIPS port planned, using the Loongson as a test bed via gNewSense.

D--'s Loongson Repository containing:

D--'s customized Yeeloong kernel and extra module (wifi + power management)

Add to your /etc/apt/sources.list

http://medan.cinnamonpirate.com/ medan main contrib

or

http://medan.cinnamonpirate.com/ medan main contrib non-free

gNewSense / MIPS almost complete

See: http://lists.gnu.org/archive/html/gnewsense-dev/2009-02/msg00058.html

Testers wanted!

5.  Background

5.1  Call for volunteers:

"Hardware manufacturers friendly to free software have given us the first free software smartphone, the Neo FreeRunner. The OLPC project gave us the first free software laptop, the XO, that has quickly established the low-cost subnotebook marketplace — where the economics have made GNU/Linux a popular choice. And for the past few months, FSF systems administrators have been working on the forthcoming free software friendly Lemote laptop, which Richard Stallman is using and that we hope will be widely commercially available. The availability of free software friendly hardware has never been greater."

5.2  Press review:

5.3  Mailing list threads

6.  The hardware

The hardware has a free "bios" (the pmon2000 booloader), and should have a free OS (gNewSense). Its powered by a Godson cpu.

6.1  The 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:

6.2  The boot firmware

The boot firmware is a free "bios" (the pmon2000 booloader), developed by Opsycon AB (Sweden) and modified by Lemote Tech (China).

References:

6.3  Manufacturer: Lemote Tech (China)

7.  The models

7.1  The Yeeloong netbook

Features

User manual

Photos/reviews

Availability & commercialization

Lemote Yeeloong specifications

Model8101B8089B8089A
ProcessorLoongson 2F,800-900MHz
ChipsetNorthbridge:integrated in CPU Southbridge:AMD CS5536
GraphicsSMI712
MemoryDDRII 1G
Hard DriveSATA 160GSATA 160GSSD 8G
Screen size10.1"8.9"
Resolution1024×600
Camera300K pixel300K pixel 
Input DeviceKeyboard, touchpad
NetworkRtl8139,10/100Mbps+Rtl8187B(wifi)
Operation SystemRedflag Linux/Debian
USB portsUSB2.0USB2.0USB2.0
Audio/VideoSpeaker,Microphone,VGA
Card ReaderSD/MMC/MS 3 in 1
Battery3-Cell
DimensionL *H * T = 255*188*250(mm)
Weight1.1Kg

cat /proc/cpuinfo

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  

dmesg

To be completed

lspci

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) 

sources.list

# 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  

xorg.conf

See here...

PMON 2000 version

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 

7.2  The Fuloong mini

Features

Photos

Availability & commercialization

Lemote Fuloong specifications

Fuloong Mini-PC
ModelFL6004FL6014FL6005FL6015
ProcessorLoongson 2F,900MHz,integrated DDR Memory Controller
ChipsetNorthbridge:integrated in CPU Southbridge:AMD CS5536
GraphicsXGI V2 , 32MB Video memory
MemoryDDR II 512MB (Support up to 1G)
Hard DriveSATA 160GSSD 8GSATA 160GSSD8G
AudioAC'97 , Realtek ALC 655
NetworkRealtek RTL 8110SC 1000Mbps
Operation SystemRedflag Linux/Debian
Operating SystemsXinhua,Rays 2.0 or Debian GNU/Linux
Interface type4*USB2.0
Interface typeVGA,DVI,S-VideoVGA
Interface typeIR interface/
DimensionL*H*T = 181*145*37(mm)
Weight0.78KG

cat /proc/cpuinfo

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

dmesg

See here...

lspci

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)

sources.list

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

xorg.conf

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

PMON 2000 version

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 

8.  Devices and drivers

8.1  Wifi (RTL8187B)

The RTL8187(B) is included in linux-libre 2.6.32.9 lemote kernel by default.

It is also included in the lemote git 2.6.27.1 version, but not compiled into this version of 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 rtl8187B_linux_26.1051.0116.2009_driver.tar.bz2 -C /lib/modules/2.6.27.1/kernel/drivers/net/wireless

8.2  CPU

Loongson 2F: High performance 64-bit superscalar MIPS® microprocessor

8.3  xserver-xorg-video-siliconmotion

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.

8.4  Webcam

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

8.5  Battery monitoring

For linux-libre kernel, version 2.6.33.2 (earlier?) or later, battery status is given by the following command in terminal:

 cat /sys/class/power_supply/yeeloong-bat/status

For earlier versions, you would have to write (root user?):

 cat /proc/atm

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

9.  Boot firmware: PMON2000

9.1  The pmon bios

9.2  The original pmon2000 boot firmware

9.3  PMON2000 Documentation

9.4  Boot parameter

Loading of the boot menu from config file:

PMON> path bl -d ide (wd0,0)/boot.cfg

9.5  Examples of a "boot.cfg" file

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

9.6  Updating of the PMON configuration

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.

10.  Distributions available & planned

10.1  Overview of the distributions

Distribution nameSourceInstallation methodLocalizationKernel + DevicesUpgradeabilityTarget
gNewSense mipsel-lhttp://wiki.gnewsense.org/Projects/GNewSenseToMIPSusb/tftp + netboot installIntl goodYeeloong/not Fuloong
Openrayshttp://openrays.orgextracting of archiveZH ?Fuloong/Yeeloong
Debian Loongson - Gnome (ZH)http://bjlx.org.cn/loongson/loongson2_debian5_20090315.tar.bz2extracting of archiveZH ?Fuloong/Yeeloong + script fix.sh
Debian Netboot installhttp://dev.lemote.com/drupal/node/58Debian Installer using the netboot installIntl ?Fuloong/Yeeloong
Loonuxhttp://www.lemote.com/upfiles/8089_OS_v1.1.1/initial + extracting of archiveZH broken after upgradeYeeloong
Debian Loongson KDE (en)http://www.lemote.com/upfiles/OS/Debian-en/debian-en.tar.gzextracting of archiveEN goodFuloong?/Yeeloong
MedanD-- http://medan.cinnamonpirate.com/usb + extracting of archiveEN ?initially for Yeeloong 8089A + running on Yeeloong 8089B
pdaXrom-NGhttp://www.pdaxrom.org/index.php/Lemote_YeeLoong_8089_Notebookusb + HDDEN ?Yeeloong

10.2  Distributions on the Yeeloong netbook

Debian (medan) for Lemote Yeeloong 8089A

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.

OS_1.1.1

Lemote Yeeloong chinese default os

Debian

Debian mipsel customized for the Yeeloong. All you need to do is to unpack this into your Yeeloong hard disk

Debian-en

Debian mipsel customized for the Yeeloong, with KDE + English localization

OpenRays

A Debian based chinese distribution developed and marketed by Sun Wah Linux Limited.

Gentoo?

gNewSense (work in Progress)

10.3  Distributions on the Fuloong mini

11.  Download links

12.  Emulation

12.1  The gxemul emulator from Lemote

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.

Changes in the release 0.4.3 (according to Liangjin Peng)

  1. MIPS:loongson2e CPU support added, which is as same as mips10K or other 64bit MIPS CPU.
  2. Bonito2E north bridge support added, which is optimized by ICT.
  3. 16KB page size support added for MIPS platform, which only supports 4KB before, but still a little bugs in it due to the unflexible architecture of the gxemul.
  4. This platform has been ported mainly according to the web page of the gxemul, few documents made for it.
  5. Working on the rtl8139 network adapter. This is a work in progress,

and it is still not usable today.

Hardware changes introduced by the loongson2f CPU (according to Liangjin Peng)

  1. With the loongson2f CPU, the north bridge has been integrated, causing a little software modification.
  2. The south bridge is changing to AMD CS5536, which is more complex to configure, so it will cause a lot of work load to port to gxemul.
  3. The video chipsets also differ to mini Fuloong2e, which are smi712 for yeeloong and sis315e for mini Fuloong2f.
  4. Mini Fuloong2f has another network adapter rtl8180 inside which also will be a big problem to be resolved.

12.2  Download

12.3  The original gxemul emulator

13.  Remote access to development hosts

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.

14.  Preliminary work

You may use 2 systems: the build system and the target system (either the Fuloong mini or the Yeeloong laptop)

14.1  Creation of a recovery system for the Fuloong mini

Reboot from a rescue kernel

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.

14.2  Creation of a recovery system for the Yeeloong laptop

Reboot from a rescue kernel

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.

Reinstall the whole system

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.

14.3  Creation of a multiboot system for the Fuloong mini

work in progress

14.4  Creation of a multiboot system for the Yeeloong laptop

work in progress

14.5  Creation of a netboot system for the Fuloong mini

http://dev.lemote.com/drupal/node/58

References

14.6  Creation of a netboot system for the Yeeloong laptop

Debian system

http://dev.lemote.com/drupal/node/58

gNewSense mips-l from an usb key

  • Reference

http://lists.gnu.org/archive/html/gnewsense-dev/2009-02/msg00026.html

http://lists.gnu.org/archive/html/gnewsense-dev/2009-03/msg00024.html

  • Netboot image

A netboot image can be obtained from:

http://archive.gnewsense.org/gnewsense-mipsel-l/netboot/

  • Procedure
    - Put 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.
- Once finished, your system can be boot with:
      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.

  • sources.list
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

gNewSense mips-l from a tftp server

  • On the server :

- 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

  • On the installation target (Yeeloong)

- 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

14.7  Upgrade of the PMON boot firmware

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.

Images

  • Version 1.3.7 (build date = 2009-02-06) (WARNING: This version makes booting from wd0, the internal hard drive, not work on some systems. Booting from usb0 still works, and upgrading to 1.4.3 fixes the problem.)
  • Version 1.4.3 (sha1sum dfe3302b202a538b3b7c6ade804ef7ccc3903f1a - translated announcement)

References

15.  Documentation

Official documentation by Lemote Tech:

16.  Links

17.  Discussions

18.  Resources/infrastructure exchange

18.1  Possible ressources needed

Development

  • cpu, bandwith, storage,

Testing

  • machines (fuloong / yeelong)
  • test suite

Documentation

  • documentation, translation, etc...

18.2  Resources offered by participant

  • samy: 2 fuloong + 1 yeeloong available for installing/testing; documentation, translation (en, es, de, fr)
  • dclark: ssh access to a fuloong, virtualization space
  • kgoetz: builder familarity
  • kgoetz: thoughts about how to restructure the build system.
  • r0bertz: experiences of porting gentoo, specifically experiences about toolchain/kernel/xorg-server etc.
  • eeliu (elly with 2 coders/testers): qa/usability testing, documentation - there might be one project from each coder
  • benedikt.ahrens: qa/usability testing and documentation (de, en, fr); no fuloong, no yeeloong
  • ArthurWebkid: qa/usability testing and documentation (chinese, en); don't have fuloong or yeeloong
  • ...

19.  Participants

Please complete/correct

  • Alan Bell alan.bell at theopenlearningcentre.com
  • Ali Gündüz gndz.ali at gmail.com
  • Arthur Webkid arthur.webkid at gmail.com
  • Benedikt Ahrens benedikt.ahrens at gmx.net
  • Danny Clark dclark at gnu.org
  • Elly Liu elly.liu.cn at gmail.com with Ray Wang, String Tang, Beijing Gnome User Group and OpenParty testers (one month trial per tester).
  • Graziano Sorbaioli - graziano (at) gnu.org
  • info at fsf.org
  • John Sullivan johns at gnu.org
  • karl at kgoetz.id.au
  • Marcelo E. Magallon marcelo.magallon at softwarelibrecr.org
  • Martin Franco mfranco at gmx.com
  • Richard M. Stallman rms at gnu.org
  • Robert Millan rmh at aybabtu.com
  • Samy Boutayeb s.boutayeb at free.fr
  • Anivar Aravind anivar at movingrepublic.org
  • Zhang, Le r0bertz at gentoo.org
  • Sanath Kumar dayanandasaraswati at gmail.com
  • Nestor Amigo nestor at reciclanet.org

20.  Contact

Samy Boutayeb s.boutayeb at free.fr

21.  Communication channels


Page last modified on June 25, 2010, at 11:06 AM

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.