Leno,
It's a pleasure! While they're aren't official (ppc isn't currently in the appc/rkt specs) I've already built ACIs just waiting on someone to need them.
--redbeard
coreos-build@gentooĀ /mnt/host/source/src/build/images/ppc64le-usr/developer-1032.0.0+2016-07-18-0550-a1 $ ls
configrootĀ coreos_developer_image.binĀ coreos_developer_qemu.READMEĀ coreos_developer_qemu.shĀ coreos_developer_qemu_image.imgĀ developer_dataĀ rootfs
1) Disk PartitionĀ Ā Ā Ā device Ā Ā Ā Ā Ā Ā size Ā Ā Ā Ā Ā Ā Ā Id TypeĀ Ā Ā /dev/vda1 Ā Ā Ā 8M Ā Ā Ā Ā Ā Ā Ā PPC PReP BootĀ Ā Ā /dev/vda2 Ā Ā Ā 10G Ā Ā Ā Ā Ā Ā LinuxĀ Ā Ā /dev/vda3 Ā Ā Ā 2G Ā Ā Ā Ā Ā Ā Ā Linux Swap / SolarisĀ 2) using genkernel-next build kernel and initrdĀ Ā #genkernel --allĀ 3) installing bootloaderĀ Ā #grub2-install /dev/vda1Ā 4) generating grub.cfgĀ Ā #grub2-mkconfig /boot/grub/grub.cfggrub2 platform on ppc64le is powerpc-ieee1275
Brandon, it was a nice talk, thanks for the time!
Hello team, if necessary, we could later help to apply resource on SuperVessel (which is a Power/OpenPOWER cloud) for test..
http://www-03.ibm.com/press/us/en/pressrelease/47082.wss
Regards,
Liang ZHUANG (åŗäŗ®, Leon), PMP, CSM
Manager, Linux Dev, LTC/IBM System, CSTL/SH
Ext. 86-21-609-28548Brandon Philips ---06/03/2016 11:46:28---Hello Everyone- I wanted to introduce Leno and team who are working on a ppc64le port of
From: Brandon Philips <brandon...@coreos.com>
To: coreos-dev <coreo...@googlegroups.com>, Leno Hou <len...@gmail.com>, Qing Yuan QQ Hou/China/IBM@IBMCN, Liang NS Zhuang/China/IBM@IBMCN, Qu KK Jiang/China/IBM@IBMCN
Date: 06/03/2016 11:46
Subject: ppc64le port of CoreOS
Hi all,ĀI concluded the status forĀ ppc64le port of CoreOS yesterday.Ā Questions is with colour in red.Ā@Michael, Could you help me the parts thatĀ with colour in red ? ThanksĀĀ 1. make CoreOS working on ppc64le kvm Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā WIP
Ā Ā Ā Ā a) modified cros_sdk working on ppc64le platform Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā DONE
Ā Ā Ā Ā Ā Ā As we might known, the SDK must be run on an x86-64 Linux machine.
Ā Ā Ā Ā Ā Ā For arm64, this cros_sdk cross build packages for arm64 platform.
Ā Ā Ā Ā Ā Ā For amd64, this cros_sdk local build packages for amd64 platform.
Ā
Ā Ā Ā Ā Ā Ā This modified cros_sdk add support for ppc64le platform and lately Iāll
Ā Ā Ā Ā Ā Ā push these patches for you to review.
Ā
Ā Ā Ā Ā a) compiled CoreOS and Gentoo packages Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā DONE
Ā Ā Ā Ā Ā Ā Most packages were written by C/C++/golang languages and these languages
Ā Ā Ā Ā Ā Ā fully supports ppc64le platform. so all packages were built successfully.
Ā Ā Ā Ā Ā
Ā Ā Ā Ā b) making CoreOS booting from KVM Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā ONGOING
Ā Ā Ā Ā Ā Ā This divides threeĀ parts:
Ā Ā Ā Ā Ā Ā a) prepare disk layout for ppc64le platform Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā DONE
Ā Ā Ā Ā Ā Ā Ā Ā
Ā Ā Ā Ā Ā Ā Ā Note: please don't setĀ EFI System partition attributes to LegacyBIOS Bootable.Ā Ā Ā Ā ĀĀ Ā Ā Ā Ā b) installing default grub2Ā bootloader to PowerPC PReP boot partitionĀ Ā Ā ĀĀ Ā Ā Ā Ā Ā ĀĀ Ā Ā Ā Ā Ā #sudo grub-install \
Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā --no-nvram --no-bootsect \
Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā --boot-directory="${ESP_DIR}/boot" "${LOOP_DEV}p2"
ĀĀ Ā Ā Ā Ā Ā #sudo cp "${BUILD_LIBRARY_DIR}/grub.cfg" \
Ā Ā Ā Ā Ā Ā Ā Ā "${ESP_DIR}/boot/grub/grub.cfg"
ĀĀ Ā Ā Ā Ā c) Ā booting from vmlinuz and initrdĀ Ā Ā Ā Ā Ā grub2.cfg passĀ cmdline args to kernel initrd. ThenĀ sysroot.mount and sysroot-usr.mountĀ Ā Ā Ā Ā Ā Ā detected this cmdline args and mount the disk with LABEL=root to "/sysroot" and disk label withĀĀ Ā Ā Ā Ā Ā LABEL=USR-A to "/sysroot/usr". Lastly switch-root to /sysroot as CoreOS environment.Ā Ā Ā Ā Ā ĀĀ Ā Ā Ā Ā Ā See below.Ā Does any problem withĀ sysroot-usr.mount or grub2.cfg cmdline args?Ā Ā Ā Ā Ā ĀĀ Ā Ā Ā Ā Ā Ā grub.cfg:Ā Ā Ā Ā Ā Ā Āmenuentry "CoreOS USR-A" --id=coreos-a {
Ā Ā linux$suf /coreos/vmlinuz-a @@MOUNTUSR@@=PARTLABEL=USR-A $linux_cmdline
Ā Ā initrd /coreos/initramfs-4.4.6-gentoo.img
}
Ā Ā Ā Ā ĀĀ Ā Ā Ā Ā boot log:Ā[Ā OKĀ ] Found device /dev/disk/by-label/ROOT.
[Ā OKĀ ] Started dracut initqueue hook.
[Ā OKĀ ] Reached target Remote File Systems (Pre).
[Ā OKĀ ] Reached target Remote File Systems.
Ā Ā Ā Ā Ā Starting File System Check on /dev/disk/by-label/ROOT...
[Ā OKĀ ] Started File System Check on /dev/disk/by-label/ROOT.
Ā Ā Ā Ā Ā Starting File System Check on /dev/disk/by-label/ROOT...
Ā Ā Ā Ā Ā Mounting /sysroot...
[Ā OKĀ ] Started File System Check on /dev/disk/by-label/ROOT.
[Ā Ā 0.690207] EXT4-fs (vda9): mounted filesystem with ordered data mode. Opts: (null)
[Ā OKĀ ] Mounted /sysroot.
[Ā OKĀ ] Reached target Initrd Root File System.
Ā Ā Ā Ā Ā Starting Reload Configuration from the Real Root...
Ā Ā Ā Ā Ā Mounting /sysroot/usr...
[Ā OKĀ ] Started Reload Configuration from the Real Root.
[FAILED] Failed to mount /sysroot/usr.
See 'systemctl status sysroot-usr.mount' for details.
[DEPEND] Dependency failed for Initrd File Systems.
[Ā OKĀ ] Stopped target Basic System.
[Ā OKĀ ] Stopped target System Initialization.
Ā Ā Ā Ā Ā Starting Setup Virtual Console...
Ā Ā Ā Ā Ā Starting Cleaning Up and Shutting Down Daemons...
[Ā OKĀ ] Started Setup Virtual Console.
Ā Ā Ā Ā Ā Starting Emergency Shell...
[FAILED] Failed to start Cleaning Up and Shutting Down Daemons.
See 'systemctl status initrd-cleanup.service' for details.
Ā
Generating "/run/initramfs/rdsosreport.txt"
Ā
Ā
Entering emergency mode. Exit the shell to continue.
Type "journalctl" to view system logs.
You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot
after mounting them and attach it to a bug report.
Ā
Ā
:/#Ā
Ā Ā Ā Ā Ā
:/# systemctl status sysroot-usr.mount
ā sysroot-usr.mount - /sysroot/usr
Ā Ā Loaded: loaded (/proc/cmdline; generated; vendor preset: enabled)
Ā Ā Active: failed (Result: exit-code) since Wed 2016-09-07 05:58:42 UTC; 27min a
Ā Ā Where: /sysroot/usr
Ā Ā Ā What: /dev/disk/by-label/ROOT
Ā Ā Ā Docs: man:fstab(5)
Ā Ā Ā Ā Ā Ā man:systemd-fstab-generator(8)
Sep 07 05:58:42 localhost systemd[1]: Mounting /sysroot/usr...
Sep 07 05:58:42 localhost mount[263]: mount: /dev/vda9 is already mounted or /sy
Sep 07 05:58:42 localhost mount[263]:Ā Ā Ā Ā /dev/vda9 is already mounted on /sy
Sep 07 05:58:42 localhost systemd[1]: sysroot-usr.mount: Mount process exited, c
Sep 07 05:58:42 localhost systemd[1]: Failed to mount /sysroot/usr.
Sep 07 05:58:42 localhost systemd[1]: sysroot-usr.mount: Unit entered failed sta
Warning: sysroot-usr.mount changed on disk. Run 'systemctl daemon-reload' to rel
lines 1-15/15 (END)
ĀBest Regards,
Leno Hou
This is localhost (Linux ppc64le 4.5.2-coreos) 16:18:39
SSH host key: SHA256:ofvwp1DXD6w9KF+CQbM246QR9zVS71wf4oZmyuBbpkk (DSA)
SSH host key: SHA256:oGPzkR/jXLvUzPufWMx/suYGlYgPSEBr46gkdsvrhtc (ECDSA)
SSH host key: SHA256:Oc56kbJjAUXIA0+R+qT07MeY3sWiejYdLgCPSWJAR1E (ED25519)
SSH host key: SHA256:sK80vQ0emdXP/0czIPrQgGpUqX1OJQgtiQ7S3r5Cmfo (RSA)
eth0: Ā
localhost login: core
Password:Ā
Last login: Wed SepĀ 7 16:17:00Ā 2016 on hvc0
CoreOS developer (1032.0.0+2016-09-07-1456)
-bash: wc: command not found
Failed Units:Ā
Ā initrd-setup-root.service
Ā systemd-tmpfiles-setup.service
core@localhost ~ $ cat /etc/os-releaseĀ
NAME=CoreOS
ID=coreos
VERSION=1032.0.0+2016-09-07-1456
VERSION_ID=1032.0.0
BUILD_ID=2016-09-07-1456
PRETTY_NAME="CoreOS 1032.0.0+2016-09-07-1456 (MoreOS)"
ANSI_COLOR="1;32"
HOME_URL="https://coreos.com/"
BUG_REPORT_URL="https://github.com/coreos/bugs/issues"
Hi all,
Today I've successfully built Ā CoreOS@ppc64le and booted this CoreOS from KVM.ĀHi @Brandon Philips @Michael Marineau el at,Could you help me to review the patches/PRs sent by Leno Hou ?ĀPRs
Leno HouE-mail : Ā len...@gmail.com
Hello Everyone-I wanted to introduce Leno and team who are working on a ppc64le port of many of the ebuilds required by CoreOS over here:Ā https://github.com/linux-on-power/gentooI talked to them on a hangout for a bit and the overall plan for this port, which they want to do the maintenance of, includes:- Waiting for all of the "second architecture" stuff to finish for ARM- Test out rkt/update_engine and some other pieces that are becoming easier to cross compile from the above work
- Continue to work upstream to merge the 12 or so patches required for Gentoo
- Generate and distribute an unofficial PPC64LE CoreOS SDK
- Help get the SDK and build into the CoreOS build system over the next 6 months or so
If anyone can help out on this stuff it would be great but it sounds like Leno and team are making great progress so far.