The file src/scripts/build_library/disk_layout.json will need new entries.
For dev images copy the the "devel" layout, adding an entry to override
partition 2 (BIOS BOOT), changing its type to the PReP GUID (the
partitioning tool, cgpt, doesn't have a built in name for that type right
now but the raw guid should work, I hope). You may need to adjust the size
too. For prod images add an entry that only contains your new partition 2.
Anything not defined is inherited from the "base" layout. Then
pass --disk_layout= to build_image and image_to_vm. Actually setting up the
bootloader should go in src/scripts/build_library/grub_install.sh

I don't know anything about booting PPC but I'd recommend keeping the PReP
partition as simple/small as possible with most things in the larger ESP
partition for consistency with other platforms.

On Mon, Jul 18, 2016 at 4:36 AM, Leno Hou <leno...@gmail.com> wrote:

> Hi all,
>
> This is the updated CoreOS@ppc64le status for you and I need your help
> about bootloader partition.
>
> 1. Gentoo hosted ppc64le patches on Gentoo ppc64le overlay
> <https://cgit.gentoo.org/repo/proj/ppc64le.git/>
> 2. The coreos@ppc64le repo manifest <https://github.com/houstar/manifest>
> was pushed in github
> 3. All CoreOS production packages was built successfully.
>
> 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
>
> 4. This coreos_developer_qemu_image.img can't boot. This problem was due
> to ppc64le doesn't support UEFI and must have PReP partition for boot.
>
> For example, manually configure boot loader
>
> 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.cfg
>
> grub2 platform on ppc64le is powerpc-ieee1275
>
>
> How to automatically range this disk partition use CoreOS SDK to support
> boot from qcow2 disk image ? Thanks.
>
>
> *Leno Hou*
> E-mail :  leno...@gmail.com
>
>
> On Sun, Jun 5, 2016 at 9:44 PM, Liang NS Zhuang <liang.zhu...@cn.ibm.com>
> wrote:
>
>> 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-28548
>>
>>
>> [image: Inactive hide details for Brandon Philips ---06/03/2016
>> 11:46:28---Hello Everyone- I wanted to introduce Leno and team who 
>> are]Brandon
>> 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.phil...@coreos.com>
>> To: coreos-dev <coreos-dev@googlegroups.com>, Leno Hou <leno...@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
>> ------------------------------
>>
>>
>>
>> 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/gentoo*
>> <https://github.com/linux-on-power/gentoo>
>>
>> I 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.
>>
>> Cheers,
>>
>> Brandon
>>
>>
>

Reply via email to