All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-fsl-arm-extra][PATCH v3 0/3] Initial support for Nitrogen6X
@ 2012-12-11 21:50 Otavio Salvador
  2012-12-11 21:50 ` [meta-fsl-arm-extra][PATCH v3 1/3] u-boot-boundary: Add U-Boot recipe for Boundary Devices version Otavio Salvador
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Otavio Salvador @ 2012-12-11 21:50 UTC (permalink / raw)
  To: meta-freescale; +Cc: Otavio Salvador

This patchset adds support for Nitrogen6X using the deployment used by
Boundary Devices. The generated sdcard should just work in the board.

The patches are untested as I don't own a Nitrogen6X and would be good
if someone could test those before we apply them.

Otavio Salvador (3):
  u-boot-boundary: Add U-Boot recipe for Boundary Devices version
  u-boot-script-boundary: Add recipe to deploy the boot scripts
  nitrogen6x: Add machine definition

Changes for v3:

 * add patch from Eric to adapt boot script for Yocto
 * fix task order to ensure mkimage is ran before deploy

Changes for v2:

 * ensure boot scripts are build for rootfs generation
 * properly deploy compiled boot script at deploy dir

 conf/machine/nitrogen6x.conf                     |   28 ++++++++++++++++
 recipes-bsp/u-boot/u-boot-boundary_git.bb        |   16 ++++++++++
 recipes-bsp/u-boot/u-boot-script-boundary_git.bb |   37 ++++++++++++++++++++++
 3 files changed, 81 insertions(+)
 create mode 100644 conf/machine/nitrogen6x.conf
 create mode 100644 recipes-bsp/u-boot/u-boot-boundary_git.bb
 create mode 100644 recipes-bsp/u-boot/u-boot-script-boundary_git.bb

-- 
1.7.10.4



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

* [meta-fsl-arm-extra][PATCH v3 1/3] u-boot-boundary: Add U-Boot recipe for Boundary Devices version
  2012-12-11 21:50 [meta-fsl-arm-extra][PATCH v3 0/3] Initial support for Nitrogen6X Otavio Salvador
@ 2012-12-11 21:50 ` Otavio Salvador
  2012-12-11 21:50 ` [meta-fsl-arm-extra][PATCH v3 2/3] u-boot-script-boundary: Add recipe to deploy the boot scripts Otavio Salvador
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 14+ messages in thread
From: Otavio Salvador @ 2012-12-11 21:50 UTC (permalink / raw)
  To: meta-freescale; +Cc: Otavio Salvador

Change-Id: I6503266d8299aeb82e8e295b2167bb1a65ed076b
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 recipes-bsp/u-boot/u-boot-boundary_git.bb |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 recipes-bsp/u-boot/u-boot-boundary_git.bb

diff --git a/recipes-bsp/u-boot/u-boot-boundary_git.bb b/recipes-bsp/u-boot/u-boot-boundary_git.bb
new file mode 100644
index 0000000..02c8d2b
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot-boundary_git.bb
@@ -0,0 +1,16 @@
+require recipes-bsp/u-boot/u-boot.inc
+
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
+COMPATIBLE_MACHINE = "(imx6qsabrelite|nitrogen6x)"
+
+PROVIDES = "u-boot"
+
+PV = "v2013.01+git${SRCPV}"
+
+SRCREV = "d6b05d35b8b29392e71fdd8fa43d5cb8bd4fe276"
+SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git"
+
+S = "${WORKDIR}/git"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
-- 
1.7.10.4



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

* [meta-fsl-arm-extra][PATCH v3 2/3] u-boot-script-boundary: Add recipe to deploy the boot scripts
  2012-12-11 21:50 [meta-fsl-arm-extra][PATCH v3 0/3] Initial support for Nitrogen6X Otavio Salvador
  2012-12-11 21:50 ` [meta-fsl-arm-extra][PATCH v3 1/3] u-boot-boundary: Add U-Boot recipe for Boundary Devices version Otavio Salvador
@ 2012-12-11 21:50 ` Otavio Salvador
  2012-12-11 21:50 ` [meta-fsl-arm-extra][PATCH v3 3/3] nitrogen6x: Add machine definition Otavio Salvador
  2012-12-11 21:53 ` [meta-fsl-arm-extra][PATCH v3 0/3] Initial support for Nitrogen6X Otavio Salvador
  3 siblings, 0 replies; 14+ messages in thread
From: Otavio Salvador @ 2012-12-11 21:50 UTC (permalink / raw)
  To: meta-freescale; +Cc: Otavio Salvador

The recipe deploys the scripts used by Boundary Devices to detect and
choose video output, load kernel and etc...

Change-Id: Ic4685c60ba1470a1548629e294ea8aa48473cd0e
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 ...-bootscript-modify-for-use-with-the-Yocto.patch |   34 ++++++++++++++
 recipes-bsp/u-boot/u-boot-script-boundary_git.bb   |   47 ++++++++++++++++++++
 2 files changed, 81 insertions(+)
 create mode 100644 recipes-bsp/u-boot/u-boot-script-boundary/nitrogen6x-bootscript-modify-for-use-with-the-Yocto.patch
 create mode 100644 recipes-bsp/u-boot/u-boot-script-boundary_git.bb

diff --git a/recipes-bsp/u-boot/u-boot-script-boundary/nitrogen6x-bootscript-modify-for-use-with-the-Yocto.patch b/recipes-bsp/u-boot/u-boot-script-boundary/nitrogen6x-bootscript-modify-for-use-with-the-Yocto.patch
new file mode 100644
index 0000000..d2fbb87
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot-script-boundary/nitrogen6x-bootscript-modify-for-use-with-the-Yocto.patch
@@ -0,0 +1,34 @@
+From a0739ed017cd097817d227e98848f66c8e5d666e Mon Sep 17 00:00:00 2001
+From: Eric Nelson <eric.nelson@boundarydevices.com>
+Date: Tue, 11 Dec 2012 11:59:47 -0700
+Subject: [PATCH] nitrogen6x bootscript: modify for use with the Yocto Project
+
+Change 6x_bootscript to match the partitioning scheme currently in
+use by meta-fsl-arm:
+
+	- Set root filesystem to partition 2 (/dev/mmcblk0p2)
+	- Load kernel from root of partition 1
+
+Upstream-Status: Inappropriate [configuration]
+
+Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
+---
+ board/boundary/nitrogen6x/6x_bootscript.txt |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/board/boundary/nitrogen6x/6x_bootscript.txt b/board/boundary/nitrogen6x/6x_bootscript.txt
+index fe75976..1d766ca 100644
+--- a/board/boundary/nitrogen6x/6x_bootscript.txt
++++ b/board/boundary/nitrogen6x/6x_bootscript.txt
+@@ -53,6 +53,6 @@ done
+ 
+ setenv bootargs $bootargs $fbmem
+ 
+-setenv bootargs $bootargs console=ttymxc1,115200 vmalloc=400M root=/dev/mmcblk0p1 rootwait consoleblank=0 ;
+-${fs}load mmc ${disk}:1 10800000 /boot/uImage && bootm 10800000 ; echo "Error loading kernel image"
++setenv bootargs $bootargs console=ttymxc1,115200 vmalloc=400M root=/dev/mmcblk0p2 rootwait consoleblank=0 ;
++${fs}load mmc ${disk}:1 10800000 uImage && bootm 10800000 ; echo "Error loading kernel image"
+ 
+-- 
+1.7.10.4
+
diff --git a/recipes-bsp/u-boot/u-boot-script-boundary_git.bb b/recipes-bsp/u-boot/u-boot-script-boundary_git.bb
new file mode 100644
index 0000000..4d5e7db
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot-script-boundary_git.bb
@@ -0,0 +1,47 @@
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
+COMPATIBLE_MACHINE = "(imx6qsabrelite|nitrogen6x)"
+DEPENDS = "u-boot-mkimage-native"
+
+PV = "v2013.01+git${SRCPV}"
+
+SRCREV = "d6b05d35b8b29392e71fdd8fa43d5cb8bd4fe276"
+SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git \
+           file://nitrogen6x-bootscript-modify-for-use-with-the-Yocto.patch"
+
+S = "${WORKDIR}/git"
+
+inherit deploy
+
+do_mkimage () {
+    uboot-mkimage  -A arm -O linux -T script -C none -a 0 -e 0 \
+                   -n "boot script" -d board/boundary/${MACHINE}/6x_bootscript.txt \
+                   board/boundary/${MACHINE}/6x_bootscript
+
+    uboot-mkimage  -A arm -O linux -T script -C none -a 0 -e 0 \
+                   -n "upgrade script" -d board/boundary/${MACHINE}/6x_upgrade.txt \
+                   board/boundary/${MACHINE}/6x_upgrade
+}
+
+addtask mkimage after do_compile before do_install
+
+do_deploy () {
+    install -d ${DEPLOYDIR}
+    install ${S}/board/boundary/${MACHINE}/6x_bootscript \
+            ${DEPLOYDIR}/6x_bootscript-${MACHINE}-${PV}-${PR}
+    install ${S}/board/boundary/${MACHINE}/6x_upgrade \
+            ${DEPLOYDIR}/6x_upgrade-${MACHINE}-${PV}-${PR}
+
+    cd ${DEPLOYDIR}
+    rm -f 6x_bootscript-${MACHINE} 6x_upgrade-${MACHINE}
+    ln -sf 6x_bootscript-${MACHINE}-${PV}-${PR} 6x_bootscript-${MACHINE}
+    ln -sf 6x_upgrade-${MACHINE}-${PV}-${PR} 6x_upgrade-${MACHINE}
+}
+
+addtask deploy after do_install before do_build
+
+do_compile[noexec] = "1"
+do_install[noexec] = "1"
+do_populate_sysroot[noexec] = "1"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
-- 
1.7.10.4



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

* [meta-fsl-arm-extra][PATCH v3 3/3] nitrogen6x: Add machine definition
  2012-12-11 21:50 [meta-fsl-arm-extra][PATCH v3 0/3] Initial support for Nitrogen6X Otavio Salvador
  2012-12-11 21:50 ` [meta-fsl-arm-extra][PATCH v3 1/3] u-boot-boundary: Add U-Boot recipe for Boundary Devices version Otavio Salvador
  2012-12-11 21:50 ` [meta-fsl-arm-extra][PATCH v3 2/3] u-boot-script-boundary: Add recipe to deploy the boot scripts Otavio Salvador
@ 2012-12-11 21:50 ` Otavio Salvador
  2012-12-12 13:28   ` Eric Nelson
  2012-12-12 16:51   ` Eric Nelson
  2012-12-11 21:53 ` [meta-fsl-arm-extra][PATCH v3 0/3] Initial support for Nitrogen6X Otavio Salvador
  3 siblings, 2 replies; 14+ messages in thread
From: Otavio Salvador @ 2012-12-11 21:50 UTC (permalink / raw)
  To: meta-freescale; +Cc: Otavio Salvador

This adds the machine definition to Nitrogen6x from Boundary Devices.
More information at:

http://boundarydevices.com/products/nitrogen6x-board-imx6-arm-cortex-a9-sbc/

In order to take advance of same code used for imx6qsabrelite (on
linux-imx, u-boot, imx-firmaware), we use a MACHINEOVERRIDES trick, so
imx6qsabrelite is taken as a fallback for nitrogen6x machine.

To ensure the boot scripts are available at rootfs time, the do_deploy
task of u-boot-script-boundary is added as a dependency of do_rootfs.

Change-Id: I8bd0b80d2ad8e8741391ec178c10abd75218542e
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 conf/machine/nitrogen6x.conf |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 conf/machine/nitrogen6x.conf

diff --git a/conf/machine/nitrogen6x.conf b/conf/machine/nitrogen6x.conf
new file mode 100644
index 0000000..d668eb2
--- /dev/null
+++ b/conf/machine/nitrogen6x.conf
@@ -0,0 +1,30 @@
+#@TYPE: Machine
+#@NAME: Nitrogen6X
+#@DESCRIPTION: Machine configuration for Boundary Devices Nitrogen6X
+
+# We need to override the default before everything
+MACHINEOVERRIDES = "${MACHINE}:imx6qsabrelite"
+
+include conf/machine/include/imx-base.inc
+include conf/machine/include/tune-cortexa9.inc
+
+SOC_FAMILY = "mx6q:mx6"
+
+PREFERRED_PROVIDER_u-boot = "u-boot-boundary"
+
+# Use SPI NOR U-Boot by default
+IMAGE_BOOTLOADER ?= ""
+
+# Ensure boot scripts will be available at rootfs time
+do_rootfs[depends] += "u-boot-script-boundary:do_deploy"
+
+# Boot scripts to install
+BOOT_SCRIPTS = "6x_bootscript-${MACHINE}:6x_bootscript"
+
+UBOOT_MACHINE = "nitrogen6X_config"
+
+SERIAL_CONSOLE = "115200 ttymxc1"
+
+MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-wl12xx"
+
+MACHINE_FEATURES += " pci wifi bluetooth"
-- 
1.7.10.4



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

* Re: [meta-fsl-arm-extra][PATCH v3 0/3] Initial support for Nitrogen6X
  2012-12-11 21:50 [meta-fsl-arm-extra][PATCH v3 0/3] Initial support for Nitrogen6X Otavio Salvador
                   ` (2 preceding siblings ...)
  2012-12-11 21:50 ` [meta-fsl-arm-extra][PATCH v3 3/3] nitrogen6x: Add machine definition Otavio Salvador
@ 2012-12-11 21:53 ` Otavio Salvador
  2012-12-12 17:30   ` Otavio Salvador
  3 siblings, 1 reply; 14+ messages in thread
From: Otavio Salvador @ 2012-12-11 21:53 UTC (permalink / raw)
  To: meta-freescale@yoctoproject.org; +Cc: Troy Kisky

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

On Tue, Dec 11, 2012 at 7:50 PM, Otavio Salvador <otavio@ossystems.com.br>wrote:

> This patchset adds support for Nitrogen6X using the deployment used by
> Boundary Devices. The generated sdcard should just work in the board.
>
> The patches are untested as I don't own a Nitrogen6X and would be good
> if someone could test those before we apply them.
>
> Otavio Salvador (3):
>   u-boot-boundary: Add U-Boot recipe for Boundary Devices version
>   u-boot-script-boundary: Add recipe to deploy the boot scripts
>   nitrogen6x: Add machine definition
>
> Changes for v3:
>
>  * add patch from Eric to adapt boot script for Yocto
>  * fix task order to ensure mkimage is ran before deploy
>
> Changes for v2:
>
>  * ensure boot scripts are build for rootfs generation
>  * properly deploy compiled boot script at deploy dir
>
>  conf/machine/nitrogen6x.conf                     |   28 ++++++++++++++++
>  recipes-bsp/u-boot/u-boot-boundary_git.bb        |   16 ++++++++++
>  recipes-bsp/u-boot/u-boot-script-boundary_git.bb |   37
> ++++++++++++++++++++++
>  3 files changed, 81 insertions(+)
>  create mode 100644 conf/machine/nitrogen6x.conf
>  create mode 100644 recipes-bsp/u-boot/u-boot-boundary_git.bb
>  create mode 100644 recipes-bsp/u-boot/u-boot-script-boundary_git.bb
>

I think it should work out of box now. Please people give it a try :-)

You should reapply all meta-fsl-arm-extra patches for those included in v3
otherwise things may break.

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: 2677 bytes --]

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

* Re: [meta-fsl-arm-extra][PATCH v3 3/3] nitrogen6x: Add machine definition
  2012-12-11 21:50 ` [meta-fsl-arm-extra][PATCH v3 3/3] nitrogen6x: Add machine definition Otavio Salvador
@ 2012-12-12 13:28   ` Eric Nelson
  2012-12-12 15:49     ` Otavio Salvador
  2012-12-12 16:51   ` Eric Nelson
  1 sibling, 1 reply; 14+ messages in thread
From: Eric Nelson @ 2012-12-12 13:28 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: meta-freescale

Hi Otavio,

On 12/11/2012 02:50 PM, Otavio Salvador wrote:
>
 > <snip>
>
> diff --git a/conf/machine/nitrogen6x.conf b/conf/machine/nitrogen6x.conf
> new file mode 100644
> index 0000000..d668eb2
> --- /dev/null
> +++ b/conf/machine/nitrogen6x.conf
> @@ -0,0 +1,30 @@
 > ...
> +
> +# Use SPI NOR U-Boot by default
> +IMAGE_BOOTLOADER ?= ""
> +

This causes the build to fail in do_rootfs()

	| Number  Start   End     Size    Type     File system  Flags
	|  1      4194kB  12.6MB  8389kB  primary
	|  2      12.6MB  386MB   373MB   primary
	|
	| ERROR: Unkown IMAGE_BOOTLOADER value
	| ERROR: Function failed: do_rootfs (see 
/home/ericn/yocto/build/tmp/work/nitrogen6x-poky-linux-gnueabi/fsl-image-test-1.0-r0/temp/log.do_rootfs.5408 
for further information)

Either removing this line or setting it to "u-boot" allows the
build to complete.

Regards,


Eric


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

* Re: [meta-fsl-arm-extra][PATCH v3 3/3] nitrogen6x: Add machine definition
  2012-12-12 13:28   ` Eric Nelson
@ 2012-12-12 15:49     ` Otavio Salvador
  2012-12-12 16:13       ` Eric Nelson
  0 siblings, 1 reply; 14+ messages in thread
From: Otavio Salvador @ 2012-12-12 15:49 UTC (permalink / raw)
  To: Eric Nelson; +Cc: meta-freescale@yoctoproject.org

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

On Wed, Dec 12, 2012 at 11:28 AM, Eric Nelson <
eric.nelson@boundarydevices.com> wrote:

> Hi Otavio,
>
> On 12/11/2012 02:50 PM, Otavio Salvador wrote:
>
>>
>>  > <snip>
>
>
>> diff --git a/conf/machine/nitrogen6x.conf b/conf/machine/nitrogen6x.conf
>> new file mode 100644
>> index 0000000..d668eb2
>> --- /dev/null
>> +++ b/conf/machine/nitrogen6x.conf
>> @@ -0,0 +1,30 @@
>>
> > ...
>
>  +
>> +# Use SPI NOR U-Boot by default
>> +IMAGE_BOOTLOADER ?= ""
>> +
>>
>
> This causes the build to fail in do_rootfs()
>
>         | Number  Start   End     Size    Type     File system  Flags
>         |  1      4194kB  12.6MB  8389kB  primary
>         |  2      12.6MB  386MB   373MB   primary
>         |
>         | ERROR: Unkown IMAGE_BOOTLOADER value
>         | ERROR: Function failed: do_rootfs (see
> /home/ericn/yocto/build/tmp/**work/nitrogen6x-poky-linux-**
> gnueabi/fsl-image-test-1.0-r0/**temp/log.do_rootfs.5408 for further
> information)
>
> Either removing this line or setting it to "u-boot" allows the
> build to complete.
>

You forgot to add the patches for meta-fsl-arm ;-)

-- 
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: 2321 bytes --]

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

* Re: [meta-fsl-arm-extra][PATCH v3 3/3] nitrogen6x: Add machine definition
  2012-12-12 15:49     ` Otavio Salvador
@ 2012-12-12 16:13       ` Eric Nelson
  2012-12-12 16:23         ` Otavio Salvador
  0 siblings, 1 reply; 14+ messages in thread
From: Eric Nelson @ 2012-12-12 16:13 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: meta-freescale@yoctoproject.org

On 12/12/2012 08:49 AM, Otavio Salvador wrote:
> On Wed, Dec 12, 2012 at 11:28 AM, Eric Nelson <
> eric.nelson@boundarydevices.com> wrote:
>
>> Hi Otavio,
>>
>> On 12/11/2012 02:50 PM, Otavio Salvador wrote:
>>
>>>
>>>   > <snip>
>>
>>
>>> diff --git a/conf/machine/nitrogen6x.conf b/conf/machine/nitrogen6x.conf
>>> new file mode 100644
>>> index 0000000..d668eb2
>>> --- /dev/null
>>> +++ b/conf/machine/nitrogen6x.conf
>>> @@ -0,0 +1,30 @@
>>>
>>> ...
>>
>>   +
>>> +# Use SPI NOR U-Boot by default
>>> +IMAGE_BOOTLOADER ?= ""
>>> +
>>>
>>
>> This causes the build to fail in do_rootfs()
>>
>>          | Number  Start   End     Size    Type     File system  Flags
>>          |  1      4194kB  12.6MB  8389kB  primary
>>          |  2      12.6MB  386MB   373MB   primary
>>          |
>>          | ERROR: Unkown IMAGE_BOOTLOADER value
>>          | ERROR: Function failed: do_rootfs (see
>> /home/ericn/yocto/build/tmp/**work/nitrogen6x-poky-linux-**
>> gnueabi/fsl-image-test-1.0-r0/**temp/log.do_rootfs.5408 for further
>> information)
>>
>> Either removing this line or setting it to "u-boot" allows the
>> build to complete.
>>
>
> You forgot to add the patches for meta-fsl-arm ;-)
>

Thanks Otavio.

That did the trick.


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

* Re: [meta-fsl-arm-extra][PATCH v3 3/3] nitrogen6x: Add machine definition
  2012-12-12 16:13       ` Eric Nelson
@ 2012-12-12 16:23         ` Otavio Salvador
  2012-12-12 17:20           ` Eric Nelson
  0 siblings, 1 reply; 14+ messages in thread
From: Otavio Salvador @ 2012-12-12 16:23 UTC (permalink / raw)
  To: Eric Nelson; +Cc: meta-freescale@yoctoproject.org

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

On Wed, Dec 12, 2012 at 2:13 PM, Eric Nelson <
eric.nelson@boundarydevices.com> wrote:

> On 12/12/2012 08:49 AM, Otavio Salvador wrote:
>
>> On Wed, Dec 12, 2012 at 11:28 AM, Eric Nelson <
>> eric.nelson@boundarydevices.**com <eric.nelson@boundarydevices.com>>
>> wrote:
>>
>>  Hi Otavio,
>>>
>>> On 12/11/2012 02:50 PM, Otavio Salvador wrote:
>>>
>>>
>>>>   > <snip>
>>>>
>>>
>>>
>>>  diff --git a/conf/machine/nitrogen6x.conf b/conf/machine/nitrogen6x.conf
>>>> new file mode 100644
>>>> index 0000000..d668eb2
>>>> --- /dev/null
>>>> +++ b/conf/machine/nitrogen6x.conf
>>>> @@ -0,0 +1,30 @@
>>>>
>>>> ...
>>>>
>>>
>>>   +
>>>
>>>> +# Use SPI NOR U-Boot by default
>>>> +IMAGE_BOOTLOADER ?= ""
>>>> +
>>>>
>>>>
>>> This causes the build to fail in do_rootfs()
>>>
>>>          | Number  Start   End     Size    Type     File system  Flags
>>>          |  1      4194kB  12.6MB  8389kB  primary
>>>          |  2      12.6MB  386MB   373MB   primary
>>>          |
>>>          | ERROR: Unkown IMAGE_BOOTLOADER value
>>>          | ERROR: Function failed: do_rootfs (see
>>> /home/ericn/yocto/build/tmp/****work/nitrogen6x-poky-linux-**
>>> gnueabi/fsl-image-test-1.0-r0/****temp/log.do_rootfs.5408 for further
>>>
>>> information)
>>>
>>> Either removing this line or setting it to "u-boot" allows the
>>> build to complete.
>>>
>>>
>> You forgot to add the patches for meta-fsl-arm ;-)
>>
>>
> Thanks Otavio.
>
> That did the trick.
>

Can you give it a general test and send us the feedback? Has it worked out
of box? I'd like to merge those patches.

-- 
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: 3105 bytes --]

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

* Re: [meta-fsl-arm-extra][PATCH v3 3/3] nitrogen6x: Add machine definition
  2012-12-11 21:50 ` [meta-fsl-arm-extra][PATCH v3 3/3] nitrogen6x: Add machine definition Otavio Salvador
  2012-12-12 13:28   ` Eric Nelson
@ 2012-12-12 16:51   ` Eric Nelson
  2012-12-12 16:56     ` Otavio Salvador
  1 sibling, 1 reply; 14+ messages in thread
From: Eric Nelson @ 2012-12-12 16:51 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: meta-freescale

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

Hi Otavio,

On 12/11/2012 02:50 PM, Otavio Salvador wrote:
> This adds the machine definition to Nitrogen6x from Boundary Devices.
> More information at:
>
> http://boundarydevices.com/products/nitrogen6x-board-imx6-arm-cortex-a9-sbc/
>
>  <snip>
>
> diff --git a/conf/machine/nitrogen6x.conf b/conf/machine/nitrogen6x.conf
> new file mode 100644
> index 0000000..d668eb2
> --- /dev/null
> +++ b/conf/machine/nitrogen6x.conf
> @@ -0,0 +1,30 @@
 >
 > <snip>
 >
> +
> +# Boot scripts to install
> +BOOT_SCRIPTS = "6x_bootscript-${MACHINE}:6x_bootscript"

Was the omission of 6x_upgrade intentional?

I tested with the attached patch and got both installed properly
on the SD card.

Otherwise:

Tested-by: Eric Nelson <eric.nelson@boundarydevices.com>


[-- Attachment #2: 0001-nitrogen6x-add-6x_upgrade-script.patch --]
[-- Type: text/x-patch, Size: 894 bytes --]

From d06b03a4a227db6d80c65187c837ccdbe7f71cb8 Mon Sep 17 00:00:00 2001
From: Eric Nelson <eric.nelson@boundarydevices.com>
Date: Wed, 12 Dec 2012 09:43:43 -0700
Subject: [PATCH] nitrogen6x: add 6x_upgrade script

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
---
 conf/machine/nitrogen6x.conf |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/conf/machine/nitrogen6x.conf b/conf/machine/nitrogen6x.conf
index d668eb2..f118bba 100644
--- a/conf/machine/nitrogen6x.conf
+++ b/conf/machine/nitrogen6x.conf
@@ -19,7 +19,7 @@ IMAGE_BOOTLOADER ?= ""
 do_rootfs[depends] += "u-boot-script-boundary:do_deploy"
 
 # Boot scripts to install
-BOOT_SCRIPTS = "6x_bootscript-${MACHINE}:6x_bootscript"
+BOOT_SCRIPTS = "6x_bootscript-${MACHINE}:6x_bootscript 6x_upgrade-${MACHINE}:6x_upgrade"
 
 UBOOT_MACHINE = "nitrogen6X_config"
 
-- 
1.7.9.5


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

* Re: [meta-fsl-arm-extra][PATCH v3 3/3] nitrogen6x: Add machine definition
  2012-12-12 16:51   ` Eric Nelson
@ 2012-12-12 16:56     ` Otavio Salvador
  0 siblings, 0 replies; 14+ messages in thread
From: Otavio Salvador @ 2012-12-12 16:56 UTC (permalink / raw)
  To: Eric Nelson; +Cc: meta-freescale@yoctoproject.org

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

On Wed, Dec 12, 2012 at 2:51 PM, Eric Nelson <
eric.nelson@boundarydevices.com> wrote:

> Hi Otavio,
>
> On 12/11/2012 02:50 PM, Otavio Salvador wrote:
>
>> This adds the machine definition to Nitrogen6x from Boundary Devices.
>> More information at:
>>
>> http://boundarydevices.com/**products/nitrogen6x-board-**
>> imx6-arm-cortex-a9-sbc/<http://boundarydevices.com/products/nitrogen6x-board-imx6-arm-cortex-a9-sbc/>
>>
>>  <snip>
>>
>>
>> diff --git a/conf/machine/nitrogen6x.conf b/conf/machine/nitrogen6x.conf
>> new file mode 100644
>> index 0000000..d668eb2
>> --- /dev/null
>> +++ b/conf/machine/nitrogen6x.conf
>> @@ -0,0 +1,30 @@
>>
> >
> > <snip>
>
> >
>
>> +
>> +# Boot scripts to install
>> +BOOT_SCRIPTS = "6x_bootscript-${MACHINE}:6x_**bootscript"
>>
>
> Was the omission of 6x_upgrade intentional?
>
> I tested with the attached patch and got both installed properly
> on the SD card.
>
> Otherwise:
>
> Tested-by: Eric Nelson <eric.nelson@boundarydevices.**com<eric.nelson@boundarydevices.com>
> >
>
>
Good; I did not include the upgrade script as it won't be used by regular
user so we don't confuse them.

I will apply the commits then.

Thanks by testing it.

-- 
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: 2552 bytes --]

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

* Re: [meta-fsl-arm-extra][PATCH v3 3/3] nitrogen6x: Add machine definition
  2012-12-12 16:23         ` Otavio Salvador
@ 2012-12-12 17:20           ` Eric Nelson
  2012-12-12 17:26             ` Otavio Salvador
  0 siblings, 1 reply; 14+ messages in thread
From: Eric Nelson @ 2012-12-12 17:20 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: meta-freescale@yoctoproject.org

On 12/12/2012 09:23 AM, Otavio Salvador wrote:
> On Wed, Dec 12, 2012 at 2:13 PM, Eric Nelson <
> eric.nelson@boundarydevices.com> wrote:
>>>>
>>>> information)
>>>>
>>>> Either removing this line or setting it to "u-boot" allows the
>>>> build to complete.
>>>>
>>>>
>>> You forgot to add the patches for meta-fsl-arm ;-)
>>>
>>>
>> Thanks Otavio.
>>
>> That did the trick.
>>
>
> Can you give it a general test and send us the feedback? Has it worked out
> of box? I'd like to merge those patches.
>

Hi Otavio,

While still puzzled about how the parts fit together here, I
can confirm that builds of core-image-minimal and fsl-image-test
both produce bootable and very functional SD cards for the Nitrogen6X.

The kernel image provided is detecting the board as a Nitrogen6X:

	root@nitrogen6x:/unit_tests# dmesg | grep Nitrogen
	------------ Board type Nitrogen6X/W

I've tested audio output through the SGTL5000:
	root@nitrogen6x:/unit_tests# gplay audio8k16S.wav
	playbin2 is employed!
	fsl_player_init(): Successfully initialize!
	...

The Wi-Fi adapter is also properly loading firmware:
	root@nitrogen6x:/unit_tests# ifconfig wlan0
	wlan0     Link encap:Ethernet  HWaddr DE:AD:BE:EF:00:00
	          UP BROADCAST MULTICAST  MTU:1500  Metric:1
	          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
	          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
	          collisions:0 txqueuelen:1000
	          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

The bad mac address is expected because the firmware file hasn't
been programmed for this device.

The wlan0 device is operating properly as shown by iwlist:

	root@nitrogen6x:/unit_tests# iwlist wlan0 scan | grep SSID
	                    ESSID:"golfcourse"
	                    ESSID:"ADVANCEDMFG"
	                    ESSID:"TealBear"

I think that this proves out the basic functionality of your patch set.

Many thanks!


Eric


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

* Re: [meta-fsl-arm-extra][PATCH v3 3/3] nitrogen6x: Add machine definition
  2012-12-12 17:20           ` Eric Nelson
@ 2012-12-12 17:26             ` Otavio Salvador
  0 siblings, 0 replies; 14+ messages in thread
From: Otavio Salvador @ 2012-12-12 17:26 UTC (permalink / raw)
  To: Eric Nelson; +Cc: meta-freescale@yoctoproject.org

On Wed, Dec 12, 2012 at 3:20 PM, Eric Nelson
<eric.nelson@boundarydevices.com> wrote:
>
> On 12/12/2012 09:23 AM, Otavio Salvador wrote:
>>
>> On Wed, Dec 12, 2012 at 2:13 PM, Eric Nelson <
>> eric.nelson@boundarydevices.com> wrote:
>>>>>
>>>>>
>>>>> information)
>>>>>
>>>>> Either removing this line or setting it to "u-boot" allows the
>>>>> build to complete.
>>>>>
>>>>>
>>>> You forgot to add the patches for meta-fsl-arm ;-)
>>>>
>>>>
>>> Thanks Otavio.
>>>
>>> That did the trick.
>>>
>>
>> Can you give it a general test and send us the feedback? Has it worked out
>> of box? I'd like to merge those patches.
>>
>
> Hi Otavio,
>
> While still puzzled about how the parts fit together here, I
> can confirm that builds of core-image-minimal and fsl-image-test
> both produce bootable and very functional SD cards for the Nitrogen6X.
>
> The kernel image provided is detecting the board as a Nitrogen6X:
>
>         root@nitrogen6x:/unit_tests# dmesg | grep Nitrogen
>         ------------ Board type Nitrogen6X/W
>
> I've tested audio output through the SGTL5000:
>         root@nitrogen6x:/unit_tests# gplay audio8k16S.wav
>         playbin2 is employed!
>         fsl_player_init(): Successfully initialize!
>         ...
>
> The Wi-Fi adapter is also properly loading firmware:
>         root@nitrogen6x:/unit_tests# ifconfig wlan0
>         wlan0     Link encap:Ethernet  HWaddr DE:AD:BE:EF:00:00
>                   UP BROADCAST MULTICAST  MTU:1500  Metric:1
>                   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>                   TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>                   collisions:0 txqueuelen:1000
>                   RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>
> The bad mac address is expected because the firmware file hasn't
> been programmed for this device.
>
> The wlan0 device is operating properly as shown by iwlist:
>
>         root@nitrogen6x:/unit_tests# iwlist wlan0 scan | grep SSID
>                             ESSID:"golfcourse"
>                             ESSID:"ADVANCEDMFG"
>                             ESSID:"TealBear"
>
> I think that this proves out the basic functionality of your patch set.
>
> Many thanks!

Good :-)

I am happy to see everything (basic) is working fine.

Please ask if you're in doubt about any specific thing. I can try to
help or give you pointers to look at...

--
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


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

* Re: [meta-fsl-arm-extra][PATCH v3 0/3] Initial support for Nitrogen6X
  2012-12-11 21:53 ` [meta-fsl-arm-extra][PATCH v3 0/3] Initial support for Nitrogen6X Otavio Salvador
@ 2012-12-12 17:30   ` Otavio Salvador
  0 siblings, 0 replies; 14+ messages in thread
From: Otavio Salvador @ 2012-12-12 17:30 UTC (permalink / raw)
  To: meta-freescale@yoctoproject.org; +Cc: Troy Kisky

On Tue, Dec 11, 2012 at 7:53 PM, Otavio Salvador
<otavio@ossystems.com.br> wrote:
>
>
>
> On Tue, Dec 11, 2012 at 7:50 PM, Otavio Salvador <otavio@ossystems.com.br>
> wrote:
>>
>> This patchset adds support for Nitrogen6X using the deployment used by
>> Boundary Devices. The generated sdcard should just work in the board.
>>
>> The patches are untested as I don't own a Nitrogen6X and would be good
>> if someone could test those before we apply them.
>>
>> Otavio Salvador (3):
>>   u-boot-boundary: Add U-Boot recipe for Boundary Devices version
>>   u-boot-script-boundary: Add recipe to deploy the boot scripts
>>   nitrogen6x: Add machine definition
>>
>> Changes for v3:
>>
>>  * add patch from Eric to adapt boot script for Yocto
>>  * fix task order to ensure mkimage is ran before deploy
>>
>> Changes for v2:
>>
>>  * ensure boot scripts are build for rootfs generation
>>  * properly deploy compiled boot script at deploy dir
>>
>>  conf/machine/nitrogen6x.conf                     |   28 ++++++++++++++++
>>  recipes-bsp/u-boot/u-boot-boundary_git.bb        |   16 ++++++++++
>>  recipes-bsp/u-boot/u-boot-script-boundary_git.bb |   37
>> ++++++++++++++++++++++
>>  3 files changed, 81 insertions(+)
>>  create mode 100644 conf/machine/nitrogen6x.conf
>>  create mode 100644 recipes-bsp/u-boot/u-boot-boundary_git.bb
>>  create mode 100644 recipes-bsp/u-boot/u-boot-script-boundary_git.bb
>
>
> I think it should work out of box now. Please people give it a try :-)
>
> You should reapply all meta-fsl-arm-extra patches for those included in v3
> otherwise things may break.
>
> Regards,

Merged to master.

--
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


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

end of thread, other threads:[~2012-12-12 17:30 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-11 21:50 [meta-fsl-arm-extra][PATCH v3 0/3] Initial support for Nitrogen6X Otavio Salvador
2012-12-11 21:50 ` [meta-fsl-arm-extra][PATCH v3 1/3] u-boot-boundary: Add U-Boot recipe for Boundary Devices version Otavio Salvador
2012-12-11 21:50 ` [meta-fsl-arm-extra][PATCH v3 2/3] u-boot-script-boundary: Add recipe to deploy the boot scripts Otavio Salvador
2012-12-11 21:50 ` [meta-fsl-arm-extra][PATCH v3 3/3] nitrogen6x: Add machine definition Otavio Salvador
2012-12-12 13:28   ` Eric Nelson
2012-12-12 15:49     ` Otavio Salvador
2012-12-12 16:13       ` Eric Nelson
2012-12-12 16:23         ` Otavio Salvador
2012-12-12 17:20           ` Eric Nelson
2012-12-12 17:26             ` Otavio Salvador
2012-12-12 16:51   ` Eric Nelson
2012-12-12 16:56     ` Otavio Salvador
2012-12-11 21:53 ` [meta-fsl-arm-extra][PATCH v3 0/3] Initial support for Nitrogen6X Otavio Salvador
2012-12-12 17:30   ` 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.