Lemote's kernel master branch not currently working on Xinghuo

26 views
Skip to first unread message

David Kuehling

unread,
May 17, 2014, 9:39:13 PM5/17/14
to loongs...@googlegroups.com, Huacai Chen
Hi,

trying to build the master branch from [1] (5014fb051394) does not
produce any kernels that run on Xinghuo 3A 6100. The screen just stays
blank when loading them from the boot menu (or when boot from PMON
prompt, the screen continues to show the PMON console).

I tried two configurations: the one from
arch/mips/configs/loongson3_defconfig and a config derived from a
known-to-work config for kernel 3.5.0-8. Both configs can be found here
[2].

cheers,

David

[1] http://dev.lemote.com/cgit/linux-official.git
[2] https://stech.muecke.pw/david/loongson/5014fb051394/
--
GnuPG public key: http://dvdkhlng.users.sourceforge.net/dk2.gpg
Fingerprint: B63B 6AF2 4EEB F033 46F7 7F1D 935E 6F08 E457 205F

Huacai Chen

unread,
May 18, 2014, 10:28:59 AM5/18/14
to David Kuehling, loongs...@googlegroups.com
You can try the master branch again, I have updated the code.

David Kuehling

unread,
May 21, 2014, 1:27:23 AM5/21/14
to loongs...@googlegroups.com
>>>>> "Huacai" == Huacai Chen <chenh...@gmail.com> writes:

> You can try the master branch again, I have updated the code.

Just tried with 7a7d4e7770a (based on 3.15-rc5), and it seems to work (I
accidentally configured with CONFIG_SMP disabled, will have to check
another time whether SMP works).

Unfortunately it doesn't seem to support fan control for the loongson3a
mini-itx board (xinghuo). CPU fan keeps noisily spinning at top speed.
It does have some kind of loongson3a hwmon code:

$ cat /sys/class/hwmon/hwmon0/temp1_input
48000

And the wpce_fan.c seems to be compiled in:

$ cat /sys/class/hwmon/hwmon2/name
wpce775l-fan

But I didn't find out where it would set a fan policy nor how I could do
so from user space.

Also comparing arch/mips/loongson/common/machtype.c between 3.5.0-9 and
master, I see that all the loongson3 based systems have been reduced to
'generic-loongson-machine' (and looking at /proc/cpuinfo confirms
that).

David

Huacai Chen

unread,
May 21, 2014, 4:28:19 AM5/21/14
to loongs...@googlegroups.com
master branch need a new version of PMON, you can use this one:
http://dev.lemote.com/files/upload/lm/kernel/testing/pmon-A1101-4.0.1.bin

David Kuehling

unread,
May 21, 2014, 6:10:30 AM5/21/14
to loongs...@googlegroups.com
>>>>> "Huacai" == Huacai Chen <chenh...@gmail.com> writes:

> master branch need a new version of PMON, you can use this one:
> http://dev.lemote.com/files/upload/lm/kernel/testing/pmon-A1101-4.0.1.bin

Same upgrade method as for Fuloong? Googeling around I only find
chinese documentation for Xinghuo pmon upgrade, looks like a command
such as this should work [1]:

load -rf bfc00000 (usb0,0)/pmon-A1101-2.0.6.bin

Don't understand chinese, can you confirm that bfc00000 is the correct
offset for the PMON firmware? I hope PMON's flash is just plugged not
soldered into the mainboard, in case something goes wrong!?

cheers,

David

[1] http://bbs.lemote.com/archiver/?tid-71821.html

Huacai Chen

unread,
May 21, 2014, 6:55:12 AM5/21/14
to loongs...@googlegroups.com
Yes, bfc00000 is the correct offset. And PMON flash is plugged, not soldered.

David Kuehling

unread,
May 21, 2014, 9:07:36 PM5/21/14
to loongs...@googlegroups.com
>>>>> "Huacai" == Huacai Chen <chenh...@gmail.com> writes:

> master branch need a new version of PMON, you can use this one:
> http://dev.lemote.com/files/upload/lm/kernel/testing/pmon-A1101-4.0.1.bin

Sorry to be nitpicking, but I can't find any source code that
corresponds to recent PMON versions. Last commit in pmon.git [1] is
From 2011, highest version tag is 1.6.1. I also looked here [2] but
found nothing new, and upstream [3] is currently offline.

Just my fault for not looking at the right spot? Or did Lemote
eventually close-source their PMON development? I'd really like to stay
with an open source BIOS for now.

cheers,

David

[1] http://dev.lemote.com/cgit/pmon.git
[2] http://dev.lemote.com/code/pmon
[3] http://www.pmon2000.com/
Reply all
Reply to author
Forward
0 new messages