Using latest Debian Loongson-3 kernels on a XingHuo 3A "Spark"

26 views
Skip to first unread message

David Kuehling

unread,
Jan 15, 2016, 8:41:39 PM1/15/16
to loongs...@googlegroups.com
Hi,

I'm running a Xinghuo 3A Desktop machine, currently with a kernel
3.5.0-9 built from Lemote's sources. I stopped upgrading to newer
kernels, as these seemed to require a Bios upgrade which I feared to
brick my machine.

Now Debian Jessie also has a 3.16 kernel for Loongson-3A in its package
repository. How are my chances to make these run on my Xinghuo machine?
Any simple-to-follow guides about how to safely upgrade the Bios on
these machines? Any known-good kernels that I can safely use for
booting into the system after an upgrade?

thanks for any info,

cheers,

David
--
GnuPG public key: http://dvdkhlng.users.sourceforge.net/dk2.gpg
Fingerprint: B63B 6AF2 4EEB F033 46F7 7F1D 935E 6F08 E457 205F

张福新

unread,
Jan 16, 2016, 2:36:14 AM1/16/16
to loongson-dev
I think a safe way to try is use a ram version pmon(make tgt=ram) first. The ram version can be loaded from disk or network at old pmon command line. If the functionality is ok, the updating of pmon itself is quite safe. 

Regards 
 
 
------------------ Original ------------------
From:  "David Kuehling"<dvdk...@posteo.de>;
Date:  Sat, Jan 16, 2016 09:41 AM
To:  "loongson-dev"<loongs...@googlegroups.com>;
Subject:  [loongson-dev] Using latest Debian Loongson-3 kernels on a XingHuo 3A "Spark"
--
You received this message because you are subscribed to the Google Groups "loongson-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loongson-dev...@googlegroups.com.
To post to this group, send email to loongs...@googlegroups.com.
Visit this group at https://groups.google.com/group/loongson-dev.
For more options, visit https://groups.google.com/d/optout.

David Kuehling

unread,
Jan 17, 2016, 8:49:02 PM1/17/16
to loongs...@googlegroups.com, Fuxin Zhang
Hi Fuxin,

>>>>> "张福新" == 张福新 <zha...@lemote.com> writes:

> I think a safe way to try is use a ram version pmon(make tgt=ram)
> first. The ram version can be loaded from disk or network at old pmon
> command line. If the functionality is ok, the updating of pmon itself
> is quite safe.

Thanks for the reply.

"make tgt=ram" means I'd have to recompile PMON from sources? Isn't the
PMON version for Loongson3A/mini-ITX closed-source [1]? All the recent
source-links I could find are not working any more [2] (and they may not
even have the code for the mini-itx board, if I read the mail
correctly).

cheers,

David

[1] https://lists.debian.org/debian-mips/2015/02/msg00004.html
[2] http://www.loongnix.com:8000/dev/gitweb/pmon-loongson3

Unknown

unread,
Jan 18, 2016, 3:29:29 AM1/18/16
to loongs...@googlegroups.com
在 2016-01-18一的 02:48 +0100,David Kuehling写道:
> Hi Fuxin,
>
> > > > > > "张福新" == 张福新  <zha...@lemote.com> writes:
>
> > I think a safe way to try is use a ram version pmon(make tgt=ram)
> > first. The ram version can be loaded from disk or network at old
> > pmon
> > command line. If the functionality is ok, the updating of pmon
> > itself
> > is quite safe.
>
> Thanks for the reply.
>
> "make tgt=ram" means I'd have to recompile PMON from sources?  Isn't
> the
> PMON version for Loongson3A/mini-ITX closed-source [1]?  All the
> recent
> source-links I could find are not working any more [2] (and they may
> not
> even have the code for the mini-itx board, if I read the mail
> correctly).


http://mirrors.ustc.edu.cn/loongson/pmon/updates.lemote.com/files/uploa
d/lm/firmware/pmon/

David Kuehling

unread,
Jan 20, 2016, 7:31:06 AM1/20/16
to loongs...@googlegroups.com
>>>>> "Unknown" == Unknown <lius...@gmail.com> writes:

>> > I think a safe way to try is use a ram version pmon(make tgt=ram) >
>> first. The ram version can be loaded from disk or network at old >
>> pmon > command line. If the functionality is ok, the updating of pmon
>> > itself > is quite safe.
>>
>> Thanks for the reply.
>>
>> "make tgt=ram" means I'd have to recompile PMON from sources?  Isn't
>> the PMON version for Loongson3A/mini-ITX closed-source [1]?  All the
>> recent source-links I could find are not working any more [2] (and
>> they may not even have the code for the mini-itx board, if I read the
>> mail correctly).

> http://mirrors.ustc.edu.cn/loongson/pmon/updates.lemote.com/files/uploa
> d/lm/firmware/pmon/

Thanks, this is exactly what I was looking for. Got myself a copy of
the sources and looking forward to playing around with RAM-only version
of PMON.

cheers,

David

张福新

unread,
Jan 20, 2016, 11:59:37 PM1/20/16
to loongson-dev
The main reason for upgrading pmon should be that new pmon uses a new way to pass information to the kernel(we have defined a specification for this, ). I have  a rough idea to avoid upgrading pmon: write a little app for pmon and use it to fill the information tables then load new kernels with them. Since pmon support load and run an elf app compiled for it,  it should be viable and safe. But recent days we don't have  resources to do it, might try later.

Pity that they are written in Chinese, maybe you can use google translator to understand most of it.

Regards
 
------------------ Original ------------------
From:  "David Kuehling"<dvdk...@posteo.de>;
Date:  Wed, Jan 20, 2016 08:30 PM
To:  "loongson-dev"<loongs...@googlegroups.com>;
Subject:  Re: [loongson-dev] Using latest Debian Loongson-3 kernels on aXingHuo 3A "Spark"
Reply all
Reply to author
Forward
0 new messages