oreo-x86 android_x86_64 build: cannot find /boot/grub/efi.img error

275 views
Skip to first unread message

Carmelo Carbonara

unread,
Aug 19, 2018, 2:08:24 PM8/19/18
to Android-x86


cannot find /boot/grub/efi.img errors at tail end of build

this build is for oreo-x86 android_x86_64: for 64-bit x86_64 platform


appreciate any recommends



with genisoimage installed and detected:

FAILED: out/target/product/x86_64/android_x86_64.iso
/bin/bash -c "(sed -i \"s|\\(Installation CD\\)\\(.*\\)|\\1 \$(date +\"%F\")|; s|CMDLINE|root=/dev/ram0 androidboot.selinux=permissive |\" out/target/product/x86_64/boot/isolinux/isolinux.cfg ) && (sed -i \"s|VER|\$(date +\"%F\")|; s|CMDLINE|root=/dev/ram0 androidboot.selinux=permissive |\" out/target/product/x86_64/boot/efi/boot/android.cfg ) && (sed -i \"s|OS_TITLE|Android-x86|\" out/target/product/x86_64/boot/isolinux/isolinux.cfg out/target/product/x86_64/boot/efi/boot/android.cfg ) && (genisoimage -vJURT -b isolinux/isolinux.bin -c isolinux/boot.cat         -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -eltorito-boot boot/grub/efi.img -no-emul-boot         -input-charset utf-8 -V \"Android-x86 LiveCD\" -o out/target/product/x86_64/android_x86_64.iso out/target/product/x86_64/boot out/target/product/x86_64/ramdisk.img out/target/product/x86_64/initrd.img out/target/product/x86_64/install.img out/target/product/x86_64/system.sfs out/target/product/x86_64/kernel ) && (isohybrid --uefi out/target/product/x86_64/android_x86_64.iso || echo -e \"isohybrid not found.\\nInstall syslinux 4.0 or higher if you want to build a usb bootable iso.\" ) && (echo -e \"\\n\\nout/target/product/x86_64/android_x86_64.iso is built successfully.\\n\\n\" )"
Warning: creating filesystem that does not conform to ISO-9660.
genisoimage
1.1.11 (Linux)
Scanning out/target/product/x86_64/boot
Scanning out/target/product/x86_64/boot/boot
Scanning out/target/product/x86_64/boot/boot/grub
Scanning out/target/product/x86_64/boot/boot/grub/fonts
Scanning out/target/product/x86_64/boot/boot/grub/theme
Scanning out/target/product/x86_64/boot/boot/grub/theme/icons
Scanning out/target/product/x86_64/boot/.disk
Scanning out/target/product/x86_64/boot/efi
Scanning out/target/product/x86_64/boot/efi/boot
Scanning out/target/product/x86_64/boot/isolinux
Writing:   Initial Padblock                        Start Block 0
Done with: Initial Padblock                        Block(s)    16
Writing:   Primary Volume Descriptor               Start Block 16
Done with: Primary Volume Descriptor               Block(s)    1
Writing:   Eltorito Volume Descriptor              Start Block 17
Size of boot image is 4 sectors -> No emulation
genisoimage
: Uh oh, I cant find the boot image 'boot/grub/efi.img' !


after installing xorriso to build machine

[100% 2/2] ----- Making iso image ------
FAILED
: out/target/product/x86_64/android_x86_64.iso
/bin/bash -c "(sed -i \"s|\\(Installation CD\\)\\(.*\\)|\\1 \$(date +\"%F\")|; s|CMDLINE|root=/dev/ram0 androidboot.selinux=permissive |\" out/target/product/x86_64/boot/isolinux/isolinux.cfg ) && (sed -i \"s|VER|\$(date +\"%F\")|; s|CMDLINE|root=/dev/ram0 androidboot.selinux=permissive |\" out/target/product/x86_64/boot/efi/boot/android.cfg ) && (sed -i \"s|OS_TITLE|Android-x86|\" out/target/product/x86_64/boot/isolinux/isolinux.cfg out/target/product/x86_64/boot/efi/boot/android.cfg ) && (xorriso -as mkisofs -vJURT -b isolinux/isolinux.bin -c isolinux/boot.cat         -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot         -input-charset utf-8 -V \"Android-x86 LiveCD\" -o out/target/product/x86_64/android_x86_64.iso out/target/product/x86_64/boot out/target/product/x86_64/ramdisk.img out/target/product/x86_64/initrd.img out/target/product/x86_64/install.img out/target/product/x86_64/system.sfs out/target/product/x86_64/kernel ) && (isohybrid --uefi out/target/product/x86_64/android_x86_64.iso || echo -e \"isohybrid not found.\\nInstall syslinux 4.0 or higher if you want to build a usb bootable iso.\" ) && (echo -e \"\\n\\nout/target/product/x86_64/android_x86_64.iso is built successfully.\\n\\n\" )"
xorriso
1.4.6 : RockRidge filesystem manipulator, libburnia project.

xorriso
: NOTE : Local character set is now assumed as: 'utf-8'
Drive current: -outdev 'stdio:out/target/product/x86_64/android_x86_64.iso'
Media current: stdio file, overwriteable
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 41.6g free
xorriso
: WARNING : -volid text problematic as automatic mount point name
xorriso
: WARNING : -volid text is too long for Joliet (18 > 16)
xorriso
: WARNING : -volid text does not comply to ISO 9660 / ECMA 119 rules
Added to ISO image: directory '/'='/home/admin/buildOS/android-x86/out/target/product/x86_64/boot'
xorriso
: UPDATE : 83 files added in 1 seconds
Added to ISO image: file '/ramdisk.img'='/home/admin/buildOS/android-x86/out/target/product/x86_64/ramdisk.img'
Added to ISO image: file '/initrd.img'='/home/admin/buildOS/android-x86/out/target/product/x86_64/initrd.img'
Added to ISO image: file '/install.img'='/home/admin/buildOS/android-x86/out/target/product/x86_64/install.img'
Added to ISO image: file '/system.sfs'='/home/admin/buildOS/android-x86/out/target/product/x86_64/system.sfs'
Added to ISO image: file '/kernel'='/home/admin/buildOS/android-x86/out/target/product/x86_64/kernel'
xorriso
: UPDATE : 88 files added in 1 seconds
xorriso
: FAILURE : Cannot find path '/boot/grub/efi.img' in loaded ISO image
xorriso
: NOTE : -return_with SORRY 32 triggered by problem severity FAILURE
ninja
: build stopped: subcommand failed.
13:23:03 ninja failed with: exit status 1




Mauro Rossi

unread,
Aug 19, 2018, 2:50:23 PM8/19/18
to Android-x86
Hi Carmelo,
please check if one of these package is missing in your Linux Distribution
Mauro

sudo apt-get -y install git repo

sudo apt-get -y install bison g++-multilib git gperf libxml2-utils make zlib1g-dev:i386 zip

sudo apt-get -y install git gnupg flex bison gperf build-essential \
  zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
  libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
  libgl1-mesa-dev g++-multilib tofrodos \
  python-markdown libxml2-utils xsltproc zlib1g-dev:i386

sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

sudo apt-get -y install yasm squashfs-tools syslinux-utils

sudo apt-get -y install python-mako

Carmelo Carbonara

unread,
Aug 19, 2018, 4:06:18 PM8/19/18
to andro...@googlegroups.com
..yes some of them are missing; i need to look into it because i have some issues on my build host:

i.e.,
  • libgl1-mesa-dev has unmet dependencies because i backported to get the latest kernel on my build host...some of the dependencies are stable release and some are backported..
  • syslinux-utils is ver 3.63 is way too old.... i do my own bootloader work with syslinux 6.03 binaries from their repo to prepare disks manually, without installing it, i'm a little leary of installing bootloader tools because i don't want it to contaminate the working host.....but this is my issue
  • i think some of the packages / libraries have different names in Debian's packages repo, and some needed to be added to PATH env
i can check and reply back to this post otherwise the Ubuntu and your instructions can suffice
i beg your indulgence for going a little off-topic:

androidx86 source generates the squashfs (including kernel modules), initrd and vmlinuz, that's good enough for me right now, don't urgently need the iso.

..want to try the build with your later kernel to meet Intel NUC's kernel 4.14+ requirements I'll use gnu make just to get a config file and run the androidx86 build over

already have androidx86_64 dual-booting with Stretch on one of the UEFI NUCs; only problem is the bluetooth, wifi, and HDMI sound needing the later kernel and firmware

Carmelo Carbonara

unread,
Aug 19, 2018, 5:54:43 PM8/19/18
to Android-x86


....correction on below; Debian prefix (3:6.03+dfsg-14.1+deb9u1) threw me off -- the available syslinux-utils is ver 6.3

Chih-Wei Huang

unread,
Aug 19, 2018, 10:53:13 PM8/19/18
to Android-x86
2018-08-20 5:54 GMT+08:00 Carmelo Carbonara <cpcnet...@gmail.com>:
>
> ....correction on below; Debian prefix (3:6.03+dfsg-14.1+deb9u1) threw me
> off -- the available syslinux-utils is ver 6.3

boot/grub/efi.img is a generated file.
It just requires dd, dosfstools and mtools.
If you don't have the tools, actually you
should see an error on generating efi.img.


--
Chih-Wei
Android-x86 project
http://www.android-x86.org

Carmelo Carbonara

unread,
Aug 20, 2018, 12:24:32 AM8/20/18
to andro...@googlegroups.com

boot/grub/efi.img is a generated file.    generated or extracted?
.i have dd (coreutils) 8.26), dosfstools and mtools installed....still cannot find boot/grub/efi.img  i'll check the executable PATHs
thx


Carmelo Carbonara

unread,
Aug 23, 2018, 3:44:41 PM8/23/18
to Android-x86

...the PATH needs to include /sbin and /usr/bin ... i set these manually
maybe include this in 

build/envsetup.sh ?

Chih-Wei Huang

unread,
Aug 23, 2018, 10:36:27 PM8/23/18
to Android-x86
2018-08-24 3:44 GMT+08:00 Carmelo Carbonara <cpcnet...@gmail.com>:
>
> ...the PATH needs to include /sbin and /usr/bin ... i set these manually
> maybe include this in
> build/envsetup.sh ?

Isn't that in the default PATH?

I don't see I need to touch that in Ubuntu or Fedora.
Which linux distro did you use?

Carmelo Carbonara

unread,
Aug 24, 2018, 1:37:35 AM8/24/18
to Android-x86

ok

specifically the dosfstools in debian stretch 9.5...

File list of package dosfstools in stretch of architecture amd64

/sbin/dosfsck
/sbin/dosfslabel
/sbin/fatlabel
/sbin/fsck.fat
/sbin/fsck.msdos
/sbin/fsck.vfat
/sbin/mkdosfs
/sbin/mkfs.fat
/sbin/mkfs.msdos
/sbin/mkfs.vfat

after including /sbin in PATH

installing pkgconf and libelf-dev

and repo sync

the build completed all the way to creating the x86_64 iso

Antony Stone

unread,
Aug 24, 2018, 4:35:34 AM8/24/18
to andro...@googlegroups.com
On Thursday 23 August 2018 at 21:44:41, Carmelo Carbonara wrote:

> ...the PATH needs to include /sbin and /usr/bin ... i set these manually

Are you perhaps using su without specifying "su -" ?


Antony.

> maybe include this in
>
> build/envsetup.sh ?
>
> On Monday, August 20, 2018 at 12:24:32 AM UTC-4, Carmelo Carbonara wrote:
> > boot/grub/efi.img is a generated file. generated or extracted?
> > .i have dd (coreutils) 8.26), dosfstools and mtools installed....still
> > cannot find boot/grub/efi.img i'll check the executable PATHs
> > thx

--
God sent his only son into this world to be crucified.

Christian parents may wish to reflect upon this as a role model.

Please reply to the list;
please *don't* CC me.

Carmelo Carbonara

unread,
Aug 24, 2018, 7:37:34 AM8/24/18
to andro...@googlegroups.com
Not using su
Reply all
Reply to author
Forward
0 new messages