diff options
author | Ting Liu <ting.liu@freescale.com> | 2015-07-17 22:23:04 +0800 |
---|---|---|
committer | Zhenhua Luo <zhenhua.luo@freescale.com> | 2015-07-22 17:37:56 +0800 |
commit | 2e4da76f38d47a0e21dd7620797aed110cfab23d (patch) | |
tree | b748e9312981215fea0b603ea6b2b68267542eea /recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb | |
parent | da1bc520c454bba98ffa20f175b65413e92f07b6 (diff) | |
download | meta-fsl-ppc-2e4da76f38d47a0e21dd7620797aed110cfab23d.tar.gz |
u-boot-qoriq: update to revision v2015.01-630-g6ba8eed
Changes:
1. Rebased on git://git.denx.de/u-boot.git v2015.01-487-gab92da9
2. Applied another 143 FSL/backported patches (git log ab92da9..6ba8eed)
3. run script genboardscfg.py to generate boards.cfg firstly
The detailed 143 patches are:
6ba8eed DM: crypto/rsa_mod_exp - Correct copyright on rsa-mod-exp.h
d7cfd64 t4rdb: fix reset altbank
ab547e7 t4240qds: update rcw to support 1.8GHz
488bca3 crypto/fsl: add support for multiple SEC engines initialization
5eaa15a arch/arm, arch/powerpc: add # of SEC engines on the SOC
2a10e25 arch/arm: add SEC JR0 offset
3851bc8 drivers/elbc:Memory leak fix
3def5c1 powerpc/t1024: update fman liodn for mac1
9ee5a72 T102xRDB: Enable ifc nand ecc encode and decode
03084cb mpc85xx/t104xd4rdb: Update DDR controller settings
98cb1fa T104xD4RDB: Fix PHY address for PHY connected to FM1@DTSEC3
dffab04 net/phy: set led for rtl8211f phy
da6438e sf: Add support for flag status register on Micron chips
1e14807 powerpc: mpc85xx: Correct CONFIG_USB_MAX_CONTROLLER_COUNT for p1025
98a6712 mpc85xx/T104xRDB: Remove vbank check redundant code
06546ff powerpc/b4860qds:Update README for DIP switch information
b5c2dd2 board/ls1021atwr: Enable bootscript for secure boot
270cea4 powerpc/t1042d4rdb: Update rcw.cfg
e2bea76 drivers:usb:fsl: Remove board_usb_init() function
cf9cfea drivers:usb:fsl: Return if USB_MAX_CONTROLLER_COUNT is incorrect
8986dfb board/t1040d4rdb: Disable all CPLD interrupts, except QSGMI1 and QSGMI2
6b01f67 arm/ls1021a: Remove ccsr_ddr from immap_ls102xa.h
c0953d3 driver/ddr/fsl: Remove deskew_cntrl register
32ea516 arm: ls1021a: Remove the inappropriate use of the function 'sprintf'
af1dbff Enable snooping on transactions from CAAM block
0e1f5e1 driver/qe: use strncpy instead of strcpy
ef770a2 fsl/sata: Replace sprintf() with snprintf()
9238012 mpc85xx/t104x, t102x: Update CPC debug register value in PBI commands
651251d mpc85xx/t104x:Update README for PBL images
c6e1fe8 driver/qe: transform parameter to compatible type
306c7fd powerpc/mpc85xx:Add GCC flag -fno-delete-null-pointer-checks
82db1ee crypto/fsl - enable raw data instead of von Neumann data
6606ff0 crypto/fsl - change starting entropy delay value
3d9d33c crypto/fsl - disable RNG oscillator maximum frequency check
9961bb6 P4080 : Added PAMU driver
4bc7e84 Revert "powerpc/mpc85xx: SECURE BOOT - Bypass PAMU in case of secure boot"
703824e mmc: fsl_esdhc: set ESDHCCTL[PCS] when selecting peripheral clk
b80144c board/t2080rdb: reset cs4315 phy
cd01a9d net/phy: refactor RTL8211F initialization
8ac0b92 drivers: usb: fsl: Implement Workaround for Erratum A004477
cb362dc mmc: fsl_esdhc: update eMMC44 adapter card erase timeout
c93a3ea mpc85xx/T1042D4RDB: Select DIU in cpld mux for T1042D4RDB
b176d64 fsl/deepsleep: avoid the DDR restore from being optimized out
6c3b324 arm: ls102xa: Disable regulation of outstanding read transactions for S2
37c695e board/t102x: use fdt_setprop_string instead of fdt_setprop
8f425d1 QE/DeepSleep: add QE deepsleep support for arm
5458df5 kbuild: include config.mk when auto.conf is not older than .config
adb1487 ls1021aqds: config: remove default FB DCU support
14d9d27 board/t2080rdb: enable CONFIG_PHY_AQUANTIA
437a114 net/phy: fixup for get_phy_id
dacfd54 boards/t2080rdb: update ddr frequency from 1600MT/s to 1867MT/s
1a8bad0 board/p1_p2_rdb_pc: Eliminate the FDT_ERR_NOTFOUND warnning
203635c fsl/pci: Set CFG_READY for PCIe v3.0 and later
e7646b8 T104xD4RDB: Enable L2 Switch on T104xD4RDB board
e593bba mmc: fsl_esdhc: Add peripheral clock support for t2080qds
dfe7a91 mmc: fsl_esdhc: Add adapter card type identification support
b878145 arm:ls1021a: Reserve secure code into RAM instead of OCRAM
575e280 ls1021a: ahci: Added workaround for erratum ERR008407
11e63c5 ls1021a: ahci: Added workaround for erratum ERR008402
2b07de2 ls1021a: ahci: Adjust the default settings
6dcb9ea cmd_scsi: Enable SoC AHCI device on platforms with PCI
3140296 T104xD4: Add Secure boot support for T104xD4 platforms.
2d40ae3 drivers:usb:fsl: Implement Erratum A-009116 for XHCI controller
887c1df board/t4240rdb: Enable CONFIG_SYS_CORTINA_FW_IN_NOR
f6fb2b8 arm: ls102xa: Enable Driver Model SPI for ls1021atwr
738f236 arm: ls102xa: Enable Driver Model SPI for ls1021aqds
760ce9a arm: ls102xa: Enable CONFIG_DEFAULT_DEVICE_TREE to defconfig for ls1021a
22ad698 sf: Update AT45DB021D flash chip parameters
a9e4bb1 sf: probe: Add support Atmel AT45DB series devices special commands
7b18162 dm: spi: Convert Freescale DSPI driver to driver model
be352ab dm: spi: Convert Freescale QSPI driver to driver model
d7f8021 dm: ls1021a: dts: Add QSPI dts node
8b64aa1 dm: ls1021a: dts: Update DSPI node to support DM SPI
480c575 dm: ls1021a: dts: Change address_cells and size_cells from 2 to 1
3e932cf dm: ls1021a: Bring in ls1021a dts files from linux kernel
91f9040 dm: arm: Bring in skeleton64 device tree file from Linux
f62cbd5 dm: introduce dev_get_addr interface
c807f2b dm: core: Ignore disabled devices when binding
77db7df dm: spi: Move slave details to child platdata
dc7eeff dm: spi: Set up the spi_slave device pointer in child_pre_probe()
22a0a94 dm: core: Allow uclass to set up a device's child before it is probed
da110a5 dm: core: Allow the uclass to set up a device's child after binding
c6f8f43 dm: spi: Move the per-child data size to the uclass
6312dc6 dm: core: Allow uclasses to specify private data for a device's children
8258af5 dm: core: Add a flag to control sequence numbering
8a151f6 dm: core: Add a function to get a device's uclass ID
facf860 dm: core: Add a post_bind method for parents
400bf5b dm: core: Allow uclasses to specify platdata for a device's children
f4fc028 dm: core: Allow parents to have platform data for their children
be86f28 dm: core: Allocate platform data when binding a device
2141dd9 dm: core: Tidy up error handling in device_bind()
f3627ae dm: core: Set device tree node for root device
4472e2f net/phy: Add support for realtek RTL8211F
37d25d5 board/t208xrdb: VID support
52674c7 QE/DeepSleep: add QE deepsleep support for mpc85xx
f7e6de8 powerpc/t1023rdb: Add T1023 RDB board support
81d2058 powerpc/t2080rdb: update ddr to support 1866MT/s
67b23a8 arm: ls102xa: workaround for cache coherency problem
839c88b mpc85xx/T104xD4RDB: Add T104xD4RDB boards support
1293181 T104xRDB : remove raw timing parameter
2ec98c2 pci/layerscape: fix link and class issues to support ls2085a
1fe92b5 pci/layerscape: remove unnecessary pcie_layerscape.h
70d18dd driver/pci: add Layerscape PCIe driver
b9b27ae arm/ls1021a: add PCIe settings
6ea40af arm/ls102xa: use a array to define pexmscportsr
acf3674 arm/ls102xa: create TLB to map PCIe region
450e7ee ls1021atwr: add hwconfig setting to do pin mux
ae2b5a0 powerpc/t2080: enable erratum_a007186 for t2080 rev1.1
48f582d SECURE_BOOT: Disable IE Key feature for RAMBOOT
eb75fb7 drivers:usb:fsl: Add affected SOCs for USB Erratum A007792
60bae11 drivers:usb: Check if USB Erratum A005697 is applicable on 913x
1498a63 ls-1/usb: Add USB support for ls1021atwr
1b3e623 ls-1/usb: Add XHCI support for ls1021aqds
621c3e2 ls102xa: config: Add USB XHCI controller base address for LS102XA
9322aab drivers: usb: fsl: Add USB XHCI stack support
920eae8 powerpc/mpc85xx: SECURE BOOT-Copy Boot Script on RAM
3b3c26f powerpc/mpc85xx: SECURE BOOT- NAND secure boot target for P5020 and P5040
d9b6ccf powerpc/mpc85xx: SECURE BOOT- NAND secure boot target for P3041
789db66 ls102xa: ddr4: Use LPUART as console output to verify DCU driver
ae8ecf3 arm: ls102xa: Enable regulation of outstanding read transactions for slave interface S2
7d426cc arm: ls1021x: Add support for initializing CAAM's stream id
930f42f arm: ls102xa: Define default values for some CCSR macros
0193232 powerpc: 85xx: Modify CONFIG_USB_MAX_CONTROLLER_COUNT for P1022DS
f5da45f drivers:usb: Add device-tree fixup to identify socs having dual phy
bdf6935 Add bootscript support to esbc_validate.
64ea65b SECURE_BOOT : enable esbc_validate command for powerpc and arm platforms.
eb82578 SECURE BOOT: Add command for validation of images
6f67c1b fsl_sec_mon: Add driver for Security Monitor block of Freescale
e6aa74f fsl_sfp : Move ccsr_sfp_regs definition to common include
cb9678a rsa : Compile Modular Exponentiation files based on CONFIG_RSA_SOFTWARE_EXP
0c489dc crypto/fsl - Add progressive hashing support using hardware acceleration.
9bc1528 crypto/fsl: Make function names consistent for blob encapsulation/decapsulation.
2fe7e4e rsa: Use checksum algorithms from struct hash_algo
5172da9 Use hash.c in mkimage
3043003 hash: Add function to find hash_algo struct with progressive hash
f5082b7 lib/rsa: Add Kconfig for devices supporting RSA Modular Exponentiation
f5c65f2 DM: crypto/fsl - Add Freescale rsa DM driver
cbf5557 lib/rsa: Modify rsa to use DM driver
0b4c7ac configs: Move CONFIG_FIT_SIGNATURE to defconfig
de5370a DM: crypto/rsa_mod_exp: Add rsa Modular Exponentiation DM driver
8f6a26f FIT: Modify option FIT_SIGNATURE in Kconfig
3b55114 rsa: Split the rsa-verify to separate the modular exponentiation
98583e8 net/phy/realtek: Disable interrupt on Realtek Ethernet PHY drivers
Signed-off-by: Ting Liu <ting.liu@freescale.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb')
-rw-r--r-- | recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb | 189 |
1 files changed, 189 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb b/recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb new file mode 100644 index 0000000..17c470d --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb | |||
@@ -0,0 +1,189 @@ | |||
1 | DESCRIPTION = "U-boot bootloader" | ||
2 | HOMEPAGE = "http://u-boot.sf.net" | ||
3 | SECTION = "bootloaders" | ||
4 | PROVIDES = "virtual/bootloader u-boot" | ||
5 | LICENSE = "GPLv2 & BSD-3-Clause & BSD-2-Clause & LGPL-2.0 & LGPL-2.1" | ||
6 | LIC_FILES_CHKSUM = " \ | ||
7 | file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
8 | file://Licenses/bsd-2-clause.txt;md5=6a31f076f5773aabd8ff86191ad6fdd5 \ | ||
9 | file://Licenses/bsd-3-clause.txt;md5=4a1190eac56a9db675d58ebe86eaf50c \ | ||
10 | file://Licenses/lgpl-2.0.txt;md5=5f30f0716dfdd0d91eb439ebec522ec2 \ | ||
11 | file://Licenses/lgpl-2.1.txt;md5=4fbd65380cdd255951079008b364516c \ | ||
12 | " | ||
13 | |||
14 | PV = "2014.07+fslgit" | ||
15 | INHIBIT_DEFAULT_DEPS = "1" | ||
16 | DEPENDS = "boot-format-native libgcc ${@base_contains('TCMODE', 'external-fsl', '', 'virtual/${TARGET_PREFIX}gcc', d)}" | ||
17 | |||
18 | inherit deploy | ||
19 | |||
20 | SRC_URI = "git://git.freescale.com/ppc/sdk/u-boot.git;nobranch=1 \ | ||
21 | file://0001-u-boot-mpc85xx-u-boot-.lds-remove-_GLOBAL_OFFSET_TAB.patch" | ||
22 | SRCREV = "6ba8eedbcdc4b063f59a63e6288b938af739e8ad" | ||
23 | |||
24 | python () { | ||
25 | if d.getVar("TCMODE", True) == "external-fsl": | ||
26 | return | ||
27 | |||
28 | ml = d.getVar("MULTILIB_VARIANTS", True) | ||
29 | arch = d.getVar("OVERRIDES", True) | ||
30 | |||
31 | if "e5500-64b:" in arch or "e6500-64b:" in arch: | ||
32 | if not "lib32" in ml: | ||
33 | raise bb.parse.SkipPackage("Building the u-boot for this arch requires multilib to be enabled") | ||
34 | sys_multilib = 'powerpc' + d.getVar('TARGET_VENDOR') + 'mllib32-' + d.getVar('HOST_OS') | ||
35 | d.setVar('DEPENDS_append', ' lib32-gcc-cross-powerpc lib32-libgcc') | ||
36 | d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/' + sys_multilib) | ||
37 | d.setVar('TOOLCHAIN_OPTIONS_append', '/../lib32-' + d.getVar("MACHINE")) | ||
38 | d.setVar("WRAP_TARGET_PREFIX", sys_multilib + '-') | ||
39 | } | ||
40 | |||
41 | WRAP_TARGET_PREFIX ?= "${TARGET_PREFIX}" | ||
42 | |||
43 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
44 | |||
45 | UBOOT_LOCALVERSION = "${@d.getVar('SDK_VERSION', True).partition(' ')[0]}" | ||
46 | |||
47 | USRC ?= "" | ||
48 | S = '${@base_conditional("USRC", "", "${WORKDIR}/git", "${USRC}", d)}' | ||
49 | |||
50 | EXTRA_OEMAKE = 'CROSS_COMPILE=${WRAP_TARGET_PREFIX} CC="${WRAP_TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}"' | ||
51 | |||
52 | do_compile () { | ||
53 | unset LDFLAGS | ||
54 | unset CFLAGS | ||
55 | unset CPPFLAGS | ||
56 | |||
57 | if [ ! -e ${B}/.scmversion -a ! -e ${S}/.scmversion ] | ||
58 | then | ||
59 | head=`git rev-parse --verify --short HEAD 2> /dev/null` | ||
60 | printf "%s%s%s" ${UBOOT_LOCALVERSION} +g $head > ${B}/.scmversion | ||
61 | printf "%s%s%s" ${UBOOT_LOCALVERSION} +g $head > ${S}/.scmversion | ||
62 | fi | ||
63 | |||
64 | if [ "x${UBOOT_MACHINES}" = "x" ]; then | ||
65 | UBOOT_MACHINES=${UBOOT_MACHINE} | ||
66 | fi | ||
67 | |||
68 | python ./tools/genboardscfg.py | ||
69 | for board in ${UBOOT_MACHINES}; do | ||
70 | if ! grep -wq $board ${S}/boards.cfg;then | ||
71 | echo "WARNING: $board not supported in boards.cfg" | ||
72 | continue | ||
73 | fi | ||
74 | |||
75 | oe_runmake O=${board} distclean | ||
76 | oe_runmake O=${board} ${board}_config | ||
77 | oe_runmake O=${board} all | ||
78 | |||
79 | case "${board}" in | ||
80 | *SDCARD*) UBOOT_TARGET="u-boot-sd";; | ||
81 | *SPIFLASH*) UBOOT_TARGET="u-boot-spi";; | ||
82 | *NAND*) UBOOT_TARGET="u-boot-nand";; | ||
83 | *SRIO*) UBOOT_TARGET="u-boot-srio";; | ||
84 | *) UBOOT_TARGET="";; | ||
85 | esac | ||
86 | |||
87 | # deal with sd/spi/nand/srio image | ||
88 | UBOOT_SOURCE=u-boot.bin | ||
89 | if [ "x${UBOOT_TARGET}" != "x" ] && echo $board |egrep -qi "SECBOOT|SECURE"; then | ||
90 | cp ${S}/${board}/${UBOOT_SOURCE} ${S}/${board}/${UBOOT_TARGET}.bin | ||
91 | elif [ "x${UBOOT_TARGET}" != "x" ]; then | ||
92 | # some boards' final binary was not named as u-boot.bin | ||
93 | if [ "${UBOOT_TARGET}" = "u-boot-nand" ];then | ||
94 | if echo $board |egrep -q "^(BSC|C29|P10|P2020RDB)";then | ||
95 | UBOOT_SOURCE=u-boot-with-spl.bin | ||
96 | elif echo $board |egrep -q "^(B4|T1|T2|T4)";then | ||
97 | UBOOT_SOURCE=u-boot-with-spl-pbl.bin | ||
98 | elif echo $board |egrep -q "^(P2041|P3|P4|P5)";then | ||
99 | UBOOT_SOURCE=u-boot.pbl | ||
100 | fi | ||
101 | elif [ "${UBOOT_TARGET}" = "u-boot-spi" ];then | ||
102 | if echo $board |egrep -q "^(P10|P2020RDB)";then | ||
103 | UBOOT_SOURCE=u-boot-with-spl.bin | ||
104 | elif echo $board |egrep -q "^(T1|T2)";then | ||
105 | UBOOT_SOURCE=u-boot-with-spl-pbl.bin | ||
106 | elif echo $board |egrep -q "^(B4|P2041|P3|P4|P5|T4)";then | ||
107 | UBOOT_SOURCE=u-boot.pbl | ||
108 | fi | ||
109 | elif [ "${UBOOT_TARGET}" = "u-boot-sd" ];then | ||
110 | if echo $board |egrep -q "^(P10|P2020RDB)";then | ||
111 | UBOOT_SOURCE=u-boot-with-spl.bin | ||
112 | elif echo $board |egrep -q "^(B4|T1|T2|T4)";then | ||
113 | UBOOT_SOURCE=u-boot-with-spl-pbl.bin | ||
114 | elif echo $board |egrep -q "^(P2041|P3|P4|P5)";then | ||
115 | UBOOT_SOURCE=u-boot.pbl | ||
116 | fi | ||
117 | fi | ||
118 | cp ${S}/${board}/${UBOOT_SOURCE} ${S}/${board}/${UBOOT_TARGET}.bin | ||
119 | |||
120 | # use boot-format to regenerate spi image if BOOTFORMAT_CONFIG is not empty | ||
121 | if [ "${UBOOT_TARGET}" = "u-boot-spi" ] && [ -n "${BOOTFORMAT_CONFIG}" ];then | ||
122 | ${STAGING_BINDIR_NATIVE}/boot_format \ | ||
123 | ${STAGING_DATADIR_NATIVE}/boot_format/${BOOTFORMAT_CONFIG} \ | ||
124 | ${S}/${board}/${UBOOT_SOURCE} -spi ${S}/${board}/${UBOOT_TARGET}.bin | ||
125 | fi | ||
126 | fi | ||
127 | done | ||
128 | } | ||
129 | |||
130 | do_install(){ | ||
131 | if [ "x${UBOOT_MACHINES}" = "x" ]; then | ||
132 | UBOOT_MACHINES=${UBOOT_MACHINE} | ||
133 | fi | ||
134 | |||
135 | for board in ${UBOOT_MACHINES}; do | ||
136 | if ! grep -wq $board ${S}/boards.cfg;then | ||
137 | continue | ||
138 | fi | ||
139 | |||
140 | case "${board}" in | ||
141 | *SDCARD*) UBOOT_TARGET="u-boot-sd";; | ||
142 | *SPIFLASH*) UBOOT_TARGET="u-boot-spi";; | ||
143 | *NAND*) UBOOT_TARGET="u-boot-nand";; | ||
144 | *SRIO*) UBOOT_TARGET="u-boot-srio";; | ||
145 | *) UBOOT_TARGET="u-boot";; | ||
146 | esac | ||
147 | |||
148 | if [ -f ${S}/${board}/${UBOOT_TARGET}.bin ]; then | ||
149 | mkdir -p ${D}/boot/ | ||
150 | install ${S}/${board}/${UBOOT_TARGET}.bin ${D}/boot/${UBOOT_TARGET}-${board}-${PV}-${PR}.bin | ||
151 | ln -sf ${UBOOT_TARGET}-${board}-${PV}-${PR}.bin ${D}/boot/${UBOOT_TARGET}.bin | ||
152 | fi | ||
153 | done | ||
154 | } | ||
155 | |||
156 | do_deploy(){ | ||
157 | if [ "x${UBOOT_MACHINES}" = "x" ]; then | ||
158 | UBOOT_MACHINES=${UBOOT_MACHINE} | ||
159 | fi | ||
160 | |||
161 | for board in ${UBOOT_MACHINES}; do | ||
162 | if ! grep -wq $board ${S}/boards.cfg;then | ||
163 | continue | ||
164 | fi | ||
165 | |||
166 | case "${board}" in | ||
167 | *SDCARD*) UBOOT_TARGET="u-boot-sd";; | ||
168 | *SPIFLASH*) UBOOT_TARGET="u-boot-spi";; | ||
169 | *NAND*) UBOOT_TARGET="u-boot-nand";; | ||
170 | *SRIO*) UBOOT_TARGET="u-boot-srio";; | ||
171 | *) UBOOT_TARGET="u-boot";; | ||
172 | esac | ||
173 | |||
174 | if [ -f ${S}/${board}/${UBOOT_TARGET}.bin ]; then | ||
175 | mkdir -p ${DEPLOYDIR} | ||
176 | install ${S}/${board}/${UBOOT_TARGET}.bin ${DEPLOYDIR}/${UBOOT_TARGET}-${board}-${PV}-${PR}.bin | ||
177 | |||
178 | cd ${DEPLOYDIR} | ||
179 | rm -f ${UBOOT_TARGET}-${board}.bin | ||
180 | ln -sf ${UBOOT_TARGET}-${board}-${PV}-${PR}.bin ${UBOOT_TARGET}-${board}.bin | ||
181 | fi | ||
182 | done | ||
183 | } | ||
184 | addtask deploy after do_install | ||
185 | |||
186 | PACKAGES += "${PN}-images" | ||
187 | FILES_${PN}-images += "/boot" | ||
188 | |||
189 | ALLOW_EMPTY_${PN} = "1" | ||