龙芯开源社区

 找回密码
 注册新用户(newuser)
查看: 6364|回复: 4

boot.cfg: How does one convince PMON2000 to use it?

  [复制链接]
发表于 2009-3-23 07:16:27 | 显示全部楼层 |阅读模式
Hi all...

I just dusted off the second Fulong here so I can get ready to build newer stages for Gentoo... figured I'd give the boot menu a try.

Currently to switch kernels or OSes, I change the al and karg variables in the PROM... probably slowly burning holes in the flash in the process... but it's how these machines have always booted, mine were never set up with the boot menu (I believe this happened in newer models).

I found an example of the syntax from the gNewSense site... thus I've put together a boot.cfg... the path command they tell you to run seems to be specific to the Yeeloong, the Fulong here understands none of that.  I tried blanking out al, but then the machine seemed to freeze at the bootup screen, with DEL/ESC, etc not working to yield a prompt.  This had me worried until I thought to give serial console a try... I discovered the output was being sent to the serial port at 115200 baud, so I breathed a sigh of relief there.

I presume there's some PMON2000 settings needed to get it to load and interpret boot.cfg... does anyone happen to know how one achieves this?  (I'll be getting a Yeeloong, and thus will be able to inspect its PROM... but in case it is different to the 2E-based Fulong...)

Update: I was just pointed to this copy of the PMON manual... seems the Gdium has a slightly different firmware than this Fulong... the unit here took one look at the ShowBootMenu variable and promptly ignored it.

Regards,

[ Last edited by Redhatter at 2009-3-23 09:43 ]
发表于 2009-3-23 07:55:49 | 显示全部楼层
2e pmon:
ftp://www.bjlx.org.cn/loongson/pmon_2e.bin

pmon>unset nokbd
pmon>unset novga
发表于 2009-3-23 08:00:21 | 显示全部楼层
boot.cfg :

...
title               fulong2e at /dev/hda1
kernel                /dev/fs/ext2@wd0,0/boot/vmlinux-fulong2e
args                console=tty root=/dev/hda1
发表于 2009-3-23 08:33:13 | 显示全部楼层
in pmon command line
input :
set ShowBootMenu yes
you will see boot menu before booting
but I am sure 2E-besed Fuloong not support the function

[ 本帖最后由 guobamantou 于 2009-3-23 08:47 编辑 ]
 楼主| 发表于 2009-3-26 18:06:28 | 显示全部楼层
Yeah... seems that way.  I'll have a closer look at how the Yeeloong is structured, since the boot menu is working fine there.

(In fact, I'm still figuring out aspects of the Yeeloong... I thought I had it working nicely with a hand-made kernel, until it started crashing this morning.  Ahh well... back to the drawing board.)

本版积分规则

小黑屋|手机版|Archiver|Lemote Inc.  

GMT+8, 2019-1-21 21:25 , Processed in 0.172690 second(s), 17 queries .

快速回复 返回顶部 返回列表