Skip to contentSkip to conversation

mx53loco: update support

PATCH Superseded Eric Bénard 3 participants 6 messages Oct 20, 2014 Arm i.MX and Layerscape

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 mx53loco: update support

- update bootloader to 2014.07 with fslc patches
- update kernel to 2.6.35_maintain branch which contains latest fixes
- defconfig was then generated by savedefconfig which suppressed and reordered some items which explains the number of lines changed.

Tested on an i.MX53 QSB and an i.MX53 QSB-R

---
 configs/mx53loco_defconfig | 24 +++++++++---------------
 1 file changed, 9 insertions(+), 15 deletions(-)
configs/mx53loco_defconfig +9 -15
index 8b12238..6e59e5b 100644
@@ -1,22 +1,16 @@
-# Architecture
 BR2_arm=y
 BR2_cortex_a8=y
-BR2_ARM_FPU_VFPV3D16=y
-
-# System
 BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
-BR2_TARGET_UBOOT=y
-BR2_TARGET_UBOOT_BOARDNAME="mx53_loco"
-BR2_TARGET_UBOOT_CUSTOM_GIT=y
-BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://git.freescale.com/imx/uboot-imx.git"
-BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="rel_imx_2.6.35_11.09.01"
-
-# filesystem
-BR2_TARGET_ROOTFS_EXT2=y
-
-# Kernel
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_GIT=y
 BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://git.freescale.com/imx/linux-2.6-imx.git"
-BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="rel_imx_2.6.35_11.09.01"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="imx_2.6.35_maintain"
 BR2_LINUX_KERNEL_DEFCONFIG="imx5"
+BR2_LINUX_KERNEL_ZIMAGE=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="mx53loco"
+BR2_TARGET_UBOOT_CUSTOM_GIT=y
+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://github.com/Freescale/u-boot-imx.git"
+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="patches-2014.07"
+BR2_TARGET_UBOOT_FORMAT_IMX=y
Signature · 1 line
2.1.1
#1 lore raw

PATCH 2/2 imx6sabresd/create-boot-sd.sh: allow usage for i.MX53

this script permits the generation of an sdcard that will boot on and i.MX53 QSB with a recent bootloader (now supported by buildroot).

Tested on an i.MX53 QSB and an i.MX53 QSB-R

---
 board/freescale/imx53loco/create-boot-sd.sh   | 1 +
 board/freescale/imx6sabresd/create-boot-sd.sh | 8 +++-----
 2 files changed, 4 insertions(+), 5 deletions(-)
 create mode 120000 board/freescale/imx53loco/create-boot-sd.sh
board/freescale/imx53loco/create-boot-sd.sh new file +1 -0
new file mode 120000
index 0000000..3083fd2
@@ -0,0 +1 @@
+../imx6sabresd/create-boot-sd.sh
\ No newline at end of file
board/freescale/imx6sabresd/create-boot-sd.sh +3 -5
index 9930b1e..af45115 100755
@@ -7,9 +7,7 @@ PROGNAME=$(basename $0)
 
 usage()
 {
-    echo "Create an SD card that boots on an i.MX6DL SABRESD board."
-    echo "It is supposed to work also for the i.MX6Q SABRESD board, but"
-    echo "it this is not tested."
+    echo "Create an SD card that boots on an i.MX53/6 board."
     echo
     echo "Note: all data on the the card will be completely deleted!"
     echo "Use with care!"
@@ -77,8 +75,8 @@ TMPDIR=$(mktemp -d)
 # FAT partition: kernel and DTBs
 mkfs.vfat ${PART1}
 mount ${PART1} ${TMPDIR}
-cp output/images/uImage ${TMPDIR}/
-cp output/images/*.dtb  ${TMPDIR}/
+cp output/images/*Image ${TMPDIR}/
+cp output/images/*.dtb  ${TMPDIR}/ || true
 sync
 umount ${TMPDIR}
 
Signature · 1 line
2.1.1
#2 lore raw

PATCH 1/2 mx53loco: update support

In reply to Eric Bénard
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Eric" == Eric B?nard <[email protected]> writes:

- update bootloader to 2014.07 with fslc patches

fslc? Do you mean Freescale?

Quoted 23 lines

- update kernel to 2.6.35_maintain branch which contains latest fixes
- defconfig was then generated by savedefconfig which suppressed and reordered some items which explains the number of lines changed.

Tested on an i.MX53 QSB and an i.MX53 QSB-R

---
 configs/mx53loco_defconfig | 24 +++++++++---------------
 1 file changed, 9 insertions(+), 15 deletions(-)
configs/mx53loco_defconfig +0 -4
index 8b12238..6e59e5b 100644
@@ -1,22 +1,16 @@
-# Architecture
 BR2_arm=y
 BR2_cortex_a8=y
-BR2_ARM_FPU_VFPV3D16=y
-
-# System
 BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"

configs/mx53loco_defconfig line 17

Quoted 10 lines
configs/mx53loco_defconfig +0 -10
-BR2_TARGET_UBOOT=y
-BR2_TARGET_UBOOT_BOARDNAME="mx53_loco"
-BR2_TARGET_UBOOT_CUSTOM_GIT=y
-BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://git.freescale.com/imx/uboot-imx.git"
-BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="rel_imx_2.6.35_11.09.01"
-
-# filesystem
-BR2_TARGET_ROOTFS_EXT2=y
-
-# Kernel

I prefer to keep the section comments, but OK.

configs/mx53loco_defconfig line 7

Quoted 5 lines
configs/mx53loco_defconfig +1 -1
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_GIT=y
 BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://git.freescale.com/imx/linux-2.6-imx.git"
-BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="rel_imx_2.6.35_11.09.01"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="imx_2.6.35_maintain"

_VERSION has to uniquely specify a revision, so it must be a tag or a sha1 - And not a branch.

So use b3912bb8a4caf3ec50909135e88af959982c43ca instead.

configs/mx53loco_defconfig line 14

Quoted 7 lines
configs/mx53loco_defconfig +6 -0
 BR2_LINUX_KERNEL_DEFCONFIG="imx5"
+BR2_LINUX_KERNEL_ZIMAGE=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="mx53loco"
+BR2_TARGET_UBOOT_CUSTOM_GIT=y
+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://github.com/Freescale/u-boot-imx.git"

The github page seems to redirect this to u-boot-fslc - So perhaps use that instead?

configs/mx53loco_defconfig line 15

Quoted 1 line
configs/mx53loco_defconfig +1 -0
+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="patches-2014.07"

Same comment as for the kernel.

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

PATCH 1/2 mx53loco: update support

Hi Peter,

Le Mon, 20 Oct 2014 10:03:00 +0200,
Peter Korsgaard <[email protected]> a ?crit :

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

"Eric" == Eric B?nard <[email protected]> writes:

- update bootloader to 2014.07 with fslc patches

fslc? Do you mean Freescale?

fscl means "Freescale Community" :
http://freescale.github.io/
https://community.freescale.com/welcome
so the suffix -fslc is added to u-boot & linux git trees :
https://github.com/Freescale/u-boot-fslc
https://github.com/Freescale/linux-fslc

Quoted 29 lines
Quoted 29 lines

- update kernel to 2.6.35_maintain branch which contains latest fixes
- defconfig was then generated by savedefconfig which suppressed and reordered some items which explains the number of lines changed.

Tested on an i.MX53 QSB and an i.MX53 QSB-R

---
 configs/mx53loco_defconfig | 24 +++++++++---------------
 1 file changed, 9 insertions(+), 15 deletions(-)
(quoted diff) +0 -0

b/configs/mx53loco_defconfig index 8b12238..6e59e5b 100644

configs/mx53loco_defconfig +0 -8
@@ -1,22 +1,16 @@
-# Architecture
 BR2_arm=y
 BR2_cortex_a8=y
-BR2_ARM_FPU_VFPV3D16=y
-
-# System
 BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
-BR2_TARGET_UBOOT=y
-BR2_TARGET_UBOOT_BOARDNAME="mx53_loco"
-BR2_TARGET_UBOOT_CUSTOM_GIT=y
-BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://git.freescale.com/imx/uboot-imx.git"
Quoted 9 lines

configs/mx53loco_defconfig line 17

Quoted 6 lines
configs/mx53loco_defconfig +0 -6
-BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="rel_imx_2.6.35_11.09.01"
-
-# filesystem
-BR2_TARGET_ROOTFS_EXT2=y
-
-# Kernel

I prefer to keep the section comments, but OK.

make savedefconfig automagically removed the comments. I you prefer I can manually reintroduce them.

Quoted 9 lines

configs/mx53loco_defconfig line 7

Quoted 5 lines
configs/mx53loco_defconfig +1 -1
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_GIT=y
 BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://git.freescale.com/imx/linux-2.6-imx.git"
-BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="rel_imx_2.6.35_11.09.01"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="imx_2.6.35_maintain"

_VERSION has to uniquely specify a revision, so it must be a tag or a sha1 - And not a branch.

then the help is misleading as it says (for BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION and for BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION) :
"Revision to use in the typical format used by Git/Mercurial E.G. a sha id, a tag, _branch_ , .. "

Quoted 2 lines

So use b3912bb8a4caf3ec50909135e88af959982c43ca instead.

OK will do in v2.

Quoted 11 lines

configs/mx53loco_defconfig line 14

Quoted 7 lines
configs/mx53loco_defconfig +6 -0
 BR2_LINUX_KERNEL_DEFCONFIG="imx5"
+BR2_LINUX_KERNEL_ZIMAGE=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="mx53loco"
+BR2_TARGET_UBOOT_CUSTOM_GIT=y
+BR2_TARGET_UBOOT_CUSTOM_REPO_URL="git://github.com/Freescale/u-boot-imx.git"

The github page seems to redirect this to u-boot-fslc - So perhaps use that instead?

OK

Quoted 4 lines

configs/mx53loco_defconfig line 15

Quoted 1 line
configs/mx53loco_defconfig +1 -0
+BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="patches-2014.07"

Same comment as for the kernel.

OK

Thanks,
Eric

#4 lore raw

PATCH 1/2 mx53loco: update support

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

"Eric" == Eric B?nard <[email protected]> writes:

Hi,

Quoted 3 lines
Quoted 2 lines

fslc? Do you mean Freescale?

fscl means "Freescale Community" :

fslc ;)

Quoted 5 lines

http://freescale.github.io/
https://community.freescale.com/welcome
so the suffix -fslc is added to u-boot & linux git trees :
https://github.com/Freescale/u-boot-fslc
https://github.com/Freescale/linux-fslc

Ok, thanks.

Quoted 4 lines
Quoted 2 lines

I prefer to keep the section comments, but OK.

make savedefconfig automagically removed the comments. I you prefer I can manually reintroduce them.

I think it is nicer for consistency, but I can add them as well when committing.

Quoted 9 lines
Quoted 9 lines

configs/mx53loco_defconfig line 7

Quoted 5 lines

BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_GIT=y BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://git.freescale.com/imx/linux-2.6-imx.git"

configs/mx53loco_defconfig +1 -1
-BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="rel_imx_2.6.35_11.09.01"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="imx_2.6.35_maintain"

_VERSION has to uniquely specify a revision, so it must be a tag or a sha1 - And not a branch.

Quoted 5 lines

then the help is misleading as it says (for BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION and for BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION) :
"Revision to use in the typical format used by Git/Mercurial E.G. a sha id, a tag, _branch_ , .. "

Ahh yes, I'll fix that. The problem about using a branch is that the downloading infrastructure thinks the branch name uniquely identifies the code, so it will only download it once even if more commits are pushed to the branch later.

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

PATCH 1/2 mx53loco: update support

In reply to Eric Bénard

Dear Eric B?nard,

configs/mx53loco_defconfig line 7

Quoted 6 lines · Eric B?nard
configs/mx53loco_defconfig +1 -2
-# Kernel
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_GIT=y
 BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://git.freescale.com/imx/linux-2.6-imx.git"
-BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="rel_imx_2.6.35_11.09.01"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="imx_2.6.35_maintain"

Since we're using 2.6.35, the kernel headers of the toolchain should also be fixed to 2.6.35, otherwise we're using 3.17 by default which may cause some issues.

Thomas

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