On Sat, 6 Mar 2010, Otto Moerbeek wrote:
The steps are outlined in INSTALL.loongson. You'll need to set some
pmon variables.

Yes, I have that working the way you do, booting off of wd0a. There are the PMON characteristics outlined in INSTALL.loongson. The serial seems needed for catching ddb output for right now.

I am trying to boot off of usb0 to run some I/O tests which would erase the internal storage. The bootloader seems hardcoded for wd0 so I'll think of another way to do it.

/Lars





There might be a problem in the latest snap, though,
the speed setting in /etc/ttys are wrong. I'll have to check how to
circumvent that, if needed.

        -Otto

It truns out circumvention is not needed, since bsd.rd does not have /etc/ttys.

To quote the install notes:

               On the Fuloong 2F, getting PMON to use the serial console
               is tricky, due to PMON bugs and design decisions made by
               Lemote.
               PMON's default serial speed is 115200, and OpenBSD will
               also use that speed. By default, it is possible to use
               serial input if no USB keyboard is attached. PMON will
               nevertheless display output its on the VGA display.
               To get full serial access, the first step is to boot
               into PMON> with both serial console and VGA display but
               no USB keyboard attached.
               You can type on the serial console, but output will be shown
               on the VGA display. Next enter the following
               commands:

                   PMON> set novga 1
                   PMON> set nokbd 1
                   PMON> set al ""
                   PMON> set ShowBootMenu no

               If you have a dual boot setup, mount the Linux boot partition
               and rename /boot/boot.cfg so that it does not get found by
               PMON. This will enable full serial access to PMON on
               the Fuloong 2F.

This works for me, tested in a slighly different setup, with al set to
the openbsd bootloader in the ext2 filesystem, and no bsd set and then
reading bsd.rd form the root ffs file system:

...
Secondary cache size 512kb

booting:
The boot.cfg not existed!System will try default entry from al.
AUTO
Loading file: /dev/fs/e...@wd0/boot/boot (elf)
(elf)
0x81e20000/42224 + 0x81e2a4f0/4400(z) +
Entry address is 81e201d0
  zero      at       v0       v1       a0       a1       a2       a3

00000000 00000000 00000000 00000000 00000005 aff7fcd0 aff7fce8 800c6980
   t0       t1       t2       t3       t4       t5       t6       t7

00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
   s0       s1       s2       s3       s4       s5       s6       s7

00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
   t8       t9       k0       k1       gp       sp       s8       ra

00000000 00000000 00000000 00000000 00000000 aff7fcb0 00000000 80085690
OpenBSD/loongson BOOT 0.2
boot> bsd.rd
bsd.rd
booting wd0a:bsd.rd: 7060000+483040 [58+181032+109475]=0x778a90
Found Lemote Fuloong, setting up.
Initial setup done, switching console.
[ using 291216 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2010 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 4.7-beta (RAMDISK) #0: Mon Mar  1 17:52:41 CET 2010
...

Reply via email to