File:  [NetBSD Developer Wiki] / wikisrc / ports / evbmips / loongson.mdwn
Revision 1.2: download - view: text, annotated - select for diffs
Sun Jul 10 12:22:48 2016 UTC (3 years, 8 months ago) by wiki
Branches: MAIN
CVS tags: HEAD
web commit by jmcneill: add xorg.conf

[[!meta title="NetBSD/evbmips on Loongson MIPS64 CPUs"]]


[[!toc levels=2]]

# PMON booting

PMON can directly load an uncompressed ELF kernel. An ext2 partition is required to host the kernel.

To boot from a USB device:

[[!template  id=programlisting text="""
PMON> boot -k (usb0,0)/netbsd-LOONGSON
"""]]

To boot from the internal IDE hard disk:

[[!template  id=programlisting text="""
PMON> boot -k (wd0,0)/netbsd-LOONGSON
"""]]

# Partitioning

Use MBR partitioning and create an ext2 partition for the kernel and boot configuration.

# Boot menu

To configure the boot menu, create *boot.cfg* on the ext2 partition:

[[!template  id=programlisting text="""
timeout 3
default 0
showmenu 1

title NetBSD
        kernel  (wd0,0)/netbsd
        args    --
"""]]

# Xorg

The following xorg.conf works for Leemote YeeLoong 8089B:

[[!template  id=programlisting text="""
Section "Module"
        Load "vgahw"
        Load "exa"
        Load "xaa"
EndSection

Section "Device"
        Identifier "LynxEM+"
        Driver "siliconmotion"
        BusID "pci:0@0:8:0"
#       Option "AccelMethod" "EXA"
        Option "PanelSize" "1024x600"
EndSection

Section "Monitor"
        Identifier "Internal LCD"
EndSection

Section "Screen"
        Identifier "Screen"
        Device "LynxEM+"
        Monitor "Internal LCD"
        DefaultDepth 16
EndSection
"""]]

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb