[yocto] Yocto procedure to write generated image to hdd

Iván Castell icastell at nayarsystems.com
Thu Mar 1 08:15:25 PST 2018


After writting the .hddimg file to a USB-pendrive I have mounted the
pendrive to analyze contents in my laptop. It contains the following files:

    ./EFI/BOOT/grub.cfg
    ./EFI/BOOT/bootx64.efi
    ./initrd
    ./ldlinux.sys
    ./libcom32.c32
    ./libutil.c32
    ./rootfs.img
    ./startup.nsh
    ./syslinux.cfg
    ./vesamenu.c32
    ./vmlinuz
    ./ldlinux.c32

This is the content of /EFI/BOOT/grub.cfg file:

    $ cat EFI/BOOT/grub.cfg
    # Automatically created by OE
    serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
    default=install
    timeout=3

    menuentry 'install'{
    linux /vmlinuz LABEL=install-efi root=/dev/ram0
rootwait console=ttyS0,115200 console=tty0
    initrd /initrd
    }

    menuentry 'boot'{
    linux /vmlinuz LABEL=boot root=/dev/ram0  rootwait console=ttyS0,115200
console=tty0
    initrd /initrd
    }

I found this link with useful information:

    https://www.yoctoproject.org/downloads/bsps/danny13/atom-pc

According to it, "it is likely the BIOS cannot understand the physical
layout of the disk".

This sounds strange to me, because USB-pendrive boots fine when the .wic
image is burned into the USB-pendrive. But anyway, I have checked BIOS
USB-related settings and this is my current setup:

Main information:

    BIOS Vendor: American Megratrends
    Core Version 5.009
    Compilancy: UEFI 2.3; PI 1.2
    BIOS ID: N29NL009 x64

USB-related information:

    USB Module version: 8.11.02
    Legacy USB Support [Enabled]
    USB 2.0 Controller Mode [HiSpeed]
    XHCI Hand-off [Enabled]
    EHCI Hand-off [Disabled]
    USB Mass Storage Driver Support is [Enabled]

    General UDisk 5.00 [Auto]

I don't know what can I do to manage this issue. I'm really blocked on
this, any help to would be very helpful. Thanks in advance!!




2018-03-01 12:20 GMT+01:00 Iván Castell <icastell at nayarsystems.com>:

> Hello forum.
>
> Working with 'rocko' yocto branch. Yocto generates .ext4, .hddimg and .wic
> images. I want to install the proper image to the HDD of my PC, in order to
> use it as my default Linux distro.
>
> I have been using the .wic image to boot from the USB pendrive until now,
> writing it to the USB using 'dd'. This works fine, but because of some BIOS
> issues, I had to modify mkefidisk.wks script to add 'noapic' option
> (probably this is relevant).
>
> To try to install the generated image in my hard disk, I write the .hddimg
> file to a USB-pendrive using dd and the plug the pendrive and boot the PC.
> A boot menu of GNU GRUB version 2.02 appears with two options:
>
>     * install
>     * noot
>
> Editing the install option I can see this:
>
>     setparams 'install'
>     linux /vmlinuz LABEL=install-efi root=/dev/ram0 rootwait
> console=ttyS0,115200 console=tty0
>     initrd /initrd
>
> And editing boot options I can see this:
>
>     setparams 'boot'
>     linux /vmlinuz LABEL=boot root=/dev/ram0 rootwait console=ttyS0,115200
> console=tty0
>     initrd /initrd
>
> After choosing "install" option and pressing "Enter", a black screen
> appears and nothing else happens.
>
> I have tried editing 'install' option, adding 'noapic' after console=tty0,
> and then I can see logs of kernel booting and after 0.5 secods the screen
> is flooded of error lines:
>
>     /init: line 65: sleep: command not found
>     /init: line 65: sleep: command not found
>     ...
>     /init: line 65: sleep: command not found
>
>
> Is this the proper way to install the generated image in the hard disk?
> Maybe I am doing something wrong?
>
> Thanks a lot in advance! :-)
>
> Best regards,
>   -- Ivan
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180301/614df30d/attachment.html>


More information about the yocto mailing list