부트 PROM은 SPARC 기반 시스템을 부트하고 부트 매개변수를 수정하기 위해 사용됩니다. 예를 들어 부트할 장치를 재설정하고, 기본 부트 파일 또는 커널을 변경하거나, 다중 사용자 상태로 시스템을 설정하기 전에 하드웨어 진단을 실행할 수 있습니다.
다음 작업을 수행해야 할 경우 기본 부트 장치를 변경해야 합니다.
영구적으로 또는 임시로 시스템에 새 드라이브 추가
네트워크 부트 전략 변경
네트워크에서 독립형 시스템을 임시로 부트
PROM 명령의 전체 목록을 보려면 monitor(1M) 및 eeprom(1M) 매뉴얼 페이지를 참조하십시오.
부트할 적합한 장치를 확인하기 위해 시스템에서 장치를 식별해야 할 수 있습니다.
시작하기 전에
probe 명령을 사용하여 시스템에 연결된 장치를 안전하게 확인하려면 먼저 다음을 수행해야 합니다.
PROM auto-boot? 값을 false로 변경합니다.
ok setenv auto-boot? false
reset-all 명령을 실행하여 시스템 등록을 지웁니다.
ok reset-all
sifting probe 명령을 사용하면 시스템에서 사용 가능한 probe 명령을 확인할 수 있습니다.
ok sifting probe
시스템 등록을 지우지 않고 probe 명령을 실행하면 다음 메시지가 표시됩니다.
ok probe-scsi This command may hang the system if a Stop-A or halt command has been executed. Please type reset-all to reset the system before executing this command. Do you wish to continue? (y/n) n
ok probe-device
ok setenv auto-boot? true auto-boot? = true
ok reset-all
다음 예제에서는 시스템에 연결된 장치를 식별하는 방법을 보여 줍니다.
ok setenv auto-boot? false auto-boot? = false ok reset-all SC Alert: Host System has Reset Sun Fire T200, No Keyboard . . . Ethernet address 0:14:4f:1d:e8:da, Host ID: 841de8da. ok probe-ide Device 0 ( Primary Master ) Removable ATAPI Model: MATSHITACD-RW CW-8124 Device 1 ( Primary Slave ) Not Present Device 2 ( Secondary Master ) Not Present Device 3 ( Secondary Slave ) Not Present ok setenv auto-boot? true auto-boot? = true
또는 devalias 명령을 사용하여 시스템에 연결되었을 수 있는 장치 별칭 및 장치의 연관된 경로를 식별할 수 있습니다. 예를 들어, 다음과 같습니다.
ok devalias ttya /pci@7c0/pci@0/pci@1/pci@0/isa@2/serial@0,3f8 nvram /virtual-devices/nvram@3 net3 /pci@7c0/pci@0/pci@2/network@0,1 net2 /pci@7c0/pci@0/pci@2/network@0 net1 /pci@780/pci@0/pci@1/network@0,1 net0 /pci@780/pci@0/pci@1/network@0 net /pci@780/pci@0/pci@1/network@0 ide /pci@7c0/pci@0/pci@1/pci@0/ide@8 cdrom /pci@7c0/pci@0/pci@1/pci@0/ide@8/cdrom@0,0:f disk3 /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/disk@3 disk2 /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/disk@2 disk1 /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/disk@1 disk0 /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/disk@0 disk /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/disk@0 scsi /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2 virtual-console /virtual-devices/console@1 name aliases
# init 0
ok printenv boot-device
부트할 장치를 설정하기 위한 값을 식별합니다.
자세한 내용은 printenv(1B) 매뉴얼 페이지를 참조하십시오.
기본 boot-device는 다음과 비슷한 형식으로 표시됩니다.
boot-device = /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/disk@0,0:a
boot-device 값이 네트워크 부트 장치를 지정하는 경우 다음과 같은 출력이 표시됩니다.
boot-device = /sbus@1f,0/SUNW,fas@e,8800000/sd@a,0:a \ /sbus@1f,0/SUNW,fas@e,8800000/sd@0,0:a disk net
시작하기 전에
기본 부트 장치를 다른 장치로 변경하려면 먼저 시스템에서 장치를 식별해야 할 수 있습니다. 시스템에서 장치를 식별하는 방법은 시스템에서 장치 식별 방법을 참조하십시오.
# init 0
ok setenv boot-device device[n]
boot-device 값(예: disk 또는 network)을 식별합니다. n은 디스크 번호로 지정할 수 있습니다. 디스크 번호를 식별하는 데 도움이 필요한 경우 probe 명령 중 하나를 사용합니다.
ok printenv boot-device
ok reset-all
새 boot-device 값이 PROM에 기록됩니다.
이 예제에서 기본 부트 장치는 디스크로 설정되어 있습니다.
# init 0 # INIT: New run level: 0 . . . The system is down. syncing file systems... done Program terminated ok setenv boot-device /pci@1f,4000/scsi@3/disk@1,0 boot-device = /pci@1f,4000/scsi@3/disk@1,0 ok printenv boot-device boot-device /pci@1f,4000/scsi@3/disk@1,0 ok boot Resetting ... screen not found. Can't open input device. Keyboard not present. Using ttya for input and output. . . . Rebooting with command: boot disk1 Boot device: /pci@1f,4000/scsi@3/disk@1,0 File and args:
이 예제에서 기본 부트 장치는 네트워크로 설정되어 있습니다.
# init 0 # INIT: New run level: 0 . . . The system is down. syncing file systems... done Program terminated ok setenv boot-device net boot-device = net ok printenv boot-device boot-device net disk ok reset . . . Boot device: net File and args: pluto console login: