[loongson-dev] Re: Account Manager not up

2012-01-04 Thread 李晖
hi, Zhen Xin, I am not very sure about that. But every time I test it
on the loongson computer, the information from logcat shows me that it
died in the SQLiteDatabase Constructor.

Btw, I did not contact that person yet as he is not online, I will
send a mail then!

On 1月4日, 上午9时53分, Zhen Xin  wrote:
> Are you sure it's the java code which causes the crash? Might it be
> just a coinidence in time?
>
> Btw I was told there are other people putting efforts on Loongson
> Android. I will be glad to see new comer. Will they join us and help?
>
> 2012/1/3 李晖 :
>
> > By adding more logs I found that that the Account Manager dieded at
> > the SQLiteDatabase Constructor(in \frameworks\base\core\java\android
> > \database\sqlite\SQLiteDatabase.java file), but it did not alwsays
> > died at one place, it sometimes died at the "new WeakHashMap"
> > statement, but at the "setLocale(Locale.getDefault());" at another
> > time, so I think it may has nothing todo the Account Manager source
> > code, I doubt there are bug in my dalvike virtual machine, but I don't
> > know how to found the source of this problem, did anyone experience
> > this problem? please help me, thanks!
>
> > On 2011年12月31日, 上午12时01分, 李晖  wrote:
> >> hi, all
> >> I am porting android to loongson2f, I encounter the Account
> >> Manager not up problem, this following is logcat info:
> >> - beginning of /dev/log/system
> >> I/Vold( 1321): Vold 2.1 (the revenge) firing up
> >> D/Vold( 1321): Volume sdcard state changing -1 (Initializing) -> 0
> >> (No-Media)
> >> W/Vold( 1321): No UMS switch available
> >> - beginning of /dev/log/main
> >> I/DEBUG   ( 1323): debuggerd: Nov  9 2011 17:40:33
> >> I/Netd( 1322): Netd 1.0 starting
> >> D/AndroidRuntime( 1325):
> >> D/AndroidRuntime( 1325): >> AndroidRuntime START
> >> <<
> >> D/AndroidRuntime( 1325): CheckJNI is ON
> >> I/( 1326): ServiceManager: 0x84cd0
> >> W/AudioHardwareInterface( 1326): Using stubbed audio hardware. No
> >> sound will be produced.
> >> D/AudioHardwareInterface( 1326): setMode(NORMAL)
> >> I/CameraService( 1326): CameraService started: pid=1326
> >> I/AudioFlinger( 1326): AudioFlinger's thread 0x853d8 ready to run
> >> D/dalvikvm( 1325): DexOpt: --- BEGIN 'core.jar' (bootstrap=1) ---
> >> D/dalvikvm( 1369): Ignoring duplicate verify attempt on Ljava/lang/
> >> Object;
> >> D/dalvikvm( 1369): Ignoring duplicate verify attempt on Ljava/lang/
> >> Class;
> >> D/dalvikvm( 1369): DexOpt: load 136ms, verify 1623ms, opt 94ms
> >> D/dalvikvm( 1325): DexOpt: --- END 'core.jar' (success) ---
> >> D/dalvikvm( 1325): DEX prep '/system/framework/core.jar': unzip in
> >> 242ms, rewrite 6727ms
> >> D/dalvikvm( 1325): DexOpt: --- BEGIN 'ext.jar' (bootstrap=1) ---
> >> D/dalvikvm( 1370): DexOpt: load 14ms, verify 189ms, opt 9ms
> >> D/dalvikvm( 1325): DexOpt: --- END 'ext.jar' (success) ---
> >> D/dalvikvm( 1325): DEX prep '/system/framework/ext.jar': unzip in
> >> 22ms, rewrite 1786ms
> >> D/dalvikvm( 1325): DexOpt: --- BEGIN 'framework.jar' (bootstrap=1) ---
> >> D/dalvikvm( 1372): Note: class Landroid/opengl/GLWrapperBase; has 211
> >> unimplemented (abstract) methods
> >> D/dalvikvm( 1372): DexOpt: load 202ms, verify 2178ms, opt 118ms
> >> D/dalvikvm( 1325): DexOpt: --- END 'framework.jar' (success) ---
> >> D/dalvikvm( 1325): DEX prep '/system/framework/framework.jar': unzip
> >> in 261ms, rewrite 6650ms
> >> D/dalvikvm( 1325): DexOpt: --- BEGIN
> >> 'android.policy.jar' (bootstrap=1) ---
> >> D/dalvikvm( 1373): DexOpt: load 12ms, verify 82ms, opt 3ms
> >> D/dalvikvm( 1325): DexOpt: --- END 'android.policy.jar' (success) ---
> >> D/dalvikvm( 1325): DEX prep '/system/framework/android.policy.jar':
> >> unzip in 10ms, rewrite 678ms
> >> D/dalvikvm( 1325): DexOpt: --- BEGIN 'services.jar' (bootstrap=1) ---
> >> D/dalvikvm( 1374): DexOpt: load 39ms, verify 726ms, opt 31ms
> >> D/dalvikvm( 1325): DexOpt: --- END 'services.jar' (success) ---
> >> D/dalvikvm( 1325): DEX prep '/system/framework/services.jar': unzip in
> >> 63ms, rewrite 1389ms
> >> D/AndroidRuntime( 1325): --- registering native functions ---
> >> I/ethernet( 1325): Loading ethernet jni class
> >> I/SamplingProfilerIntegration( 1325): Profiler is disabled.
> >> I/Zygote  ( 1325): Preloading classes...
> >> E/Zygote  ( 1325): setreuid() failed. errno: 2
> >> D/dalvikvm( 1325): GC_EXPLICIT freed 823 objects / 47624 bytes in 2ms
> >> D/dalvikvm( 1325): GC_EXPLICIT freed 219 objects / 13600 bytes in 2ms
> >> D/dalvikvm( 1325): GC_EXPLICIT freed 253 objects / 14320 bytes in 3ms
> >> D/dalvikvm( 1325): GC_EXPLICIT freed 466 objects / 28848 bytes in 3ms
> >> D/dalvikvm( 1325): GC_EXPLICIT freed 2090 objects / 108328 bytes in
> >> 6ms
> >> W/MediaProfiles( 1325): could not find media config xml file
> >> D/dalvikvm( 1325): GC_EXPLICIT freed 279 objects / 15968 bytes in 5ms
> >> D/dalvikvm( 1325): GC_FOR_MALLOC freed 5066 objects / 224736 bytes in
> >> 9ms
> >> D/dalvikvm( 1325): GC

[loongson-dev] Selecting an operating system for your new Lemote Yeeloong

2012-01-04 Thread Daniel Clark
Just wrote this up as a draft of the main options for operating systems on
the Yeeloong. Would be interested in feedback, also thought it might be
useful to others. (Note that this list purposefully only includes
distributions that are easy for English-only speakers to install/use.)

Also, anyone know if there is documentation for the yeeloong "tab rescue"
(re)installation mechanism?

*Selecting an operating system for your new Lemote Yeeloong*


 In most cases your laptop is shipped as-is from the factory in China. You
may not want to use the pre-installed operating system. This document goes
over most of the options that are relatively easy for non-developers to
install and use.


 Unless otherwise noted, all of the below instructions require a USB key
formatted with the ext2 file system.

 1. *Rescue Media*


 It is useful to have a USB key you can boot from if something goes wrong.


 Download http://dev.lemote.com/files/resource/download/rescue/rescue-yland
put that file on the base directory of a USB key.


 Insert the USB key in your Yeeloong.


 Turn on the Yeeloong and press the “Del” key to get to the PMON 2000 (BSD
licensed boot firmware, called BIOS on x86 systems) command line.


 Load it via usb from the PMON command line:

load /dev/fs/ext2@usb0/rescue-yl

g console=tty root=/dev/sda1 rootdelay=8


 You have now a working rescue system with Busybox.



 2. *Parabola GNU/Linux*


 Due to being on the GNU free distributions list -
http://www.gnu.org/distros/free-distros.html - this is the operating system
currently recommended for use on the Lemote Yeeloong by Freedom Included.


 Install instructions are available from
https://wiki.parabolagnulinux.org/MIPS_Installation


 You will need to have another operating system running before installing
Parabola. Due to the gNewSense installer being broken, it is probably
easiest to do the install with Rescue Media (see above) or the Chinese
variant of Debian GNU/Linux (see below).


 Freedom Included, Inc. donated Yeeloongs to some Parabolla developers to
help make this port possible.


 3. *Gentoo GNU/Linux*


 Gentoo is probably the fastest current distribution. Freedom Included also
helped this project; we hope the work will eventually be ported over to the
fully free Ututo variant of Gentoo.


 The Gentoo handbooks - http://www.gentoo.org/doc/en/handbook/ - explain
how to do the install. All stages are available in the
experimental/mips/stages/ directory of Gentoo mirrors, for example
http://distfiles.gentoo.org/experimental/mips/stages/


 You can track up-to-the-minute work at the git repository -

http://git.overlays.gentoo.org/gitweb/?p=proj/loongson.git;a=summary



 4. *Debian GNU/Linux* (BJLX / Chinese variant)


 This section describes how to install Debian modified for the Yeeloong by
the Beijing Loongson & Debian Users Club.


 Note that mainline Debian is working on supporting the Yeeloong / Loongson
at this point, but as of January 2012 this Chinese distribution seems to be
much easier to install and to work better.


 The (slight) Debian variant at
http://www.anheng.com.cn/loongson/install/uses the Yeeloong's built-in
tab recovery mode to install - so you just put
a USB key in your Yeeloong with the latest vmlinux and .lzma files and
press tab at bootup when prompted, and then answer some questions.


 Note that after the install you'll need to take a few minutes to change
the default language from Chinese to your native language. :-)

 Here is an example of the full install process; you'll want to visit the
web site to make sure that the 2011-10-10 image is still the most recent
install image before you do your install. We recommend the LXDE image as it
uses substantially fewer computing resources than Gnome.


 wget \

http://www.anheng.com.cn/loongson/install/loongson2_debian6_lxde_20111010.tar.lzma


 wget \

http://www.anheng.com.cn/loongson/install/vmlinux


 (become root)


 Format a USB stick with the ext2 file system and copy the vmlinux and
.lzma file(s) over to it, and then safely remove it from the computer.


 Insert the USB stick into the Yeeloong and turn on the Yeeloong. In reply
to prompts do:

“Press Tab to recover” -> press Tab

“Press U to USB recover” -> press U

“Press C to continue” -> press C

“Press Y to recover” -> press Y

And then answer the questions you are asked.


 After the install is done press “Enter”, machine should power off. After
that, power the machine back on.


 After a short wait you'll be on the LXDE main screen, but most things will
be in Chinese.


 To change to English,

a. Open the LXDE main menu by clicking on the icon on the lower left-hand
side of the screen

b. Select the 4th item from the bottom with the right angle and scissors
icon

c. Select the option second from the top named “LX” with the icon of a
computer monitor next to it.

A terminal window should open.


 Type “sudo -i” to become root; now would be a good time to do “passwd” to
change your root password, so you can reco

[loongson-dev] Where get a new keyboard for Lemote Yeeloong?

2012-01-04 Thread Alexandre "asm"
Hello!
Good new years for all.

There are time ago I damaged the keyboard of my Lemote Yeeloong (I shed
milk with chocolate on keyboard). I would like where get a new keyboard.
Does anyone know?

Regards.
asm

-- 
You received this message because you are subscribed to the Google Groups 
"loongson-dev" group.
To post to this group, send email to loongson-dev@googlegroups.com.
To unsubscribe from this group, send email to 
loongson-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/loongson-dev?hl=en.



Re: [loongson-dev] Selecting an operating system for your new Lemote Yeeloong

2012-01-04 Thread Javier Vasquez
On 1/4/12, Daniel Clark  wrote:
> ... operating systems on the Yeeloong... (Note that this list purposefully 
> only includes
> distributions that are easy for English-only speakers to install/use.)
>
> ...
>
>  1. *Rescue Media*
>  ...
>
>  2. *Parabola GNU/Linux*
>  ...
>  You will need to have another operating system running before installing
> Parabola.

You might install ArchLoong, and then move to parabola...  See below, :-)

>
>  3. *Gentoo GNU/Linux*
>  ...
>
>  4. *Debian GNU/Linux* (BJLX / Chinese variant)
>  ...
>
>  5. *OpenBSD*
>  ...
>
>  6. *NixOS GNU/Linux*
>  ...

Not sure if you're missing gNewSense
(http://www.gnewsense.org/Projects/Lemote) and ArchLoong
(http://www.archloong.info/archlinux).  You didn't enumerate
gNewSense, though you mentioned its installer is broken (if it's, I'd
guess not for good)...

gNewSense should be easy on English, and for the ArchLoong the
installation instructions are in English, and if one is used to the
Arch way, then it should be not much of a problem, :-)  BTW, gNewSense
is in the free list as well as parabola...

The lemote community has more complete list here:

http://dev.lemote.com/code/linux-loongson-community

-- 
Javier.

-- 
You received this message because you are subscribed to the Google Groups 
"loongson-dev" group.
To post to this group, send email to loongson-dev@googlegroups.com.
To unsubscribe from this group, send email to 
loongson-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/loongson-dev?hl=en.



Re: [loongson-dev] Selecting an operating system for your new Lemote Yeeloong

2012-01-04 Thread Daniel Clark
On Thu, Jan 5, 2012 at 12:31 AM, Javier Vasquez wrote:

> On 1/4/12, Daniel Clark  wrote:
> >  2. *Parabola GNU/Linux*
> >  ...
> >  You will need to have another operating system running before installing
> > Parabola.
>
> You might install ArchLoong, and then move to parabola...  See below, :-)
>

Thanks, I actually didn't notice this project before; I'll check it out.


> Not sure if you're missing gNewSense
> (http://www.gnewsense.org/Projects/Lemote) and ArchLoong
> (http://www.archloong.info/archlinux).  You didn't enumerate
> gNewSense, though you mentioned its installer is broken (if it's, I'd
> guess not for good)...
>
> gNewSense should be easy on English, and for the ArchLoong the
> installation instructions are in English, and if one is used to the
> Arch way, then it should be not much of a problem, :-)  BTW, gNewSense
> is in the free list as well as parabola...
>

I spent a bit of time trying to get gNewSense to install using "tricky"
methods and couldn't get it to work, and it's been stated on the mailing
list it isn't really working at the moment. I'm well aware of gNewSense
(was selling only systems pre-installed with it around a year ago) and wish
them the best of luck, but it didn't seem to warrant a place on a list of
operating systems that are installable at this moment.


> The lemote community has more complete list here:
>
> http://dev.lemote.com/code/linux-loongson-community


I think the only ones there not on my list are Loonux (not included as as
noted on that web page it's dated), Fedora n32 (unclear if it's being
worked on; web page mentions a fedora version 3 revs from current, blog
link is broken, no mailing list traffic since Aug 2011), XianGe Linux n32
(no english doc), RT-Thread (special purpose).

There were also a few others I didn't include because they seem to be
dev-only at this point, such as netbsd and kfreebsd-yeeloong.

-- 
You received this message because you are subscribed to the Google Groups 
"loongson-dev" group.
To post to this group, send email to loongson-dev@googlegroups.com.
To unsubscribe from this group, send email to 
loongson-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/loongson-dev?hl=en.



Re: [loongson-dev] Selecting an operating system for your new Lemote Yeeloong

2012-01-04 Thread Michał Masłowski
> 2. Parabola GNU/Linux 
[...]
> You will need to have another operating system running before
> installing Parabola. Due to the gNewSense installer being broken, it
> is probably easiest to do the install with Rescue Media (see above) or
> the Chinese variant of Debian GNU/Linux (see below).

Connecting the disk to an x86 machine with a SATA port running GNU/Linux
might be easier, although the installation wiki page might be unclear
about it.


pgpdaH7cutJe6.pgp
Description: PGP signature


Re: [loongson-dev] Selecting an operating system for your new Lemote Yeeloong

2012-01-04 Thread rixed
If you have this information, please include what ABI is used by each of
these distribution (o32, n32...)

-- 
You received this message because you are subscribed to the Google Groups 
"loongson-dev" group.
To post to this group, send email to loongson-dev@googlegroups.com.
To unsubscribe from this group, send email to 
loongson-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/loongson-dev?hl=en.