Skip to content

Instantly share code, notes, and snippets.

@masterzorag
Created April 7, 2017 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masterzorag/9309ad04dbdfa003465da3dce0182772 to your computer and use it in GitHub Desktop.
Save masterzorag/9309ad04dbdfa003465da3dce0182772 to your computer and use it in GitHub Desktop.
[root@g5 ~]# nvram --partitions
# Sig Chk Len Name
0 5a 82 0002 nvram
1 5f 45 003e system
2 70 bd 00c1 common
3 a0 1e 0052 APL,MacOS75
4 7f c6 00ad wwwwwwwwwwww
[root@g5 ~]# nvram --dump nvram
0x00000000 5a820002 6e767261 6d000000 00000000 |Z...nvram.......|
0x00000010 adc63822 000003f2 00000000 00000000 |..8"............|
[root@g5 ~]# nvram --dump system
0x00000000 5f45003e 73797374 656d0000 00000000 |_E.>system......|
0x00000010 00020000 63617368 00000000 00000000 |....cash........|
0x00000020 00000000 00000000 00000000 00000000 |................|
0x00000030 00000000 00000000 00000000 00000000 |................|
0x00000040 00000000 be2d237d 00000000 00000000 |.....-#}........|
0x00000050 00000000 00000000 00000000 00000000 |................|
0x00000060 325a3639 342d3530 37320000 00000000 |2Z694-5072......|
0x00000070 53505900 00000000 00000000 00000000 |SPY.............|
0x00000080 00000000 00000000 00000000 00000000 |................|
...
0x00000120 00000000 00000000 00000000 00000000 |................|
0x00000130 00000000 00000000 434b3530 35484e44 |........CK505HND|
0x00000140 53505900 00000000 00000000 00000000 |SPY.............|
0x00000150 00000000 00000000 00000000 00000000 |................|
...
0x000003c0 00000000 00000000 00000000 00000000 |................|
0x000003d0 00000000 00000000 00000000 00000000 |................|
[root@g5 ~]# nvram --print-config
"common" Partition
---------------------
little-endian?=false
real-mode?=false
auto-boot?=true
diag-switch?=false
fcode-debug?=false
oem-banner?=false
oem-logo?=false
use-nvramrc?=false
use-generic?=false
default-mac-address?=false
scroll-lock=true
skip-netboot?=false
real-base=-1
real-size=-1
load-base=0x800000
virt-base=-1
virt-size=-1
logger-base=-1
logger-size=-1
pci-probe-mask=-1
screen-#columns=100
screen-#rows=40
selftest-#megs=0
boot-screen=screen
console-screen=screen
diag-device=enet
diag-file=,diags
input-device=keyboard
output-device=screen
input-device-1=scca
output-device-1=scca
mouse-device=mouse
oem-banner=
oem-logo=
nvramrc=
boot-command=mac-boot
default-client-ip=
default-server-ip=
default-gateway-ip=
default-subnet-mask=
default-router-ip=
boot-script=
aapl,pci=
boot-args=
aapl,tdm-units=
boot-volume=2
boot-file=grub
boot-device=hd:,grub
ram-size=0x18000000
boot-last-label=setparams 'Fedora 25 (Twenty Five)'
load_video
insmod gzio
insmod part_apple
insmod ext2
set root='hd0,apple3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//ht@0\,f2000000/pci@7/k2-sata-root@c/disk@0,apple3' --hint-bios=hd0,apple3 --hint-efi=hd0,apple3 --hint-baremetal=ahci0,apple3 26507748-8918-49e0-9d3e-8e8c7b3da04d
else
search --no-floppy --fs-uuid --set=root 26507748-8918-49e0-9d3e-8e8c7b3da04d
fi
linux /vmlinuz-4.10.8-200.fc25.ppc64 root=UUID=46026799-c14a-4ae0-98fd-d5d70cd21c4c ro video=DVI-I-1:d video=DVI-I-2:1024x768@60 video=TV-1:d nomodeset
initrd /initramfs-4.10.8-200.fc25.ppc64.img
[root@g5 ~]# cat /etc/default/grub
GRUB_TIMEOUT=10
GRUB_CMDLINE_LINUX="video=DVI-I-1:d video=DVI-I-2:1024x768@60 video=TV-1:d nomodeset"
#GRUB_TERMINAL=ofconsole
GRUB_TERMINAL_INPUT="ofconsole console"
GRUB_TERMINAL_OUTPUT="ofconsole console"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment