blob: 705cd7bae160c8587ba6c600626a70a37d8ca038 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#### THIS GOES INTO THE CBFS (2nd alternative: hard drive not found from memdisk)
### First try to load the configuration file from a USB disk
if [ -f "(usb0,1)/grub.cfg" ] ; then
source (usb0,1)/grub.cfg
else
if [ -f "(usb0)/grub.cfg" ] ; then
source (usb0)/grub.cfg
else
### Otherwise allow 10 seconds to decide something else
set default=0
set timeout=10
menuentry 'CBFS: SeaBIOS' {
chainloader (cbfsdisk)/elf/seabios.elf
}
menuentry 'CBFS: Indicate normal boot success' {
cmosclean 0x30:0
cmosclean 0x30:1
cmosclean 0x30:2
cmosclean 0x30:3
cmosclean 0x30:4
cmosclean 0x30:5
}
menuentry 'CBFS: to show coreboot CBMEM logs, type' {
set pager=1
cbmemc
set pager=0
}
menuentry 'CBFS: to show coreboot CBFS content, type' {
lscoreboot
error
}
menuentry 'CBFS: to show coreboot TIMESTAMPS, type' {
coreboot_boottime
error
}
menuentry 'CBFS: reboot' {
# reset to normal
cmosclean 48:0
cmosclean 48:1
# reset boot count
cmosclean 48:4
cmosclean 48:5
cmosclean 48:6
cmosclean 48:7
# rebooting makes it impossible to shut down with normal.
reboot
}
menuentry 'CBFS: halt' {
# reset to normal
cmosclean 48:0
cmosclean 48:1
# reset boot count
cmosclean 48:4
cmosclean 48:5
cmosclean 48:6
cmosclean 48:7
# rebooting makes it impossible to shut down with normal.
halt
}
fi
fi
|