All of lore.kernel.org
 help / color / mirror / Atom feed
* iMX53 Query
@ 2012-12-04 18:09 Tejas Shah
  2012-12-04 18:11 ` Chris Larson
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Tejas Shah @ 2012-12-04 18:09 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 2308 bytes --]

Hello,

I am new to Yocto Project and need some help with Yocto Project. I am
suppose to create a BSP layer for iMX53 and to be able to build it using
bitbake and emulate it using QEMU. To start with, I did read Yocto Project
Quick Start Guide to familiarize myself with Yocto Project. I was able to
build images for example machines using bitbake and emulate in QEMU.
Furthermore, I read the Development manual and BSP layer guide to make
myself familiarize with how to create BSP layer. Now that I had some
knowledge of layers, I created my own layer(meta-iMX53) and used the same
layer.conf as other layers but need to make some changes in machine
configuration file (iMX53.conf) for building the image. For machine
configuration file, I used beagleboard.conf as my start point and made some
changes, but need help with other changes that will be required.
Here is the iMX5.conf file.

#@TYPE: Machine
#@NAME: iMX53 machine


PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
XSERVER ?= "xserver-xorg \
           xf86-input-evdev \
           xf86-input-mouse \
           xf86-video-omapfb \
           xf86-input-keyboard"

# Ship all kernel modules by default
MACHINE_EXTRA_RRECOMMENDS = " kernel-modules"

# Uncomment the following line to enable the hard floating point abi. Note
that
# this breaks some binary libraries and 3D (neither of which ship with
# meta-yocto). For maximum compatibility, leave this disabled.
#DEFAULTTUNE ?= "cortexa8hf-neon"
*include conf/machine/include/tune-cortexa8.inc*

*IMAGE_FSTYPES += "tar.bz2 jffs2"
EXTRA_IMAGECMD_jffs2 = "-lnp "*

# 2.6.37 and later kernels use OMAP_SERIAL, ttyO2
# earlier kernels use ttyS2
*SERIAL_CONSOLE = "115200 ttyO2"*

*PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
PREFERRED_VERSION_linux-yocto ?= "3.4%"

KERNEL_IMAGETYPE = "uImage"*

UBOOT_MACHINE = "omap3_beagle_config"
*UBOOT_ENTRYPOINT = "0x70800000"
UBOOT_LOADADDRESS = "0x70800000"*

MACHINE_FEATURES = "apm usbgadget usbhost vfat alsa"
# End of file


In the above file, the change I made are in blue color and there are some
that will remain same I think as beagleboard which are in green color, but
don't know what other changes will be required.

Can you please help me? It is very urgent.
-- 
Tejas

[-- Attachment #2: Type: text/html, Size: 3066 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: iMX53 Query
  2012-12-04 18:09 iMX53 Query Tejas Shah
@ 2012-12-04 18:11 ` Chris Larson
  2012-12-04 18:21 ` Otavio Salvador
  2012-12-04 18:35 ` Daiane Angolini
  2 siblings, 0 replies; 9+ messages in thread
From: Chris Larson @ 2012-12-04 18:11 UTC (permalink / raw)
  To: Tejas Shah; +Cc: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 1158 bytes --]

On Tue, Dec 4, 2012 at 11:09 AM, Tejas Shah <tpshah1@asu.edu> wrote:

> I am new to Yocto Project and need some help with Yocto Project. I am
> suppose to create a BSP layer for iMX53 and to be able to build it using
> bitbake and emulate it using QEMU. To start with, I did read Yocto Project
> Quick Start Guide to familiarize myself with Yocto Project. I was able to
> build images for example machines using bitbake and emulate in QEMU.
> Furthermore, I read the Development manual and BSP layer guide to make
> myself familiarize with how to create BSP layer. Now that I had some
> knowledge of layers, I created my own layer(meta-iMX53) and used the same
> layer.conf as other layers but need to make some changes in machine
> configuration file (iMX53.conf) for building the image. For machine
> configuration file, I used beagleboard.conf as my start point and made some
> changes, but need help with other changes that will be required.
> Here is the iMX5.conf file.
>


I'd suggest using the layer freescale already provides for the imx machines
- http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-arm
-- 
Christopher Larson

[-- Attachment #2: Type: text/html, Size: 1583 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: iMX53 Query
  2012-12-04 18:09 iMX53 Query Tejas Shah
  2012-12-04 18:11 ` Chris Larson
@ 2012-12-04 18:21 ` Otavio Salvador
  2012-12-04 18:35 ` Daiane Angolini
  2 siblings, 0 replies; 9+ messages in thread
From: Otavio Salvador @ 2012-12-04 18:21 UTC (permalink / raw)
  To: Tejas Shah; +Cc: meta-freescale@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 1429 bytes --]

On Tue, Dec 4, 2012 at 4:09 PM, Tejas Shah <tpshah1@asu.edu> wrote:

> Hello,
>
> I am new to Yocto Project and need some help with Yocto Project. I am
> suppose to create a BSP layer for iMX53 and to be able to build it using
> bitbake and emulate it using QEMU. To start with, I did read Yocto Project
> Quick Start Guide to familiarize myself with Yocto Project. I was able to
> build images for example machines using bitbake and emulate in QEMU.
> Furthermore, I read the Development manual and BSP layer guide to make
> myself familiarize with how to create BSP layer. Now that I had some
> knowledge of layers, I created my own layer(meta-iMX53) and used the same
> layer.conf as other layers but need to make some changes in machine
> configuration file (iMX53.conf) for building the image. For machine
> configuration file, I used beagleboard.conf as my start point and made some
> changes, but need help with other changes that will be required.
> Here is the iMX5.conf file.
>

You're duplicating work. The iMX53 is already supported in meta-fsl-arm, as
Chris said. Please check the layer and join meta-freescale mailing list (
https://lists.yoctoproject.org/listinfo/meta-freescale).

Regards,

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

[-- Attachment #2: Type: text/html, Size: 2062 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: iMX53 Query
  2012-12-04 18:09 iMX53 Query Tejas Shah
  2012-12-04 18:11 ` Chris Larson
  2012-12-04 18:21 ` Otavio Salvador
@ 2012-12-04 18:35 ` Daiane Angolini
  2012-12-04 19:56   ` Tejas Shah
  2 siblings, 1 reply; 9+ messages in thread
From: Daiane Angolini @ 2012-12-04 18:35 UTC (permalink / raw)
  To: Tejas Shah; +Cc: meta-freescale

On 12/04/2012 04:09 PM, Tejas Shah wrote:
> UBOOT_MACHINE = "omap3_beagle_config"
> *UBOOT_ENTRYPOINT = "0x70800000"
> UBOOT_LOADADDRESS = "0x70800000"*
For sure you need to change the UBOOT_MACHINE.

Take a look at meta-fsl-arm and if you face any error, please, send the 
log to mainlist.


Daiane




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: iMX53 Query
  2012-12-04 18:35 ` Daiane Angolini
@ 2012-12-04 19:56   ` Tejas Shah
  2012-12-04 20:05     ` Gary Thomas
  2012-12-04 20:34     ` Otavio Salvador
  0 siblings, 2 replies; 9+ messages in thread
From: Tejas Shah @ 2012-12-04 19:56 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 1306 bytes --]

Hello,

I cloned meta-fsl-arm on my laptop to build images for iMX53 board. So
first of all, I added this BSP layer to bblayers.conf and I also added
iMX53 as a machine in layer.conf file to be able to build using bitbake.

The command I used to build using bitbake is the following:

$bitbake -k core-image-minimal

But I end up with this error:

*pshah9@ubuntu:~/poky-danny-8.0/build$ bitbake -k core-image-minimal
Parsing recipes: 100% |#########################################| Time:
00:02:18
Parsing of 863 .bb files complete (0 cached, 863 parsed). 1175 targets, 58
skipped, 0 masked, 0 errors.
ERROR: No recipes available for:

/home/pshah9/poky-danny-8.0/meta-fsl-arm/recipes-core/udev/udev_173.bbappend
ERROR: Command execution failed: Exited with 1

Summary: There were 2 ERROR messages shown, returning a non-zero exit code*.


On 4 December 2012 11:35, Daiane Angolini <daiane.angolini@freescale.com>wrote:

> On 12/04/2012 04:09 PM, Tejas Shah wrote:
>
>> UBOOT_MACHINE = "omap3_beagle_config"
>> *UBOOT_ENTRYPOINT = "0x70800000"
>> UBOOT_LOADADDRESS = "0x70800000"*
>>
> For sure you need to change the UBOOT_MACHINE.
>
> Take a look at meta-fsl-arm and if you face any error, please, send the
> log to mainlist.
>
>
> Daiane
>
>
>


-- 
Tejas

[-- Attachment #2: Type: text/html, Size: 1843 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: iMX53 Query
  2012-12-04 19:56   ` Tejas Shah
@ 2012-12-04 20:05     ` Gary Thomas
  2012-12-04 20:34     ` Otavio Salvador
  1 sibling, 0 replies; 9+ messages in thread
From: Gary Thomas @ 2012-12-04 20:05 UTC (permalink / raw)
  To: meta-freescale

On 2012-12-04 12:56, Tejas Shah wrote:
> Hello,
>
> I cloned meta-fsl-arm on my laptop to build images for iMX53 board. So first of all, I added this BSP layer to bblayers.conf and I also added iMX53 as a machine in layer.conf file
> to be able to build using bitbake.
>
> The command I used to build using bitbake is the following:
>
> $bitbake -k core-image-minimal
>
> But I end up with this error:
>
> *pshah9@ubuntu:~/poky-danny-8.0/build$ bitbake -k core-image-minimal
> Parsing recipes: 100% |#########################################| Time: 00:02:18
> Parsing of 863 .bb files complete (0 cached, 863 parsed). 1175 targets, 58 skipped, 0 masked, 0 errors.
> ERROR: No recipes available for:
>    /home/pshah9/poky-danny-8.0/meta-fsl-arm/recipes-core/udev/udev_173.bbappend
> ERROR: Command execution failed: Exited with 1
>
> Summary: There were 2 ERROR messages shown, returning a non-zero exit code*.

What branch of OE-core are you using?

Did you look at the README in meta-fsl-arm?  It has notes on how to handle this error.

>
>
> On 4 December 2012 11:35, Daiane Angolini <daiane.angolini@freescale.com <mailto:daiane.angolini@freescale.com>> wrote:
>
>     On 12/04/2012 04:09 PM, Tejas Shah wrote:
>
>         UBOOT_MACHINE = "omap3_beagle_config"
>         *UBOOT_ENTRYPOINT = "0x70800000"
>         UBOOT_LOADADDRESS = "0x70800000"*
>
>     For sure you need to change the UBOOT_MACHINE.
>
>     Take a look at meta-fsl-arm and if you face any error, please, send the log to mainlist.
>
>
>     Daiane
>
>
>
>
>
> --
> Tejas
>
>
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: iMX53 Query
  2012-12-04 19:56   ` Tejas Shah
  2012-12-04 20:05     ` Gary Thomas
@ 2012-12-04 20:34     ` Otavio Salvador
  2012-12-04 23:25       ` Tejas Shah
  1 sibling, 1 reply; 9+ messages in thread
From: Otavio Salvador @ 2012-12-04 20:34 UTC (permalink / raw)
  To: Tejas Shah; +Cc: meta-freescale@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 1240 bytes --]

On Tue, Dec 4, 2012 at 5:56 PM, Tejas Shah <tpshah1@asu.edu> wrote:

> Hello,
>
> I cloned meta-fsl-arm on my laptop to build images for iMX53 board. So
> first of all, I added this BSP layer to bblayers.conf and I also added
> iMX53 as a machine in layer.conf file to be able to build using bitbake.
>
> The command I used to build using bitbake is the following:
>
> $bitbake -k core-image-minimal
>
> But I end up with this error:
>
> *pshah9@ubuntu:~/poky-danny-8.0/build$ bitbake -k core-image-minimal
> Parsing recipes: 100% |#########################################| Time:
> 00:02:18
> Parsing of 863 .bb files complete (0 cached, 863 parsed). 1175 targets, 58
> skipped, 0 masked, 0 errors.
> ERROR: No recipes available for:
>
> /home/pshah9/poky-danny-8.0/meta-fsl-arm/recipes-core/udev/udev_173.bbappend
> ERROR: Command execution failed: Exited with 1
>
> Summary: There were 2 ERROR messages shown, returning a non-zero exit code
> *.


Please check the README as it does describe how to fix this.

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

[-- Attachment #2: Type: text/html, Size: 1751 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: iMX53 Query
  2012-12-04 20:34     ` Otavio Salvador
@ 2012-12-04 23:25       ` Tejas Shah
  2012-12-05 11:59         ` Otavio Salvador
  0 siblings, 1 reply; 9+ messages in thread
From: Tejas Shah @ 2012-12-04 23:25 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 3638 bytes --]

Hello,

I was able to build the image using bitbake and now here I am trying to run
the image to emulate in qemu using the following command, but I get errors.

*pshah9@ubuntu:~/poky-danny-8.0/build$ runqemu qemuarm
/home/pshah9/poky-danny-8.0/build/tmp/deploy/images/uImage-imx53qsb.bin
/home/pshah9/poky-danny-8.0/build/tmp/deploy/images/core-image-minimal-imx53qsb.ext3

Continuing with the following parameters:
KERNEL:
[/home/pshah9/poky-danny-8.0/build/tmp/deploy/images/uImage-imx53qsb.bin]
ROOTFS:
[/home/pshah9/poky-danny-8.0/build/tmp/deploy/images/core-image-minimal-imx53qsb.ext3]
FSTYPE: [ext3]
Setting up tap interface under sudo
Acquiring lockfile for tap0...
WARNING: distccd not present, no distcc support loaded.
Running qemu-system-arm...
/home/pshah9/poky-danny-8.0/build/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-arm
-kernel
/home/pshah9/poky-danny-8.0/build/tmp/deploy/images/uImage-imx53qsb.bin
-net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no -M
versatilepb -hda
/home/pshah9/poky-danny-8.0/build/tmp/deploy/images/core-image-minimal-imx53qsb.ext3
-no-reboot -show-cursor -usb -usbdevice wacom-tablet -no-reboot -m 128
--append "root=/dev/sda rw console=ttyAMA0,115200 console=tty
ip=192.168.7.2::192.168.7.1:255.255.255.0 mem=128M highres=off "
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
audio: Failed to create voice `lm4549.out'
qemu: fatal: Trying to execute code outside RAM or ROM at 0x70008000

R00=00000000 R01=00000183 R02=00000100 R03=00000000
R04=00000000 R05=00000000 R06=00000000 R07=00000000
R08=00000000 R09=00000000 R10=00000000 R11=00000000
R12=00000000 R13=00000000 R14=00000000 R15=70008000
PSR=400001d3 -Z-- A svc32
/home/pshah9/poky-danny-8.0/scripts/runqemu-internal: line 564: 30324
Aborted                 (core dumped) LD_PRELOAD="$GL_LD_PRELOAD" $QEMUBIN
-kernel $KERNEL $QEMUOPTIONS $SERIALOPTS -no-reboot $SCRIPT_QEMU_OPT
$SCRIPT_QEMU_EXTRA_OPT --append "$KERNCMDLINE $SCRIPT_KERNEL_OPT"
Set 'tap0' nonpersistent
Releasing lockfile of preconfigured tap device 'tap0'*

On 4 December 2012 13:34, Otavio Salvador <otavio@ossystems.com.br> wrote:

>
>
>
> On Tue, Dec 4, 2012 at 5:56 PM, Tejas Shah <tpshah1@asu.edu> wrote:
>
>> Hello,
>>
>> I cloned meta-fsl-arm on my laptop to build images for iMX53 board. So
>> first of all, I added this BSP layer to bblayers.conf and I also added
>> iMX53 as a machine in layer.conf file to be able to build using bitbake.
>>
>> The command I used to build using bitbake is the following:
>>
>> $bitbake -k core-image-minimal
>>
>> But I end up with this error:
>>
>> *pshah9@ubuntu:~/poky-danny-8.0/build$ bitbake -k core-image-minimal
>> Parsing recipes: 100% |#########################################| Time:
>> 00:02:18
>> Parsing of 863 .bb files complete (0 cached, 863 parsed). 1175 targets,
>> 58 skipped, 0 masked, 0 errors.
>> ERROR: No recipes available for:
>>
>> /home/pshah9/poky-danny-8.0/meta-fsl-arm/recipes-core/udev/udev_173.bbappend
>> ERROR: Command execution failed: Exited with 1
>>
>> Summary: There were 2 ERROR messages shown, returning a non-zero exit code
>> *.
>
>
> Please check the README as it does describe how to fix this.
>
> --
> Otavio Salvador                             O.S. Systems
> E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
> Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
>
>


-- 
Tejas

[-- Attachment #2: Type: text/html, Size: 4622 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: iMX53 Query
  2012-12-04 23:25       ` Tejas Shah
@ 2012-12-05 11:59         ` Otavio Salvador
  0 siblings, 0 replies; 9+ messages in thread
From: Otavio Salvador @ 2012-12-05 11:59 UTC (permalink / raw)
  To: Tejas Shah; +Cc: meta-freescale@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 574 bytes --]

On Tue, Dec 4, 2012 at 9:25 PM, Tejas Shah <tpshah1@asu.edu> wrote:

> Hello,
>
> I was able to build the image using bitbake and now here I am trying to
> run the image to emulate in qemu using the following command, but I get
> errors.
>

QEMU doesn't provide support to emulate iMX53 SoC so it won't work. This
image can only be used, for now, in the hardware.

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

[-- Attachment #2: Type: text/html, Size: 1085 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-12-05 11:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-04 18:09 iMX53 Query Tejas Shah
2012-12-04 18:11 ` Chris Larson
2012-12-04 18:21 ` Otavio Salvador
2012-12-04 18:35 ` Daiane Angolini
2012-12-04 19:56   ` Tejas Shah
2012-12-04 20:05     ` Gary Thomas
2012-12-04 20:34     ` Otavio Salvador
2012-12-04 23:25       ` Tejas Shah
2012-12-05 11:59         ` Otavio Salvador

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.