The error is the following:

FAILED: out/target/product/celadon/celadon.img 
/bin/bash -c "(blksize=0; for size in \`du -sBM --apparent-size out/target/product/celadon/initrd.img out/target/product/celadon/kernel out/target/product/celadon/ramdisk.img out/target/product/celadon/system.sfs out/target/product/celadon/vendor.sfs out/target/product/celadon/boot.img out/target/product/celadon/efi/kernelflinger.efi out/target/product/celadon/recovery.img | awk '{print \$1}' | cut -d'M' -f1\`; do blksize=\$((\$blksize + \$size)); done; blksize=\$((\$((\$blksize + 64)) * 1024)); rm -f out/target/product/celadon/celadon.img.fat; mkdosfs -n PROJECTCELADON -C out/target/product/celadon/celadon.img.fat \$blksize ) && (mcopy -Qsi out/target/product/celadon/celadon.img.fat bootable/liveinstaller/boot/* out/target/product/celadon/initrd.img out/target/product/celadon/kernel out/target/product/celadon/ramdisk.img out/target/product/celadon/system.sfs out/target/product/celadon/vendor.sfs out/target/product/celadon/boot.img out/target/product/celadon/efi/kernelflinger.efi out/target/product/celadon/recovery.img :: ) && (sed \"s|KERNEL_CMDLINE|vga=current i915.modeset=1 drm.atomic=1 i915.nuclear_pageflip=1 drm.vblankoffdelay=1 i915.fastboot=1 root=/dev/ram0 androidboot.hardware=celadon firmware_class.path=/vendor/firmware loglevel=3 console=tty0 console=ttyS2,115200n8 iTCO_wdt.force_no_reboot=1 thermal.off=1 pstore.backend=ramoops memmap=0x400000\\\$0x50000000 ramoops.mem_address=0x50000000 ramoops.mem_size=0x400000 ramoops.record_size=0x4000 ramoops.console_size=0x200000 ramoops.ftrace_size=0x2000 ramoops.dump_oops=1|; s|BUILDDATE|\$(date +\"%F\")|; s|GRUB_DEFAULT|0|; s|GRUB_TIMEOUT|10|; s|console=tty[^ ]* ||g; s|SERIAL_PORT|console=tty0 console=ttyS2,115200n8|g; s|CONSOLE|console=tty0|g\" bootable/liveinstaller/boot/boot/grub/grub.cfg > out/target/product/celadon/grub.cfg ) && (mcopy -Qoi out/target/product/celadon/celadon.img.fat out/target/product/celadon/grub.cfg ::boot/grub ) && (cat /dev/null > out/target/product/celadon/celadon.img; out/host/linux-x86/bin/install_mbr -l bootable/liveinstaller/editdisklbl/disk_layout.conf -i out/target/product/celadon/celadon.img oand=out/target/product/celadon/celadon.img.fat ) && (rm -f out/target/product/celadon/celadon.img.fat )"
mkfs.fat 4.1 (2017-01-24)
Total number of sectors (1757184) not a multiple of sectors per track (63)!
Add mtools_skip_check=1 to your .mtoolsrc file to skip this test
ninja: build stopped: subcommand failed.
14:48:18 ninja failed with: exit status 1


On Tue, Sep 25, 2018 at 9:51 PM Tan, Ming <ming.tan@intel.com> wrote:

  For your patch, can you share the detail compile error log? You can add the ‘showcommands’ in your make command line for more detail make commands.

 

  BR/Tan Ming.

 

From: Michael Goffioul [mailto:michael.goffioul@gmail.com]
Sent: Wednesday, September 26, 2018 9:02 AM
To: Tan, Ming <ming.tan@intel.com>
Cc: celadon@lists.01.org
Subject: Re: [01.org Celadon] Boot failure

 

Ok, I'll try that (although my target is really O-MR1, not P). In the meantime, can you answer these 2 questions:

1) I went through the mailing list archive and found instructions from May explaining that mixin.spec needs to be modified to use live boot. Is this till required?

2) Without making any code change, I needed to apply this patch in bootable/liveinstaller for the build to succeed (the same problem already existed in Android-IA):

 

diff --git a/Android.mk b/Android.mk

index 4c204c4..0a9995b 100644

--- a/Android.mk

+++ b/Android.mk

@@ -86,6 +86,7 @@ $(PROJECT_CELADON-EFI): $(GRUB_FILES) | $(install_mbr)

                blksize=$$(($$blksize + $$size)); \

        done; \

        blksize=$$(($$(($$blksize + 64)) * 1024));      \

+       blksize=$$((blksize + (63 - (blksize % 63))));  \

        rm -f $@.fat; mkdosfs -n PROJECTCELADON -C $@.fat $$blksize

        mcopy -Qsi $@.fat $(BOOT_DIR)/* $^ ::

        sed "s|KERNEL_CMDLINE|$(BOARD_KERNEL_CMDLINE)|; s|BUILDDATE|$(BDATE)|; s|GRUB_DEFAULT|$(GRUB_DEFAULT)|; s|GRUB_TIMEOUT|$(GRUB_TIMEOUT)|; s|console=tty[^ ]* ||g; s|SERIAL_PORT|$(SERIAL_PARAMETER)|g; s|CONSOLE|console=tty0|g" $(SRC_GRUBCFG) > $(@D)/grub.cfg

 

Michael.

 

 

On Tue, Sep 25, 2018 at 8:52 PM Tan, Ming <ming.tan@intel.com> wrote:

Michael:

  The live mode is supported.

  Can you try to use the Celadon P, not O-MR1? Some patchs will only exist in P, not in O-MR1?

 

  BR/Tan Ming.

 

From: Celadon [mailto:celadon-bounces@lists.01.org] On Behalf Of Michael Goffioul
Sent: Wednesday, September 26, 2018 8:01 AM
To: celadon@lists.01.org
Subject: [01.org Celadon] Boot failure

 

I've compiled the celadon image using the omr1 manifest. I trying to boot a device using N2930 CPU, in live mode, but the screen turns black right after selecting the boot entry and the device freeze. I understand this is not part of the officially tested platforms, but I'm willing to debug it (I used to compile Android-IA 7 and 8 and they were running fine on the same platform).

 

Is the live mode still supported and what can I try to at least get the device to start booting?

 

Thanks,

Michael.