5 Replies Latest reply on Jul 16, 2015 1:22 PM by JPMontero_Intel

    Problem when building meta-intel-iot-devkit

    Domingo Benitez

      Hi all,

      I used the guide Building meta-intel-iot-devkit on the CLI using SSTATE to build the full image iot-devkit. All steps were fine but a galileo gen-1 board fails to boot with the SD card.

       

      The steps are summarized here:

      $ wget http://iotdk.intel.com/src/1.0/iotdk_src_140220.tar.gz

      $ tar xf iotdk_src_140220.tar.gz

      $ cd iotdk_src_140220

      $ vi conf/local.conf

      MACHINE ??= "clanton"

      DISTRO ?= "iot-devkit"

      PACKAGE_CLASSES ?= "package_ipk"

      HOB_IMAGELIST = "iot-devkit-prof-dev-image:iot-devkit"

      $ source iot-devkit-init-build-env

      $ bitbake iot-devkit-prof-dev-image

      Build Configuration:

      BB_VERSION        = "1.20.0"

      BUILD_SYS         = "x86_64-linux"

      NATIVELSBSTRING   = "Ubuntu-12.04"

      TARGET_SYS        = "i586-poky-linux"

      MACHINE           = "clanton"

      DISTRO            = "iot-devkit"

      DISTRO_VERSION    = "1.0"

      TUNE_FEATURES     = "m32 i586"

      TARGET_FPU        = ""

      meta             

      meta-oe          

      meta-iot-devkit  

      meta-yocto       

      meta-intel       

      meta-clanton-bsp 

      meta-galileo     

      meta-hob          = "devkit-mwc:7e64c7919657deee29afd708bf8a9500abadd886"

      $ vi ~/iotdk_src_140220/scripts/lib/image/canned-wks/iot-devkit.wks

      part /boot --source iot-devkit --size 50 --ondisk mmcblkp0 --fstype=msdos --label msdos --active --align 1024

      part / --source rootfs --size 1000 --ondisk mmcblkp0 --fstype=ext3 --label platform --align 1024

      $ ../scripts/wic create iot-devkit -e iot-devkit-prof-dev-image

      Checking basic build environment...

      Done.

      Creating image(s)...

      Info: The new image(s) can be found here:

        /var/tmp/wic/build/iot-devkit-201506300952-mmcblkp0.direct

      The following build artifacts were used to create the image(s):

        ROOTFS_DIR:      ~/iotdk_src_140220/build/tmp/work/clanton-poky-linux/iot-devkit-prof-dev-image/1.0-r0/rootfs

        BOOTIMG_DIR:     ~/iotdk_src_140220/build/tmp/deploy/images/clanton

        KERNEL_DIR:      ~/iotdk_src_140220/build/tmp/sysroots/clanton/usr/src/kernel

        NATIVE_SYSROOT:  ~/iotdk_src_140220/build/tmp/sysroots/x86_64-linux

      The image(s) were created using OE kickstart file:

        ~/iotdk_src_140220/scripts/lib/image/canned-wks/iot-devkit.wks

      $ [MAC OS X] sudo dd if=iot-devkit-201506300952-mmcblkp0.direct of=/dev/disk2 bs=8m conv=sync

       

      --->>> ERROR: iot-devkit fails to boot, kernel panic.

      When I insert the SD card into the card reader of a PC, I can only see:

      - boot directory with the grub.conf file

      - bzImage file

       

      Please, may someone give me a hint?

       

      Best regards,

      Domingo.

        • 1. Re: Problem when building meta-intel-iot-devkit
          JPMontero_Intel

          Hi dbenitez@dis.ulpgc.es,

           

          Could you attach the bblayers.conf and local.conf?

           

          Regards,
          JPMontero_Intel

          • 2. Re: Problem when building meta-intel-iot-devkit
            Domingo Benitez

            Thank you very much JPMontero_Intel.

            bblayers.conf and local.conf are attached.

            Regards,

            Domingo.

            • 3. Re: Problem when building meta-intel-iot-devkit
              JPMontero_Intel

              Hi dbenitez@dis.ulpgc.es,

               

              I apologize for the delay in my response. Could you attach the grub.conf file as well?

               

              Regards,
              JPMontero_Intel 

              • 4. Re: Problem when building meta-intel-iot-devkit
                Domingo Benitez

                Attached.

                Regards,

                Domingo.

                ___________________________________

                $ cat grub.conf

                default 3

                timeout 5

                 

                color white/blue white/cyan

                 

                title Clanton SVP kernel-SPI initrd-SPI IMR-On IO-APIC/HPET NoEMU

                    kernel --spi root=/dev/ram0 console=ttyS1,115200n8 earlycon=uart8250,mmio32,0x8010f000,115200n8 reboot=efi,warm apic=debug rw

                    initrd --spi

                 

                title Clanton SVP kernel-SPI image-full on SD IMR-On IO-APIC/HPET NoEMU

                    kernel --spi root=/dev/mmcblk0p2 console=ttyS1,115200n8 earlycon=uart8250,mmio32,0x8010f000,115200n8 reboot=efi,warm apic=debug rw

                 

                title Clanton SVP kernel-MassStorage initrd-MassStorage rootfs.img IMR-On IO-APIC/HPET NoEMU debug

                    root (hd0,0)

                    kernel /bzImage root=/dev/ram0 rootwait console=ttyS1,115200n8 earlycon=uart8250,mmio32,0x8010f000,115200n8 reboot=efi,warm apic=debug rw LABEL=boot debugshell=5

                    initrd /core-image-minimal-initramfs-clanton.cpio.gz

                 

                title Clanton SVP kernel-MassStorage iot-devkit on SD IMR-On IO-APIC/HPET NoEMU debug

                    root (hd0,0)

                    kernel /bzImage root=/dev/mmcblk0p2 rootwait console=ttyS1,115200n8 earlycon=uart8250,mmio32,0x8010f000,115200n8 reboot=efi,warm apic=debug rw LABEL=boot debugshell=5

                • 5. Re: Problem when building meta-intel-iot-devkit
                  JPMontero_Intel

                  Hi Domingo,

                   

                  According to the configuration on the grub.conf you attached your Grub has 4 configurations it can boot up from:

                   

                  0 = kernel-SPI initrd-SPI
                  1 = kernel-SPI image-full on SD
                  2 = kernel-MassStorage initrd-MassStorage rootfs.img
                  3 = kernel-MassStorage iot-devkit on SD

                   

                  In the first line of the first line of the config.conf you can see the default is set to 3, which means it will boot up kernel-MassStorage iot-devkit on SD unless you select another one in the grub menu. Now, if you check this configuration it does not have the line for the file system, this is the reason for the error. If you check the configuration 2, in the last line it says initrd /core-image-minimal-initramfs-clanton.cpio.gz, this tells how is the file system called, in this case core-image-minimal-initramfs-clanton.cpio.gz. Also the files you have on your SD are the gruf.conf and the bzImage, this mean you only have the bootloader and the kernel but no file system. You need to add the file system to the SD image and add the line initrd /<name of file system file>. I suggest you to follow all the steps carefully to see if you missed any. If everything looks good I suggest you to take a look at the distro iot-devkit which is the one you are building. I hope you find this information helpful.

                   

                  Regards,
                  JPMontero_Intel