summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/105/semantic/1588328
blob: d267664afc6a27b0a755229ad40c0554874e6cb2 (plain) (blame)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
semantic: 0.875
graphic: 0.844
other: 0.837
network: 0.818
boot: 0.803
mistranslation: 0.782
device: 0.776
instruction: 0.769
socket: 0.742
assembly: 0.735
vnc: 0.708
KVM: 0.586

Qemu 2.6 Solaris 9 Sparc Segmentation Fault

Hi,
I tried the following command to boot Solaris 9 sparc:
qemu-system-sparc -nographic -boot d -hda ./Spark9.disk -m 256 -cdrom sol-9-905hw-ga-sparc-dvd.iso -serial telnet:0.0.0.0:3000,server 

It seems there are a few Segmentation Faults, one from the starting of the boot. Another at the beginning of the commandline installation.

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Configuration device id QEMU version 1 machine id 32
Probing SBus slot 0 offset 0
Probing SBus slot 1 offset 0
Probing SBus slot 2 offset 0
Probing SBus slot 3 offset 0
Probing SBus slot 4 offset 0
Probing SBus slot 5 offset 0
Invalid FCode start byte
CPUs: 1 x FMI,MB86904
UUID: 00000000-0000-0000-0000-000000000000
Welcome to OpenBIOS v1.1 built on Apr 18 2016 08:19
  Type 'help' for detailed information
Trying cdrom:d...
Not a bootable ELF image
Loading a.out image...
Loaded 7680 bytes
entry point is 0x4000
bootpath: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@2,0:d

Jumping to entry point 00004000 for type 00000005...
switching to new context:
SunOS Release 5.9 Version Generic_118558-34 32-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
WARNING: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0 (sd0):
	Corrupt label; wrong magic number

Segmentation Fault
Configuring /dev and /devices
NOTICE: Couldn't set value (../../sun/io/audio/sada/drv/audiocs/audio_4231.c, Line #1759 0x00 0x88)
audio may not work correctly until it is stopped and restarted
Segmentation Fault
Using RPC Bootparams for network configuration information.
Skipping interface le0
Searching for configuration file(s)...
Search complete.

....

What type of terminal are you using?
 1) ANSI Standard CRT
 2) DEC VT52
 3) DEC VT100
 4) Heathkit 19
 5) Lear Siegler ADM31
 6) PC Console
 7) Sun Command Tool
 8) Sun Workstation
 9) Televideo 910
 10) Televideo 925
 11) Wyse Model 50
 12) X Terminal Emulator (xterms)
 13) CDE Terminal Emulator (dtterm)
 14) Other
Type the number of your choice and press Return: 3
syslog service starting.
savecore: no dump device configured
Running in command line mode
/sbin/disk0_install[109]: 143 Segmentation Fault
/sbin/run_install[130]: 155 Segmentation Fault

That basically looks like it should work. The only time I've seen random segfaults similar to this is with a corrupted disk, so the first question to ask is whether you've verified the ISO image you are using? Unfortunately this isn't an image I currently have access to, but I can report my Solaris 8 32-bit ISO boots and installs fine with no issues here. Does it make any difference if you remove the -hda part of the command line?

Hi Mark,

I compared the cksum provided and the dvd cksum that i did, seems to match. I did try out Solaris 8 too. It seems to work fine with sun formatted hda disk. I did try removing the -hda for solaris 9, the problem still persist. I shall find if i can get another solaris 9 image source to try out. 

If you can verify that the media is correct and you still see problems, I'd be interested to take a look if you are able to provide me a copy of the media for debugging.


Hi Mark,

I have uploaded a copy of it to mega.nz

https://mega.nz/#!94ZVXBra


Hi Mark,

Attached is the new link: https://mega.nz/#!94ZVXBra!8QMsQ2d9eKKkMuawg_0YelfyWTy47CyyD1f6tvSv1bQ


Thanks for the test case. It appears that this is a regression that occurred somewhere between 2.5 and 2.6 - bisecting now.

Can you guys check if the problem persists when qemu is launched with
the -singlestep option?
I think it's in general a good idea always check TCG-related problems
with -singlestep , because it helps to find out whether a bug is in
the optimizer or generator module of TCG.

Artyom

On Tue, Jun 14, 2016 at 11:44 PM, Mark Cave-Ayland
<email address hidden> wrote:
> Thanks for the test case. It appears that this is a regression that
> occurred somewhere between 2.5 and 2.6 - bisecting now.
>
> --
> You received this bug notification because you are a member of qemu-
> devel-ml, which is subscribed to QEMU.
> https://bugs.launchpad.net/bugs/1588328
>
> Title:
>   Qemu 2.6 Solaris 9 Sparc Segmentation Fault
>
> Status in QEMU:
>   New
>
> Bug description:
>   Hi,
>   I tried the following command to boot Solaris 9 sparc:
>   qemu-system-sparc -nographic -boot d -hda ./Spark9.disk -m 256 -cdrom sol-9-905hw-ga-sparc-dvd.iso -serial telnet:0.0.0.0:3000,server
>
>   It seems there are a few Segmentation Faults, one from the starting of
>   the boot. Another at the beginning of the commandline installation.
>
>   Trying 127.0.0.1...
>   Connected to localhost.
>   Escape character is '^]'.
>   Configuration device id QEMU version 1 machine id 32
>   Probing SBus slot 0 offset 0
>   Probing SBus slot 1 offset 0
>   Probing SBus slot 2 offset 0
>   Probing SBus slot 3 offset 0
>   Probing SBus slot 4 offset 0
>   Probing SBus slot 5 offset 0
>   Invalid FCode start byte
>   CPUs: 1 x FMI,MB86904
>   UUID: 00000000-0000-0000-0000-000000000000
>   Welcome to OpenBIOS v1.1 built on Apr 18 2016 08:19
>     Type 'help' for detailed information
>   Trying cdrom:d...
>   Not a bootable ELF image
>   Loading a.out image...
>   Loaded 7680 bytes
>   entry point is 0x4000
>   bootpath: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@2,0:d
>
>   Jumping to entry point 00004000 for type 00000005...
>   switching to new context:
>   SunOS Release 5.9 Version Generic_118558-34 32-bit
>   Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
>   Use is subject to license terms.
>   WARNING: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0 (sd0):
>         Corrupt label; wrong magic number
>
>   Segmentation Fault
>   Configuring /dev and /devices
>   NOTICE: Couldn't set value (../../sun/io/audio/sada/drv/audiocs/audio_4231.c, Line #1759 0x00 0x88)
>   audio may not work correctly until it is stopped and restarted
>   Segmentation Fault
>   Using RPC Bootparams for network configuration information.
>   Skipping interface le0
>   Searching for configuration file(s)...
>   Search complete.
>
>   ....
>
>   What type of terminal are you using?
>    1) ANSI Standard CRT
>    2) DEC VT52
>    3) DEC VT100
>    4) Heathkit 19
>    5) Lear Siegler ADM31
>    6) PC Console
>    7) Sun Command Tool
>    8) Sun Workstation
>    9) Televideo 910
>    10) Televideo 925
>    11) Wyse Model 50
>    12) X Terminal Emulator (xterms)
>    13) CDE Terminal Emulator (dtterm)
>    14) Other
>   Type the number of your choice and press Return: 3
>   syslog service starting.
>   savecore: no dump device configured
>   Running in command line mode
>   /sbin/disk0_install[109]: 143 Segmentation Fault
>   /sbin/run_install[130]: 155 Segmentation Fault
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qemu/+bug/1588328/+subscriptions
>



-- 
Regards,
Artyom Tarasenko

SPARC and PPC PReP under qemu blog: http://tyom.blogspot.com/search/label/qemu


On 17/06/16 12:42, Artyom Tarasenko wrote:

> Can you guys check if the problem persists when qemu is launched with
> the -singlestep option?
> I think it's in general a good idea always check TCG-related problems
> with -singlestep , because it helps to find out whether a bug is in
> the optimizer or generator module of TCG.
> 
> Artyom

Hi Artyom,

I did manage to bisect this down to a single commit in the end: see
http://lists.nongnu.org/archive/html/qemu-devel/2016-06/msg04039.html
for the commit in question.


ATB,

Mark.



Artyom has located the regression and posted a patch here: https://lists.gnu.org/archive/html/qemu-devel/2016-06/msg07226.html.

Hi all,

Thanks for the patch. I just tried, it seems to be not able to find the disk when it try to start the installation. :(

...

Please specify the media from which you will install the Solaris Operating
Environment.

Media:

1. CD/DVD
2. Network File System
3. HTTP (Flash archive only)
4. FTP (Flash archive only)
5. Local Tape (Flash archive only)

   Media [1]: 1
Reading disc for Solaris Operating Environment...

The system is being initialized, please wait... /
No Disks found. 
Check to make sure disks are cabled and powered up. 



I ran all the way through the installer in order to test the patch, so it should be working for you. Is your Spark9.disk labelled? See http://virtuallyfun.superglobalmegacorp.com/2010/10/03/formatting-disks-for-solaris/ for more information on how to do this.

Hmm.. strange. I did make a new disk went into the setup, then format the disk. After that, i rebooted and start that installation. But, it seems still there is no disk detected. 

 Media [1]: 1
Reading disc for Solaris Operating Environment...

The system is being initialized, please wait... |
No Disks found. 
Check to make sure disks are cabled and powered up. 

 Press OK to Exit.

   <Press ENTER to continue/

-# format -e
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <drive type unknown>
          /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0
Specify disk (enter its number): 0



AVAILABLE DRIVE TYPES:
        0. Auto configure
        1. Quantum ProDrive 80S
        2. Quantum ProDrive 105S
        3. CDC Wren IV 94171-344
        4. SUN0104
        5. SUN0207
        6. SUN0327
        7. SUN0340
        8. SUN0424
        9. SUN0535
        10. SUN0669
        11. SUN1.0G
        12. SUN1.05
        13. SUN1.3G
        14. SUN2.1G
        15. SUN2.9G
        16. Zip 100
        17. Zip 250
        18. other
Specify disk type (enter its number): 18
Enter number of data cylinders: 24620
Enter number of alternate cylinders[2]: 
Enter number of physical cylinders[24622]: 
Enter number of heads: 27
Enter physical number of heads[default]: 107
Enter number of data sectors/track: 107
Enter number of physical sectors/track[default]: 
Enter rpm of drive[3600]: 
Enter format time[default]: 
Enter cylinder skew[default]: 
Enter track skew[default]: 
Enter tracks per zone[default]: 
Enter alternate tracks[default]: 
Enter alternate sectors[default]: 
Enter cache control[default]: 
Enter prefetch threshold[default]: 
Enter minimum prefetch[default]: 
Enter maximum prefetch[default]: 
Enter disk type name (remember quotes): Sparc9
selecting c0t0d0
[disk formatted]


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        scsi       - independent SCSI mode selects
        cache      - enable, disable or query SCSI disk cache
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> label
[0] SMI Label
[1] EFI Label
Specify Label type[0]: 1
Ready to label disk, continue?y

format> q

#reboot
Jun 28 23:37:16 rpcbind: rpcbind terminating on signal.
syncing file systems... done
rebooting...
rebooting ()
Configuration device id QEMU version 1 machine id 32
Probing SBus slot 0 offset 0
Probing SBus slot 1 offset 0
Probing SBus slot 2 offset 0
Probing SBus slot 3 offset 0
Probing SBus slot 4 offset 0
Probing SBus slot 5 offset 0
Invalid FCode start byte
CPUs: 1 x FMI,MB86904
UUID: 00000000-0000-0000-0000-000000000000
Welcome to OpenBIOS v1.1 built on Apr 18 2016 08:19
  Type 'help' for detailed information
Trying cdrom:d...
Not a bootable ELF image
Loading a.out image...
Loaded 7680 bytes
entry point is 0x4000
bootpath: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@2,0:d

Jumping to entry point 00004000 for type 00000005...
switching to new context:
SunOS Release 5.9 Version Generic_118558-34 32-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Configuring /dev and /devices
NOTICE: Couldn't set value (../../sun/io/audio/sada/drv/audiocs/audio_4231.c, Line #1759 0x00 0x88)
audio may not work correctly until it is stopped and restarted

Please specify the media from which you will install the Solaris Operating
Environment.

Media:

1. CD/DVD
2. Network File System
3. HTTP (Flash archive only)
4. FTP (Flash archive only)
5. Local Tape (Flash archive only)

   Media [1]: 1
Reading disc for Solaris Operating Environment...

The system is being initialized, please wait... -^[[6|^R
^[[/
No Disks found. 
Check to make sure disks are cabled and powered up. 

 Press OK to Exit.



Okay. Can you confirm which version (or git revision) you've used to apply the patch so I can try and reproduce locally?


May 11 2016. qemu-2.6.0 from http://wiki.qemu.org/Download

I've just tried v2.6.0 with the recent ldstub patch applied and it looks from the output above that you're using an incorrect format to put down the disk label. I see the following:

$ ./qemu-system-sparc -cdrom sol-9-905hw-ga-sparc-dvd.iso -hda /home/build/src/qemu/image/sparc32/sol9.qcow2 -boot d -nographic -prom-env 'auto-boot?=false'
Configuration device id QEMU version 1 machine id 32
Probing SBus slot 0 offset 0
Probing SBus slot 1 offset 0
Probing SBus slot 2 offset 0
Probing SBus slot 3 offset 0
Probing SBus slot 4 offset 0
Probing SBus slot 5 offset 0
Invalid FCode start byte
CPUs: 1 x FMI,MB86904
UUID: 00000000-0000-0000-0000-000000000000
Welcome to OpenBIOS v1.1 built on Apr 18 2016 08:19
  Type 'help' for detailed information

0 > boot cdrom:d -vs Not a bootable ELF image
Loading a.out image...
Loaded 7680 bytes
entry point is 0x4000
bootpath: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@2,0:d

Jumping to entry point 00004000 for type 00000005...
switching to new context:
Size: 0x4624f+0xdaf5+0x1d6a3 Bytes
SunOS Release 5.9 Version Generic_118558-34 32-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
...
...
INIT: SINGLE USER MODE
# format
Searching for disks...WARNING: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0 (sd0):
        Corrupt label; wrong magic number

WARNING: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0 (sd0):
        Corrupt label; wrong magic number

done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <drive type unknown>
          /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0
Specify disk (enter its number): 0



AVAILABLE DRIVE TYPES:
        0. Auto configure
        1. Quantum ProDrive 80S
        2. Quantum ProDrive 105S
        3. CDC Wren IV 94171-344
        4. SUN0104
        5. SUN0207
        6. SUN0327
        7. SUN0340
        8. SUN0424
        9. SUN0535
        10. SUN0669
        11. SUN1.0G
        12. SUN1.05
        13. SUN1.3G
        14. SUN2.1G
        15. SUN2.9G
        16. Zip 100
        17. Zip 250
        18. other
Specify disk type (enter its number): 18
Enter number of data cylinders: 24620
Enter number of alternate cylinders[2]: 
Enter number of physical cylinders[24622]: 
Enter number of heads: 27
Enter physical number of heads[default]: 
Enter number of data sectors/track: 107
Enter number of physical sectors/track[default]: 107
Enter rpm of drive[3600]: 
Enter format time[default]: 
Enter cylinder skew[default]: 
Enter track skew[default]: 
Enter tracks per zone[default]: 
Enter alternate tracks[default]: 
Enter alternate sectors[default]: 
Enter cache control[default]: 
Enter prefetch threshold[default]: 
Enter minimum prefetch[default]: 
Enter maximum prefetch[default]: 
Enter disk type name (remember quotes): Sparc9
selecting c0t0d0
[disk formatted]


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> label
Ready to label disk, continue? y

WARNING: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0 (sd0):
        Corrupt label; wrong magic number

format> label
Ready to label disk, continue? y

format> q

And then after the reboot:

$ ./qemu-system-sparc -cdrom sol-9-905hw-ga-sparc-dvd.iso -hda /home/build/src/qemu/image/sparc32/sol9.qcow2 -boot d -nographic
Configuration device id QEMU version 1 machine id 32
Probing SBus slot 0 offset 0
Probing SBus slot 1 offset 0
Probing SBus slot 2 offset 0
Probing SBus slot 3 offset 0
Probing SBus slot 4 offset 0
Probing SBus slot 5 offset 0
Invalid FCode start byte
CPUs: 1 x FMI,MB86904
UUID: 00000000-0000-0000-0000-000000000000
Welcome to OpenBIOS v1.1 built on Apr 18 2016 08:19
  Type 'help' for detailed information
Trying cdrom:d...
Not a bootable ELF image
Loading a.out image...
Loaded 7680 bytes
entry point is 0x4000
bootpath: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@2,0:d

Jumping to entry point 00004000 for type 00000005...
switching to new context:
SunOS Release 5.9 Version Generic_118558-34 32-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Configuring /dev and /devices
NOTICE: Couldn't set value (../../sun/io/audio/sada/drv/audiocs/audio_4231.c, Line #1759 0x00 0x88)
audio may not work correctly until it is stopped and restarted
Using RPC Bootparams for network configuration information.
Skipping interface le0
Searching for configuration file(s)...
Search complete.

Select a Language

   0. English
   1. French
   2. German
   3. Italian
   4. Japanese
   5. Korean
   6. Simplified Chinese
   7. Spanish
   8. Swedish
   9. Traditional Chinese

Please make a choice (0 - 9), or press h or ? for help: 0

Select a Locale

   0. English (C - 7-bit ASCII)
   1. Albania (ISO8859-2)
   2. Australia (ISO8859-1)
   3. Belgium-Flemish (ISO8859-1)
   4. Belgium-Flemish (ISO8859-15 - Euro)
   5. Bosnia (ISO8859-2)
   6. Brazil (ISO8859-1)
   7. Brazil (UTF-8)
   8. Bulgaria (ISO8859-5)
   9. Canada-English (ISO8859-1)
  10. Catalan, Spain (ISO8859-1)
  11. Catalan, Spain (ISO8859-15 - Euro)
  12. Croatia (ISO8859-2)
  13. Czech Republic (ISO8859-2)
  14. Denmark (ISO8859-1)
  15. Denmark (ISO8859-15 - Euro)
  16. Egypt (ISO8859-6)
  17. Egypt (UTF-8)
  18. Estonia (ISO8859-15)

Press Return to show more choices.
Please make a choice (0 - 59), or press h or ? for help: 0

What type of terminal are you using?
 1) ANSI Standard CRT
 2) DEC VT52
 3) DEC VT100
 4) Heathkit 19
 5) Lear Siegler ADM31
 6) PC Console
 7) Sun Command Tool
 8) Sun Workstation
 9) Televideo 910
 10) Televideo 925
 11) Wyse Model 50
 12) X Terminal Emulator (xterms)
 13) CDE Terminal Emulator (dtterm)
 14) Other
Type the number of your choice and press Return: 3
syslog service starting.
savecore: no dump device configured
Running in command line mode

Please wait while the system information is loaded... |

...
...

Please wait while the system is configured with your settings...

Scanning system disk information...

Searching disks for upgradable Solaris root devices...
No Upgradable Solaris root devices were found.


Searching for locations to accommodate a temporary copy of the Solaris
installation software.  Swap slices are usually erased at reboot, so it is
preferable to place the Solaris installation software on slice labeled swap.

No swap slices that begin at the first usable cylinder have enough space
to accommodate a temporary copy of the Solaris installation software.

Using a slice that begins at the first usable cylinder allows the most
flexibility during filesystem layout. If you are doing an initial install and
you are not preserving any filesystems, you can re-partition a disk with the
swap slice starting at the first usable cylinder.

Would you like to re-partition a disk? [y,n,?,q] y

The default root disk is /dev/dsk/c0t0d0.
The selected disk will be re-partitioned before the Solaris installation
software is copied to the disk.

WARNING: ALL INFORMATION ON THE DISK WILL BE ERASED!


Do you want to re-partition /dev/dsk/c0t0d0 [y,n,?,q] y

NOTE: The swap size cannot be changed during file system layout.


Enter a swap slice size between 158MB and 34729MB, default = 512MB [?] 

Placing the swap slice at the beginning of the disk will allow the most flexible file system partitioning later in the installation.

Can the swap slice start at the beginning of the disk  [y,n,?,q] y
Confirm Information:

        Disk Slice  : /dev/dsk/c0t0d0s1
        Size        : 512 MB
        Start Cyl.  : 0

WARNING: ALL INFORMATION ON THE DISK WILL BE ERASED!


Is this OK  [y,n,?,q] y

etc.

Please specify the media from which you will install the Solaris Operating
Environment.

Media:

1. CD/DVD
2. Network File System
3. HTTP (Flash archive only)
4. FTP (Flash archive only)
5. Local Tape (Flash archive only)

   Media [1]: 
Reading disc for Solaris Operating Environment...

The system is being initialized, please wait... /

Sun Microsystems, Inc.
Binary Code License Agreement

etc.

Comparing your output with mine I can see two obvious differences:

1) You are using a different version of Solaris to label the disk in a way that can't be understood by Solaris 9

2) You've mistyped the "Physical number of heads" as 27 rather than accepting the default


ATB,

Mark.


Hi Mark,

Thanks a lot. Got it working now. When formatting the label, there are 2 options, SMI and EFI. Once I format it with SMI, it seems to be able to find the disk. 

Great news! FWIW with newer versions of QEMU, including 2.6.0, the framebuffer emulation is good enough to install and run Solaris (including X) without the -nographic/-serial options if you need it. I've also CCd the relevant patch to qemu-stable so it should appear in 2.6.1 also.

Many thanks for the report!


Hi Mark,

Thanks for the update. I would definitely be nice to have other than the black screen. Still got a problem though. I managed to install sparc9 but after i removed the cdrom, it fails to boot. 

qemu-system-sparc -nographic -monitor null -serial mon:telnet:0.0.0.0:3000,server -hda ./Sparc9.disk -m 256 -net nic,macaddr=52:54:0:12:34:56 -net tap,ifname=tap0,script=no,downscript=no 

From an article written by Artyom, i did add 

# cat >> /a/etc/system

set scsi_options=0x58

^d

to solaris 2.6.

However, i think i didnt do this with solaris 8, it works fine.

For the solaris 9, it will allow you to either set it to not reboot but once you reached the end of the installation, it will reboot when you press enter. And the Sparc9.disk cannot be booted :(



telnet 0.0.0.0 3000
Trying 0.0.0.0...
Connected to 0.0.0.0.
Escape character is '^]'.
Configuration device id QEMU version 1 machine id 32
Probing SBus slot 0 offset 0
Probing SBus slot 1 offset 0
Probing SBus slot 2 offset 0
Probing SBus slot 3 offset 0
Probing SBus slot 4 offset 0
Probing SBus slot 5 offset 0
Invalid FCode start byte
CPUs: 1 x FMI,MB86904
UUID: 00000000-0000-0000-0000-000000000000
Welcome to OpenBIOS v1.1 built on Apr 18 2016 08:19
  Type 'help' for detailed information
Trying disk...
Not a bootable ELF image
Not a bootable a.out image
No valid state has been set by load or init-program

0 > 



If you use OpenBIOS then you don't explicitly have to set scsi-options since the value can be overridden via the device tree which is exactly what OpenBIOS does.

Interestingly enough it seems that the default bootloader for Solaris 9 is installed in the slice rather than the root of the disk as per my Solaris 8 installation. Fortunately you can manually boot Solaris 9 from the slice by entering "boot disk:d" at the Forth prompt.

Based upon this it probably makes sense to add "disk:d" to the bootpath used by OpenBIOS - I'll send a patch through to the OpenBIOS mailing list shortly.


Hi Mark,

I have tried boot diisk:d. After this

Not a bootable ELF image
Not a bootable a.out image
No valid state has been set by load or init-program

0 > boot disk:d No valid state has been set by load or init-program
 ok
0 > 


Somehow I am getting invalid boot 

It works here as per my post above, so I think the problem is still with the disk label. With the above ISO image, I don't get asked for the type of label which makes me think you are using a newer version of Solaris for labelling than you are for installation.

Can you re-label the disk using the exact same image used for the installation and see if that makes a difference?

Hmmm I've just tried a second installation of Solaris 9 with a completely blank disk image and now it appears that "boot disk:a" is correct, i.e. boot from slice a. Not sure yet if this is the correct convention for HDs.

Hi Mark,

We are finally in:) 

By the way, how do you figure out which slice its in?

From solaris 8 dvd onwards, i seems to see 2 disk label options: SMI and EFI. Not sure why you didnt see those. 

0 > boot disk:a Not a bootable ELF image
Loading a.out image...
Loaded 7680 bytes
entry point is 0x4000
bootpath: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0:a

Jumping to entry point 00004000 for type 00000005...
switching to new context:
SunOS Release 5.9 Version Generic_118558-34 32-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
configuring IPv4 interfaces: le0.
starting DHCP on primary interface le0
Hostname: unknown
The system is coming up.  Please wait.
checking ufs filesystems
/dev/rdsk/c0t0d0s7: is logging.
starting rpc services: rpcbind done.
syslog service starting.
syslogd: line 24: WARNING: loghost could not be resolved
Jul  3 14:06:40 unknown sendmail[239]: My unqualified host name (unknown) unknown; sleeping for retry
Jul  3 14:06:40 unknown sendmail[240]: My unqualified host name (unknown) unknown; sleeping for retry
volume management starting.
Creating new rsa public/private host key pair
Creating new dsa public/private host key pair
Jul  3 14:06:54 unknown snmpXdmid: Error in Adding Row for Subscription Table Entry
Jul  3 14:06:55 unknown snmpXdmid: Failed to add filter to SP for Event delivery
The system is ready.

unknown console login: root
Password: 
Jul  3 14:07:09 unknown login: ROOT LOGIN /dev/console
Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
# ls
bin         etc         lib         opt         tmp         xfn
cdrom       export      lost+found  platform    usr
dev         home        mnt         proc        var
devices     kernel      net         sbin        vol
# Jul  3 14:07:41 unknown sendmail[240]: unable to qualify my own domain name (unknown) -- using short name
Jul  3 14:07:41 unknown sendmail[240]: [ID 702911 mail.alert] unable to qualify my own domain name (unknown) -- using short name
Jul  3 14:07:46 unknown sendmail[239]: unable to qualify my own domain name (unknown) -- using short name
Jul  3 14:07:46 unknown sendmail[239]: [ID 702911 mail.alert] unable to qualify my own domain name (unknown) -- using short name



Great news! AFAICT it's just convention that the first disk slice is used, and I've also proposed a patch for OpenBIOS to include this in the boot search path in future, hopefully in time for 2.7.