Re: GRUB testers on SPARC needed
Tested on a Sparc Ultra 10 workstation and it boots fine using your
instructions.
Had to use an image from 2016 as the newer ones from september and december 2017 did not work at all(both fail during installation).
Lshw
ultra
description: Computer
product: SUNW,375-0066
width: 64 bits
*-core
description: Motherboard
physical id: 0
clock: 110MHz
*-firmware
product: SUNW,3.31
physical id: 0
logical name: /proc/device-tree
*-memory
description: System memory
physical id: 2
size: 740MiB
*-cpu
physical id: 3
bus info: cpu@0
*-pci:0
description: PCI bridge
product: Simba Advanced PCI Bridge
vendor: Oracle/SUN
physical id: 1
bus info: pci@0000:00:01.0
version: 13
width: 32 bits
clock: 66MHz
capabilities: pci normal_decode bus_master
resources: ioport:0(size=12582912) memory:1ff00000000-1ffbfffffff
*-usb:0
description: USB controller
product: VT82xx/62xx UHCI USB 1.1 Controller
vendor: VIA Technologies, Inc.
physical id: 1
bus info: pci@0000:02:01.0
version: 61
width: 32 bits
clock: 33MHz
capabilities: pm uhci bus_master cap_list
configuration: driver=uhci_hcd latency=22
resources: irq:15 ioport:400(size=32)
*-usbhost
product: UHCI Host Controller
vendor: Linux 4.14.0-3-sparc64 uhci_hcd
physical id: 1
bus info: usb@2
logical name: usb2
version: 4.14
capabilities: usb-1.10
configuration: driver=hub slots=2 speed=12Mbit/s
*-usb:1
description: USB controller
product: VT82xx/62xx UHCI USB 1.1 Controller
vendor: VIA Technologies, Inc.
physical id: 1.1
bus info: pci@0000:02:01.1
version: 61
width: 32 bits
clock: 33MHz
capabilities: pm uhci bus_master cap_list
configuration: driver=uhci_hcd latency=22
resources: irq:16 ioport:420(size=32)
*-usbhost
product: UHCI Host Controller
vendor: Linux 4.14.0-3-sparc64 uhci_hcd
physical id: 1
bus info: usb@3
logical name: usb3
version: 4.14
capabilities: usb-1.10
configuration: driver=hub slots=2 speed=12Mbit/s
*-usb:2
description: USB controller
product: USB 2.0
vendor: VIA Technologies, Inc.
physical id: 1.2
bus info: pci@0000:02:01.2
version: 63
width: 32 bits
clock: 33MHz
capabilities: pm ehci bus_master cap_list
configuration: driver=ehci-pci latency=22
resources: irq:17 memory:1ff00002000-1ff000020ff
*-usbhost
product: EHCI Host Controller
vendor: Linux 4.14.0-3-sparc64 ehci_hcd
physical id: 1
bus info: usb@1
logical name: usb1
version: 4.14
capabilities: usb-2.00
configuration: driver=hub slots=4 speed=480Mbit/s
*-firewire
description: FireWire (IEEE 1394)
product: VT6306/7/8 [Fire II(M)] IEEE 1394 OHCI Controller
vendor: VIA Technologies, Inc.
physical id: 1.3
bus info: pci@0000:02:01.3
version: 46
width: 32 bits
clock: 33MHz
capabilities: pm ohci bus_master cap_list
configuration: driver=firewire_ohci latency=0 maxlatency=32
resources: irq:15 memory:1ff00004000-1ff000047ff
ioport:480(size=128)
*-multimedia UNCLAIMED
description: Multimedia audio controller
product: EMU10k1 [Sound Blaster Live! Series]
vendor: Creative Labs
physical id: 2
bus info: pci@0000:02:02.0
version: 07
width: 32 bits
clock: 33MHz
capabilities: pm cap_list
configuration: latency=0 maxlatency=20 mingnt=2
resources: ioport:800(size=32)
*-input UNCLAIMED
description: Input device controller
product: SB Live! Game Port
vendor: Creative Labs
physical id: 2.1
bus info: pci@0000:02:02.1
version: 07
width: 32 bits
clock: 33MHz
capabilities: pm cap_list
configuration: latency=0
resources: ioport:820(size=8)
*-network:0
description: Ethernet interface
product: DP83815 (MacPhyter) Ethernet Controller
vendor: National Semiconductor Corporation
physical id: 3
bus info: pci@0000:02:03.0
logical name: enp2s3
version: 00
serial: 00:0f:b5:08:03:07
size: 100Mbit/s
capacity: 100Mbit/s
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list rom ethernet physical
tp mii fibre 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes
driver=natsemi driverversion=2.1 duplex=full ip=192.168.1.201 latency=0
link=yes maxlatency=52 mingnt=11 multicast=yes port=twisted pair
speed=100Mbit/s
resources: irq:19 ioport:c00(size=256)
memory:1ff00006000-1ff00006fff memory:1ff00010000-1ff0001ffff
*-network:1 UNCLAIMED
description: Ethernet controller
product: 88w8335 [Libertas] 802.11b/g Wireless
vendor: Marvell Technology Group Ltd.
physical id: 4
bus info: pci@0000:02:04.0
version: 03
width: 32 bits
clock: 66MHz
capabilities: pm cap_list
configuration: latency=0
resources: memory:1ff00020000-1ff0002ffff
memory:1ff00030000-1ff0003ffff
*-pci:1
description: PCI bridge
product: Simba Advanced PCI Bridge
vendor: Oracle/SUN
physical id: 1.1
bus info: pci@0000:00:01.1
version: 13
width: 32 bits
clock: 66MHz
capabilities: pci normal_decode bus_master
resources: ioport:c00000(size=4194304) memory:e0000000-ffffffff
*-bridge UNCLAIMED
description: Bridge
product: EBUS
vendor: Oracle/SUN
physical id: 1
bus info: pci@0000:01:01.0
version: 01
width: 32 bits
clock: 33MHz
capabilities: bridge bus_master
configuration: latency=0 maxlatency=25 mingnt=10
*-network DISABLED
description: Ethernet interface
product: Happy Meal 10/100 Ethernet [hme]
vendor: Oracle/SUN
physical id: 1.1
bus info: pci@0000:01:01.1
logical name: enp1s1f1
version: 01
serial: 08:00:20:b3:44:15
size: 10Mbit/s
capacity: 100Mbit/s
width: 32 bits
clock: 33MHz
capabilities: bus_master ethernet physical tp mii 10bt
10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes
driver=sunhme driverversion=2.02 duplex=half latency=0 link=no
maxlatency=5 mingnt=10 multicast=yes port=twisted pair speed=10Mbit/s
resources: irq:12 memory:e0000000-e000701f
*-display UNCLAIMED
description: VGA compatible controller
product: 3D Rage Pro PCI
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 2
bus info: pci@0000:01:02.0
version: 5c
width: 32 bits
clock: 33MHz
capabilities: vga_controller
configuration: latency=0 mingnt=8
resources: memory:e1000000-e1ffffff memory:e2000000-e2000fff
*-ide
description: IDE interface
product: PCI0646
vendor: Silicon Image, Inc.
physical id: 3
bus info: pci@0000:01:03.0
version: 03
width: 32 bits
clock: 33MHz
capabilities: ide bus_master
configuration: driver=pata_cmd64x latency=64 maxlatency=4
mingnt=2
resources: irq:14 ioport:c00000(size=8)
ioport:c00008(size=4) ioport:c00010(size=8) ioport:c00018(size=4)
ioport:c00020(size=16)
*-scsi:0
physical id: 4
logical name: scsi0
capabilities: emulated
*-disk
description: ATA Disk
product: WDC WD3200JB-00K
vendor: Linux
physical id: 0.0.0
bus info: scsi@0:0.0.0
logical name: /dev/sda
version: 1.0
serial: 2159c81e-532c-49f8-8918-f0cfe914faaf
size: 478MiB
capabilities: extended_attributes large_files ext2 initialized
configuration: ansiversion=5 filesystem=ext2
lastmountpoint=/boot logicalsectorsize=512 modified=2018-02-04 10:50:50
mounted=2018-02-04 10:38:46 sectorsize=512 state=clean
*-scsi:1
physical id: 5
logical name: scsi1
capabilities: emulated
*-cdrom UNCLAIMED
description: SCSI CD-ROM
product: DVDRAM GSA-4081B
vendor: HL-DT-ST
physical id: 0.0.0
bus info: scsi@1:0.0.0
version: A100
capabilities: removable
configuration: ansiversion=5
Lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
sda 8:0 0 298.1G 0 disk
├─sda1 8:1 0 478.5M 0 part /boot
├─sda2 8:2 0 1.4G 0 part [SWAP]
├─sda3 8:3 0 298.1G 0 part
└─sda4 8:4 0 296.2G 0 part /
sr0 11:0 1 1024M 0 rom
Uname -a
Linux ULTRA 4.14.0-3-sparc64 #1 Debian 4.14.13-1 (2018-01-14) sparc64
GNU/Linux
Thanks for the work you put into!
On 2017-12-08 07:24 AM, John Paul Adrian Glaubitz wrote:
> Hi!
>
> We're in the process of migrating Debian for sparc64 from SILO to GRUB
> as GRUB upstream is adding support for modern SPARC machines thanks to
> the work of Eric Snowberg from Oracle.
>
> In order to make sure GRUB works on all machines supported by the sparc64
> port, we need your help to test GRUB on your particular hardware, the older
> your machine, the better.
>
> So, in order to help us, please follow the guide below to install GRUB to
> replace SILO as your boot loader.
>
> NOTE: If your system doesn't boot after installing GRUB, don't panic. Use
> the current Debian sparc64 installation image and boot into rescue
> mode by typing "rescue". Then chroot into your installed system and
> just run "silo -t -f" to restore SILO on your machine.
>
> 1. Install the grub2 package:
>
> root@andi:~# apt install grub2
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following additional packages will be installed:
> grub-common grub-ieee1275 grub-ieee1275-bin grub2-common libfreetype6 libfuse2 libpng16-16 os-prober
> Suggested packages:
> multiboot-doc xorriso desktop-base console-setup fuse
> The following NEW packages will be installed:
> grub-common grub-ieee1275 grub-ieee1275-bin grub2 grub2-common libfreetype6 libfuse2 libpng16-16 os-prober
> 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
> Need to get 4,556 kB of archives.
> After this operation, 23.6 MB of additional disk space will be used.
> Do you want to continue? [Y/n] y
> Get:1 http://ftp.ports.debian.org/debian-ports unstable/main sparc64 libpng16-16 sparc64 1.6.34-1 [271 kB]
> (...)
>
> Creating config file /etc/default/grub with new version
> Setting up grub2 (2.02-2+sparc64.3) ...
> root@andi:~#
>
> 2. Make sure you have version 2.02-2+sparc64.3
>
> root@andi:~# apt-cache show grub2 |grep Version
> Version: 2.02-2+sparc64.3
> root@andi:~#
>
> 3. Find your boot partition:
>
> root@andi:~# mount |grep /boot
> /dev/sda1 on /boot type ext3 (rw,relatime,data=ordered)
> root@andi:~#
>
> If you don't have one but just one root file system, grep for " / " instead
>
> 4. Install grub into your boot partition:
>
> root@andi:~# grub-install --force --skip-fs-probe /dev/sda1
> Installing for sparc64-ieee1275 platform.
> grub-install: warning: Discarding improperly nested partition (hostdisk//dev/sda,sun1,sun2).
> grub-install: warning: Discarding improperly nested partition (hostdisk//dev/sda,sun1,sun4).
> grub-install: warning: Attempting to install GRUB to a disk with multiple partition labels. This is not supported yet..
> grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
> Installation finished. No error reported.
> root@andi:~#
>
> Note: If you are using GPT partition tables instead of Sun partition
> tables, you need to install GRUB into /dev/sda
> (see: https://github.com/esnowberg/grub2-sparc/wiki)
>
> 5. Run update-grub:
>
> root@andi:~# update-grub
> Generating grub configuration file ...
> Found linux image: /boot/vmlinuz-4.14.0-1-sparc64-smp
> Found initrd image: /boot/initrd.img-4.14.0-1-sparc64-smp
> Found linux image: /boot/vmlinuz-4.14.0-trunk-sparc64-smp
> Found initrd image: /boot/initrd.img-4.14.0-trunk-sparc64-smp
> Found linux image: /boot/vmlinuz-4.14.0-rc7-sparc64-smp
> Found initrd image: /boot/initrd.img-4.14.0-rc7-sparc64-smp
> Found linux image: /boot/vmlinuz-4.14.0-rc5-sparc64-smp
> Found initrd image: /boot/initrd.img-4.14.0-rc5-sparc64-smp
> Found linux image: /boot/vmlinuz-4.12.0-rc1-sparc64-smp
> Found initrd image: /boot/initrd.img-4.12.0-rc1-sparc64-smp
> Found linux image: /boot/vmlinuz-4.11.0-trunk-sparc64-smp
> Found initrd image: /boot/initrd.img-4.11.0-trunk-sparc64-smp
> Found linux image: /boot/vmlinuz-4.10.0-trunk-sparc64-smp
> Found initrd image: /boot/initrd.img-4.10.0-trunk-sparc64-smp
> Found Debian GNU/Linux buster/sid on /dev/md0p1
> done
> root@andi:~#
>
> 6. Reboot:
>
> root@andi:~#
>
> 7. Report back to the list and include your hardware and partition setup
>
> Thanks,
> Adrian
>
Reply to: