Ppc64le: Difference between revisions

From Alpine Linux
m (Categorized: Hardware)
m (→‎Installation: Use templates, where appropriate, minor grammar improvements, use doas instead of sudo.)
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
This page is used to describe the ppc64le port.
{{DISPLAYTITLE:ppc64le}}
This page is used to describe the [https://en.wikipedia.org/wiki/Ppc64 ppc64le] port.


== Testing (for developers) ==
= Testing (for developers) =


The hosting sponsor for the ppc64le port operate a miniCloud service which will provide Alpine ppc64le images for testing.
The hosting sponsor for the '''ppc64le''' port operates a miniCloud service, which provides ppc64le images to Alpine for testing.


View their website at http://openpower.ic.unicamp.br/minicloud/ for more info.
View [http://openpower.ic.unicamp.br/minicloud/ their] website for more info.


== Hardware ==
= Hardware =
   
   
You can buy POWER8 hardware from IBM or other vendors, for example the IBM S812LC server is reasonably price competitive to similar x86 servers and fully supported by the ppc64le port.
You can buy [https://en.wikipedia.org/wiki/POWER8 POWER8] or [https://en.wikipedia.org/wiki/POWER9 POWER9] hardware from IBM or from other vendors. For example, the '''Raptor Computing System Blackbird''' workstation is reasonably priced, competitive when compared to similar x86 servers, and is fully supported by the ppc64le port.
 
These are the IBM machines model that would support Alpine Linux:
 
The following are the '''IBM''' machine models that would support Alpine Linux:
* IBM Power System S821LC  [http://www-03.ibm.com/systems/power/hardware/s821lc/index.html]
* IBM Power System S821LC  [http://www-03.ibm.com/systems/power/hardware/s821lc/index.html]{{dead link}}
* IBM Power System S822LC for Big Data [http://www-03.ibm.com/systems/power/hardware/s822lc-big-data/index.html]
* IBM Power System S822LC for Big Data [http://www-03.ibm.com/systems/power/hardware/s822lc-big-data/index.html]{{dead link}}
* IBM Power System S822LC for Commercial Computing [http://www-03.ibm.com/systems/power/hardware/s822lc-commercial/index.html]
* IBM Power System S822LC for Commercial Computing [http://www-03.ibm.com/systems/power/hardware/s822lc-commercial/index.html]{{dead link}}
* IBM Power System S822LC for High Performance Computing [IBM Power System S822LC for High Performance Computing]
* IBM Power System S822LC for High Performance Computing [IBM Power System S822LC for High Performance Computing]
* IBM Power System S812L and S822L [http://www-03.ibm.com/systems/power/hardware/s812l-s822l/index.html]
* IBM Power System S812L and S822L [http://www-03.ibm.com/systems/power/hardware/s812l-s822l/index.html]{{dead link}}
* IBM Power System S824L [http://www-03.ibm.com/systems/power/hardware/s824l/index.html]
* IBM Power System S824L [http://www-03.ibm.com/systems/power/hardware/s824l/index.html]{{dead link}}
* IBM Power System S812 [http://www-03.ibm.com/systems/power/hardware/s812/index.html]
* IBM Power System S812 [http://www-03.ibm.com/systems/power/hardware/s812/index.html]{{dead link}}
* IBM Power System S822 [http://www-03.ibm.com/systems/power/hardware/s822/index.html]
* IBM Power System S822 [http://www-03.ibm.com/systems/power/hardware/s822/index.html]{{dead link}}
* IBM Power System S814 [http://www-03.ibm.com/systems/power/hardware/s814/index.html]
* IBM Power System S814 [http://www-03.ibm.com/systems/power/hardware/s814/index.html]{{dead link}}
* IBM Power System S824 [http://www-03.ibm.com/systems/power/hardware/s824/index.html]
* IBM Power System S824 [http://www-03.ibm.com/systems/power/hardware/s824/index.html]{{dead link}}
* IBM Power Enterprise Systems for the cloud [http://www-03.ibm.com/systems/power/hardware/enterprise-cloud/index.html]
* IBM Power Enterprise Systems for the cloud [http://www-03.ibm.com/systems/power/hardware/enterprise-cloud/index.html]{{dead link}}
* IBM Power System E850C [http://www-03.ibm.com/systems/power/hardware/e850c/index.html]
* IBM Power System E850C [http://www-03.ibm.com/systems/power/hardware/e850c/index.html]{{dead link}}
* IBM Power System E850 [http://www-03.ibm.com/systems/power/hardware/e850/index.html]
* IBM Power System E850 [http://www-03.ibm.com/systems/power/hardware/e850/index.html]{{dead link}}
* IBM Power System E870 [http://www-03.ibm.com/systems/power/hardware/e870/index.html]
* IBM Power System E870 [http://www-03.ibm.com/systems/power/hardware/e870/index.html]{{dead link}}
* IBM Power System E880 [http://www-03.ibm.com/systems/power/hardware/e880/index.html]
* IBM Power System E880 [http://www-03.ibm.com/systems/power/hardware/e880/index.html]{{dead link}}


Tyan also has machines:


'''Raptor Computing System''' also has machines:
* Talos II [https://www.raptorcs.com/content/base/products.html]
* Blackbird [https://www.raptorcs.com/content/base/products.html]
'''Tyan''' also has machines:
* Tyan TN76-BP016  
* Tyan TN76-BP016  
* Tyan GT75-BP012
* Tyan GT75-BP012
Line 36: Line 42:




Open Power machines:
'''Open Power''' machines:
 
* Rackspace Barreleye [https://www.nextplatform.com/2015/10/19/rackspace-forges-first-barreleye-openpower-servers/]
* Rackspace Barreleye [https://www.nextplatform.com/2015/10/19/rackspace-forges-first-barreleye-openpower-servers/]
* Google Zaius [https://cloudplatform.googleblog.com/2016/10/introducing-Zaius-Google-and-Rackspaces-open-server-running-IBM-POWER9.html]
* Google Zaius [https://cloudplatform.googleblog.com/2016/10/introducing-Zaius-Google-and-Rackspaces-open-server-running-IBM-POWER9.html]


== Installation ==
= Installation =


The Alpine 3.6.2 ppc64le ISO is available at: http://rsync.alpinelinux.org/alpine/v3.6/releases/ppc64le/alpine-vanilla-3.6.2-ppc64le.iso <br>
The Alpine {{AlpineLatest}} ppc64le ISO is available [https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/ppc64le/alpine-standard-{{AlpineLatest}}-ppc64le.iso here].
The user login is "root" with no password.
<br><br>


*''' Booting Alpine from CDROM using qemu'''
The user login is '''root''' with no password.


To start qemu using the Alpine ISO as cdrom, you can use a command similar to:<br>
== Booting Alpine from CD-ROM using qemu ==
$ sudo qemu-system-ppc64 -device spapr-vlan,netdev=net0,mac=4C:45:42:45:79:F7 -netdev bridge,br=br0,id=net0 -enable-kvm -m 8G -smp 16,sockets=16,cores=1,threads=1 -nodefaults -nographic -serial stdio -cdrom alpine-vanilla-3.6.2.ppc64le.iso


<br>
To start qemu using the Alpine ISO as CD-ROM, you can use a command similar to:
* '''Installing Alpine to hard-disk using qemu'''
{{cmd|$ doas qemu-system-ppc64 -device spapr-vlan,netdev{{=}}net0,mac{{=}}4C:45:42:45:79:F7 -netdev bridge,br{{=}}br0,id{{=}}net0 -m 8G -smp 16,sockets{{=}}16,cores{{=}}1,threads{{=}}1 -nodefaults -nographic -serial stdio -cdrom alpine-standard-{{AlpineLatest}}-ppc64le.iso}}


Create a disk to install Alpine on it <br>
If running on a ppc64le host, you can append {{ic|-enable-kvm}} to the above command.
$ qemu-img create alpine_disk.img 16G
<br><br>


Start qemu attaching the created disk and using Alpine ISO as cdrom. An example of a qemu command <br>
== Installing Alpine to hard-disk using qemu ==
$ sudo qemu-system-ppc64 -hda alpine_disk.img -device spapr-vlan,netdev=net0,mac=4C:45:42:45:79:F7 -netdev bridge,br=br0,id=net0 -enable-kvm -m 8G -smp 16,sockets=16,cores=1,threads=1 -nodefaults -nographic -serial stdio -cdrom alpine-vanilla-3.6.2-ppc64le.iso
<br><br>


Run the setup-alpine script <br>
Create a disk to install Alpine on it:
$ setup-alpine
{{cmd|$ qemu-img create alpine_disk.img 16G}}
<br><br>


Run "setup-alpine" command and select the disk (in this example 'sda') when the following configuration appears: <br>
Start qemu attaching the created disk and using Alpine ISO as CD-ROM. Here is an example of the qemu command:
Available disks are: <br>
{{cmd|$ doas qemu-system-ppc64 -hda alpine_disk.img -device spapr-vlan,netdev{{=}}net0,mac{{=}}4C:45:42:45:79:F7 -netdev bridge,br{{=}}br0,id{{=}}net0 -enable-kvm -m 8G -smp 16,sockets{{=}}16,cores{{=}}1,threads{{=}}1 -nodefaults -nographic -serial stdio -cdrom alpine-standard-{{AlpineLatest}}-ppc64le.iso}}
sda  (17.2 GB QEMU    QEMU HARDDISK) <br>
 
Run the {{ic|setup-alpine}} script:
{{cmd|setup-alpine}}
 
After running the {{ic|setup-alpine}} script, select the disk (in this example, '''sda''') when the following configuration appears:
<pre>
Available disks are:
sda  (17.2 GB QEMU    QEMU HARDDISK)
Which disk(s) would you like to use? (or '?' for help or 'none') [none] : sda
Which disk(s) would you like to use? (or '?' for help or 'none') [none] : sda
<br><br>
</pre>
 
When asked how you would like to use the disk, select '''sys''', and select '''yes''' when asked whether to erase the disk.
 
{{note|Internet connection is required to complete the setup. {{issue|11384|The grub-ieee1275 and sfdisk are not included in ISO}.}}}}
The installation will format the disk properly.  After this finishes, type {{ic|reboot}}.
 
== Booting Alpine from CD-ROM using qemu and saving modifications between reboots ==


When asked about how you would like to use the disk select 'sys' and select 'yes' when asked about erasing the disk.<br>
When using Alpine in this mode, you need to use Alpine Local Backup ({{ic|lbu}}) to save your modifications between reboots. This requires some writable medium, usually removable.
The installation will format the disk properly and after it finishes type 'reboot'.


<br><br>
Create a disk to save Alpine modifications:
* '''Booting Alpine from CDROM using qemu and saving modifications between reboots'''
{{cmd|$ qemu-img create alpine_disk.img 8G}}


When using Alpine in this mode, you need to use Alpine Local Backup (lbu) to save your modifications between reboots and that requires some writable medium, usually removable. <br><br>
Start qemu attaching the created disk and using Alpine ISO as CD-ROM. Here is the example of the qemu command:
{{cmd|$ doas qemu-system-ppc64 -hda alpine_disk.img -device spapr-vlan,netdev{{=}}net0,mac{{=}}4C:45:42:45:79:F7 -netdev bridge,br{{=}}br0,id{{=}}net0 -enable-kvm -m 8G -smp 16,sockets{{=}}16,cores{{=}}1,threads{{=}}1 -nodefaults -nographic -serial stdio -cdrom alpine-standard-{{AlpineLatest}}-ppc64le.iso}}


Create a disk to save Alpine modifications <br>
Format the attached disk and add it to the {{path|/etc/fstab}} file:
$ qemu-img create alpine_disk.img 8G
{{cmd|$ apk add {{pkg|e2fsprogs|arch=ppc64le}} 
<br><br>
$ mkfs.ext4 /dev/sda
$ echo "/dev/sda        /media/sda      ext4    noauto,rw 0 0" >> /etc/fstab
$ mkdir /media/sda
$ mkdir /media/sda/cache}}


Start qemu attaching the created disk and using Alpine ISO as cdrom. An example of a qemu command <br>
Set <code>lbu</code> to write to the attached disk, setting <code>LBU_MEDIA=sda</code> in the {{path|/etc/lbu/lbu.conf}} file.
$ sudo qemu-system-ppc64 -hda alpine_disk.img -device spapr-vlan,netdev=net0,mac=4C:45:42:45:79:F7 -netdev bridge,br=br0,id=net0 -enable-kvm -m 8G -smp 16,sockets=16,cores=1,threads=1 -nodefaults -nographic -serial stdio -cdrom alpine-vanilla-3.6.2-ppc64le.iso 
<br><br>


Format the attached disk and add it to /etc/fstab file: <br>
Run the {{ic|setup-alpine}} command, and select the following configurations when asked:
$ apk add e2fsprogs  <br>
* Enter where to store configs: <code>('floppy', 'sda', 'usb' or 'none') [none]: sda </code>
$ mkfs.ext4 /dev/sda  <br>
* Enter apk cache directory <code>(or '?' or 'none') [/media/sda/cache]: /media/sda/cache</code>
$ echo "/dev/sda        /media/sda     ext4    noauto,rw 0 0" >> /etc/fstab  <br>
$ mkdir /media/sda  <br>
$ mkdir /media/sda/cache <br>
<br>


Set lbu to write in the attached disk, setting LBU_MEDIA=sda in /etc/lbu/lbu.conf file
The last step is to commit the changes:
<br><br>
{{cmd|$ lbu commit}}


Run "setup-alpine" command and select the following configurations when asked: <br>
After performing these configurations, you can reboot Alpine and the modifications will be saved. The next time a change happens, you just need to run the {{ic|lbu commit}} command, as the configurations are already done.
- Enter where to store configs ('floppy', 'sda', 'usb' or 'none') [none]: sda <br>
- Enter apk cache directory (or '?' or 'none') [/media/sda/cache]: /media/sda/cache <br>
<br>


Last step is to commit the changes <br>
It is important to know that, by default, {{ic|lbu}} only cares about modifications in {{path|/etc}} and its subdirectories, with the exception of {{path|/etc/init.d}}!
$ lbu commit
<br><br>


After doing this configurations, you can reboot your alpine and modifications will be saved. The next time a change happens, you just need to run "lbu commit" command, as the configurations are already done.<br>
= See also =
It is import to know that by default lbu only cares about modifications in /etc and its subfolders, with the exception of /etc/init.d!. For more information about how to use lbu and include new folder to backup: https://wiki.alpinelinux.org/wiki/Alpine_local_backup
* [[Alpine_local_backup|Alpine local backup]] - For more information about how to use <code>lbu</code> and how to include a new folder to backup.


== Reference ==  
= Reference =
  * ABI : https://openpowerfoundation.org/?resource_lib=64-bit-elf-v2-abi-specification-power-architecture
  * ABI - https://openpowerfoundation.org/?resource_lib=64-bit-elf-v2-abi-specification-power-architecture


[[Category:Hardware]]
[[Category:Hardware]]

Latest revision as of 13:10, 10 January 2024

This page is used to describe the ppc64le port.

Testing (for developers)

The hosting sponsor for the ppc64le port operates a miniCloud service, which provides ppc64le images to Alpine for testing.

View their website for more info.

Hardware

You can buy POWER8 or POWER9 hardware from IBM or from other vendors. For example, the Raptor Computing System Blackbird workstation is reasonably priced, competitive when compared to similar x86 servers, and is fully supported by the ppc64le port.


The following are the IBM machine models that would support Alpine Linux:


Raptor Computing System also has machines:


Tyan also has machines:

  • Tyan TN76-BP016
  • Tyan GT75-BP012
  • Tyan TN71-BP012


Open Power machines:

  • Rackspace Barreleye [17]
  • Google Zaius [18]

Installation

The Alpine 3.19.1 ppc64le ISO is available here.

The user login is root with no password.

Booting Alpine from CD-ROM using qemu

To start qemu using the Alpine ISO as CD-ROM, you can use a command similar to:

$ doas qemu-system-ppc64 -device spapr-vlan,netdev=net0,mac=4C:45:42:45:79:F7 -netdev bridge,br=br0,id=net0 -m 8G -smp 16,sockets=16,cores=1,threads=1 -nodefaults -nographic -serial stdio -cdrom alpine-standard-3.19.1-ppc64le.iso

If running on a ppc64le host, you can append -enable-kvm to the above command.

Installing Alpine to hard-disk using qemu

Create a disk to install Alpine on it:

$ qemu-img create alpine_disk.img 16G

Start qemu attaching the created disk and using Alpine ISO as CD-ROM. Here is an example of the qemu command:

$ doas qemu-system-ppc64 -hda alpine_disk.img -device spapr-vlan,netdev=net0,mac=4C:45:42:45:79:F7 -netdev bridge,br=br0,id=net0 -enable-kvm -m 8G -smp 16,sockets=16,cores=1,threads=1 -nodefaults -nographic -serial stdio -cdrom alpine-standard-3.19.1-ppc64le.iso

Run the setup-alpine script:

setup-alpine

After running the setup-alpine script, select the disk (in this example, sda) when the following configuration appears:

Available disks are:
sda   (17.2 GB QEMU     QEMU HARDDISK)
Which disk(s) would you like to use? (or '?' for help or 'none') [none] : sda

When asked how you would like to use the disk, select sys, and select yes when asked whether to erase the disk.

Note: Internet connection is required to complete the setup. #11384. The grub-ieee1275 and sfdisk are not included in ISO}.

The installation will format the disk properly. After this finishes, type reboot.

Booting Alpine from CD-ROM using qemu and saving modifications between reboots

When using Alpine in this mode, you need to use Alpine Local Backup (lbu) to save your modifications between reboots. This requires some writable medium, usually removable.

Create a disk to save Alpine modifications:

$ qemu-img create alpine_disk.img 8G

Start qemu attaching the created disk and using Alpine ISO as CD-ROM. Here is the example of the qemu command:

$ doas qemu-system-ppc64 -hda alpine_disk.img -device spapr-vlan,netdev=net0,mac=4C:45:42:45:79:F7 -netdev bridge,br=br0,id=net0 -enable-kvm -m 8G -smp 16,sockets=16,cores=1,threads=1 -nodefaults -nographic -serial stdio -cdrom alpine-standard-3.19.1-ppc64le.iso

Format the attached disk and add it to the /etc/fstab file:

$ apk add e2fsprogs $ mkfs.ext4 /dev/sda $ echo "/dev/sda /media/sda ext4 noauto,rw 0 0" >> /etc/fstab $ mkdir /media/sda $ mkdir /media/sda/cache

Set lbu to write to the attached disk, setting LBU_MEDIA=sda in the /etc/lbu/lbu.conf file.

Run the setup-alpine command, and select the following configurations when asked:

  • Enter where to store configs: ('floppy', 'sda', 'usb' or 'none') [none]: sda
  • Enter apk cache directory (or '?' or 'none') [/media/sda/cache]: /media/sda/cache

The last step is to commit the changes:

$ lbu commit

After performing these configurations, you can reboot Alpine and the modifications will be saved. The next time a change happens, you just need to run the lbu commit command, as the configurations are already done.

It is important to know that, by default, lbu only cares about modifications in /etc and its subdirectories, with the exception of /etc/init.d!

See also

  • Alpine local backup - For more information about how to use lbu and how to include a new folder to backup.

Reference

* ABI - https://openpowerfoundation.org/?resource_lib=64-bit-elf-v2-abi-specification-power-architecture