Asus P5Q hints and tips
Eduardo Batalha via coreboot <[email protected]>
| Newsgroups | gmane.linux.bios |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
Here are a few hints and tips for the Asus P5Q
1) keyboard power on
In order to activate the "any key" keyboard power on function, start by
installing the ioport package,
use the package manager from your linux distribution or install from here:
https://people.redhat.com/rjones/ioport/
Then, as root, do:
outb 0x2E 0x87; outb 0x2e 0x87; outb 0x2e 0x07; outb 0x2f 0x0a; outb
0x2e 0xe0; outb 0x2f 0x41
2) Blinking power light whilst sleeping
If you want your computer to blink the power light when you put it to
sleep, create a file named smihandler.c inside the
src/mainboard/asus/p5qc/ folder with the following contents:
#include <arch/io.h>
#include <cpu/x86/smm.h>
void mainboard_smi_sleep(u8 slp_typ)
{
outb(inb(0x59b) | 0x08,0x59b);
}
3) Floppy configuration
Byte 0x10 in the RTC NVRAM space is used by various operating systems
(including linux) to determine
what type of floppy drive you have connected to the motherboard
If you replace cmos.default and cmos.layout with the attached files it
will be possible for you select the floppy type
with either the nvramui secondary payload or use the nvramtool .
Hope this is useful to anybody.
Regards,
Ed
_______________________________________________
coreboot mailing list -- [email protected]
To unsubscribe send an email to [email protected]
cmos.default
(text/plain, 119 B)
boot_option=Fallback floppyA=None floppyB=None debug_level=Debug power_on_after_fail=Disable nmi=Enable sata_mode=AHCI
cmos.layout
(text/plain, 1.3 KB)
## SPDX-License-Identifier: GPL-2.0-only # ----------------------------------------------------------------- entries # ----------------------------------------------------------------- 0 120 r 0 reserved_memory # ----------------------------------------------------------------- # FLOPPY 132 4 e 3 floppyA 128 4 e 3 floppyB # ----------------------------------------------------------------- # RTC_BOOT_BYTE (coreboot hardcoded) 384 1 e 4 boot_option 388 4 h 0 reboot_counter # ----------------------------------------------------------------- # coreboot config options: console 395 4 e 6 debug_level # coreboot config options: southbridge 408 1 e 10 sata_mode 409 2 e 7 power_on_after_fail 411 1 e 1 nmi # coreboot config options: cpu # coreboot config options: northbridge # coreboot config options: check sums 984 16 h 0 check_sum # ----------------------------------------------------------------- enumerations #ID value text 1 0 Disable 1 1 Enable 2 0 Enable 2 1 Disable 3 0 None 3 1 360KB 3 2 1.2MB 3 3 720KB 3 4 1.44MB 3 5 2.88MB 3 6 160KB 3 7 180KB 3 8 320KB 4 0 Fallback 4 1 Normal 6 0 Emergency 6 1 Alert 6 2 Critical 6 3 Error 6 4 Warning 6 5 Notice 6 6 Info 6 7 Debug 6 8 Spew 7 0 Disable 7 1 Enable 7 2 Keep 10 0 AHCI 10 1 Compatible # ----------------------------------------------------------------- checksums checksum 392 983 984
smihandler.c
(text/x-csrc, 120 B)
#include <arch/io.h>
#include <cpu/x86/smm.h>
void mainboard_smi_sleep(u8 slp_typ)
{
outb(inb(0x59b) | 0x08,0x59b);
}