[meta-freescale] Non-functioning Jethro minimal image for i.MX6 RIoTboard

2016-11-20 Thread Chris None
Hello everyone,


I'm new to Yocto and enjoy working with Linux and i.MX6-based devices - and 
therefore all the more excited to connect with this community!


Unfortunately, I'm having some issues getting a minimal image up and running on 
my RIoTboard using the Jethro branch of the FSL community BSP. I obtain an 
SD-card image as a result of the build process, however the device does not 
boot.


I executed the following basic steps to generate the image:

- Obtained the FSL community BSP and switched to the Jethro branch:

  $ repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b 
jethro
  $ repo sync

- Setup the build environment:

  $ MACHINE=imx6dl-riotboard . ./setup-environment build

- Build the core-image-minimal:

  $ bitbake core-image-minimal


All runs fine, with the result being an sdcard.gz archive located in 
/build/tmp/deploy/images/imx6dl-riotboard.

I extract and copy it to an SD card:

$ gunzip core-image-minimal-imx6dl-riotboard.sdcard.gz > 
core-image-minimal-imx6dl-riotboard.sdcard

$ sudo dd if=core-image-minimal-imx6dl-riotboard.sdcard of=/dev/sdd


However, I am seeing no partitions on the device (e.g. using lsblk). Trying to 
boot the device with the SD card subsequently shows no output or any reaction..


I find this to be somewhat odd, as I have tried the entire process using the 
fido branch of the same BSP.

I switched to jethro as I plan to integrate another layer which has several 
patches and fixes incorporated into its jethro branch that are missing in fido 
(especially things related to the GCC toolchain version...the newer version 
requires some of the patches applied that are present in the jethro branch of 
the layer, but not fido).


What could the cause of this possibly be, or what could I have missed in this 
basic setup?


Regarding my local.conf and bblayers.conf, I basically stuck to all of the 
steps in the following tutorial, except that I did not add a custom layer but 
went right to building core-image-minimal and used the jethro branch instead of 
fido:

https://community.nxp.com/docs/DOC-103530


I'd appreciate it if someone could provide me with some insight as to what 
could be going wrong here!

Cheers!




-- 
___
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale


Re: [meta-freescale] Non-functioning Jethro minimal image for i.MX6 RIoTboard

2016-11-20 Thread Nikolay Dimitrov

Hi Chris,

Thanks for sharing this. If the image is completely broken, then there
are 3 possibilities that easily come to my mind:

1. broken image_types_fsl.bbclass (this is where the sdcard image is
generated)
2. broken image variables
3. broken bootloader (highly unlikely)

I haven't touched/tested the riotboard build for months, so I have lots
of things to catch-up. I'm now building jethro & krogoth to see what's
going on there.

In the meantime, patches are always welcome!

Regards,
Nikolay
--
___
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale


Re: [meta-freescale] Non-functioning Jethro minimal image for i.MX6 RIoTboard

2016-11-20 Thread Nikolay Dimitrov

Chris,

In jethro the sdcard.gz is impossibly small (24 KiB). For comparison a
compressed sdcard image from fido is ~8 MiB (and fido sdcard image boots 
fine).


Regards,
Nikolay
--
___
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale


Re: [meta-freescale] Non-functioning Jethro minimal image for i.MX6 RIoTboard

2016-11-20 Thread Nikolay Dimitrov

Chris,

Can you please try adding the following to your imx6dl-riotboard.conf:

SOC_FAMILY = "mx6:mx6dl"

...as it worked fine for me.

It looks like SOC_FAMILY was empty and SDCARD_GENERATION_COMMAND_mx6 is
not invoked.

We need to check with Otavio why this line was removed, as I'm sure he
had a good reason for this change.

Kind regards,
Nikolay
--
___
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale


Re: [meta-freescale] Non-functioning Jethro minimal image for i.MX6 RIoTboard

2016-11-21 Thread Otavio Salvador
On Mon, Nov 21, 2016 at 12:14 AM, Nikolay Dimitrov  wrote:
...
> We need to check with Otavio why this line was removed, as I'm sure he
> had a good reason for this change.
...

https://github.com/Freescale/meta-freescale-3rdparty/commit/12cc66a9b8c3788309cf0a72c001f27abc299271

And we added support to generate the images using wic. See:

https://github.com/Freescale/meta-freescale-3rdparty/commit/9cfef6648751e277d9b281d186400c0a2e79558e

-- 
Otavio Salvador O.S. Systems
http://www.ossystems.com.brhttp://code.ossystems.com.br
Mobile: +55 (53) 9981-7854Mobile: +1 (347) 903-9750
-- 
___
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale


Re: [meta-freescale] Non-functioning Jethro minimal image for i.MX6 RIoTboard

2016-11-21 Thread Nikolay Dimitrov

Hi Otavio,

On 11/21/2016 12:19 PM, Otavio Salvador wrote:

On Mon, Nov 21, 2016 at 12:14 AM, Nikolay Dimitrov  wrote:
...

We need to check with Otavio why this line was removed, as I'm sure he
had a good reason for this change.

...

https://github.com/Freescale/meta-freescale-3rdparty/commit/12cc66a9b8c3788309cf0a72c001f27abc299271


It looks like meta-freescale-3rdparty layer is used only in morty &
master, not in jethro & krogoth where I was looking into.


And we added support to generate the images using wic. See:

https://github.com/Freescale/meta-freescale-3rdparty/commit/9cfef6648751e277d9b281d186400c0a2e79558e


Thanks, I'll look into this.

Regards,
Nikolay
--
___
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale


Re: [meta-freescale] Non-functioning Jethro minimal image for i.MX6 RIoTboard

2016-11-21 Thread Otavio Salvador
On Mon, Nov 21, 2016 at 8:02 PM, Nikolay Dimitrov  wrote:
> Hi Otavio,
>
> On 11/21/2016 12:19 PM, Otavio Salvador wrote:
>>
>> On Mon, Nov 21, 2016 at 12:14 AM, Nikolay Dimitrov 
>> wrote:
>> ...
>>>
>>> We need to check with Otavio why this line was removed, as I'm sure he
>>> had a good reason for this change.
>>
>> ...
>>
>>
>> https://github.com/Freescale/meta-freescale-3rdparty/commit/12cc66a9b8c3788309cf0a72c001f27abc299271
>
>
> It looks like meta-freescale-3rdparty layer is used only in morty &
> master, not in jethro & krogoth where I was looking into.

It is the same meta-fsl-arm-extra renamed. Please find more information at:

https://www.mail-archive.com/meta-freescale@yoctoproject.org/msg19181.html

-- 
Otavio Salvador O.S. Systems
http://www.ossystems.com.brhttp://code.ossystems.com.br
Mobile: +55 (53) 9981-7854Mobile: +1 (347) 903-9750
-- 
___
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale