PINE64
Image build guide? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: UBPorts on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=125)
+---- Thread: Image build guide? (/showthread.php?tid=10133)



Image build guide? - Djhg2000 - 06-08-2020

As my PinePhone should arrive in a few days I thought now would be a good time to compile my own UBPorts image.

However, I couldn't find any working build guide for compiling your own images. I mainly want to experiment with kernels so I'm not sure I'd need to compile everything, but having a general idea on the build process should help in case I'd need it.

I've tried following https://gitlab.com/ubports/core/rootfs-builder-debos but that didn't get me very far. All I get is this:

Code:
$ debos -m 5G pinephone.yaml
Running /debos --artifactdir /media/djhg/Nibbler/PinePhone/rootfs-builder-debos /media/djhg/Nibbler/PinePhone/rootfs-builder-debos/pinephone.yaml --internal-image /dev/disk/by-id/virtio-fakedisk-0
2020/06/08 17:20:45 ==== Pine64 common ====
2020/06/08 17:20:45 ==== Setup core rootfs ====
2020/06/08 17:20:45 ==== Download latest ubuntu touch rootfs from CI ====
2020/06/08 17:20:45 Download started: 'https://ci.ubports.com/job/xenial-mainline-edge-pine-rootfs-arm64/lastSuccessfulBuild/artifact/out/ubuntu-touch-xenial-edge-pine-arm64-rootfs.tar.gz' -> '/scratch/ut-rootfs.tar.gz'
2020/06/08 17:21:59 Action `Pine64 common` failed at stage Run, error: stream error: stream ID 1; INTERNAL_ERROR
Powering off.
$


I've tried various parameters to get more information about what exactly fails without any luck. More memory didn't help either nor did a few web searches for that error. If I use the "--show-boot" option I can see the virtual machine booting and using debos-docker makes no difference, so I don't think it's a dependency issue. I'm on Debian Sid.

Is that guide up to date or is there a newer method for building images?


RE: Image build guide? - doniks - 06-09-2020

I managed to rebuild and boot kernel like this: https://ci.ubports.com/job/docs.ubports.com/job/PR-309/lastSuccessfulBuild/artifact/_build/html/systemdev/kernel-pinephone.html


RE: Image build guide? - Djhg2000 - 06-10-2020

(06-09-2020, 11:45 PM)doniks Wrote: I managed to rebuild and boot kernel like this: https://ci.ubports.com/job/docs.ubports.com/job/PR-309/lastSuccessfulBuild/artifact/_build/html/systemdev/kernel-pinephone.html

Thanks, it produced what looks like a compiled kernel so I'll try to boot it when my PinePhone arrives. Smile


RE: Image build guide? - bingo600 - 06-18-2020

(06-10-2020, 07:37 AM)Djhg2000 Wrote:
(06-09-2020, 11:45 PM)doniks Wrote: I managed to rebuild and boot kernel like this: https://ci.ubports.com/job/docs.ubports.com/job/PR-309/lastSuccessfulBuild/artifact/_build/html/systemdev/kernel-pinephone.html

Thanks, it produced what looks like a compiled kernel so I'll try to boot it when my PinePhone arrives. Smile

I had to use https to clone
git clone -b pine64-kernel-ubports https://gitlab.com/pine64-org/linux.git