diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:19:58 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:19:58 +0200 |
commit | f98b448ee835646be48f530b3e6fe13b32b093f5 (patch) | |
tree | 9d1062f1e8893e72829df650f5e558c5fb255955 /recipes-bsp/u-boot | |
download | meta-fsl-arm-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'recipes-bsp/u-boot')
12 files changed, 489 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot-fslc-mxsboot_2014.01.bb b/recipes-bsp/u-boot/u-boot-fslc-mxsboot_2014.01.bb new file mode 100644 index 0000000..298f1c0 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-fslc-mxsboot_2014.01.bb | |||
@@ -0,0 +1,28 @@ | |||
1 | DESCRIPTION = "U-boot bootloader mxsboot tool" | ||
2 | LICENSE = "GPLv2+" | ||
3 | LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb" | ||
4 | SECTION = "bootloader" | ||
5 | DEPENDS = "openssl" | ||
6 | PROVIDES = "u-boot-mxsboot" | ||
7 | |||
8 | PV = "v2014.01" | ||
9 | |||
10 | SRCREV = "f5d80303de12e6fefc022426a73136a288f70294" | ||
11 | SRCBRANCH = "patches-2014.01" | ||
12 | SRC_URI = "git://github.com/Freescale/u-boot-imx.git;branch=${SRCBRANCH}" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | EXTRA_OEMAKE = 'HOSTCC="${CC} ${CPPFLAGS}" HOSTLDFLAGS="-L${libdir} -L${base_libdir}" HOSTSTRIP=true CONFIG_MX28=y' | ||
17 | |||
18 | do_compile () { | ||
19 | oe_runmake tools | ||
20 | } | ||
21 | |||
22 | do_install () { | ||
23 | install -d ${D}${bindir} | ||
24 | install -m 0755 tools/mxsboot ${D}${bindir}/uboot-mxsboot | ||
25 | ln -sf uboot-mxsboot ${D}${bindir}/mxsboot | ||
26 | } | ||
27 | |||
28 | BBCLASSEXTEND = "native nativesdk" | ||
diff --git a/recipes-bsp/u-boot/u-boot-fslc.inc b/recipes-bsp/u-boot/u-boot-fslc.inc new file mode 100644 index 0000000..4ed19d6 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-fslc.inc | |||
@@ -0,0 +1,29 @@ | |||
1 | # Copyright (C) 2012-2014 O.S. Systems Software LTDA. | ||
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | |||
4 | require recipes-bsp/u-boot/u-boot.inc | ||
5 | |||
6 | DESCRIPTION = "U-boot bootloader for Freescale ARM platforms" | ||
7 | LICENSE = "GPLv2+" | ||
8 | LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb" | ||
9 | COMPATIBLE_MACHINE = "(mxs|mx3|mx5|mx6|vf60)" | ||
10 | |||
11 | DEPENDS_mxs += "elftosb-native openssl-native" | ||
12 | |||
13 | PROVIDES += "u-boot" | ||
14 | |||
15 | SRCBRANCH ??= "master" | ||
16 | |||
17 | SRC_URI = "git://github.com/Freescale/u-boot-imx.git;branch=${SRCBRANCH}" | ||
18 | |||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | # FIXME: Allow linking of 'tools' binaries with native libraries | ||
22 | # used for generating the boot logo and other tools used | ||
23 | # during the build process. | ||
24 | EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CPPFLAGS}" \ | ||
25 | HOSTLDFLAGS="${BUILD_LDFLAGS}" \ | ||
26 | HOSTSTRIP=true' | ||
27 | |||
28 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
29 | |||
diff --git a/recipes-bsp/u-boot/u-boot-fslc_2014.01.bb b/recipes-bsp/u-boot/u-boot-fslc_2014.01.bb new file mode 100644 index 0000000..f6d4657 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-fslc_2014.01.bb | |||
@@ -0,0 +1,7 @@ | |||
1 | include u-boot-fslc.inc | ||
2 | |||
3 | PV = "v2014.01" | ||
4 | |||
5 | SRCBRANCH = "patches-2014.01" | ||
6 | |||
7 | SRCREV = "f5d80303de12e6fefc022426a73136a288f70294" | ||
diff --git a/recipes-bsp/u-boot/u-boot-imx-mfgtool_2013.04.bb b/recipes-bsp/u-boot/u-boot-imx-mfgtool_2013.04.bb new file mode 100644 index 0000000..f66114c --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-imx-mfgtool_2013.04.bb | |||
@@ -0,0 +1,4 @@ | |||
1 | # Copyright (C) 2014 O.S. Systems Software LTDA. | ||
2 | |||
3 | require u-boot-imx_${PV}.bb | ||
4 | require u-boot-mfgtool.inc | ||
diff --git a/recipes-bsp/u-boot/u-boot-imx/mx53_loco_bootenv.patch b/recipes-bsp/u-boot/u-boot-imx/mx53_loco_bootenv.patch new file mode 100644 index 0000000..4b0ac9b --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-imx/mx53_loco_bootenv.patch | |||
@@ -0,0 +1,51 @@ | |||
1 | diff --git a/include/configs/mx53_loco.h b/include/configs/mx53_loco.h | ||
2 | index 0f57f78..e8a6414 100644 | ||
3 | --- a/include/configs/mx53_loco.h | ||
4 | +++ b/include/configs/mx53_loco.h | ||
5 | @@ -114,22 +114,30 @@ | ||
6 | #define CONFIG_RD_LOADADDR (CONFIG_LOADADDR + 0x300000) | ||
7 | |||
8 | #define CONFIG_EXTRA_ENV_SETTINGS \ | ||
9 | - "netdev=eth0\0" \ | ||
10 | - "ethprime=FEC0\0" \ | ||
11 | - "uboot=u-boot.bin\0" \ | ||
12 | - "kernel=uImage\0" \ | ||
13 | - "nfsroot=/opt/eldk/arm\0" \ | ||
14 | - "bootargs_base=setenv bootargs console=ttymxc0,115200\0"\ | ||
15 | - "bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs "\ | ||
16 | - "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0"\ | ||
17 | - "bootcmd_net=run bootargs_base bootargs_nfs; " \ | ||
18 | - "tftpboot ${loadaddr} ${kernel}; bootm\0" \ | ||
19 | - "bootargs_mmc=setenv bootargs ${bootargs} ip=dhcp " \ | ||
20 | - "root=/dev/mmcblk0p1 rootwait rw\0" \ | ||
21 | - "bootcmd_mmc=run bootargs_base bootargs_mmc; " \ | ||
22 | - "mmc dev 0; " \ | ||
23 | - "mmc read ${loadaddr} 0x800 0x1800; bootm\0" \ | ||
24 | - "bootcmd=run bootcmd_mmc\0" \ | ||
25 | + "script=boot.scr\0" \ | ||
26 | + "uimage=uImage\0" \ | ||
27 | + "mmcdev=0\0" \ | ||
28 | + "mmcpart=1\0" \ | ||
29 | + "mmcroot=/dev/mmcblk0p2 rw\0" \ | ||
30 | + "mmcrootfstype=ext3 rootwait\0" \ | ||
31 | + "mmcargs=setenv bootargs console=ttymxc0,${baudrate} " \ | ||
32 | + "root=${mmcroot} " \ | ||
33 | + "rootfstype=${mmcrootfstype}\0" \ | ||
34 | + "loadbootscript=" \ | ||
35 | + "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ | ||
36 | + "bootscript=echo Running bootscript from mmc ...; " \ | ||
37 | + "source\0" \ | ||
38 | + "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \ | ||
39 | + "mmcboot=echo Booting from mmc ...; " \ | ||
40 | + "run mmcargs; " \ | ||
41 | + "bootm\0" \ | ||
42 | + "netargs=setenv bootargs console=ttymxc0,${baudrate} " \ | ||
43 | + "root=/dev/nfs " \ | ||
44 | + "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \ | ||
45 | + "netboot=echo Booting from net ...; " \ | ||
46 | + "run netargs; " \ | ||
47 | + "dhcp ${uimage}; bootm\0" \ | ||
48 | + "bootcmd=run loaduimage; run mmcboot;\0" \ | ||
49 | \ | ||
50 | |||
51 | |||
diff --git a/recipes-bsp/u-boot/u-boot-imx/mx6dl_sabresd-Change-default-environment-to-work-wit.patch b/recipes-bsp/u-boot/u-boot-imx/mx6dl_sabresd-Change-default-environment-to-work-wit.patch new file mode 100644 index 0000000..da4a771 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-imx/mx6dl_sabresd-Change-default-environment-to-work-wit.patch | |||
@@ -0,0 +1,67 @@ | |||
1 | From 7ae3e4c665bd27111ee8ae2b801251b1d32f44cc Mon Sep 17 00:00:00 2001 | ||
2 | From: Daiane Angolini <daiane.angolini@freescale.com> | ||
3 | Date: Wed, 20 Mar 2013 03:57:54 -0500 | ||
4 | Subject: [PATCH] mx6dl_sabresd: Change default environment to work with OE | ||
5 | |||
6 | Upstream-Status: Inappropriate [configuration] | ||
7 | |||
8 | Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com> | ||
9 | --- | ||
10 | include/configs/mx6dl_sabresd.h | 41 ++++++++++++++++++++++---------------- | ||
11 | 1 files changed, 24 insertions(+), 17 deletions(-) | ||
12 | |||
13 | diff --git a/include/configs/mx6dl_sabresd.h b/include/configs/mx6dl_sabresd.h | ||
14 | index a496453..6499d25 100644 | ||
15 | --- a/include/configs/mx6dl_sabresd.h | ||
16 | +++ b/include/configs/mx6dl_sabresd.h | ||
17 | @@ -121,23 +121,30 @@ | ||
18 | #define CONFIG_RD_LOADADDR (CONFIG_LOADADDR + 0x300000) | ||
19 | |||
20 | #define CONFIG_EXTRA_ENV_SETTINGS \ | ||
21 | - "netdev=eth0\0" \ | ||
22 | - "ethprime=FEC0\0" \ | ||
23 | - "uboot=u-boot.bin\0" \ | ||
24 | - "kernel=uImage\0" \ | ||
25 | - "nfsroot=/opt/eldk/arm\0" \ | ||
26 | - "bootargs_base=setenv bootargs console=ttymxc0,115200\0"\ | ||
27 | - "bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs "\ | ||
28 | - "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0"\ | ||
29 | - "bootcmd_net=run bootargs_base bootargs_nfs; " \ | ||
30 | - "tftpboot ${loadaddr} ${kernel}; bootm\0" \ | ||
31 | - "bootargs_mmc=setenv bootargs ${bootargs} ip=dhcp " \ | ||
32 | - "root=/dev/mmcblk0p1 rootwait\0" \ | ||
33 | - "bootcmd_mmc=run bootargs_base bootargs_mmc; " \ | ||
34 | - "mmc dev 3; " \ | ||
35 | - "mmc read ${loadaddr} 0x800 0x2000; bootm\0" \ | ||
36 | - "bootcmd=run bootcmd_net\0" \ | ||
37 | - | ||
38 | + "script=boot.scr\0" \ | ||
39 | + "uimage=uImage\0" \ | ||
40 | + "mmcdev=2\0" \ | ||
41 | + "mmcpart=1\0" \ | ||
42 | + "mmcroot=/dev/mmcblk1p2 rw\0" \ | ||
43 | + "mmcrootfstype=ext3 rootwait\0" \ | ||
44 | + "mmcargs=setenv bootargs console=ttymxc0,${baudrate} " \ | ||
45 | + "root=${mmcroot} " \ | ||
46 | + "rootfstype=${mmcrootfstype}\0" \ | ||
47 | + "loadbootscript=" \ | ||
48 | + "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ | ||
49 | + "bootscript=echo Running bootscript from mmc ...; " \ | ||
50 | + "source\0" \ | ||
51 | + "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \ | ||
52 | + "mmcboot=echo Booting from mmc ...; " \ | ||
53 | + "run mmcargs; " \ | ||
54 | + "bootm\0" \ | ||
55 | + "netargs=setenv bootargs console=ttymxc0,${baudrate} " \ | ||
56 | + "root=/dev/nfs " \ | ||
57 | + "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \ | ||
58 | + "netboot=echo Booting from net ...; " \ | ||
59 | + "run netargs; " \ | ||
60 | + "dhcp ${uimage}; bootm\0" \ | ||
61 | + "bootcmd=run loaduimage; run mmcboot;\0" \ | ||
62 | |||
63 | #define CONFIG_ARP_TIMEOUT 200UL | ||
64 | |||
65 | -- | ||
66 | 1.7.5.4 | ||
67 | |||
diff --git a/recipes-bsp/u-boot/u-boot-imx/mx6q_sabreauto-Fix-the-patch-for-the-default-environ.patch b/recipes-bsp/u-boot/u-boot-imx/mx6q_sabreauto-Fix-the-patch-for-the-default-environ.patch new file mode 100644 index 0000000..80ef444 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-imx/mx6q_sabreauto-Fix-the-patch-for-the-default-environ.patch | |||
@@ -0,0 +1,66 @@ | |||
1 | From a81c7686f8c0c4fc6e88228f215092c00d4714c1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Daiane Angolini <daiane.angolini@freescale.com> | ||
3 | Date: Tue, 30 Oct 2012 07:47:59 -0500 | ||
4 | Subject: [PATCH] mx6q_sabreauto: Fix the patch for the default environment | ||
5 | variable | ||
6 | |||
7 | Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com> | ||
8 | --- | ||
9 | include/configs/mx6q_sabreauto.h | 41 ++++++++++++++++++++++--------------- | ||
10 | 1 files changed, 24 insertions(+), 17 deletions(-) | ||
11 | |||
12 | diff --git a/include/configs/mx6q_sabreauto.h b/include/configs/mx6q_sabreauto.h | ||
13 | index 5f8f02c..5910eca 100644 | ||
14 | --- a/include/configs/mx6q_sabreauto.h | ||
15 | +++ b/include/configs/mx6q_sabreauto.h | ||
16 | @@ -121,23 +121,30 @@ | ||
17 | #define CONFIG_RD_LOADADDR (CONFIG_LOADADDR + 0x300000) | ||
18 | |||
19 | #define CONFIG_EXTRA_ENV_SETTINGS \ | ||
20 | - "netdev=eth0\0" \ | ||
21 | - "ethprime=FEC0\0" \ | ||
22 | - "uboot=u-boot.bin\0" \ | ||
23 | - "kernel=uImage\0" \ | ||
24 | - "nfsroot=/opt/eldk/arm\0" \ | ||
25 | - "bootargs_base=setenv bootargs console=ttymxc3,115200\0"\ | ||
26 | - "bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs "\ | ||
27 | - "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0"\ | ||
28 | - "bootcmd_net=run bootargs_base bootargs_nfs; " \ | ||
29 | - "tftpboot ${loadaddr} ${kernel}; bootm\0" \ | ||
30 | - "bootargs_mmc=setenv bootargs ${bootargs} " \ | ||
31 | - "root=/dev/mmcblk0p1 rootwait\0" \ | ||
32 | - "bootcmd_mmc=run bootargs_base bootargs_mmc; " \ | ||
33 | - "mmc dev 2; " \ | ||
34 | - "mmc read ${loadaddr} 0x800 0x2000; bootm\0" \ | ||
35 | - "bootcmd=run bootcmd_mmc\0" \ | ||
36 | - | ||
37 | + "script=boot.scr\0" \ | ||
38 | + "uimage=uImage\0" \ | ||
39 | + "mmcdev=2\0" \ | ||
40 | + "mmcpart=1\0" \ | ||
41 | + "mmcroot=/dev/mmcblk0p2 rw\0" \ | ||
42 | + "mmcrootfstype=ext3 rootwait\0" \ | ||
43 | + "mmcargs=setenv bootargs console=ttymxc3,${baudrate} " \ | ||
44 | + "root=${mmcroot} " \ | ||
45 | + "rootfstype=${mmcrootfstype}\0" \ | ||
46 | + "loadbootscript=" \ | ||
47 | + "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ | ||
48 | + "bootscript=echo Running bootscript from mmc ...; " \ | ||
49 | + "source\0" \ | ||
50 | + "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \ | ||
51 | + "mmcboot=echo Booting from mmc ...; " \ | ||
52 | + "run mmcargs; " \ | ||
53 | + "bootm\0" \ | ||
54 | + "netargs=setenv bootargs console=ttymxc3,${baudrate} " \ | ||
55 | + "root=/dev/nfs " \ | ||
56 | + "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \ | ||
57 | + "netboot=echo Booting from net ...; " \ | ||
58 | + "run netargs; " \ | ||
59 | + "dhcp ${uimage}; bootm\0" \ | ||
60 | + "bootcmd=run loaduimage; run mmcboot;\0" \ | ||
61 | |||
62 | #define CONFIG_ARP_TIMEOUT 200UL | ||
63 | |||
64 | -- | ||
65 | 1.7.5.4 | ||
66 | |||
diff --git a/recipes-bsp/u-boot/u-boot-imx/mx6q_sabresd-Change-default-environment-to-work-with.patch b/recipes-bsp/u-boot/u-boot-imx/mx6q_sabresd-Change-default-environment-to-work-with.patch new file mode 100644 index 0000000..bf85800 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-imx/mx6q_sabresd-Change-default-environment-to-work-with.patch | |||
@@ -0,0 +1,66 @@ | |||
1 | From 970f04b228a60c805cce41ef8403ba2c8cb56d97 Mon Sep 17 00:00:00 2001 | ||
2 | From: Otavio Salvador <otavio@ossystems.com.br> | ||
3 | Date: Wed, 13 Feb 2013 15:15:28 -0200 | ||
4 | Subject: [PATCH] mx6q_sabresd: Change default environment to work with OE | ||
5 | |||
6 | Upstream-Status: Inappropriate [configuration] | ||
7 | |||
8 | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> | ||
9 | --- | ||
10 | include/configs/mx6q_sabresd.h | 40 ++++++++++++++++++++++++---------------- | ||
11 | 1 file changed, 24 insertions(+), 16 deletions(-) | ||
12 | |||
13 | diff --git a/include/configs/mx6q_sabresd.h b/include/configs/mx6q_sabresd.h | ||
14 | index 6f07961..db31a34 100644 | ||
15 | --- a/include/configs/mx6q_sabresd.h | ||
16 | +++ b/include/configs/mx6q_sabresd.h | ||
17 | @@ -116,22 +116,30 @@ | ||
18 | #define CONFIG_RD_LOADADDR (0x1300000) | ||
19 | |||
20 | #define CONFIG_EXTRA_ENV_SETTINGS \ | ||
21 | - "netdev=eth0\0" \ | ||
22 | - "ethprime=FEC0\0" \ | ||
23 | - "uboot=u-boot.bin\0" \ | ||
24 | - "kernel=uImage\0" \ | ||
25 | - "nfsroot=/opt/eldk/arm\0" \ | ||
26 | - "bootargs_base=setenv bootargs console=ttymxc0,115200\0"\ | ||
27 | - "bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs "\ | ||
28 | - "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0"\ | ||
29 | - "bootcmd_net=run bootargs_base bootargs_nfs; " \ | ||
30 | - "tftpboot ${loadaddr} ${kernel}; bootm\0" \ | ||
31 | - "bootargs_mmc=setenv bootargs ${bootargs} ip=dhcp " \ | ||
32 | - "root=/dev/mmcblk0p1 rootwait\0" \ | ||
33 | - "bootcmd_mmc=run bootargs_base bootargs_mmc; " \ | ||
34 | - "mmc dev 3; " \ | ||
35 | - "mmc read ${loadaddr} 0x800 0x2000; bootm\0" \ | ||
36 | - "bootcmd=run bootcmd_net\0" \ | ||
37 | + "script=boot.scr\0" \ | ||
38 | + "uimage=uImage\0" \ | ||
39 | + "mmcdev=2\0" \ | ||
40 | + "mmcpart=1\0" \ | ||
41 | + "mmcroot=/dev/mmcblk0p2 rw\0" \ | ||
42 | + "mmcrootfstype=ext3 rootwait\0" \ | ||
43 | + "mmcargs=setenv bootargs console=ttymxc3,${baudrate} " \ | ||
44 | + "root=${mmcroot} " \ | ||
45 | + "rootfstype=${mmcrootfstype}\0" \ | ||
46 | + "loadbootscript=" \ | ||
47 | + "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ | ||
48 | + "bootscript=echo Running bootscript from mmc ...; " \ | ||
49 | + "source\0" \ | ||
50 | + "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \ | ||
51 | + "mmcboot=echo Booting from mmc ...; " \ | ||
52 | + "run mmcargs; " \ | ||
53 | + "bootm\0" \ | ||
54 | + "netargs=setenv bootargs console=ttymxc3,${baudrate} " \ | ||
55 | + "root=/dev/nfs " \ | ||
56 | + "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \ | ||
57 | + "netboot=echo Booting from net ...; " \ | ||
58 | + "run netargs; " \ | ||
59 | + "dhcp ${uimage}; bootm\0" \ | ||
60 | + "bootcmd=run loaduimage; run mmcboot;\0" \ | ||
61 | |||
62 | |||
63 | #define CONFIG_ARP_TIMEOUT 200UL | ||
64 | -- | ||
65 | 1.8.1 | ||
66 | |||
diff --git a/recipes-bsp/u-boot/u-boot-imx/mx6sl_evk-Fix-the-patch-for-the-default-environment-.patch b/recipes-bsp/u-boot/u-boot-imx/mx6sl_evk-Fix-the-patch-for-the-default-environment-.patch new file mode 100644 index 0000000..5d3f868 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-imx/mx6sl_evk-Fix-the-patch-for-the-default-environment-.patch | |||
@@ -0,0 +1,67 @@ | |||
1 | From bf99fdddbca321f7e74ed82febbe4b5539e3ac66 Mon Sep 17 00:00:00 2001 | ||
2 | From: Daiane Angolini <daiane.angolini@freescale.com> | ||
3 | Date: Thu, 14 Mar 2013 16:35:35 -0300 | ||
4 | Subject: [PATCH] mx6sl_evk: Change the patch for the default environment | ||
5 | variable | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com> | ||
10 | --- | ||
11 | include/configs/mx6sl_evk.h | 40 ++++++++++++++++++++++++---------------- | ||
12 | 1 file changed, 24 insertions(+), 16 deletions(-) | ||
13 | |||
14 | diff --git a/include/configs/mx6sl_evk.h b/include/configs/mx6sl_evk.h | ||
15 | index 4c327bc..dfb6374 100644 | ||
16 | --- a/include/configs/mx6sl_evk.h | ||
17 | +++ b/include/configs/mx6sl_evk.h | ||
18 | @@ -122,22 +122,30 @@ | ||
19 | #define CONFIG_RD_LOADADDR 0x81000000 | ||
20 | |||
21 | #define CONFIG_EXTRA_ENV_SETTINGS \ | ||
22 | - "netdev=eth0\0" \ | ||
23 | - "ethprime=FEC0\0" \ | ||
24 | - "uboot=u-boot.bin\0" \ | ||
25 | - "kernel=uImage\0" \ | ||
26 | - "nfsroot=/opt/eldk/arm\0" \ | ||
27 | - "bootargs_base=setenv bootargs console=ttymxc0,115200\0"\ | ||
28 | - "bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs "\ | ||
29 | - "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0"\ | ||
30 | - "bootcmd_net=run bootargs_base bootargs_nfs; " \ | ||
31 | - "tftpboot ${loadaddr} ${kernel}; bootm\0" \ | ||
32 | - "bootargs_mmc=setenv bootargs ${bootargs} " \ | ||
33 | - "root=/dev/mmcblk0p1 rootwait\0" \ | ||
34 | - "bootcmd_mmc=run bootargs_base bootargs_mmc; " \ | ||
35 | - "mmc dev 1; " \ | ||
36 | - "mmc read ${loadaddr} 0x800 0x2000; bootm\0" \ | ||
37 | - "bootcmd=run bootcmd_mmc\0" \ | ||
38 | + "script=boot.scr\0" \ | ||
39 | + "uimage=uImage\0" \ | ||
40 | + "mmcdev=1\0" \ | ||
41 | + "mmcpart=1\0" \ | ||
42 | + "mmcroot=/dev/mmcblk0p2 rw\0" \ | ||
43 | + "mmcrootfstype=ext3 rootwait\0" \ | ||
44 | + "mmcargs=setenv bootargs console=ttymxc0,${baudrate} " \ | ||
45 | + "root=${mmcroot} " \ | ||
46 | + "rootfstype=${mmcrootfstype}\0" \ | ||
47 | + "loadbootscript=" \ | ||
48 | + "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \ | ||
49 | + "bootscript=echo Running bootscript from mmc ...; " \ | ||
50 | + "source\0" \ | ||
51 | + "loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}\0" \ | ||
52 | + "mmcboot=echo Booting from mmc ...; " \ | ||
53 | + "run mmcargs; " \ | ||
54 | + "bootm\0" \ | ||
55 | + "netargs=setenv bootargs console=ttymxc0,${baudrate} " \ | ||
56 | + "root=/dev/nfs " \ | ||
57 | + "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \ | ||
58 | + "netboot=echo Booting from net ...; " \ | ||
59 | + "run netargs; " \ | ||
60 | + "dhcp ${uimage}; bootm\0" \ | ||
61 | + "bootcmd=run loaduimage; run mmcboot;\0" \ | ||
62 | |||
63 | |||
64 | #define CONFIG_ARP_TIMEOUT 200UL | ||
65 | -- | ||
66 | 1.7.10.4 | ||
67 | |||
diff --git a/recipes-bsp/u-boot/u-boot-imx_2009.08.bb b/recipes-bsp/u-boot/u-boot-imx_2009.08.bb new file mode 100644 index 0000000..393e7f3 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-imx_2009.08.bb | |||
@@ -0,0 +1,65 @@ | |||
1 | # Copyright (C) 2011-2014 Freescale Semiconductor | ||
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | |||
4 | DESCRIPTION = "bootloader for imx platforms" | ||
5 | require recipes-bsp/u-boot/u-boot.inc | ||
6 | |||
7 | PROVIDES += "u-boot" | ||
8 | |||
9 | LICENSE = "GPLv2+" | ||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=4c6cde5df68eff615d36789dc18edd3b" | ||
11 | |||
12 | DEPENDS_mxs += "elftosb-native" | ||
13 | |||
14 | PR = "r18" | ||
15 | |||
16 | SRCBRANCH_mxs = "imx_v2009.08_10.12.01" | ||
17 | SRCREV_mxs = "e4437f1c192a1a68028e6fcff3f50ff50352041d" | ||
18 | |||
19 | SRCBRANCH_mx5 = "imx_v2009.08_11.09.01" | ||
20 | SRCREV_mx5 = "897922d01c812be802e4a928b937535ea1b8e076" | ||
21 | SRC_URI_append_imx5 = " \ | ||
22 | file://mx53_loco_bootenv.patch \ | ||
23 | " | ||
24 | |||
25 | SRCBRANCH_mx6 = "imx_v2009.08_3.0.35_4.0.0" | ||
26 | SRCREV_mx6 = "5899674bf39544bec47e209649a723cf7348d3ba" | ||
27 | SRC_URI_append_mx6 = " \ | ||
28 | file://mx6q_sabreauto-Fix-the-patch-for-the-default-environ.patch \ | ||
29 | file://mx6q_sabresd-Change-default-environment-to-work-with.patch \ | ||
30 | file://mx6sl_evk-Fix-the-patch-for-the-default-environment-.patch \ | ||
31 | file://mx6dl_sabresd-Change-default-environment-to-work-wit.patch \ | ||
32 | " | ||
33 | |||
34 | SRC_URI = "git://git.freescale.com/imx/uboot-imx.git;branch=${SRCBRANCH}" | ||
35 | |||
36 | UBOOT_MACHINE_imx53qsb = "mx53_loco_config" | ||
37 | UBOOT_MACHINE_imx53ard = "mx53_ard_ddr3_config" | ||
38 | UBOOT_MACHINE_imx51evk = "mx51_bbg_config" | ||
39 | UBOOT_MACHINE_imx6qsabrelite = "mx6q_sabrelite_config" | ||
40 | UBOOT_MACHINE_imx6qsabreauto = "mx6q_sabreauto_config" | ||
41 | UBOOT_MACHINE_imx6qsabresd = "mx6q_sabresd_config" | ||
42 | UBOOT_MACHINE_imx6dlsabresd = "mx6dl_sabresd_config" | ||
43 | UBOOT_MACHINE_imx6slevk = "mx6sl_evk_config" | ||
44 | UBOOT_MACHINE_imx28evk = "mx28_evk_config" | ||
45 | |||
46 | UBOOT_MAKE_TARGET = "u-boot.bin" | ||
47 | |||
48 | # Please, add the following variables to conf/local.conf | ||
49 | # in order to use this u-boot version | ||
50 | # UBOOT_SUFFIX = "bin" | ||
51 | # UBOOT_PADDING = "2" | ||
52 | # PREFERRED_PROVIDER_u-boot = "u-boot-imx" | ||
53 | |||
54 | S = "${WORKDIR}/git" | ||
55 | EXTRA_OEMAKE += 'HOSTSTRIP=true' | ||
56 | |||
57 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
58 | |||
59 | do_compile_prepend() { | ||
60 | if [ "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then | ||
61 | sed -i 's/$(CROSS_COMPILE)ld/$(CROSS_COMPILE)ld.bfd/g' config.mk | ||
62 | fi | ||
63 | } | ||
64 | |||
65 | COMPATIBLE_MACHINE = "(imx28evk|mx5|mx6)" | ||
diff --git a/recipes-bsp/u-boot/u-boot-imx_2013.04.bb b/recipes-bsp/u-boot/u-boot-imx_2013.04.bb new file mode 100644 index 0000000..1c0f828 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-imx_2013.04.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | # Copyright (C) 2013, 2014 Freescale Semiconductor | ||
2 | |||
3 | DESCRIPTION = "bootloader for imx platforms" | ||
4 | require recipes-bsp/u-boot/u-boot.inc | ||
5 | |||
6 | PROVIDES += "u-boot" | ||
7 | |||
8 | LICENSE = "GPLv2+" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb" | ||
10 | |||
11 | SRCBRANCH = "imx_v2013.04_3.10.17_1.0.0_ga" | ||
12 | SRC_URI = "git://git.freescale.com/imx/uboot-imx.git;protocol=git;branch=${SRCBRANCH}" | ||
13 | SRCREV = "ce0ea2507c492d43bbf88f8609482a171b2d2003" | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
18 | COMPATIBLE_MACHINE = "(mx6)" | ||
diff --git a/recipes-bsp/u-boot/u-boot-mfgtool.inc b/recipes-bsp/u-boot/u-boot-mfgtool.inc new file mode 100644 index 0000000..91526ad --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-mfgtool.inc | |||
@@ -0,0 +1,21 @@ | |||
1 | # Produces a Manufacturing Tool compatible U-Boot | ||
2 | # | ||
3 | # This makes a separated binary set for Manufacturing Tool use | ||
4 | # without clobbering the U-Boot used for normal use. | ||
5 | # | ||
6 | # This file must to be included after the original u-boot.inc file, | ||
7 | # as it overrides the need values. | ||
8 | # | ||
9 | # Copyright (C) 2014 O.S. Systems Software LTDA. | ||
10 | |||
11 | # Adjust provides | ||
12 | PROVIDES = "u-boot-mfgtool" | ||
13 | |||
14 | # Use 'mfgtool' config | ||
15 | UBOOT_CONFIG = "mfgtool" | ||
16 | |||
17 | # Add 'mfgtool' suffix | ||
18 | UBOOT_IMAGE = "u-boot-${MACHINE}-mfgtool-${PV}-${PR}.${UBOOT_SUFFIX}" | ||
19 | UBOOT_SYMLINK = "u-boot-${MACHINE}-mfgtool.${UBOOT_SUFFIX}" | ||
20 | SPL_IMAGE = "${SPL_BINARY}-${MACHINE}-mfgtool-${PV}-${PR}" | ||
21 | SPL_SYMLINK = "${SPL_BINARY}-mfgtool-${MACHINE}" | ||