Ppc64le: Difference between revisions

From Alpine Linux
No edit summary
m (Added links; style, expression changes)
(30 intermediate revisions by 4 users not shown)
Line 1: Line 1:
This page is used to describe the ppc64le port.
This page is used to describe the [https://en.wikipedia.org/wiki/Ppc64 ppc64le] port.


Missing packages:
= Testing (for developers) =


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


aiccu
View [http://openpower.ic.unicamp.br/minicloud/ their] website for more info.
apg
asterisk
cmocka
collectd
compiler-rt
dtc
exiv2
freeradius
freeswitch
garcon
gd
gdb
gnu-efi
libgsasl
libquvi-scripts
linux-vanilla
lua-xml
luajit
nagios-plugins
ncftp(*)
opensmtpd
perl-carp-clan
php5
pmacct
py-curl
py-imaging
qemu
sdl2
ser2net
smokeping(*)
strace
valgrind
weechat
x265
xf86-video-rendition


= Hardware =
You can buy [https://en.wikipedia.org/wiki/POWER8 POWER8] hardware from IBM or from other vendors. For example, the '''IBM S812LC''' server is reasonably priced, competitive when compared to similar x86 servers, and is fully supported by the ppc64le port.


'''Testing''':


afl
The following are the '''IBM''' machine models that would support Alpine Linux:
aqbanking
* IBM Power System S821LC  [http://www-03.ibm.com/systems/power/hardware/s821lc/index.html]
audit
* IBM Power System S822LC for Big Data [http://www-03.ibm.com/systems/power/hardware/s822lc-big-data/index.html]
captagent
* IBM Power System S822LC for Commercial Computing [http://www-03.ibm.com/systems/power/hardware/s822lc-commercial/index.html]
corkscrew
* IBM Power System S822LC for High Performance Computing [IBM Power System S822LC for High Performance Computing]
dante
* IBM Power System S812L and S822L [http://www-03.ibm.com/systems/power/hardware/s812l-s822l/index.html]
dash
* IBM Power System S824L [http://www-03.ibm.com/systems/power/hardware/s824l/index.html]
drawterm
* IBM Power System S812 [http://www-03.ibm.com/systems/power/hardware/s812/index.html]
dspam
* IBM Power System S822 [http://www-03.ibm.com/systems/power/hardware/s822/index.html]
etckeeper
* IBM Power System S814 [http://www-03.ibm.com/systems/power/hardware/s814/index.html]
exim
* IBM Power System S824 [http://www-03.ibm.com/systems/power/hardware/s824/index.html]
grub
* IBM Power Enterprise Systems for the cloud [http://www-03.ibm.com/systems/power/hardware/enterprise-cloud/index.html]
hitch
* IBM Power System E850C [http://www-03.ibm.com/systems/power/hardware/e850c/index.html]
jpegoptim
* IBM Power System E850 [http://www-03.ibm.com/systems/power/hardware/e850/index.html]
libcypher-parser
* IBM Power System E870 [http://www-03.ibm.com/systems/power/hardware/e870/index.html]
libgnomecanvas
* IBM Power System E880 [http://www-03.ibm.com/systems/power/hardware/e880/index.html]
libmhash
lldb
lxappearance-obconf
mlocate
mxml
ndctl
opensips
ossec-hids
perl-autobox
perl-www-curl
py-flake8-class
py-sphinxcontrib-programoutput
qperf
rapidjson
silc-client
slrn
thermald
timew
w_scan
wmi-client
xbps




'''Community''':
'''Tyan''' also has machines:
* Tyan TN76-BP016
* Tyan GT75-BP012
* Tyan TN71-BP012


cfengine(*)
 
chicken
'''Open Power''' machines:
geany-plugins(*)
* Rackspace Barreleye [https://www.nextplatform.com/2015/10/19/rackspace-forges-first-barreleye-openpower-servers/]
gns3-server
* Google Zaius [https://cloudplatform.googleblog.com/2016/10/introducing-Zaius-Google-and-Rackspaces-open-server-running-IBM-POWER9.html]
go-bootstrap
 
irssi-xmpp
= Installation =
libevhtp
 
libtermkey
The Alpine 3.7.0 ppc64le ISO is available [http://rsync.alpinelinux.org/alpine/v3.7/releases/ppc64le/alpine-vanilla-3.7.0-ppc64le.iso here].
makepasswd(*)
 
monitoring-plugins
The user login is '''root''' with no password.
mumudvb
 
nodejs-current
== Booting Alpine from CDROM using qemu ==
obnam
 
ocaml
To start qemu using the Alpine ISO as cdrom, you can use a command similar to:
openblas
$ 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.7.0.ppc64le.iso
openjdk7
 
openlibm
== Installing Alpine to hard-disk using qemu ==
perl-data-denter
 
perl-log-dispatch-config
Create a disk to install Alpine on it:
perl-term-progressbar
$ qemu-img create alpine_disk.img 16G
psmisc
 
py-greenlet
Start qemu attaching the created disk and using Alpine ISO as cdrom. Here is an example of the qemu command:
py-pygit2
$ 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.7.0-ppc64le.iso
py-sphinx-autobuild
 
raptor2
Run the <code>setup-alpine</code> script:
shadow
$ setup-alpine
vigra
 
xbindkeys
After running the <code>setup-alpine</code> script, select the disk (in this example, '''sda''') when the following configuration appears:
yersinia
<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
</pre>
 
When asked how you would like to use the disk, select '''sys''', and select '''yes''' when asked whether to erase the disk.
 
The installation will format the disk properly.  After this finishes, type <code>reboot</code>.
 
== Booting Alpine from CDROM using qemu and saving modifications between reboots ==
 
When using Alpine in this mode, you need to use Alpine Local Backup (<code>lbu</code>) 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 cdrom. Here is the example of the qemu command:
$ 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.7.0-ppc64le.iso 
 
Format the attached disk and add it to the {{path|/etc/fstab}} file:
<pre>
$ apk add e2fsprogs 
$ mkfs.ext4 /dev/sda  <br>
$ echo "/dev/sda        /media/sda      ext4    noauto,rw 0 0" >> /etc/fstab  <br>
$ mkdir /media/sda  <br>
$ mkdir /media/sda/cache <br>
</pre>
 
Set <code>lbu</code> to write to the attached disk, setting <code>LBU_MEDIA=sda</code> in the {{path|/etc/lbu/lbu.conf}} file.
 
Run the <code>setup-alpine</code> command, and select the following configurations when asked:
* Enter where to store configs: <code>('floppy', 'sda', 'usb' or 'none') [none]: sda </code>
* Enter apk cache directory <code>(or '?' or 'none') [/media/sda/cache]: /media/sda/cache</code>
 
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 <code>lbu commit</code> command, as the configurations are already done.
 
It is important to know that, by default, <code>lbu</code> only cares about modifications in {{path|/etc}} and its subfolders, with the exception of {{path|/etc/init.d}}!
 
= See also =
* [[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 =
* ABI - https://openpowerfoundation.org/?resource_lib=64-bit-elf-v2-abi-specification-power-architecture
 
[[Category:Hardware]]

Revision as of 05:58, 7 December 2017

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 hardware from IBM or from other vendors. For example, the IBM S812LC server 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:

  • IBM Power System S821LC [1]
  • IBM Power System S822LC for Big Data [2]
  • IBM Power System S822LC for Commercial Computing [3]
  • IBM Power System S822LC for High Performance Computing [IBM Power System S822LC for High Performance Computing]
  • IBM Power System S812L and S822L [4]
  • IBM Power System S824L [5]
  • IBM Power System S812 [6]
  • IBM Power System S822 [7]
  • IBM Power System S814 [8]
  • IBM Power System S824 [9]
  • IBM Power Enterprise Systems for the cloud [10]
  • IBM Power System E850C [11]
  • IBM Power System E850 [12]
  • IBM Power System E870 [13]
  • IBM Power System E880 [14]


Tyan also has machines:

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


Open Power machines:

  • Rackspace Barreleye [15]
  • Google Zaius [16]

Installation

The Alpine 3.7.0 ppc64le ISO is available here.

The user login is root with no password.

Booting Alpine from CDROM using qemu

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

$ 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.7.0.ppc64le.iso 

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 cdrom. Here is an example of the qemu command:

$ 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.7.0-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.

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

Booting Alpine from CDROM 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 cdrom. Here is the example of the qemu command:

$ 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.7.0-ppc64le.iso  

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

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

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 subfolders, 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