Skip to contentSkip to conversation

i.MX6 and Nitrogen6x updates

PATCH New Eric Nelson 4 participants 17 messages Sep 25, 2013 – Oct 1, 2013 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

cover i.MX6 and Nitrogen6x updates

This patch series updates U-Boot and the Linux kernel for the Boundary Devices Nitrogen6x board to the latest production-ready releases and also updates Freescale-provided packages to the matching versions to maintain ABI compatibility.

Eric Nelson (4):
nitrogen6x: bump U-Boot to latest production version (2013.07)
nitrogen6x: use 6x_bootscript/6x_upgrade instead of older 6q_ versions
nitrogen6x: bump kernel to latest version (3.0.35-4.1.0) i.MX6: Update Freescale hardware-acceleration bits to latest versions

 board/boundarydevices/nitrogen6x/6q_bootscript     | Bin 455 -> 0 bytes
 board/boundarydevices/nitrogen6x/6q_upgrade        | Bin 1587 -> 0 bytes
 board/boundarydevices/nitrogen6x/6x_bootscript     | Bin 0 -> 1653 bytes
 board/boundarydevices/nitrogen6x/6x_upgrade        | Bin 0 -> 1744 bytes
 board/boundarydevices/nitrogen6x/post-build.sh     |  14 +++++++------
 configs/nitrogen6x_defconfig                       |   4 ++--
 package/freescale-imx/freescale-imx.mk             |   4 ++--
 .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk           |   8 +++++---
 package/freescale-imx/imx-lib/imx-lib.mk           |  11 ++++++++++-
 .../gstreamer/gst-fsl-plugins/gst-fsl-plugins.mk   |   4 ++--
 package/libfslcodec/libfslcodec.mk                 |   4 ++--
 package/libfslparser/libfslparser.mk               |   8 +++++---
 package/libfslvpuwrap/libfslvpuwrap.mk             |  22 +++++++++++++++++++--
 13 files changed, 56 insertions(+), 23 deletions(-)
 delete mode 100644 board/boundarydevices/nitrogen6x/6q_bootscript
 delete mode 100644 board/boundarydevices/nitrogen6x/6q_upgrade
 create mode 100644 board/boundarydevices/nitrogen6x/6x_bootscript
 create mode 100644 board/boundarydevices/nitrogen6x/6x_upgrade
Signature · 1 line
1.8.1.2
#1 lore raw

PATCH 1/4 nitrogen6x: bump U-Boot to latest production version (2013.07)

---
 configs/nitrogen6x_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/nitrogen6x_defconfig +1 -1
index cdd8000..4c4bd1b 100644
@@ -15,7 +15,7 @@ BR2_TARGET_ROOTFS_EXT2_2r1=y
 BR2_TARGET_UBOOT=y
 BR2_TARGET_UBOOT_BOARDNAME="nitrogen6q"
 BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
-BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="http://github.com/boundarydevices/u-boot-imx6/tarball/7176d07/u-boot-7176d07.tar.gz"
+BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="http://github.com/boundarydevices/u-boot-imx6/tarball/4034391/u-boot-4034391.tar.gz"
 
 # kernel
 BR2_LINUX_KERNEL=y
Signature · 1 line
1.8.1.2
#2 lore raw

PATCH 1/4 nitrogen6x: bump U-Boot to latest production version (2013.07)

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Eric" == Eric Nelson <[email protected]> writes:

Eric> Signed-off-by: Eric Nelson <[email protected]>

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 2/4 nitrogen6x: use 6x_bootscript/6x_upgrade instead of older 6q_ versions

In reply to Eric Nelson
---
 board/boundarydevices/nitrogen6x/6q_bootscript | Bin 455 -> 0 bytes
 board/boundarydevices/nitrogen6x/6q_upgrade    | Bin 1587 -> 0 bytes
 board/boundarydevices/nitrogen6x/6x_bootscript | Bin 0 -> 1653 bytes
 board/boundarydevices/nitrogen6x/6x_upgrade    | Bin 0 -> 1744 bytes
 board/boundarydevices/nitrogen6x/post-build.sh |  14 ++++++++------
 5 files changed, 8 insertions(+), 6 deletions(-)
 delete mode 100644 board/boundarydevices/nitrogen6x/6q_bootscript
 delete mode 100644 board/boundarydevices/nitrogen6x/6q_upgrade
 create mode 100644 board/boundarydevices/nitrogen6x/6x_bootscript
 create mode 100644 board/boundarydevices/nitrogen6x/6x_upgrade
board/boundarydevices/nitrogen6x/6q_bootscript deleted binary +0 -0
deleted file mode 100644
index e10cfeb0b742f401e36f0f242ca72e45fab26944..0000000000000000000000000000000000000000
GIT binary patch
board/boundarydevices/nitrogen6x/6q_upgrade deleted binary +0 -0
deleted file mode 100644
index 2f20efa2e85c761b09da7ae5a935589280dae5eb..0000000000000000000000000000000000000000
GIT binary patch
board/boundarydevices/nitrogen6x/6x_bootscript new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..dc9eea481c03145d16959e5ebcc47120ff3cc2c3
GIT binary patch

zf+HWq5AYGJ9Xn}4p+dR9Ue at -^zMc0x^IjZ2zy0##+xXE<@ZLTdD5uXv#<8S;X$+E zOQ|3WQkJMXw6izc#fJ<PiWwB?G#zJvg8Cfq?kQ7uu?*3ZQDjs}0&^8e0c2npEP_cG zvk(;wKuu5>tz9T<4LZ|#(u?yT@~uUMvOEoO<o#W<Mv7Z+9jhmJz}%SySY4byKB72 zk1+<b+&s5GG6$<ro}^G$WYrI^z%h_#XtXexNHE*w0wLl3#pnuRDVUO}hKQKv;0B<J z0JmUMyd<gg5lBwDdy(RyZ(m=WwLe}CD>}Vi&uHmO6lMxcVnQ1~L0xpMUoGGkVTY82 zSDdyptVNl*v~Zr(uB(JU&_>Ma%-q5ki(FoX%@)wiP+<@2!YK+-}|@5C8JND@$GM zpH=DZsY(#q=hwqw@*j&?$XF@@}8(C~kxx_4H6eXRRh;JUAM$Aoe{#%nWp$-WY zz!M{<DnF2)W-A(wpGr?FA3)6cI{-D<mf3i*UseFj&tG?0<)NME(5QtI~A%NpHngQ z2&CF23uiP-|67sHsG=r#U|Ne%%@bUjznzo^mlsH0N1IP43#p at zRIXKdsQCz^&5<| zd_E;fc}~y0HiB%)B@Lmjp?F}~bb0E4L-dc+3pxd6=krxe#|TG9rRB$)u&$tV%(rPO TQz+1w7{e4(fgD(I$TWTea_I@(

literal 0
HcmV?d00001

board/boundarydevices/nitrogen6x/6x_upgrade new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..cd26b616b0024424764e95f4d54d917c626d36d4
GIT binary patch

ztnxV1(IQ- at A_Zk|Gkyn?_g5ulO6+)3q5ihlr?Sz4c2>ty@!2e$@ELvVVrcQRPdsh zRhZ({>(ecc)7Wt<GZfaSG?zj{9GGx^BstAmYRoEUZ;R#7tS)dwMu3xU|54;lU)2* zNeYUA3%I0K3#DNCL_#DL2p2ej=g@~98P8;$mQ++q&=!Tyh0<c9mxzglsl#AWpw}wB zL=|XiwiDv0Yit05PljBkP7Yo66EGV|hY1r6MpB>Q8ij$W;^Bhusua{Nwixk)G#kYY z(Uh*&bW9bL4CT at 8G~~avVP4Ds(2hCOW=^NJ(ws-_#JZr6CJh;3-EYy#eC+%7j$l&j za=4=_o at n1Z%(dmjj*ql*JPZt-2Xa?Qb;5j8}Yg(dXUXgjVv&|QpZjLvI$0@%>?u z%ezl=_ at s{TkjIgv-vT?GQMs{L%UWO!&V=;D){s{I*Vf#OZXE*)H!|=AQC6m?1=R NB^XeVE3=uX{{YL7tK|Ry

literal 0
HcmV?d00001

board/boundarydevices/nitrogen6x/post-build.sh +8 -6
index 2f3c464..1dc5643 100755
@@ -1,18 +1,20 @@
 #!/bin/sh
 # post-build fixups
-# for furthe details, see
-# http://boundarydevices.com/u-boot-conventions-for-i-mx6-nitrogen6x-and-sabrelite/
+# for further details, see
+#
+#  http://boundarydevices.com/u-boot-on-i-mx6/
+#
 
 TARGET_DIR=$1
 IMAGES_DIR=$1/../images
 BOARD_DIR="$(dirname $0)"
 
 # bd u-boot looks for bootscript here
-cp $BOARD_DIR/6q_bootscript $TARGET_DIR
+cp $BOARD_DIR/6x_bootscript $TARGET_DIR
 
 # u-boot / update script for bd upgradeu command
-if [ -e $IMAGES_DIR/u-boot.bin ];
+if [ -e $IMAGES_DIR/u-boot.imx ];
 then
-    cp $IMAGES_DIR/u-boot.bin $TARGET_DIR
-    cp $BOARD_DIR/6q_upgrade $TARGET_DIR
+    cp $IMAGES_DIR/u-boot.imx $TARGET_DIR
+    cp $BOARD_DIR/6x_upgrade $TARGET_DIR
 fi
Signature · 1 line
1.8.1.2
#4 lore raw

PATCH 2/4 nitrogen6x: use 6x_bootscript/6x_upgrade instead of older 6q_ versions

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Eric" == Eric Nelson <[email protected]> writes:

Hi Eric,

Eric> Signed-off-by: Eric Nelson <[email protected]>

Eric> +++ b/board/boundarydevices/nitrogen6x/post-build.sh
Eric> @@ -1,18 +1,20 @@
Eric> #!/bin/sh
Eric> # post-build fixups
Eric> -# for furthe details, see
Eric> -# http://boundarydevices.com/u-boot-conventions-for-i-mx6-nitrogen6x-and-sabrelite/
Eric> +# for further details, see
Eric> +#
Eric> +# http://boundarydevices.com/u-boot-on-i-mx6/
Eric> +#

 Eric>  TARGET_DIR=$1
 Eric>  IMAGES_DIR=$1/../images
 Eric>  BOARD_DIR="$(dirname $0)"

Eric> # bd u-boot looks for bootscript here
Eric> -cp $BOARD_DIR/6q_bootscript $TARGET_DIR
Eric> +cp $BOARD_DIR/6x_bootscript $TARGET_DIR

Eric> # u-boot / update script for bd upgradeu command Eric> -if [ -e $IMAGES_DIR/u-boot.bin ];
Eric> +if [ -e $IMAGES_DIR/u-boot.imx ];
Eric> then

 Eric> -    cp $IMAGES_DIR/u-boot.bin $TARGET_DIR
 Eric> -    cp $BOARD_DIR/6q_upgrade $TARGET_DIR
 Eric> +    cp $IMAGES_DIR/u-boot.imx $TARGET_DIR
 Eric> +    cp $BOARD_DIR/6x_upgrade $TARGET_DIR

Hmm, how is that supposed to work? I don't know the details of the imx6 boot sequence, but:

- We don't currently have an option in the u-boot package to install u-boot.imx to IMAGES_DIR/, so this will never run

- Comparing 6q_upgrade and 6x_upgrade I see we used to write the raw u-boot.bin to offset 0 in the spi flash, and now are writing u-boot.imx (which presumably is u-boot.bin with a freescale header) to offset 1K. I see that the .imx file is 4K bigger than the .bin file, so that's presumably the size of the freescale header.

I'll go and add a option for u-boot.imx to the u-boot package, but would like to hear if 6x_upgrade is doing the right thing here.

Signature · 1 line
Bye, Peter Korsgaard
#5 lore raw

PATCH 2/4 nitrogen6x: use 6x_bootscript/6x_upgrade instead of older 6q_ versions

Hi Peter,

Quoted 37 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Eric" == Eric Nelson <[email protected]> writes:

Hi Eric,

Eric> Signed-off-by: Eric Nelson <[email protected]>

Eric> +++ b/board/boundarydevices/nitrogen6x/post-build.sh
Eric> @@ -1,18 +1,20 @@
Eric> #!/bin/sh
Eric> # post-build fixups
Eric> -# for furthe details, see
Eric> -# http://boundarydevices.com/u-boot-conventions-for-i-mx6-nitrogen6x-and-sabrelite/
Eric> +# for further details, see
Eric> +#
Eric> +# http://boundarydevices.com/u-boot-on-i-mx6/
Eric> +#

  Eric>  TARGET_DIR=$1
  Eric>  IMAGES_DIR=$1/../images
  Eric>  BOARD_DIR="$(dirname $0)"

Eric> # bd u-boot looks for bootscript here
Eric> -cp $BOARD_DIR/6q_bootscript $TARGET_DIR
Eric> +cp $BOARD_DIR/6x_bootscript $TARGET_DIR

  Eric>  # u-boot / update script for bd upgradeu command
  Eric> -if [ -e $IMAGES_DIR/u-boot.bin ];
  Eric> +if [ -e $IMAGES_DIR/u-boot.imx ];
  Eric>  then
  Eric> -    cp $IMAGES_DIR/u-boot.bin $TARGET_DIR
  Eric> -    cp $BOARD_DIR/6q_upgrade $TARGET_DIR
  Eric> +    cp $IMAGES_DIR/u-boot.imx $TARGET_DIR
  Eric> +    cp $BOARD_DIR/6x_upgrade $TARGET_DIR

Hmm, how is that supposed to work? I don't know the details of the imx6 boot sequence, but:

Quoted 9 lines

- We don't currently have an option in the u-boot package to install u-boot.imx to IMAGES_DIR/, so this will never run

- Comparing 6q_upgrade and 6x_upgrade I see we used to write the raw u-boot.bin to offset 0 in the spi flash, and now are writing u-boot.imx (which presumably is u-boot.bin with a freescale header) to offset 1K. I see that the .imx file is 4K bigger than the .bin file, so that's presumably the size of the freescale header.

The switch from "u-boot.bin" to "u-boot.imx" occurred when we switched from using a Freescale-derived U-Boot 2009.08 to main-line U-Boot sources (currently 2013.07).

Details in this post:
http://boundarydevices.com/switching-u-boot-versions-on-i-mx6/

Quoted 3 lines

I'll go and add a option for u-boot.imx to the u-boot package, but would like to hear if 6x_upgrade is doing the right thing here.

A short description of the change is that Freescale's build process generated u-boot.bin with 512 bytes of padding at the beginning, while main-line U-Boot generates u-boot.imx without the padding.

There are also a handful of discrepancies in the syntax for various commands between the two versions, especially in the areas of SPI NOR (sf probe command), which prompted us to switch the name of the upgrade script (6q_upgrade == old/6x_upgrade == new) when switching to main-line based code.

Note that unlike many ARM-based boards out there, our devices boot to SPI-NOR, so building U-Boot is a convenience. It's not needed to build an SD card image and the choice of when to upgrade should largely be based on the need for features or bug fixes and not tied to each userspace build.

The 6x_bootscript is required though, and provides the distribution- specifics of how/where to load kernel, DTS file, ram disk, et cetera.

Regards,

Eric

#6 lore raw

PATCH 2/4 nitrogen6x: use 6x_bootscript/6x_upgrade instead of older 6q_ versions

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Eric" == Eric Nelson <[email protected]> writes:

Hi Eric,

Quoted 6 lines
Quoted 6 lines

- Comparing 6q_upgrade and 6x_upgrade I see we used to write the raw u-boot.bin to offset 0 in the spi flash, and now are writing u-boot.imx (which presumably is u-boot.bin with a freescale header) to offset 1K. I see that the .imx file is 4K bigger than the .bin file, so that's presumably the size of the freescale header.

Eric> The switch from "u-boot.bin" to "u-boot.imx" occurred when we Eric> switched from using a Freescale-derived U-Boot 2009.08 to Eric> main-line U-Boot sources (currently 2013.07).

Ahh, I guess the confusion comes from the fact that I missed the change to u-boot.imx when I updated the u-boot version back in April:

http://git.buildroot.net/buildroot/commit/configs/nitrogen6x_defconfig?id=184850a4239c967742

Eric> Details in this post:
Eric> http://boundarydevices.com/switching-u-boot-versions-on-i-mx6/

Quoted 3 lines
Quoted 3 lines

I'll go and add a option for u-boot.imx to the u-boot package, but would like to hear if 6x_upgrade is doing the right thing here.

Eric> A short description of the change is that Freescale's build process Eric> generated u-boot.bin with 512 bytes of padding at the beginning, Eric> while main-line U-Boot generates u-boot.imx without the padding.

I guess you mean 1K of padding to match the new script?

hexdump -C u-boot.bin|head /tmp/boundarydevices-u-boot-2009-08-1f7edab

00000000  c6 01 00 ea 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000400  d1 00 20 40 20 07 80 27  00 00 00 00 2c 04 80 27  |.. @ ..'....,..'|
00000410  20 04 80 27 00 04 80 27  00 00 00 00 00 00 00 00  | ..'...'........|
00000420  00 00 80 27 74 30 03 00  00 00 00 00 d2 02 f0 40  |...'t0.........@|
00000430  cc 02 ec 04 02 0e 05 a8  00 00 00 30 02 0e 05 b0  |...........0....|
00000440  00 00 00 30 02 0e 05 24  00 00 00 30 02 0e 05 1c  |...0...$...0....|
00000450  00 00 00 30 02 0e 05 18  00 00 00 30 02 0e 05 0c  |...0.......0....|
00000460  00 00 00 30 02 0e 05 b8  00 00 00 30 02 0e 05 c0  |...0.......0....|

Eric> There are also a handful of discrepancies in the syntax for Eric> various commands between the two versions, especially in the Eric> areas of SPI NOR (sf probe command), which prompted us to switch Eric> the name of the upgrade script (6q_upgrade == old/6x_upgrade == new) Eric> when switching to main-line based code.

Eric> Note that unlike many ARM-based boards out there, our devices boot Eric> to SPI-NOR, so building U-Boot is a convenience. It's not needed Eric> to build an SD card image and the choice of when to upgrade should Eric> largely be based on the need for features or bug fixes and not Eric> tied to each userspace build.

Yes, I know. My nitrogen6x board still runs the original 2009.08 bootloader it was shipped with (which has problems using ext2 rev0 filesystems among others), so I should probably upgrade ;)

Thanks for the info.

Signature · 1 line
Bye, Peter Korsgaard
#7 lore raw

PATCH 2/4 nitrogen6x: use 6x_bootscript/6x_upgrade instead of older 6q_ versions

Hi Peter,

Quoted 10 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Eric" == Eric Nelson <[email protected]> writes:

Hi Eric,

Quoted 6 lines
Quoted 6 lines

- Comparing 6q_upgrade and 6x_upgrade I see we used to write the raw u-boot.bin to offset 0 in the spi flash, and now are writing u-boot.imx (which presumably is u-boot.bin with a freescale header) to offset 1K. I see that the .imx file is 4K bigger than the .bin file, so that's presumably the size of the freescale header.

Quoted 9 lines

Eric> The switch from "u-boot.bin" to "u-boot.imx" occurred when we Eric> switched from using a Freescale-derived U-Boot 2009.08 to Eric> main-line U-Boot sources (currently 2013.07).

Ahh, I guess the confusion comes from the fact that I missed the change to u-boot.imx when I updated the u-boot version back in April:

http://git.buildroot.net/buildroot/commit/configs/nitrogen6x_defconfig?id=184850a4239c967742

I'll try to post updates to the ML with each quarterly release.

The next upgrade will be 2013-10, that I hope enables USB OTG support.

Quoted 14 lines

Eric> Details in this post:
Eric> http://boundarydevices.com/switching-u-boot-versions-on-i-mx6/

Quoted 3 lines
Quoted 3 lines

I'll go and add a option for u-boot.imx to the u-boot package, but would like to hear if 6x_upgrade is doing the right thing here.

Eric> A short description of the change is that Freescale's build process Eric> generated u-boot.bin with 512 bytes of padding at the beginning, Eric> while main-line U-Boot generates u-boot.imx without the padding.

I guess you mean 1K of padding to match the new script?

hexdump -C u-boot.bin|head /tmp/boundarydevices-u-boot-2009-08-1f7edab

Quoted 11 lines
00000000  c6 01 00 ea 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000400  d1 00 20 40 20 07 80 27  00 00 00 00 2c 04 80 27  |.. @ ..'....,..'|
00000410  20 04 80 27 00 04 80 27  00 00 00 00 00 00 00 00  | ..'...'........|
00000420  00 00 80 27 74 30 03 00  00 00 00 00 d2 02 f0 40  |...'t0.........@|
00000430  cc 02 ec 04 02 0e 05 a8  00 00 00 30 02 0e 05 b0  |...........0....|
00000440  00 00 00 30 02 0e 05 24  00 00 00 30 02 0e 05 1c  |...0...$...0....|
00000450  00 00 00 30 02 0e 05 18  00 00 00 30 02 0e 05 0c  |...0.......0....|
00000460  00 00 00 30 02 0e 05 b8  00 00 00 30 02 0e 05 c0  |...0.......0....|

Yep. 1k (0x400)

Quoted 13 lines

Eric> There are also a handful of discrepancies in the syntax for Eric> various commands between the two versions, especially in the Eric> areas of SPI NOR (sf probe command), which prompted us to switch Eric> the name of the upgrade script (6q_upgrade == old/6x_upgrade == new) Eric> when switching to main-line based code.

Eric> Note that unlike many ARM-based boards out there, our devices boot Eric> to SPI-NOR, so building U-Boot is a convenience. It's not needed Eric> to build an SD card image and the choice of when to upgrade should Eric> largely be based on the need for features or bug fixes and not Eric> tied to each userspace build.

Quoted 4 lines

Yes, I know. My nitrogen6x board still runs the original 2009.08 bootloader it was shipped with (which has problems using ext2 rev0 filesystems among others), so I should probably upgrade ;)

Upgrading is definitely recommended.

The other notable enhancements are display support and support for SATA.

Regards,

Eric

#9 lore raw

PATCH 3/4 nitrogen6x: bump kernel to latest version (3.0.35-4.1.0)

In reply to Eric Nelson
---
 configs/nitrogen6x_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/nitrogen6x_defconfig +1 -1
index 4c4bd1b..0357e6d 100644
@@ -20,6 +20,6 @@ BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="http://github.com/boundarydevices/u-bo
 # kernel
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
-BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="http://github.com/boundarydevices/linux-imx6/tarball/2dc5560/linux-imx6-2dc5560.tar.gz"
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="http://github.com/boundarydevices/linux-imx6/tarball/5809938/linux-imx6-5809938.tar.gz
 BR2_LINUX_KERNEL_DEFCONFIG="nitrogen6x"
 BR2_LINUX_KERNEL_INSTALL_TARGET=y
Signature · 1 line
1.8.1.2
#10 lore raw

PATCH 3/4 nitrogen6x: bump kernel to latest version (3.0.35-4.1.0)

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Eric" == Eric Nelson <[email protected]> writes:

Eric> Signed-off-by: Eric Nelson <[email protected]>

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#11 lore raw

PATCH 4/4 i.MX6: Update Freescale hardware-acceleration bits to latest versions

In reply to Eric Nelson

This patchset updates the Freescale gstreamer and GPU libraries to the latest release (3.0.35_4.1.0).

Note that the package names refer to and are compatible with an alpha release of kernel version 3.5.7.

The primary release package (based on LTIB) is available here and includes documentation.

	https://community.freescale.com/docs/DOC-95560

The 3.5.7 kernel sources are available here:

	http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/log/?h=imx_3.5.7_1.0.0_alpha
---
 package/freescale-imx/freescale-imx.mk             |  4 ++--
 .../gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk           |  8 +++++---
 package/freescale-imx/imx-lib/imx-lib.mk           | 11 ++++++++++-
 .../gstreamer/gst-fsl-plugins/gst-fsl-plugins.mk   |  4 ++--
 package/libfslcodec/libfslcodec.mk                 |  4 ++--
 package/libfslparser/libfslparser.mk               |  8 +++++---
 package/libfslvpuwrap/libfslvpuwrap.mk             | 22 ++++++++++++++++++++--
 7 files changed, 46 insertions(+), 15 deletions(-)
package/freescale-imx/freescale-imx.mk +2 -2
index d35a62e..42ef11c 100644
@@ -4,9 +4,9 @@
 #
 ################################################################################
 
-FREESCALE_IMX_VERSION = 1.1.0
+FREESCALE_IMX_VERSION = 3.5.7-1.0.0
 
 # No official download site from freescale, just this mirror
-FREESCALE_IMX_MIRROR_SITE   = http://download.ossystems.com.br/bsp/freescale/source
+FREESCALE_IMX_MIRROR_SITE   = http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/
 
 include $(sort $(wildcard package/freescale-imx/*/*.mk))
package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk +5 -3
index c48d108..499f617 100644
@@ -3,8 +3,12 @@
 # gpu-viv-bin-mx6q
 #
 ################################################################################
+ifeq ($(BR2_ARM_EABIHF),y)
+GPU_VIV_BIN_MX6Q_VERSION = $(FREESCALE_IMX_VERSION)-hfp
+else
+GPU_VIV_BIN_MX6Q_VERSION = $(FREESCALE_IMX_VERSION)-sfp
+endif
 
-GPU_VIV_BIN_MX6Q_VERSION = $(FREESCALE_IMX_VERSION)
 GPU_VIV_BIN_MX6Q_SITE    = $(FREESCALE_IMX_MIRROR_SITE)
 GPU_VIV_BIN_MX6Q_SOURCE  = gpu-viv-bin-mx6q-$(GPU_VIV_BIN_MX6Q_VERSION).bin
 
@@ -30,8 +34,6 @@ endif
 # The archive is a shell-self-extractor of a bzipped tar. It happens
 # to extract in the correct directory (gpu-viv-bin-mx6q-x.y.z)
 # The --force makes sure it doesn't fail if the source dir already exists.
-# The --auto-accept skips the license check - not needed for us
-# because we have legal-info.
 define GPU_VIV_BIN_MX6Q_EXTRACT_CMDS
 	(cd $(BUILD_DIR); \
 		sh $(DL_DIR)/$(GPU_VIV_BIN_MX6Q_SOURCE) --force --auto-accept)
package/freescale-imx/imx-lib/imx-lib.mk +10 -1
index bd7e174..e3c29b1 100644
@@ -6,7 +6,8 @@
 
 IMX_LIB_VERSION = $(FREESCALE_IMX_VERSION)
 IMX_LIB_SITE    = $(FREESCALE_IMX_MIRROR_SITE)
-IMX_LIB_LICENSE = LGPLv2.1+
+IMX_LIB_SOURCE = imx-lib-$(IMX_LIB_VERSION).bin
+IMX_LIB_LICENSE = Freescale Semiconductor Software License Agreement
 # No license file included
 
 IMX_LIB_INSTALL_STAGING = YES
@@ -25,6 +26,14 @@ IMX_LIB_MAKE_ENV = \
 	PLATFORM=$(BR2_PACKAGE_IMX_LIB_PLATFORM) \
 	INCLUDE="$(IMX_LIB_INCLUDE)"
 
+# The archive is a shell-self-extractor of a bzipped tar. It happens
+# to extract in the correct directory (imx-lib-x.y.z)
+# The --force makes sure it doesn't fail if the source dir already exists.
+define IMX_LIB_EXTRACT_CMDS
+	(cd $(BUILD_DIR); \
+		sh $(DL_DIR)/$(IMX_LIB_SOURCE) --force --auto-accept)
+endef
+
 define IMX_LIB_BUILD_CMDS
 	$(IMX_LIB_MAKE_ENV) $(MAKE1) -C $(@D)
 endef
package/gstreamer/gst-fsl-plugins/gst-fsl-plugins.mk +2 -2
index ccdb521..c46073d 100644
@@ -4,9 +4,9 @@
 #
 ################################################################################
 
-GST_FSL_PLUGINS_VERSION = 3.0.1
+GST_FSL_PLUGINS_VERSION = 3.5.7-1.0.0
 # No official download site from freescale, just this mirror
-GST_FSL_PLUGINS_SITE = http://download.ossystems.com.br/bsp/freescale/source
+GST_FSL_PLUGINS_SITE = http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/
 
 # Most is LGPLv2+, but some sources are copied from upstream and are
 # LGPLv2.1+, which essentially makes it LGPLv2.1+
package/libfslcodec/libfslcodec.mk +2 -2
index c18332a..b1991f8 100644
@@ -4,9 +4,9 @@
 #
 ################################################################################
 
-LIBFSLCODEC_VERSION = 3.0.1
+LIBFSLCODEC_VERSION = 3.5.7-1.0.0
 # No official download site from freescale, just this mirror
-LIBFSLCODEC_SITE = http://download.ossystems.com.br/bsp/freescale/source
+LIBFSLCODEC_SITE = http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/
 LIBFSLCODEC_SOURCE = libfslcodec-$(LIBFSLCODEC_VERSION).bin
 LIBFSLCODEC_LICENSE = Freescale Semiconductor Software License Agreement, BSD-3c (flac, ogg headers)
 LIBFSLCODEC_LICENSE_FILES = EULA EULA.txt
package/libfslparser/libfslparser.mk +5 -3
index 3e27a6a..66068fe 100644
@@ -4,9 +4,9 @@
 #
 ################################################################################
 
-LIBFSLPARSER_VERSION = 3.0.1
+LIBFSLPARSER_VERSION = 3.5.7-1.0.0
 # No official download site from freescale, just this mirror
-LIBFSLPARSER_SITE = http://download.ossystems.com.br/bsp/freescale/source
+LIBFSLPARSER_SITE = http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/
 LIBFSLPARSER_SOURCE = libfslparser-$(LIBFSLPARSER_VERSION).bin
 LIBFSLPARSER_LICENSE = Freescale Semiconductor Software License Agreement
 LIBFSLPARSER_LICENSE_FILES = EULA EULA.txt
@@ -31,7 +31,9 @@ define LIBFSLPARSER_EXTRACT_CMDS
 	     /<<EOEULA/ { start=1; }'\
 	    $(DL_DIR)/$(LIBFSLPARSER_SOURCE) > $(@D)/EULA
 	cd $(BUILD_DIR); \
-	sh $(DL_DIR)/$(LIBFSLPARSER_SOURCE) --force --auto-accept
+	sh $(DL_DIR)/$(LIBFSLPARSER_SOURCE) --force --auto-accept ; \
+	cd libfslparser-3.5.7-1.0.0; \
+	pwd && sh ./autogen.sh
 endef
 
 # The Makefile installs several versions of the libraries, but we only
package/libfslvpuwrap/libfslvpuwrap.mk +20 -2
index 1bc7129..cf11968 100644
@@ -4,9 +4,10 @@
 #
 ################################################################################
 
-LIBFSLVPUWRAP_VERSION = 1.0.17
+LIBFSLVPUWRAP_VERSION = 3.5.7-1.0.0
 # No official download site from freescale, just this mirror
-LIBFSLVPUWRAP_SITE = http://download.ossystems.com.br/bsp/freescale/source
+LIBFSLVPUWRAP_SITE = http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/
+LIBFSLVPUWRAP_SOURCE = libfslvpuwrap-$(LIBFSLVPUWRAP_VERSION).bin
 LIBFSLVPUWRAP_LICENSE = Freescale Semiconductor Software License Agreement
 LIBFSLVPUWRAP_LICENSE_FILES = EULA.txt
 LIBFSLVPUWRAP_REDISTRIBUTE = NO
@@ -15,4 +16,21 @@ LIBFSLVPUWRAP_INSTALL_STAGING = YES
 
 LIBFSLVPUWRAP_DEPENDENCIES += imx-lib
 
+# The archive is a shell-self-extractor of a bzipped tar. It happens
+# to extract in the correct directory (libfslvpuwrap-x.y.z)
+# The --force makes sure it doesn't fail if the source dir already exists.
+# The --auto-accept skips the license check - not needed for us
+# because we have legal-info
+# Since the EULA in the bin file differs from the one in the tar file,
+# extract the one from the bin file as well.
+define LIBFSLVPUWRAP_EXTRACT_CMDS
+	awk 'BEGIN      { start=0; } \
+	     /^EOEULA/  { start = 0; } \
+	                { if (start) print; } \
+	     /<<EOEULA/ { start=1; }'\
+	    $(DL_DIR)/$(LIBFSLVPUWRAP_SOURCE) > $(@D)/EULA
+	cd $(BUILD_DIR); \
+	sh $(DL_DIR)/$(LIBFSLVPUWRAP_SOURCE) --force --auto-accept
+endef
+
 $(eval $(autotools-package))
Signature · 1 line
1.8.1.2
#12 lore raw

PATCH 4/4 i.MX6: Update Freescale hardware-acceleration bits to latest versions

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Eric" == Eric Nelson <[email protected]> writes:

Eric> This patchset updates the Freescale gstreamer and GPU libraries Eric> to the latest release (3.0.35_4.1.0).

Eric> Note that the package names refer to and are compatible with Eric> an alpha release of kernel version 3.5.7.

Eric> The primary release package (based on LTIB) is available Eric> here and includes documentation.
Eric> https://community.freescale.com/docs/DOC-95560

Eric> The 3.5.7 kernel sources are available here:
Eric> http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/log/?h=imx_3.5.7_1.0.0_alpha

Eric> # No official download site from freescale, just this mirror
Eric> -FREESCALE_IMX_MIRROR_SITE = http://download.ossystems.com.br/bsp/freescale/source
Eric> +FREESCALE_IMX_MIRROR_SITE = http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/

That sounds pretty official to me, so the comment should probably go and the variable perhaps renamed to FREESCALE_IMX_SITE?

The page btw seems to be down at the moment as I just get:
The system is currently unavailable.

Please accept our apologies for any inconvenience this may cause. Feel free to contact our Technical Helpline at one of the following numbers:
...

Eric> +++ b/package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk Eric> @@ -3,8 +3,12 @@

 Eric>  # gpu-viv-bin-mx6q
 Eric>  #
 Eric>  ################################################################################

Eric> +ifeq ($(BR2_ARM_EABIHF),y)
Eric> +GPU_VIV_BIN_MX6Q_VERSION = $(FREESCALE_IMX_VERSION)-hfp Eric> +else
Eric> +GPU_VIV_BIN_MX6Q_VERSION = $(FREESCALE_IMX_VERSION)-sfp Eric> +endif

NIT: There should be an empty line after the ##### line.

Eric> -GPU_VIV_BIN_MX6Q_VERSION = $(FREESCALE_IMX_VERSION)

 Eric>  GPU_VIV_BIN_MX6Q_SITE    = $(FREESCALE_IMX_MIRROR_SITE)
 Eric>  GPU_VIV_BIN_MX6Q_SOURCE  = gpu-viv-bin-mx6q-$(GPU_VIV_BIN_MX6Q_VERSION).bin

Eric> @@ -30,8 +34,6 @@ endif

 Eric>  # The archive is a shell-self-extractor of a bzipped tar. It happens
 Eric>  # to extract in the correct directory (gpu-viv-bin-mx6q-x.y.z)
 Eric>  # The --force makes sure it doesn't fail if the source dir already exists.
 Eric> -# The --auto-accept skips the license check - not needed for us
 Eric> -# because we have legal-info.
 Eric>  define GPU_VIV_BIN_MX6Q_EXTRACT_CMDS
 Eric>  	(cd $(BUILD_DIR); \
 Eric>  		sh $(DL_DIR)/$(GPU_VIV_BIN_MX6Q_SOURCE) --force --auto-accept)

Did you remove this on purpose? If the --auto-accept option is gone then it should also be removed from here.

Eric> diff --git a/package/freescale-imx/imx-lib/imx-lib.mk b/package/freescale-imx/imx-lib/imx-lib.mk Eric> index bd7e174..e3c29b1 100644
Eric> --- a/package/freescale-imx/imx-lib/imx-lib.mk
Eric> +++ b/package/freescale-imx/imx-lib/imx-lib.mk
Eric> @@ -6,7 +6,8 @@

Eric> IMX_LIB_VERSION = $(FREESCALE_IMX_VERSION)
Eric> IMX_LIB_SITE = $(FREESCALE_IMX_MIRROR_SITE)
Eric> -IMX_LIB_LICENSE = LGPLv2.1+
Eric> +IMX_LIB_SOURCE = imx-lib-$(IMX_LIB_VERSION).bin
Eric> +IMX_LIB_LICENSE = Freescale Semiconductor Software License Agreement Eric> # No license file included

Sigh, back to self extracting binaries? :/

Eric> IMX_LIB_INSTALL_STAGING = YES
Eric> @@ -25,6 +26,14 @@ IMX_LIB_MAKE_ENV = \
Eric> PLATFORM=$(BR2_PACKAGE_IMX_LIB_PLATFORM) \
Eric> INCLUDE="$(IMX_LIB_INCLUDE)"

Eric> +# The archive is a shell-self-extractor of a bzipped tar. It happens Eric> +# to extract in the correct directory (imx-lib-x.y.z)
Eric> +# The --force makes sure it doesn't fail if the source dir already exists. Eric> +define IMX_LIB_EXTRACT_CMDS
Eric> + (cd $(BUILD_DIR); \
Eric> + sh $(DL_DIR)/$(IMX_LIB_SOURCE) --force --auto-accept)
Eric> +endef

Does it have an --auto-accept option? If so, please document it, if not remove it here.

Eric> +++ b/package/gstreamer/gst-fsl-plugins/gst-fsl-plugins.mk
Eric> @@ -4,9 +4,9 @@
Eric> #
Eric> ################################################################################

Eric> -GST_FSL_PLUGINS_VERSION = 3.0.1
Eric> +GST_FSL_PLUGINS_VERSION = 3.5.7-1.0.0
Eric> # No official download site from freescale, just this mirror Eric> -GST_FSL_PLUGINS_SITE = http://download.ossystems.com.br/bsp/freescale/source
Eric> +GST_FSL_PLUGINS_SITE = http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/

Is this still for gstreamer 0.10?

Eric> +++ b/package/libfslcodec/libfslcodec.mk
Eric> @@ -4,9 +4,9 @@
Eric> #
Eric> ################################################################################

Eric> -LIBFSLCODEC_VERSION = 3.0.1
Eric> +LIBFSLCODEC_VERSION = 3.5.7-1.0.0
Eric> # No official download site from freescale, just this mirror Eric> -LIBFSLCODEC_SITE = http://download.ossystems.com.br/bsp/freescale/source
Eric> +LIBFSLCODEC_SITE = http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/

Maybe this should use FREESCALE_IMX_SITE

 Eric>  LIBFSLCODEC_SOURCE = libfslcodec-$(LIBFSLCODEC_VERSION).bin
 Eric>  LIBFSLCODEC_LICENSE = Freescale Semiconductor Software License Agreement, BSD-3c (flac, ogg headers)
 Eric>  LIBFSLCODEC_LICENSE_FILES = EULA EULA.txt

Eric> diff --git a/package/libfslparser/libfslparser.mk b/package/libfslparser/libfslparser.mk Eric> index 3e27a6a..66068fe 100644
Eric> --- a/package/libfslparser/libfslparser.mk
Eric> +++ b/package/libfslparser/libfslparser.mk
Eric> @@ -4,9 +4,9 @@
Eric> #
Eric> ################################################################################

Eric> -LIBFSLPARSER_VERSION = 3.0.1
Eric> +LIBFSLPARSER_VERSION = 3.5.7-1.0.0
Eric> # No official download site from freescale, just this mirror Eric> -LIBFSLPARSER_SITE = http://download.ossystems.com.br/bsp/freescale/source
Eric> +LIBFSLPARSER_SITE = http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/

Same here (and comment dropped).

 Eric>  LIBFSLPARSER_SOURCE = libfslparser-$(LIBFSLPARSER_VERSION).bin
 Eric>  LIBFSLPARSER_LICENSE = Freescale Semiconductor Software License Agreement
 Eric>  LIBFSLPARSER_LICENSE_FILES = EULA EULA.txt
 Eric> @@ -31,7 +31,9 @@ define LIBFSLPARSER_EXTRACT_CMDS
 Eric>  	     /<<EOEULA/ { start=1; }'\
 Eric>  	    $(DL_DIR)/$(LIBFSLPARSER_SOURCE) > $(@D)/EULA
 Eric>  	cd $(BUILD_DIR); \

Eric> - sh $(DL_DIR)/$(LIBFSLPARSER_SOURCE) --force --auto-accept
Eric> + sh $(DL_DIR)/$(LIBFSLPARSER_SOURCE) --force --auto-accept ; \
Eric> + cd libfslparser-3.5.7-1.0.0; \
Eric> + pwd && sh ./autogen.sh
Eric> endef

Why the pwd?

We do have generic autoreconf support in Buildroot. Normally you can just set:

LIBFSLPARSERS_AUTORECONF = YES

And Buildroot will take care of building the proper auto* packages for the host and running autoreconf.

Eric> +++ b/package/libfslvpuwrap/libfslvpuwrap.mk
Eric> @@ -4,9 +4,10 @@
Eric> #
Eric> ################################################################################

Eric> -LIBFSLVPUWRAP_VERSION = 1.0.17
Eric> +LIBFSLVPUWRAP_VERSION = 3.5.7-1.0.0
Eric> # No official download site from freescale, just this mirror Eric> -LIBFSLVPUWRAP_SITE = http://download.ossystems.com.br/bsp/freescale/source
Eric> +LIBFSLVPUWRAP_SITE = http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/

Same comment as elsewhere.

Care to fix these issues and resubmit? Thanks.

Signature · 1 line
Bye, Peter Korsgaard
#13 lore raw

PATCH 4/4 i.MX6: Update Freescale hardware-acceleration bits to latest versions

Hi Peter,

Quoted 12 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Eric" == Eric Nelson <[email protected]> writes:

Eric> This patchset updates the Freescale gstreamer and GPU libraries Eric> to the latest release (3.0.35_4.1.0).

Eric> Note that the package names refer to and are compatible with Eric> an alpha release of kernel version 3.5.7.

Eric> The primary release package (based on LTIB) is available Eric> here and includes documentation.
Eric> https://community.freescale.com/docs/DOC-95560

Quoted 8 lines

Eric> The 3.5.7 kernel sources are available here:
Eric> http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/log/?h=imx_3.5.7_1.0.0_alpha

Eric> # No official download site from freescale, just this mirror
Eric> -FREESCALE_IMX_MIRROR_SITE = http://download.ossystems.com.br/bsp/freescale/source
Eric> +FREESCALE_IMX_MIRROR_SITE = http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/

OT: How do you get this nifty formatting? It's about time for me to retire my crusty Mozilla Thunderbird...

Quoted 10 lines

That sounds pretty official to me, so the comment should probably go and the variable perhaps renamed to FREESCALE_IMX_SITE?

The page btw seems to be down at the moment as I just get:
The system is currently unavailable.

Please accept our apologies for any inconvenience this may cause. Feel free to contact our Technical Helpline at one of the following numbers:
...

There's no page at http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/.

This is simply the repository used to feed packages to the Yocto project, with a mirror at O.S. Systems:

https://github.com/Freescale/meta-fsl-arm/blob/master/conf/layer.conf#L14

Quoted 12 lines
  Eric> +++ b/package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk
  Eric> @@ -3,8 +3,12 @@
  Eric>  # gpu-viv-bin-mx6q
  Eric>  #
  Eric>  ################################################################################
  Eric> +ifeq ($(BR2_ARM_EABIHF),y)
  Eric> +GPU_VIV_BIN_MX6Q_VERSION = $(FREESCALE_IMX_VERSION)-hfp
  Eric> +else
  Eric> +GPU_VIV_BIN_MX6Q_VERSION = $(FREESCALE_IMX_VERSION)-sfp
  Eric> +endif
Quoted 2 lines

NIT: There should be an empty line after the ##### line.

Ok.

Quoted 14 lines
  Eric> -GPU_VIV_BIN_MX6Q_VERSION = $(FREESCALE_IMX_VERSION)
  Eric>  GPU_VIV_BIN_MX6Q_SITE    = $(FREESCALE_IMX_MIRROR_SITE)
  Eric>  GPU_VIV_BIN_MX6Q_SOURCE  = gpu-viv-bin-mx6q-$(GPU_VIV_BIN_MX6Q_VERSION).bin

Eric> @@ -30,8 +34,6 @@ endif

  Eric>  # The archive is a shell-self-extractor of a bzipped tar. It happens
  Eric>  # to extract in the correct directory (gpu-viv-bin-mx6q-x.y.z)
  Eric>  # The --force makes sure it doesn't fail if the source dir already exists.
  Eric> -# The --auto-accept skips the license check - not needed for us
  Eric> -# because we have legal-info.
  Eric>  define GPU_VIV_BIN_MX6Q_EXTRACT_CMDS
  Eric>  	(cd $(BUILD_DIR); \
  Eric>  		sh $(DL_DIR)/$(GPU_VIV_BIN_MX6Q_SOURCE) --force --auto-accept)
Quoted 3 lines

Did you remove this on purpose? If the --auto-accept option is gone then it should also be removed from here.

I actually meant to, but hadn't yet started a discussion on the topic.

We should be able to get rid of these comments:
http://git.buildroot.net/buildroot/tree/package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk#n15

By following the lead of the meta-fsl-arm project and allowing the first of any packages with the Freescale EULA to prompt the user for acceptance, but I'm not sure how to accomplish that.

In the Yocto world, a tag ("ACCEPT_FREESCALE_EULA") placed in local.conf is sufficient to bypass the prompt, which requires action by the user.

Quoted 14 lines
  Eric> diff --git a/package/freescale-imx/imx-lib/imx-lib.mk b/package/freescale-imx/imx-lib/imx-lib.mk
  Eric> index bd7e174..e3c29b1 100644
  Eric> --- a/package/freescale-imx/imx-lib/imx-lib.mk
  Eric> +++ b/package/freescale-imx/imx-lib/imx-lib.mk
  Eric> @@ -6,7 +6,8 @@

  Eric>  IMX_LIB_VERSION = $(FREESCALE_IMX_VERSION)
  Eric>  IMX_LIB_SITE    = $(FREESCALE_IMX_MIRROR_SITE)
  Eric> -IMX_LIB_LICENSE = LGPLv2.1+
  Eric> +IMX_LIB_SOURCE = imx-lib-$(IMX_LIB_VERSION).bin
  Eric> +IMX_LIB_LICENSE = Freescale Semiconductor Software License Agreement
  Eric>  # No license file included
Quoted 2 lines

Sigh, back to self extracting binaries? :/

Yep. The tar-balls are gone. This one (imx-lib) is a bit misleading, since the extracted files say very clearly that all of the components are released under LGPL.

I think somebody in the packaging department was in the "EULA zone"...

Quoted 14 lines
  Eric>  IMX_LIB_INSTALL_STAGING = YES
  Eric> @@ -25,6 +26,14 @@ IMX_LIB_MAKE_ENV = \
  Eric>  	PLATFORM=$(BR2_PACKAGE_IMX_LIB_PLATFORM) \
  Eric>  	INCLUDE="$(IMX_LIB_INCLUDE)"

Eric> +# The archive is a shell-self-extractor of a bzipped tar. It happens Eric> +# to extract in the correct directory (imx-lib-x.y.z)
Eric> +# The --force makes sure it doesn't fail if the source dir already exists. Eric> +define IMX_LIB_EXTRACT_CMDS
Eric> + (cd $(BUILD_DIR); \
Eric> + sh $(DL_DIR)/$(IMX_LIB_SOURCE) --force --auto-accept)
Eric> +endef

Quoted 3 lines

Does it have an --auto-accept option? If so, please document it, if not remove it here.

Okay, will do.

Quoted 5 lines

Eric> +++ b/package/gstreamer/gst-fsl-plugins/gst-fsl-plugins.mk
Eric> @@ -4,9 +4,9 @@
Eric> #
Eric> ################################################################################

Quoted 8 lines

Eric> -GST_FSL_PLUGINS_VERSION = 3.0.1
Eric> +GST_FSL_PLUGINS_VERSION = 3.5.7-1.0.0
Eric> # No official download site from freescale, just this mirror Eric> -GST_FSL_PLUGINS_SITE = http://download.ossystems.com.br/bsp/freescale/source
Eric> +GST_FSL_PLUGINS_SITE = http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/

Is this still for gstreamer 0.10?

Yes, but version "1.0.0" of the "3.5.7" package and to make things even more confusing, this is the binary that matches up with kernel version 3.0.35_4.1.0....

Have you noticed how the Freescale packages often name things "MXC-something"... I think the "MXC" stands for "Mobile eXtreme Confusion"...

Quoted 6 lines

Eric> +++ b/package/libfslcodec/libfslcodec.mk
Eric> @@ -4,9 +4,9 @@
Eric> #
Eric> ################################################################################

Quoted 8 lines

Eric> -LIBFSLCODEC_VERSION = 3.0.1
Eric> +LIBFSLCODEC_VERSION = 3.5.7-1.0.0
Eric> # No official download site from freescale, just this mirror Eric> -LIBFSLCODEC_SITE = http://download.ossystems.com.br/bsp/freescale/source
Eric> +LIBFSLCODEC_SITE = http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/

Maybe this should use FREESCALE_IMX_SITE

Agreed. I'm also confused about why this isn't in the freescale-imx/ directory.

Quoted 28 lines
  Eric>  LIBFSLCODEC_SOURCE = libfslcodec-$(LIBFSLCODEC_VERSION).bin
  Eric>  LIBFSLCODEC_LICENSE = Freescale Semiconductor Software License Agreement, BSD-3c (flac, ogg headers)
  Eric>  LIBFSLCODEC_LICENSE_FILES = EULA EULA.txt

Eric> diff --git a/package/libfslparser/libfslparser.mk b/package/libfslparser/libfslparser.mk Eric> index 3e27a6a..66068fe 100644
Eric> --- a/package/libfslparser/libfslparser.mk
Eric> +++ b/package/libfslparser/libfslparser.mk
Eric> @@ -4,9 +4,9 @@
Eric> #
Eric> ################################################################################

Eric> -LIBFSLPARSER_VERSION = 3.0.1
Eric> +LIBFSLPARSER_VERSION = 3.5.7-1.0.0
Eric> # No official download site from freescale, just this mirror Eric> -LIBFSLPARSER_SITE = http://download.ossystems.com.br/bsp/freescale/source
Eric> +LIBFSLPARSER_SITE = http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/

Same here (and comment dropped).

  Eric>  LIBFSLPARSER_SOURCE = libfslparser-$(LIBFSLPARSER_VERSION).bin
  Eric>  LIBFSLPARSER_LICENSE = Freescale Semiconductor Software License Agreement
  Eric>  LIBFSLPARSER_LICENSE_FILES = EULA EULA.txt
  Eric> @@ -31,7 +31,9 @@ define LIBFSLPARSER_EXTRACT_CMDS
  Eric>  	     /<<EOEULA/ { start=1; }'\
  Eric>  	    $(DL_DIR)/$(LIBFSLPARSER_SOURCE) > $(@D)/EULA
  Eric>  	cd $(BUILD_DIR); \
Quoted 8 lines

Eric> - sh $(DL_DIR)/$(LIBFSLPARSER_SOURCE) --force --auto-accept
Eric> + sh $(DL_DIR)/$(LIBFSLPARSER_SOURCE) --force --auto-accept ; \
Eric> + cd libfslparser-3.5.7-1.0.0; \
Eric> + pwd && sh ./autogen.sh
Eric> endef

Why the pwd?

'Cause I was debugging ;)

Quoted 8 lines

We do have generic autoreconf support in Buildroot. Normally you can just set:

LIBFSLPARSERS_AUTORECONF = YES

And Buildroot will take care of building the proper auto* packages for the host and running autoreconf.

Thanks for the tip. I'll re-try with that bit.

Quoted 12 lines

Eric> +++ b/package/libfslvpuwrap/libfslvpuwrap.mk
Eric> @@ -4,9 +4,10 @@
Eric> #
Eric> ################################################################################

Eric> -LIBFSLVPUWRAP_VERSION = 1.0.17
Eric> +LIBFSLVPUWRAP_VERSION = 3.5.7-1.0.0
Eric> # No official download site from freescale, just this mirror Eric> -LIBFSLVPUWRAP_SITE = http://download.ossystems.com.br/bsp/freescale/source
Eric> +LIBFSLVPUWRAP_SITE = http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/

Quoted 4 lines

Same comment as elsewhere.

Care to fix these issues and resubmit? Thanks.

Will do.

Regards,

Eric

#14 lore raw

PATCH 4/4 i.MX6: Update Freescale hardware-acceleration bits to latest versions

Quoted 4 lines · Eric Nelson

Hi Peter,

Quoted 1 line · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Eric" == Eric Nelson <[email protected]> writes:

[snip]

Quoted 19 lines
Quoted 4 lines

Eric> @@ -30,8 +34,6 @@ endif

  Eric>  # The archive is a shell-self-extractor of a bzipped tar. It happens
  Eric>  # to extract in the correct directory (gpu-viv-bin-mx6q-x.y.z)
  Eric>  # The --force makes sure it doesn't fail if the source dir already exists.
Quoted 9 lines

Eric> -# The --auto-accept skips the license check - not needed for us Eric> -# because we have legal-info.
Eric> define GPU_VIV_BIN_MX6Q_EXTRACT_CMDS
Eric> (cd $(BUILD_DIR); \
Eric> sh $(DL_DIR)/$(GPU_VIV_BIN_MX6Q_SOURCE) --force --auto-accept)

Did you remove this on purpose? If the --auto-accept option is gone then it should also be removed from here.

I actually meant to, but hadn't yet started a discussion on the topic.

We should be able to get rid of these comments:
http://git.buildroot.net/buildroot/tree/package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk#n15

Quoted 6 lines

By following the lead of the meta-fsl-arm project and allowing the first of any packages with the Freescale EULA to prompt the user for acceptance, but I'm not sure how to accomplish that.

In the Yocto world, a tag ("ACCEPT_FREESCALE_EULA") placed in local.conf is sufficient to bypass the prompt, which requires action by the user.

We prefer to avoid that the build stops after half an hour or so
because it is waiting for user input. Also, I don't see a reason why we have to explicitly ask the user to accept this license. If we do that, we should probably do the same for all the other packages.

If we do want explicit acceptance, then it can be done similar to the
Qt license, i.e. add a config option that enables the --auto-accept.

Quoted 17 lines
Quoted 17 lines

Eric> diff --git a/package/freescale-imx/imx-lib/imx-lib.mk
b/package/freescale-imx/imx-lib/imx-lib.mk
Eric> index bd7e174..e3c29b1 100644
Eric> --- a/package/freescale-imx/imx-lib/imx-lib.mk Eric> +++ b/package/freescale-imx/imx-lib/imx-lib.mk Eric> @@ -6,7 +6,8 @@

Eric> IMX_LIB_VERSION = $(FREESCALE_IMX_VERSION)
Eric> IMX_LIB_SITE = $(FREESCALE_IMX_MIRROR_SITE)
Eric> -IMX_LIB_LICENSE = LGPLv2.1+
Eric> +IMX_LIB_SOURCE = imx-lib-$(IMX_LIB_VERSION).bin Eric> +IMX_LIB_LICENSE = Freescale Semiconductor Software License
Agreement
Eric> # No license file included

Quoted 6 lines
Quoted 2 lines

Sigh, back to self extracting binaries? :/

Yep. The tar-balls are gone. This one (imx-lib) is a bit misleading, since the extracted files say very clearly that all of the components are released under LGPL.

In that case, the license is still LGPL. The EULA text specifies:

This Agreement does not concern your use of any files that are subject to an "open source" software license, such as the Free Software Foundation "General Public License," or "GNU GPL."

Since only GPL stuff is included in imx-lib, the rest of the EULA
essentially doesn't apply.

[snip]

Quoted 8 lines
Quoted 8 lines

Eric> -LIBFSLCODEC_VERSION = 3.0.1
Eric> +LIBFSLCODEC_VERSION = 3.5.7-1.0.0
Eric> # No official download site from freescale, just this mirror Eric> -LIBFSLCODEC_SITE =
http://download.ossystems.com.br/bsp/freescale/source
Eric> +LIBFSLCODEC_SITE =
http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/

Quoted 5 lines
Quoted 2 lines

Maybe this should use FREESCALE_IMX_SITE

Agreed. I'm also confused about why this isn't in the freescale-imx/ directory.

Because the libfslcodec fits in the multimedia libraries menu more than
in the hardware handling menu.

Note that it is not necessary to put the libfslcodec package under the
freescale-imx directory for it to use the FREESCALE_IMX_SITE variable. At least, I think so :-)

Regards,
Arnout

[snip]

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#15 lore raw

PATCH 4/4 i.MX6: Update Freescale hardware-acceleration bits to latest versions

Hi Arnout,

Quoted 37 lines · Arnout Vandecappelle
Quoted 4 lines · Eric Nelson

Hi Peter,

Quoted 1 line · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Eric" == Eric Nelson <[email protected]> writes:

[snip]

Quoted 24 lines
Quoted 13 lines

Eric> @@ -30,8 +34,6 @@ endif
Eric> # The archive is a shell-self-extractor of a bzipped tar. It
happens
Eric> # to extract in the correct directory (gpu-viv-bin-mx6q-x.y.z) Eric> # The --force makes sure it doesn't fail if the source dir
already exists.
Eric> -# The --auto-accept skips the license check - not needed for us Eric> -# because we have legal-info.
Eric> define GPU_VIV_BIN_MX6Q_EXTRACT_CMDS
Eric> (cd $(BUILD_DIR); \
Eric> sh $(DL_DIR)/$(GPU_VIV_BIN_MX6Q_SOURCE) --force
--auto-accept)

Quoted 3 lines

Did you remove this on purpose? If the --auto-accept option is gone then it should also be removed from here.

I actually meant to, but hadn't yet started a discussion on the topic.

We should be able to get rid of these comments:

http://git.buildroot.net/buildroot/tree/package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk#n15

Quoted 6 lines

By following the lead of the meta-fsl-arm project and allowing the first of any packages with the Freescale EULA to prompt the user for acceptance, but I'm not sure how to accomplish that.

In the Yocto world, a tag ("ACCEPT_FREESCALE_EULA") placed in local.conf is sufficient to bypass the prompt, which requires action by the user.

Quoted 8 lines

We prefer to avoid that the build stops after half an hour or so
because it is waiting for user input. Also, I don't see a reason why we have to explicitly ask the user to accept this license. If we do that, we should probably do the same for all the other packages.

If we do want explicit acceptance, then it can be done similar to the
Qt license, i.e. add a config option that enables the --auto-accept.

I'll take a whack at that, but it may take a week or so.

Quoted 24 lines
Quoted 17 lines
Quoted 17 lines

Eric> diff --git a/package/freescale-imx/imx-lib/imx-lib.mk
b/package/freescale-imx/imx-lib/imx-lib.mk
Eric> index bd7e174..e3c29b1 100644
Eric> --- a/package/freescale-imx/imx-lib/imx-lib.mk Eric> +++ b/package/freescale-imx/imx-lib/imx-lib.mk Eric> @@ -6,7 +6,8 @@

Eric> IMX_LIB_VERSION = $(FREESCALE_IMX_VERSION)
Eric> IMX_LIB_SITE = $(FREESCALE_IMX_MIRROR_SITE)
Eric> -IMX_LIB_LICENSE = LGPLv2.1+
Eric> +IMX_LIB_SOURCE = imx-lib-$(IMX_LIB_VERSION).bin Eric> +IMX_LIB_LICENSE = Freescale Semiconductor Software License
Agreement
Eric> # No license file included

Quoted 6 lines
Quoted 2 lines

Sigh, back to self extracting binaries? :/

Yep. The tar-balls are gone. This one (imx-lib) is a bit misleading, since the extracted files say very clearly that all of the components are released under LGPL.

Quoted 9 lines

In that case, the license is still LGPL. The EULA text specifies:

This Agreement does not concern your use of any files that are subject to an "open source" software license, such as the Free Software Foundation "General Public License," or "GNU GPL."

Since only GPL stuff is included in imx-lib, the rest of the EULA
essentially doesn't apply.

Right.

Quoted 9 lines

[snip]

Quoted 8 lines
Quoted 8 lines

Eric> -LIBFSLCODEC_VERSION = 3.0.1
Eric> +LIBFSLCODEC_VERSION = 3.5.7-1.0.0
Eric> # No official download site from freescale, just this mirror Eric> -LIBFSLCODEC_SITE =
http://download.ossystems.com.br/bsp/freescale/source
Eric> +LIBFSLCODEC_SITE =
http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/

Quoted 9 lines
Quoted 5 lines
Quoted 2 lines

Maybe this should use FREESCALE_IMX_SITE

Agreed. I'm also confused about why this isn't in the freescale-imx/ directory.

Because the libfslcodec fits in the multimedia libraries menu more
than in the hardware handling menu.

I'm not sure. It shows up under Packages/Libraries/Multimedia and I found the packages difficult to locate.

Quoted 4 lines

Note that it is not necessary to put the libfslcodec package under the
freescale-imx directory for it to use the FREESCALE_IMX_SITE variable. At least, I think so :-)

That variable (currently FREESCALE_IMX_MIRROR_SITE) is defined in the parent makefile:
http://git.buildroot.net/buildroot/tree/package/freescale-imx/freescale-imx.mk

... so it's not appropriate to include from the other tree.

Can you take a look at the more recent patch set? Things seem much cleaner by having this all in the same tree.

Thanks,

Eric

#16 lore raw

PATCH 4/4 i.MX6: Update Freescale hardware-acceleration bits to latest versions

In reply to Arnout Vandecappelle

Dear Arnout Vandecappelle,

Quoted 7 lines · Arnout Vandecappelle
Quoted 6 lines

By following the lead of the meta-fsl-arm project and allowing the first of any packages with the Freescale EULA to prompt the user for acceptance, but I'm not sure how to accomplish that.

In the Yocto world, a tag ("ACCEPT_FREESCALE_EULA") placed in local.conf is sufficient to bypass the prompt, which requires action by the user.

Quoted 7 lines

We prefer to avoid that the build stops after half an hour or so
because it is waiting for user input. Also, I don't see a reason why we have to explicitly ask the user to accept this license. If we do that, we should probably do the same for all the other packages.

If we do want explicit acceptance, then it can be done similar to the
Qt license, i.e. add a config option that enables the --auto-accept.

Agreed.

Quoted 5 lines
Quoted 2 lines

Agreed. I'm also confused about why this isn't in the freescale-imx/ directory.

Because the libfslcodec fits in the multimedia libraries menu more than
in the hardware handling menu.

I don't quite agree here. The location of the package in the menu has nothing to do with the location of the package .mk file and directory. So if the libfslcodec is downloaded from the same site and with the same version as the other package/freescale-imx/ stuff and therefore re-use the same variables, it could very well be moved under this directory.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com