Solaris 11 bootadm: Difference between revisions

From Lolly's Wiki
Jump to navigationJump to search
No edit summary
m (Text replacement - "</source" to "</syntaxhighlight")
Line 6: Line 6:
<source lang=bash>
<source lang=bash>
# echo "console115200:115200 hupcl opost onclr:115200::console" >> /etc/ttydefs
# echo "console115200:115200 hupcl opost onclr:115200::console" >> /etc/ttydefs
</source>
</syntaxhighlight>


Set the new console for system/console-login:default
Set the new console for system/console-login:default
Line 13: Line 13:
# svcadm refresh svc:/system/console-login:default
# svcadm refresh svc:/system/console-login:default
# svcadm restart svc:/system/console-login:default  
# svcadm restart svc:/system/console-login:default  
</source>
</syntaxhighlight>


Setup your boot menu:
Setup your boot menu:
Line 28: Line 28:
# bootadm add-entry    -i 4 "Solaris (non-cluster)(milestone=none)"
# bootadm add-entry    -i 4 "Solaris (non-cluster)(milestone=none)"
# bootadm change-entry -i 4 kargs="-B \$zfs_bootfs,console=ttya -x -m milestone=none"
# bootadm change-entry -i 4 kargs="-B \$zfs_bootfs,console=ttya -x -m milestone=none"
</source>
</syntaxhighlight>

Revision as of 15:21, 25 November 2021


Booten via SP-Console 115200 Baud

Add a new ttydef with 115200: <source lang=bash>

  1. echo "console115200:115200 hupcl opost onclr:115200::console" >> /etc/ttydefs

</syntaxhighlight>

Set the new console for system/console-login:default <source lang=bash>

  1. svccfg -s svc:/system/console-login:default setprop ttymon/label=console115200
  2. svcadm refresh svc:/system/console-login:default
  3. svcadm restart svc:/system/console-login:default

</syntaxhighlight>

Setup your boot menu: <source lang=bash>

  1. bootadm generate-menu
  2. bootadm set-menu console=text serial_params='0,115200,8,N,1'
  3. bootadm change-entry -i 0 kargs="-B \$zfs_bootfs,console=ttya"
  4. bootadm add-entry -i 1 "Solaris (non-cluster)"
  5. bootadm change-entry -i 1 kargs="-B \$zfs_bootfs,console=ttya -x"
  6. bootadm add-entry -i 2 "Solaris (non-cluster)(single-user)"
  7. bootadm change-entry -i 2 kargs="-B \$zfs_bootfs,console=ttya -xs"
  8. bootadm add-entry -i 3 "Solaris (kernel debugger)"
  9. bootadm change-entry -i 3 kargs="-B \$zfs_bootfs,console=ttya -k"
  10. bootadm add-entry -i 4 "Solaris (non-cluster)(milestone=none)"
  11. bootadm change-entry -i 4 kargs="-B \$zfs_bootfs,console=ttya -x -m milestone=none"

</syntaxhighlight>