mirror of
git://git.yoctoproject.org/meta-freescale.git
synced 2025-07-19 12:59:04 +02:00
Merge branch 'master' from multiple repositories
Repositories: meta-fsl-arm meta-fsl-ppc Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
commit
c92b415d65
49
meta-fsl-ppc/README
Normal file
49
meta-fsl-ppc/README
Normal file
|
@ -0,0 +1,49 @@
|
|||
OpenEmbedded/Yocto BSP layer for Freescale's PPC platforms
|
||||
==========================================================
|
||||
|
||||
This layer provides support for Freescale's PPC platforms for use with
|
||||
OpenEmbedded and/or Yocto.
|
||||
|
||||
This layer depends on:
|
||||
|
||||
URI: git://git.openembedded.org/openembedded-core
|
||||
branch: master
|
||||
revision: HEAD
|
||||
|
||||
URI: git://git.openembedded.org/meta-openembedded
|
||||
branch: master
|
||||
revision: HEAD
|
||||
|
||||
Contributing
|
||||
------------
|
||||
|
||||
To contribute to this layer you should the patches for review to the
|
||||
mailing list.
|
||||
|
||||
Mailing list:
|
||||
|
||||
https://lists.yoctoproject.org/listinfo/meta-freescale
|
||||
|
||||
Source code:
|
||||
|
||||
git://git.yoctoproject.org/meta-fsl-ppc
|
||||
http://git.yoctoproject.org/git/meta-fsl-ppc
|
||||
|
||||
When creating patches, please use something like:
|
||||
|
||||
git format-patch -s --subject-prefix='meta-fsl-ppc dylan][PATCH' origin
|
||||
optionally include a branch if the patch applies to multiple branches,
|
||||
otherwise master is assumed
|
||||
|
||||
When sending patches, please use something like:
|
||||
|
||||
git send-email --to meta-freescale@yoctoproject.org <generated patch>
|
||||
|
||||
git.yoctoproject.org vs. git.freescale.com:
|
||||
-------------------------------------------
|
||||
|
||||
git.yoctoproject.org hosts the official upstream work of Freescale's OE/YP repos,
|
||||
for official SDK releases at times we need to do last minute fixes or include things
|
||||
not supported upstream so we have a different repo on git.freescale.com for the
|
||||
official release. git.freescale.com should be based off repos from git.yoctoproject.org
|
||||
|
14
meta-fsl-ppc/classes/qoriq_build_64bit_kernel.bbclass
Normal file
14
meta-fsl-ppc/classes/qoriq_build_64bit_kernel.bbclass
Normal file
|
@ -0,0 +1,14 @@
|
|||
inherit distro_features_check
|
||||
REQUIRED_DISTRO_FEATURES_e6500 += "multiarch"
|
||||
|
||||
python () {
|
||||
promote_kernel = d.getVar('BUILD_64BIT_KERNEL')
|
||||
if promote_kernel == "1":
|
||||
d.setVar('KERNEL_CC_append', ' -m64')
|
||||
d.setVar('KERNEL_LD_append', ' -melf64ppc')
|
||||
|
||||
error_qa = d.getVar('ERROR_QA', True)
|
||||
if 'arch' in error_qa:
|
||||
d.setVar('ERROR_QA', error_qa.replace(' arch', ''))
|
||||
}
|
||||
|
18
meta-fsl-ppc/conf/layer.conf
Normal file
18
meta-fsl-ppc/conf/layer.conf
Normal file
|
@ -0,0 +1,18 @@
|
|||
# We have a packages directory, add to BBFILES
|
||||
BBPATH .= ":${LAYERDIR}"
|
||||
|
||||
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb*"
|
||||
BBFILES += "${LAYERDIR}/images/*.bb*"
|
||||
BBFILES += "${LAYERDIR}/classes/*.bb*"
|
||||
|
||||
BBFILE_COLLECTIONS += "fsl-ppc"
|
||||
BBFILE_PATTERN_fsl-ppc = "^${LAYERDIR}/"
|
||||
BBFILE_PRIORITY_fsl-ppc = "5"
|
||||
|
||||
LICENSE_PATH += "${LAYERDIR}/custom-licenses"
|
||||
|
||||
# Let us add layer-specific bbappends which are only applied when that
|
||||
# layer is included in our configuration
|
||||
BBFILES += "${@' '.join('${LAYERDIR}/%s/recipes*/*/*.bbappend' % layer \
|
||||
for layer in BBFILE_COLLECTIONS.split())}"
|
||||
|
15
meta-fsl-ppc/conf/machine/b4420qds-64b.conf
Normal file
15
meta-fsl-ppc/conf/machine/b4420qds-64b.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale B4420QDS-64B
|
||||
#@SOC: b4420
|
||||
#@DESCRIPTION: Machine configuration for running B4420QDS in 64-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e6500-64b.inc
|
||||
|
||||
SOC_FAMILY = "b4:b4420"
|
||||
UBOOT_MACHINES ?= "B4420QDS"
|
||||
KERNEL_DEVICETREE ?= "b4420qds.dtb b4420qds-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/85xx/e6500rev2_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
15
meta-fsl-ppc/conf/machine/b4420qds.conf
Normal file
15
meta-fsl-ppc/conf/machine/b4420qds.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale B4420QDS
|
||||
#@SOC: b4420
|
||||
#@DESCRIPTION: Machine configuration for running B4420QDS in 32-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e6500.inc
|
||||
|
||||
SOC_FAMILY = "b4:b4420"
|
||||
UBOOT_MACHINES ?= "B4420QDS"
|
||||
KERNEL_DEVICETREE ?= "b4420qds.dtb b4420qds-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/85xx/e6500rev2_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
15
meta-fsl-ppc/conf/machine/b4860qds-64b.conf
Normal file
15
meta-fsl-ppc/conf/machine/b4860qds-64b.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale B4860QDS-64B
|
||||
#@SOC: b4860
|
||||
#@DESCRIPTION: Machine configuration for running B4860QDS in 64-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e6500-64b.inc
|
||||
|
||||
SOC_FAMILY = "b4:b4860"
|
||||
UBOOT_MACHINES ?= "B4860QDS B4860QDS_SECURE_BOOT"
|
||||
KERNEL_DEVICETREE ?= "b4860qds.dtb b4860qds-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/85xx/e6500rev2_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
15
meta-fsl-ppc/conf/machine/b4860qds.conf
Normal file
15
meta-fsl-ppc/conf/machine/b4860qds.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale B4860QDS
|
||||
#@SOC: b4860
|
||||
#@DESCRIPTION: Machine configuration for running B4860QDS in 32-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e6500.inc
|
||||
|
||||
SOC_FAMILY = "b4:b4860"
|
||||
UBOOT_MACHINES ?= "B4860QDS B4860QDS_SECURE_BOOT"
|
||||
KERNEL_DEVICETREE ?= "b4860qds.dtb b4860qds-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/85xx/e6500rev2_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
15
meta-fsl-ppc/conf/machine/bsc9131rdb.conf
Normal file
15
meta-fsl-ppc/conf/machine/bsc9131rdb.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale BSC9131RDB
|
||||
#@SOC: bsc9131
|
||||
#@DESCRIPTION: Machine configuration for running BSC9131RDB
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e500v2.inc
|
||||
|
||||
SOC_FAMILY = "bsc9131"
|
||||
UBOOT_MACHINES ?= "BSC9131RDB_SPIFLASH BSC9131RDB_NAND BSC9131RDB_NAND_SYSCLK100 BSC9131RDB_SPIFLASH_SYSCLK100"
|
||||
KERNEL_DEVICETREE ?= "bsc9131rdb.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/85xx/bsc913x_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
23
meta-fsl-ppc/conf/machine/bsc9132qds.conf
Normal file
23
meta-fsl-ppc/conf/machine/bsc9132qds.conf
Normal file
|
@ -0,0 +1,23 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale BSC9132QDS
|
||||
#@SOC: bsc9132
|
||||
#@DESCRIPTION: Machine configuration for running BSC9132QDS
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e500v2.inc
|
||||
|
||||
SOC_FAMILY = "bsc9132"
|
||||
UBOOT_MACHINES ?= " BSC9132QDS_NAND_DDRCLK133 BSC9132QDS_NAND_DDRCLK100 \
|
||||
BSC9132QDS_NOR_DDRCLK100 BSC9132QDS_NOR_DDRCLK133 \
|
||||
BSC9132QDS_SDCARD_DDRCLK100 BSC9132QDS_SDCARD_DDRCLK133 \
|
||||
BSC9132QDS_SPIFLASH_DDRCLK100 BSC9132QDS_SPIFLASH_DDRCLK133 \
|
||||
BSC9132QDS_NAND_DDRCLK100_SECURE BSC9132QDS_NAND_DDRCLK133_SECURE \
|
||||
BSC9132QDS_NOR_DDRCLK100_SECURE BSC9132QDS_NOR_DDRCLK133_SECURE \
|
||||
BSC9132QDS_SDCARD_DDRCLK100_SECURE BSC9132QDS_SDCARD_DDRCLK133_SECURE \
|
||||
BSC9132QDS_SPIFLASH_DDRCLK100_SECURE BSC9132QDS_SPIFLASH_DDRCLK133_SECURE \
|
||||
"
|
||||
KERNEL_DEVICETREE ?= "bsc9132qds.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/85xx/bsc913x_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
16
meta-fsl-ppc/conf/machine/c293pcie.conf
Normal file
16
meta-fsl-ppc/conf/machine/c293pcie.conf
Normal file
|
@ -0,0 +1,16 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale C293PCIE
|
||||
#@SOC: c293pcie
|
||||
#@DESCRIPTION: Machine configuration for running C293PCIE in 36-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e500v2.inc
|
||||
|
||||
SOC_FAMILY = "c293pcie"
|
||||
BOOTFORMAT_CONFIG = "config_ddr3_512m_c29xpcie_800M.dat"
|
||||
UBOOT_MACHINES ?= "C29XPCIE C29XPCIE_SPIFLASH C29XPCIE_SECBOOT C29XPCIE_SPIFLASH_SECBOOT"
|
||||
KERNEL_DEVICETREE ?= "c293pcie_36b.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/mpc85xx_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
6
meta-fsl-ppc/conf/machine/include/e500mc.inc
Normal file
6
meta-fsl-ppc/conf/machine/include/e500mc.inc
Normal file
|
@ -0,0 +1,6 @@
|
|||
TARGET_FPU = "hard"
|
||||
|
||||
require conf/machine/include/tune-ppce500mc.inc
|
||||
require conf/machine/include/qoriq-base.inc
|
||||
|
||||
MACHINEOVERRIDES .= ":e500mc"
|
4
meta-fsl-ppc/conf/machine/include/e500v2.inc
Normal file
4
meta-fsl-ppc/conf/machine/include/e500v2.inc
Normal file
|
@ -0,0 +1,4 @@
|
|||
require conf/machine/include/tune-ppce500v2.inc
|
||||
require conf/machine/include/qoriq-base.inc
|
||||
|
||||
MACHINEOVERRIDES .= ":e500v2"
|
12
meta-fsl-ppc/conf/machine/include/e5500-64b.inc
Normal file
12
meta-fsl-ppc/conf/machine/include/e5500-64b.inc
Normal file
|
@ -0,0 +1,12 @@
|
|||
TARGET_FPU = "hard"
|
||||
DEFAULTTUNE ?= "ppc64e5500"
|
||||
|
||||
require conf/machine/include/tune-ppce5500.inc
|
||||
require conf/machine/include/qoriq-base.inc
|
||||
|
||||
MACHINEOVERRIDES .= ":e5500-64b"
|
||||
|
||||
require conf/multilib.conf
|
||||
MULTILIBS ?= "multilib:lib32"
|
||||
DEFAULTTUNE_virtclass-multilib-lib32 ?= "ppce5500"
|
||||
|
6
meta-fsl-ppc/conf/machine/include/e5500.inc
Normal file
6
meta-fsl-ppc/conf/machine/include/e5500.inc
Normal file
|
@ -0,0 +1,6 @@
|
|||
TARGET_FPU = "hard"
|
||||
|
||||
require conf/machine/include/tune-ppce5500.inc
|
||||
require conf/machine/include/qoriq-base.inc
|
||||
|
||||
MACHINEOVERRIDES .= ":e5500"
|
12
meta-fsl-ppc/conf/machine/include/e6500-64b.inc
Normal file
12
meta-fsl-ppc/conf/machine/include/e6500-64b.inc
Normal file
|
@ -0,0 +1,12 @@
|
|||
TARGET_FPU = "hard"
|
||||
DEFAULTTUNE ?= "ppc64e6500"
|
||||
|
||||
require conf/machine/include/tune-ppce6500.inc
|
||||
require conf/machine/include/qoriq-base.inc
|
||||
|
||||
MACHINEOVERRIDES .= ":e6500-64b"
|
||||
|
||||
require conf/multilib.conf
|
||||
MULTILIBS ?= "multilib:lib32"
|
||||
DEFAULTTUNE_virtclass-multilib-lib32 ?= "ppce6500"
|
||||
|
13
meta-fsl-ppc/conf/machine/include/e6500.inc
Normal file
13
meta-fsl-ppc/conf/machine/include/e6500.inc
Normal file
|
@ -0,0 +1,13 @@
|
|||
TARGET_FPU = "hard"
|
||||
|
||||
require conf/machine/include/tune-ppce6500.inc
|
||||
require conf/machine/include/qoriq-base.inc
|
||||
|
||||
MACHINEOVERRIDES .= ":e6500"
|
||||
|
||||
BUILD_64BIT_KERNEL = "1"
|
||||
|
||||
require conf/multilib.conf
|
||||
MULTILIBS ?= "multilib:lib64"
|
||||
DEFAULTTUNE_virtclass-multilib-lib64 ?= "ppc64e6500"
|
||||
|
26
meta-fsl-ppc/conf/machine/include/qoriq-base.inc
Normal file
26
meta-fsl-ppc/conf/machine/include/qoriq-base.inc
Normal file
|
@ -0,0 +1,26 @@
|
|||
# Provides the QorIQ common settings
|
||||
require conf/machine/include/soc-family.inc
|
||||
|
||||
# providers
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-qoriq"
|
||||
PREFERRED_PROVIDER_u-boot ?= "u-boot-qoriq"
|
||||
|
||||
# versions
|
||||
PREFERRED_VERSION_qemu = "1.7+fsl"
|
||||
PREFERRED_VERSION_openssl = "1.0.1i"
|
||||
|
||||
# settings
|
||||
MACHINE_FEATURES = "keyboard pci ext2 ext3 serial"
|
||||
MACHINE_EXTRA_RRECOMMENDS += "udev-rules-qoriq kernel-modules"
|
||||
MACHINEOVERRIDES .= ":qoriq-ppc"
|
||||
|
||||
IMAGE_CLASSES += "image_types_uboot"
|
||||
EXTRA_IMAGEDEPENDS += "u-boot"
|
||||
|
||||
KERNEL_IMAGETYPE ?= "uImage"
|
||||
|
||||
SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyS1 115200;ttyEHV0"
|
||||
SERIAL_CONSOLES_CHECK ?= "${SERIAL_CONSOLES}"
|
||||
|
||||
USE_VT = "0"
|
||||
|
22
meta-fsl-ppc/conf/machine/p1010rdb.conf
Normal file
22
meta-fsl-ppc/conf/machine/p1010rdb.conf
Normal file
|
@ -0,0 +1,22 @@
|
|||
#@TYPE: Machine
|
||||
#@Name: Freescale P1010RDB
|
||||
#@SOC: p1010
|
||||
#@DESCRIPTION: Machine configuration for running P1010RDB
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e500v2.inc
|
||||
|
||||
SOC_FAMILY = "p1010"
|
||||
BOOTFORMAT_CONFIG = "config_sram_p1010rdb.dat"
|
||||
UBOOT_MACHINES ?= "P1010RDB-PB_NAND P1010RDB-PB_NOR \
|
||||
P1010RDB-PB_SPIFLASH P1010RDB-PB_36BIT_NOR P1010RDB-PB_36BIT_NAND \
|
||||
P1010RDB-PB_36BIT_SPIFLASH P1010RDB-PB_36BIT_NAND_SECBOOT \
|
||||
P1010RDB-PB_36BIT_NOR_SECBOOT P1010RDB-PB_36BIT_SPIFLASH_SECBOOT \
|
||||
P1010RDB-PB_NAND_SECBOOT P1010RDB-PB_NOR_SECBOOT \
|
||||
P1010RDB-PB_SPIFLASH_SECBOOT \
|
||||
"
|
||||
KERNEL_DEVICETREE ?= "p1010rdb-pa.dtb p1010rdb-pb.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/mpc85xx_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x20000"
|
||||
|
16
meta-fsl-ppc/conf/machine/p1020rdb.conf
Normal file
16
meta-fsl-ppc/conf/machine/p1020rdb.conf
Normal file
|
@ -0,0 +1,16 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale P1020RDB
|
||||
#@SOC: p1020
|
||||
#@DESCRIPTION: Machine configuration for running P1020RDB
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e500v2.inc
|
||||
|
||||
SOC_FAMILY = "p1020"
|
||||
BOOTFORMAT_CONFIG = "config_sram_p1022ds.dat"
|
||||
UBOOT_MACHINES ?= " P1020RDB-PD P1020RDB-PD_NAND P1020RDB-PD_SDCARD P1020RDB-PD_SPIFLASH"
|
||||
KERNEL_DEVICETREE ?= "p1020rdb-pd_32b.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/mpc85xx_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x20000"
|
||||
|
17
meta-fsl-ppc/conf/machine/p1021rdb.conf
Normal file
17
meta-fsl-ppc/conf/machine/p1021rdb.conf
Normal file
|
@ -0,0 +1,17 @@
|
|||
#@TYPE: Machine
|
||||
#@Name: Freescale P1021RDB
|
||||
#@SOC: p1021
|
||||
#@DESCRIPTION: Machine configuration for running P1021RDB
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e500v2.inc
|
||||
|
||||
SOC_FAMILY = "p1021"
|
||||
BOOTFORMAT_CONFIG = "config_sram_p1022ds.dat"
|
||||
UBOOT_MACHINES ?= "P1021RDB-PC P1021RDB-PC_NAND P1021RDB-PC_SDCARD P1021RDB-PC_SPIFLASH P1021RDB-PC_36BIT P1021RDB-PC_36BIT_SPIFLASH P1021RDB-PC_36BIT_NAND P1021RDB-PC_36BIT_SDCARD"
|
||||
KERNEL_DEVICETREE ?= "p1021rdb-pc_32b.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/mpc85xx_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x20000"
|
||||
QE_UCODE ?= "fsl_qe_ucode_1021_10_A.bin"
|
||||
|
26
meta-fsl-ppc/conf/machine/p1022ds.conf
Normal file
26
meta-fsl-ppc/conf/machine/p1022ds.conf
Normal file
|
@ -0,0 +1,26 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale P1022DS
|
||||
#@SOC: p1022
|
||||
#@DESCRIPTION: Machine configuration for running P1022DS
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e500v2.inc
|
||||
|
||||
SOC_FAMILY = "p1022"
|
||||
BOOTFORMAT_CONFIG = "config_sram_p1022ds.dat"
|
||||
UBOOT_MACHINES ?= "P1022DS P1022DS_NAND P1022DS_SPIFLASH P1022DS_SDCARD P1022DS_36BIT P1022DS_36BIT_SPIFLASH P1022DS_36BIT_NAND P1022DS_36BIT_SDCARD"
|
||||
KERNEL_DEVICETREE ?= "p1022ds_32b.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/mpc85xx_smp_defconfig"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
|
||||
|
||||
XSERVER = " \
|
||||
xserver-xorg \
|
||||
xf86-input-evdev \
|
||||
xf86-input-mouse \
|
||||
xf86-input-keyboard \
|
||||
xf86-video-fbdev \
|
||||
"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x20000"
|
||||
|
15
meta-fsl-ppc/conf/machine/p1023rdb.conf
Normal file
15
meta-fsl-ppc/conf/machine/p1023rdb.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale P1023RDB
|
||||
#@SOC: p1023
|
||||
#@DESCRIPTION: Machine configuration for running P1023RDB
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e500v2.inc
|
||||
|
||||
SOC_FAMILY = "p1023"
|
||||
UBOOT_MACHINES ?= "P1023RDB"
|
||||
KERNEL_DEVICETREE ?= "p1023rdb.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/85xx/p1023_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
17
meta-fsl-ppc/conf/machine/p1025twr.conf
Normal file
17
meta-fsl-ppc/conf/machine/p1025twr.conf
Normal file
|
@ -0,0 +1,17 @@
|
|||
#@TYPE: Machine
|
||||
#@Name: Freescale P1025TWR
|
||||
#@SOC: p1025
|
||||
#@DESCRIPTION: Machine configuration for running P1025TWR
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e500v2.inc
|
||||
|
||||
SOC_FAMILY = "p1025"
|
||||
BOOTFORMAT_CONFIG = "config_ddr3_1gb_p1_p2_rdb_pc_667M.dat"
|
||||
UBOOT_MACHINES ?= "TWR-P1025"
|
||||
KERNEL_DEVICETREE ?= "p1025twr_32b.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/mpc85xx_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x20000"
|
||||
QE_UCODE ?= "fsl_qe_ucode_1021_10_A.bin"
|
||||
|
16
meta-fsl-ppc/conf/machine/p2020rdb.conf
Normal file
16
meta-fsl-ppc/conf/machine/p2020rdb.conf
Normal file
|
@ -0,0 +1,16 @@
|
|||
#@TYPE: Machine
|
||||
#@Name: Freescale P2020RDB
|
||||
#@SOC: p2020
|
||||
#@DESCRIPTION: Machine configuration for running P2020RDB
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e500v2.inc
|
||||
|
||||
SOC_FAMILY = "p2020"
|
||||
BOOTFORMAT_CONFIG = "config_sram_p1022ds.dat"
|
||||
UBOOT_MACHINES ?= " P2020RDB-PC P2020RDB-PC_NAND P2020RDB-PC_SDCARD P2020RDB-PC_SPIFLASH P2020RDB-PC_36BIT P2020RDB-PC_36BIT_SPIFLASH P2020RDB-PC_36BIT_NAND P2020RDB-PC_36BIT_SDCARD"
|
||||
KERNEL_DEVICETREE ?= "p2020rdb-pc_32b.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/mpc85xx_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x20000"
|
||||
|
15
meta-fsl-ppc/conf/machine/p2041rdb.conf
Normal file
15
meta-fsl-ppc/conf/machine/p2041rdb.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale P2041RDB
|
||||
#@SOC: p2041
|
||||
#@DESCRIPTION: Machine configuration for running P2041RDB
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e500mc.inc
|
||||
|
||||
SOC_FAMILY = "p2041"
|
||||
UBOOT_MACHINES ?= "P2041RDB P2041RDB_NAND P2041RDB_SECURE_BOOT P2041RDB_SDCARD P2041RDB_SPIFLASH"
|
||||
KERNEL_DEVICETREE ?= "p2041rdb.dtb p2041rdb-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet32_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
15
meta-fsl-ppc/conf/machine/p3041ds.conf
Normal file
15
meta-fsl-ppc/conf/machine/p3041ds.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale P3041DS
|
||||
#@SOC: p3041
|
||||
#@DESCRIPTION: Machine configuration for running P3041DS
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e500mc.inc
|
||||
|
||||
SOC_FAMILY = "p3041"
|
||||
UBOOT_MACHINES ?= "P3041DS P3041DS_NAND P3041DS_SECURE_BOOT P3041DS_SDCARD P3041DS_SPIFLASH"
|
||||
KERNEL_DEVICETREE ?= "p3041ds.dtb p3041ds-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet32_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
15
meta-fsl-ppc/conf/machine/p4080ds.conf
Normal file
15
meta-fsl-ppc/conf/machine/p4080ds.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale P4080DS
|
||||
#@SOC: p4080
|
||||
#@DESCRIPTION: Machine configuration for running P4080DS
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e500mc.inc
|
||||
|
||||
SOC_FAMILY = "p4080"
|
||||
UBOOT_MACHINES ?= "P4080DS P4080DS_SECURE_BOOT P4080DS_SDCARD P4080DS_SPIFLASH "
|
||||
KERNEL_DEVICETREE ?= "p4080ds.dtb p4080ds-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet32_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
17
meta-fsl-ppc/conf/machine/p5020ds-64b.conf
Normal file
17
meta-fsl-ppc/conf/machine/p5020ds-64b.conf
Normal file
|
@ -0,0 +1,17 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale P5020DS-64B
|
||||
#@SOC: p5020
|
||||
#@DESCRIPTION: Machine configuration for running P5020DS in 64-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e5500-64b.inc
|
||||
|
||||
SOC_FAMILY = "p5020"
|
||||
UBOOT_MACHINES ?= "P5020DS P5020DS_NAND P5020DS_SECURE_BOOT \
|
||||
P5020DS_SDCARD P5020DS_SPIFLASH \
|
||||
"
|
||||
KERNEL_DEVICETREE ?= "p5020ds.dtb p5020ds-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet64_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
15
meta-fsl-ppc/conf/machine/p5020ds.conf
Normal file
15
meta-fsl-ppc/conf/machine/p5020ds.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale P5020DS
|
||||
#@SOC: p5020
|
||||
#@DESCRIPTION: Machine configuration for running P5020DS in 32-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e5500.inc
|
||||
|
||||
SOC_FAMILY = "p5020"
|
||||
UBOOT_MACHINES ?= "P5020DS P5020DS_NAND P5020DS_SECURE_BOOT P5020DS_SDCARD P5020DS_SPIFLASH "
|
||||
KERNEL_DEVICETREE ?= "p5020ds.dtb p5020ds-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet32_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
15
meta-fsl-ppc/conf/machine/p5040ds-64b.conf
Normal file
15
meta-fsl-ppc/conf/machine/p5040ds-64b.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale P5040DS-64B
|
||||
#@SOC: p5040
|
||||
#@DESCRIPTION: Machine configuration for running P5040DS in 64-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e5500-64b.inc
|
||||
|
||||
SOC_FAMILY = "p5040"
|
||||
UBOOT_MACHINES ?= "P5040DS P5040DS_NAND P5040DS_SECURE_BOOT P5040DS_SDCARD P5040DS_SPIFLASH"
|
||||
KERNEL_DEVICETREE ?= "p5040ds.dtb p5040ds-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet64_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
15
meta-fsl-ppc/conf/machine/p5040ds.conf
Normal file
15
meta-fsl-ppc/conf/machine/p5040ds.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale P5040DS
|
||||
#@SOC: p5040
|
||||
#@DESCRIPTION: Machine configuration for running P5040DS in 32-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e5500.inc
|
||||
|
||||
SOC_FAMILY = "p5040"
|
||||
UBOOT_MACHINES ?= "P5040DS P5040DS_NAND P5040DS_SECURE_BOOT P5040DS_SDCARD P5040DS_SPIFLASH"
|
||||
KERNEL_DEVICETREE ?= "p5040ds.dtb p5040ds-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet32_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
16
meta-fsl-ppc/conf/machine/t1024qds-64b.conf
Normal file
16
meta-fsl-ppc/conf/machine/t1024qds-64b.conf
Normal file
|
@ -0,0 +1,16 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale T1024QDS
|
||||
#@SOC: t1024
|
||||
#@DESCRIPTION: Machine configuration for running T1024QDS in 64-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e5500-64b.inc
|
||||
|
||||
SOC_FAMILY = "t1:t1024"
|
||||
UBOOT_MACHINES ?= "T1024QDS T1024QDS_D4 T1024QDS_NAND T1024QDS_SDCARD T1024QDS_SPIFLASH T1024QDS_SECURE_BOOT"
|
||||
KERNEL_DEVICETREE ?= "t1024qds.dtb t1024qds-usdpaa.dtb t1024qds-usdpaa-capwap.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet64_fmanv3_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
QE_UCODE ?= "iram_Type_A_T1024_r1.0.bin"
|
||||
|
16
meta-fsl-ppc/conf/machine/t1024qds.conf
Normal file
16
meta-fsl-ppc/conf/machine/t1024qds.conf
Normal file
|
@ -0,0 +1,16 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale T1024QDS
|
||||
#@SOC: t1024
|
||||
#@DESCRIPTION: Machine configuration for running T1024QDS in 32-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e5500.inc
|
||||
|
||||
SOC_FAMILY = "t1:t1024"
|
||||
UBOOT_MACHINES ?= "T1024QDS T1024QDS_D4 T1024QDS_NAND T1024QDS_SDCARD T1024QDS_SPIFLASH T1024QDS_SECURE_BOOT"
|
||||
KERNEL_DEVICETREE ?= "t1024qds.dtb t1024qds-usdpaa.dtb t1024qds-usdpaa-capwap.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet32_fmanv3_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
QE_UCODE ?= "iram_Type_A_T1024_r1.0.bin"
|
||||
|
16
meta-fsl-ppc/conf/machine/t1024rdb-64b.conf
Normal file
16
meta-fsl-ppc/conf/machine/t1024rdb-64b.conf
Normal file
|
@ -0,0 +1,16 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale T1024RDB
|
||||
#@SOC: t1024
|
||||
#@DESCRIPTION: Machine configuration for running T1024RDB in 64-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e5500-64b.inc
|
||||
|
||||
SOC_FAMILY = "t1:t1024"
|
||||
UBOOT_MACHINES ?= "T1024RDB T1024RDB_NAND T1024RDB_SDCARD T1024RDB_SPIFLASH T1024RDB_SECURE_BOOT"
|
||||
KERNEL_DEVICETREE ?= "t1024rdb.dtb t1024rdb-usdpaa.dtb t1024rdb-usdpaa-capwap.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet64_fmanv3_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
QE_UCODE ?= "iram_Type_A_T1024_r1.0.bin"
|
||||
|
16
meta-fsl-ppc/conf/machine/t1024rdb.conf
Normal file
16
meta-fsl-ppc/conf/machine/t1024rdb.conf
Normal file
|
@ -0,0 +1,16 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale T1024RDB
|
||||
#@SOC: t1024
|
||||
#@DESCRIPTION: Machine configuration for running T1024RDB in 32-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e5500.inc
|
||||
|
||||
SOC_FAMILY = "t1:t1024"
|
||||
UBOOT_MACHINES ?= "T1024RDB T1024RDB_NAND T1024RDB_SDCARD T1024RDB_SPIFLASH T1024RDB_SECURE_BOOT"
|
||||
KERNEL_DEVICETREE ?= "t1024rdb.dtb t1024rdb-usdpaa.dtb t1024rdb-usdpaa-capwap.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet32_fmanv3_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
QE_UCODE ?= "iram_Type_A_T1024_r1.0.bin"
|
||||
|
16
meta-fsl-ppc/conf/machine/t1040rdb-64b.conf
Normal file
16
meta-fsl-ppc/conf/machine/t1040rdb-64b.conf
Normal file
|
@ -0,0 +1,16 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale T1040RDB
|
||||
#@SOC: t1040
|
||||
#@DESCRIPTION: Machine configuration for running T1040RDB in 64-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e5500-64b.inc
|
||||
|
||||
SOC_FAMILY = "t1:t1040"
|
||||
UBOOT_MACHINES ?= "T1040RDB T1040RDB_SECURE_BOOT"
|
||||
KERNEL_DEVICETREE ?= "t1040rdb.dtb t1040rdb-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet64_fmanv3_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
QE_UCODE ?= "iram_Type_A_T1040_r1.0.bin"
|
||||
|
16
meta-fsl-ppc/conf/machine/t1040rdb.conf
Normal file
16
meta-fsl-ppc/conf/machine/t1040rdb.conf
Normal file
|
@ -0,0 +1,16 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale T1040RDB
|
||||
#@SOC: t1040
|
||||
#@DESCRIPTION: Machine configuration for running T1040RDB in 32-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e5500.inc
|
||||
|
||||
SOC_FAMILY = "t1:t1040"
|
||||
UBOOT_MACHINES ?= "T1040RDB T1040RDB_SECURE_BOOT"
|
||||
KERNEL_DEVICETREE ?= "t1040rdb.dtb t1040rdb-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet32_fmanv3_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
QE_UCODE ?= "iram_Type_A_T1040_r1.0.bin"
|
||||
|
16
meta-fsl-ppc/conf/machine/t1042rdb-64b.conf
Normal file
16
meta-fsl-ppc/conf/machine/t1042rdb-64b.conf
Normal file
|
@ -0,0 +1,16 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale T1042RDB
|
||||
#@SOC: t1042
|
||||
#@DESCRIPTION: Machine configuration for running T1042RDB in 64-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e5500-64b.inc
|
||||
|
||||
SOC_FAMILY = "t1:t1042"
|
||||
UBOOT_MACHINES ?= "T1042RDB_PI"
|
||||
KERNEL_DEVICETREE ?= "t1042rdb_pi.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet64_fmanv3_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
QE_UCODE ?= "iram_Type_A_T1040_r1.0.bin"
|
||||
|
25
meta-fsl-ppc/conf/machine/t1042rdb-pi-64b.conf
Normal file
25
meta-fsl-ppc/conf/machine/t1042rdb-pi-64b.conf
Normal file
|
@ -0,0 +1,25 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale T1042RDB-PI
|
||||
#@SOC: t1042
|
||||
#@DESCRIPTION: Machine configuration for running T1042RDB-PI in 64-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e5500-64b.inc
|
||||
|
||||
SOC_FAMILY = "t1:t1042"
|
||||
UBOOT_MACHINES ?= "T1042RDB_PI"
|
||||
KERNEL_DEVICETREE ?= "t1042rdb_pi.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet64_fmanv3_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
QE_UCODE ?= "iram_Type_A_T1040_r1.0.bin"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
|
||||
XSERVER = " \
|
||||
xserver-xorg \
|
||||
xf86-input-evdev \
|
||||
xf86-input-mouse \
|
||||
xf86-input-keyboard \
|
||||
xf86-video-fbdev \
|
||||
"
|
||||
|
24
meta-fsl-ppc/conf/machine/t1042rdb-pi.conf
Normal file
24
meta-fsl-ppc/conf/machine/t1042rdb-pi.conf
Normal file
|
@ -0,0 +1,24 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale T1042RDB-PI
|
||||
#@SOC: t1042
|
||||
#@DESCRIPTION: Machine configuration for running T1042RDB-PI in 32-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e5500.inc
|
||||
|
||||
SOC_FAMILY = "t1:t1042"
|
||||
UBOOT_MACHINES ?= "T1042RDB_PI"
|
||||
KERNEL_DEVICETREE ?= "t1042rdb_pi.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet32_fmanv3_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
QE_UCODE ?= "iram_Type_A_T1040_r1.0.bin"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
|
||||
XSERVER = " \
|
||||
xserver-xorg \
|
||||
xf86-input-evdev \
|
||||
xf86-input-mouse \
|
||||
xf86-input-keyboard \
|
||||
xf86-video-fbdev \
|
||||
"
|
16
meta-fsl-ppc/conf/machine/t1042rdb.conf
Normal file
16
meta-fsl-ppc/conf/machine/t1042rdb.conf
Normal file
|
@ -0,0 +1,16 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale T1042RDB
|
||||
#@SOC: t1042
|
||||
#@DESCRIPTION: Machine configuration for running T1042RDB in 32-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e5500.inc
|
||||
|
||||
SOC_FAMILY = "t1:t1042"
|
||||
UBOOT_MACHINES ?= "T1042RDB_PI"
|
||||
KERNEL_DEVICETREE ?= "t1042rdb_pi.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/corenet32_fmanv3_smp_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
QE_UCODE ?= "iram_Type_A_T1040_r1.0.bin"
|
||||
|
17
meta-fsl-ppc/conf/machine/t2080qds-64b.conf
Normal file
17
meta-fsl-ppc/conf/machine/t2080qds-64b.conf
Normal file
|
@ -0,0 +1,17 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale T2080QDS-64B
|
||||
#@SOC: t2080
|
||||
#@DESCRIPTION: Machine configuration for running T2080QDS in 64-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e6500-64b.inc
|
||||
|
||||
SOC_FAMILY = "t2:t2080"
|
||||
UBOOT_MACHINES ?= "T2080QDS T2080QDS_SDCARD T2080QDS_SPIFLASH \
|
||||
T2080QDS_NAND T2080QDS_SRIO_PCIE_BOOT T2080QDS_SECURE_BOOT \
|
||||
"
|
||||
KERNEL_DEVICETREE ?= "t2080qds.dtb t2080qds-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/85xx/e6500rev2_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
17
meta-fsl-ppc/conf/machine/t2080qds.conf
Normal file
17
meta-fsl-ppc/conf/machine/t2080qds.conf
Normal file
|
@ -0,0 +1,17 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale T2080QDS
|
||||
#@SOC: t2080
|
||||
#@DESCRIPTION: Machine configuration for running T2080QDS in 32-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e6500.inc
|
||||
|
||||
SOC_FAMILY = "t2:t2080"
|
||||
UBOOT_MACHINES ?= "T2080QDS T2080QDS_SDCARD T2080QDS_SPIFLASH \
|
||||
T2080QDS_NAND T2080QDS_SRIO_PCIE_BOOT T2080QDS_SECURE_BOOT \
|
||||
"
|
||||
KERNEL_DEVICETREE ?= "t2080qds.dtb t2080qds-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/85xx/e6500rev2_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
17
meta-fsl-ppc/conf/machine/t2080rdb-64b.conf
Normal file
17
meta-fsl-ppc/conf/machine/t2080rdb-64b.conf
Normal file
|
@ -0,0 +1,17 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale T2080RDB
|
||||
#@SOC: t2080
|
||||
#@DESCRIPTION: Machine configuration for running T2080RDB in 64-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e6500-64b.inc
|
||||
|
||||
SOC_FAMILY = "t2:t2080"
|
||||
UBOOT_MACHINES ?= "T2080RDB T2080RDB_SDCARD T2080RDB_SPIFLASH \
|
||||
T2080RDB_NAND T2080RDB_SRIO_PCIE_BOOT T2080RDB_SECURE_BOOT \
|
||||
"
|
||||
KERNEL_DEVICETREE ?= "t2080rdb.dtb t2080rdb-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/85xx/e6500rev2_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
17
meta-fsl-ppc/conf/machine/t2080rdb.conf
Normal file
17
meta-fsl-ppc/conf/machine/t2080rdb.conf
Normal file
|
@ -0,0 +1,17 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale T2080RDB
|
||||
#@SOC: t2080
|
||||
#@DESCRIPTION: Machine configuration for running T2080RDB in 32-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e6500.inc
|
||||
|
||||
SOC_FAMILY = "t2:t2080"
|
||||
UBOOT_MACHINES ?= "T2080RDB T2080RDB_SDCARD T2080RDB_SPIFLASH \
|
||||
T2080RDB_NAND T2080RDB_SRIO_PCIE_BOOT T2080RDB_SECURE_BOOT \
|
||||
"
|
||||
KERNEL_DEVICETREE ?= "t2080rdb.dtb t2080rdb-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/85xx/e6500rev2_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
15
meta-fsl-ppc/conf/machine/t4160qds-64b.conf
Normal file
15
meta-fsl-ppc/conf/machine/t4160qds-64b.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale T4160QDS-64B
|
||||
#@SOC: t4160
|
||||
#@DESCRIPTION: Machine configuration for running T4160QDS in 64-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e6500-64b.inc
|
||||
|
||||
SOC_FAMILY = "t4:t4160"
|
||||
UBOOT_MACHINES ?= "T4160QDS T4160QDS_SECURE_BOOT"
|
||||
KERNEL_DEVICETREE ?= "t4240qds.dtb t4240qds-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/85xx/e6500rev2_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
15
meta-fsl-ppc/conf/machine/t4160qds.conf
Normal file
15
meta-fsl-ppc/conf/machine/t4160qds.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale T4160QDS
|
||||
#@SOC: t4160
|
||||
#@DESCRIPTION: Machine configuration for running T4160QDS in 32-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e6500.inc
|
||||
|
||||
SOC_FAMILY = "t4:t4160"
|
||||
UBOOT_MACHINES ?= "T4160QDS T4160QDS_SECURE_BOOT"
|
||||
KERNEL_DEVICETREE ?= "t4240qds.dtb t4240qds-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/85xx/e6500rev2_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
15
meta-fsl-ppc/conf/machine/t4240qds-64b.conf
Normal file
15
meta-fsl-ppc/conf/machine/t4240qds-64b.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale T4240QDS-64B
|
||||
#@SOC: t4240
|
||||
#@DESCRIPTION: Machine configuration for running T4240QDS in 64-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e6500-64b.inc
|
||||
|
||||
SOC_FAMILY = "t4:t4240"
|
||||
UBOOT_MACHINES ?= "T4240QDS T4240QDS_SECURE_BOOT"
|
||||
KERNEL_DEVICETREE ?= "t4240qds.dtb t4240qds-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/85xx/e6500rev2_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
15
meta-fsl-ppc/conf/machine/t4240qds.conf
Normal file
15
meta-fsl-ppc/conf/machine/t4240qds.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale T4240QDS
|
||||
#@SOC: t4240
|
||||
#@DESCRIPTION: Machine configuration for running T4240QDS in 32-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e6500.inc
|
||||
|
||||
SOC_FAMILY = "t4:t4240"
|
||||
UBOOT_MACHINES ?= "T4240QDS T4240QDS_SECURE_BOOT"
|
||||
KERNEL_DEVICETREE ?= "t4240qds.dtb t4240qds-usdpaa.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/85xx/e6500rev2_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
15
meta-fsl-ppc/conf/machine/t4240rdb-64b.conf
Normal file
15
meta-fsl-ppc/conf/machine/t4240rdb-64b.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale T4240RDB
|
||||
#@SOC: t4240
|
||||
#@DESCRIPTION: Machine configuration for running T4240RDB in 64-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e6500-64b.inc
|
||||
|
||||
SOC_FAMILY = "t4:t4240"
|
||||
UBOOT_MACHINES ?= "T4240RDB"
|
||||
KERNEL_DEVICETREE ?= "t4240rdb.dtb t4240rdb-usdpaa.dtb t4240rdb-usdpaa-shared-interfaces.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/85xx/e6500rev2_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
15
meta-fsl-ppc/conf/machine/t4240rdb.conf
Normal file
15
meta-fsl-ppc/conf/machine/t4240rdb.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
#@TYPE: Machine
|
||||
#@NAME: Freescale T4240RDB
|
||||
#@SOC: t4240
|
||||
#@DESCRIPTION: Machine configuration for running T4240RDB in 32-bit mode
|
||||
#@MAINTAINER: Chunrong Guo <B40290@freescale.com>
|
||||
|
||||
require conf/machine/include/e6500.inc
|
||||
|
||||
SOC_FAMILY = "t4:t4240"
|
||||
UBOOT_MACHINES ?= "T4240RDB"
|
||||
KERNEL_DEVICETREE ?= "t4240rdb.dtb t4240rdb-usdpaa.dtb t4240rdb-usdpaa-shared-interfaces.dtb"
|
||||
KERNEL_DEFCONFIG ?= "${S}/arch/powerpc/configs/85xx/e6500rev2_defconfig"
|
||||
|
||||
JFFS2_ERASEBLOCK = "0x10000"
|
||||
|
51
meta-fsl-ppc/custom-licenses/Cortina
Normal file
51
meta-fsl-ppc/custom-licenses/Cortina
Normal file
|
@ -0,0 +1,51 @@
|
|||
DEFINITIONS:“Device” is the product described in this document or document set. “Cortina” is Cortina Systems, Inc.
|
||||
“Software” is the software used with the Device, including the Application Programmable Interface (“API”). “You” are a
|
||||
customer, or potential customer, of Devices with whom Cortina has an NDA.
|
||||
LICENSE:Subject to the restrictions below, Cortina grants to You a non-exclusive, non-assignable, non-transferable,
|
||||
royalty-free copyright license to (1) copy and modify the source code of the API; (2) incorporate the API in object code
|
||||
form or as a library into Your software which is solely used with Your products (that incorporate the Devices); and (3)
|
||||
distribute to Your customer, inobject code form only, the API.
|
||||
RESTRICTIONS:The Software must be used solely in conjunction with the Devices and solely for Your internal
|
||||
evaluation, demonstration, software application development anddistribution for production purposes, either with an
|
||||
Cortina platform that contains the Device or with Your own product that incorporates the Device. Notwithstanding
|
||||
anything to the contrary, the API can be incorporated into Your software as described above and distributed to Your
|
||||
customers in object code form only. You may not distribute the Software as a stand-alone product. You shall not cause
|
||||
the incorporation, modification or distribution of the Software to become subject to any open source licenses. You will
|
||||
make reasonable efforts to discontinue the distribution of any portions of the Software that You are licensed hereunder
|
||||
to distribute upon Cortina’s release of an update, upgrade or new version of the Software. You agree that You are
|
||||
solely responsible for supporting any code which You modify, incorporate or distribute. You may not reverse-assemble,
|
||||
reverse-compile, or otherwise reverse-engineer any Software provided in binary or machine readable form.
|
||||
Distribution of the Software is also subject to the following limitations: You (i) are solely responsible to Your customers
|
||||
for any update or support obligation or other liability which may arise from the modification, incorporation, and
|
||||
distribution of the Software, (ii) do notmake any statement that Your product is“certified,” or that its performance is
|
||||
guaranteed, by Cortina, (iii) do not use Cortina's name or trademarks to market Your product without prior written
|
||||
permission, (iv) shall prohibit disassembly and reverse engineering, and (v) shall indemnify, hold harmless, and defend
|
||||
Cortina and its suppliers from and against any claims or lawsuits, including attorney's fees, that arise or result from
|
||||
Your distribution of any product.
|
||||
OWNERSHIP OF SOFTWARE AND COPYRIGHTS.The title to all copies of the Software remains with Cortina or its
|
||||
suppliers. The Software is copyrighted and protected by the laws of the United States and other countries, and
|
||||
international treaty provisions. You may not remove any copyright notices from the Software. Cortina may make
|
||||
changes to the Software, or to items referenced therein, at any timewithout notice, but is not obligated to support or
|
||||
update the Software. Except as otherwise expressly provided,Cortina grants no express or implied right under Cortina
|
||||
patents, copyrights, trademarks, or other intellectual property rights.
|
||||
DISCLAIMER OF WARRANTIES.THE SOFTWARE IS PROVIDED “AS IS” WITHOUT ANY EXPRESS OR IMPLIED
|
||||
WARRANTY OF ANY KIND. CORTINA AND ITS SUPPLIERSHEREBY DISCLAIM ALL WARRANTIES, INCLUDING
|
||||
ANY IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, OR FITNESS FOR A PARTICULAR
|
||||
PURPOSE.
|
||||
LIMITATION OF LIABILITY.IN NO EVENT SHALL CORTINA OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES
|
||||
WHATSOEVER (INCLUDING, WITHOUT LIMITATION, LOST PROFITS, BUSINESS INTERRUPTION, OR LOST
|
||||
INFORMATION) ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF CORTINA HAS
|
||||
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
TERMINATION OF THIS LICENSE.Cortina may terminate this license at any time if You violate its terms. Upon
|
||||
termination, You will immediately destroy the Software or return all copies of the Software to Cortina.
|
||||
APPLICABLE LAWS.Claims arising under this license shall be governed by the laws of the State of Delaware,
|
||||
excluding its principles of conflict of laws. The provisions of the United Nations Convention on Contracts for the
|
||||
International Sale of Goods shall not apply to this license.You shall not export, either directly or indirectly, any
|
||||
Software or derived object code without first obtaining any required license or other approval from the applicable
|
||||
governmental entity, including the U.S. Department of Commerce or any other agency or department of the United
|
||||
States Government if required. This isthe entire agreement and understanding between You and Cortina relating to
|
||||
this subject matter, and no amendments will be effective unless in a writing signed by both parties.
|
||||
GOVERNMENT RESTRICTED RIGHTS.The Software is provided with “RESTRICTED RIGHTS.” Use, duplication, or
|
||||
disclosure by the Government issubject to restrictions as set forth in FAR52.227-14 and DFAR252.227-7013 et seq. or
|
||||
its successor. Use of the Software by the Government constitutes acknowledgment of Cortina's proprietary rights
|
||||
therein. Contractor or Manufacturer is Cortina.
|
214
meta-fsl-ppc/custom-licenses/Freescale-EULA
Normal file
214
meta-fsl-ppc/custom-licenses/Freescale-EULA
Normal file
|
@ -0,0 +1,214 @@
|
|||
IMPORTANT. Read the following Freescale Software License Agreement ("Agreement")
|
||||
completely. By selecting the "I Accept" button at the end of this page, you
|
||||
indicate that you accept the terms of the Freescale Proprietary Software License
|
||||
Agreement and you also acknowledge that you have the authority, on behalf of your
|
||||
company, to bind your company to such terms. You may then download or install the
|
||||
file.
|
||||
|
||||
FREESCALE PROPRIETARY SOFTWARE LICENSE AGREEMENT
|
||||
This is a license agreement ("Agreement") between you (either as an individual
|
||||
or as an authorized representative acting on behalf of your employer) and Freescale
|
||||
Semiconductor, Inc. ("Freescale"). It concerns your rights to use the software
|
||||
provided to you in binary or source code form and any accompanying written materials
|
||||
(the "Software"). The Software may include any updates or error corrections or
|
||||
documentation relating to the Software provided to you by Freescale under this
|
||||
License. In consideration for Freescale allowing you to access the Software, you are
|
||||
agreeing to be bound by the terms of this Agreement. If you do not agree to all of
|
||||
the terms of this Agreement, do not download or install the Software. If you change
|
||||
your mind later, stop using the Software and delete all copies of the Software in
|
||||
your possession or control. Any copies of the Software that you have already
|
||||
distributed, where permitted, and do not destroy will continue to be governed by
|
||||
this Agreement. Your prior use will also continue to be governed by this Agreement.
|
||||
|
||||
1. LICENSE GRANT. Freescale grants to you, free of charge, the non-exclusive,
|
||||
non-transferable, non-sublicensable right (1) to use the Software, (2) to reproduce
|
||||
the Software, (3) to prepare derivative works of the Software, (4) to distribute the
|
||||
Software and derivative works thereof in object (machine-readable) form as part of
|
||||
a programmable processing unit (e.g. a microprocessor, microcontroller, or digital
|
||||
signal processor) supplied directly or indirectly from Freescale ("Freescale
|
||||
System") and (5) to sublicense to others the right to use the distributed Software,
|
||||
provided that any and all such sublicenses include the same terms and conditions of
|
||||
this Agreement. Notwithstanding the limitation on damages in Section 8, Licensee
|
||||
will indemnify, defend, and hold harmless Freescale against any and all claims,
|
||||
costs, damages, liabilities, judgments and attorneys' fees resulting from or
|
||||
arising out of any breach by the sublicensee, or resulting from or arising out of
|
||||
any action by the sublicensee inconsistent with this Agreement.
|
||||
You must notify Freescale, in writing, any time you create a derivative of the
|
||||
Software. Freescale owns all derivatives created from the Software, and derivatives
|
||||
are licensed to you under the same terms as the Software under this Agreement. Upon
|
||||
request, you must provide Freescale the source code of any derivative of the Software.
|
||||
If you violate any of the terms or restrictions of this Agreement, Freescale may
|
||||
immediately terminate this Agreement, and require that you stop using and delete all
|
||||
copies of the Software and any derivative in your possession or control. Any license
|
||||
granted above only extends to Freescale's intellectual property rights that would
|
||||
be necessarily infringed by the Software as provided to you by Freescale and as used
|
||||
within the scope of the licenses granted. You must advise Freescale of any results
|
||||
obtained including any problems or suggested improvements thereof. Freescale retains
|
||||
the right to use such results and related information in any manner it deems
|
||||
appropriate.
|
||||
|
||||
2. OTHER RESTRICTIONS. Subject to the license grant above, the following restrictions
|
||||
apply:
|
||||
|
||||
a. Freescale reserves all rights not expressly granted herein.
|
||||
b. You may not rent, lease, sublicense, lend or encumber the Software, unless
|
||||
otherwise expressly agreed to within this Agreement
|
||||
c. You may not distribute, manufacture, have manufactured, sublicense or otherwise
|
||||
reproduce the Software for purposes other than intended in this Agreement.
|
||||
d. You may not remove or alter any proprietary legends, notices, or trademarks
|
||||
contained in the Licensed Software,
|
||||
e. The terms and conditions of this Agreement will apply to any Software updates,
|
||||
provided to you at Freescale's discretion, that replace and/or supplement the
|
||||
original Software, unless such update contains a separate license.
|
||||
f. You may not translate, reverse engineer, decompile, or disassemble the Software
|
||||
provided to you solely in object code format (machine readable) except to the
|
||||
extent applicable law specifically prohibits such restriction. You will prohibit
|
||||
your sublicensees from translating, reverse engineering, decompiling, or
|
||||
disassembling the Software except to the extent applicable law specifically
|
||||
prohibits such restriction.
|
||||
|
||||
3. OPEN SOURCE. You are about to download or install certain software that is
|
||||
subject to various open source licenses such as the Apache License, the BSD license,
|
||||
the Free Software Foundation General Public License and Lesser General Public
|
||||
License, the Mozilla Public License and others. Your use of such open source
|
||||
software is subject to the terms of each applicable license. You must agree to the
|
||||
terms of each such applicable license, or you should not use the open source software.
|
||||
Any open source license that is incompatible with the terms of this Agreement
|
||||
supersedes the terms of this Agreement.
|
||||
|
||||
4. COPYRIGHT. The Software is licensed to you, not sold. Freescale owns the
|
||||
Software, and United States copyright laws and international treaty provisions
|
||||
protect the Software. Therefore, you must treat the Software like any other
|
||||
copyrighted material (e.g. a book or musical recording). You may not use or
|
||||
copy the Software for any other purpose than what is described in this Agreement.
|
||||
Except as expressly provided herein, Freescale does not grant to you any express or
|
||||
implied rights under any Freescale or third party patents, copyrights, trademarks,
|
||||
or trade secrets. Additionally, you must reproduce and apply any copyright or other
|
||||
proprietary rights notices included on or embedded in the Software to any copies
|
||||
made thereof, in whole or in part, if any. You may not remove any copyright
|
||||
notices of Freescale incorporated in the Software.
|
||||
|
||||
5. TERM AND TERMINATION. The term of this Agreement shall commence on the date
|
||||
of installation or download and shall continue perpetually, unless earlier
|
||||
terminated in accordance with this Agreement. Freescale has the right to terminate
|
||||
this Agreement without notice and require that you stop using and delete all copies
|
||||
of the Software in your possession or control if you violate any of the terms or
|
||||
restrictions of this Agreement. Freescale may terminate this Agreement should any
|
||||
of the Software become, or in Freescale's reasonable opinion is likely to become,
|
||||
the subject of a claim of intellectual infringement or trade secret misappropriation.
|
||||
Upon termination, you must cease use of and destroy, the Software and confirm
|
||||
compliance in writing to Freescale. Upon termination, the license granted pursuant
|
||||
to this Agreement immediately terminates and the provisions of Sections 4 through
|
||||
18 will survive any termination of this Agreement.
|
||||
|
||||
6. SUPPORT. Freescale is NOT obligated to provide any support, upgrades or new
|
||||
releases of the Software. If you wish, you may contact Freescale and report problems
|
||||
and provide suggestions regarding the Software. Freescale has no obligation
|
||||
whatsoever to respond in any way to such a problem report or suggestion. Freescale
|
||||
may make changes to the Software at any time, without any obligation to notify or
|
||||
provide updated versions of the Software to you.
|
||||
|
||||
7. NO WARRANTY. TO THE MAXIMUM EXTENT PERMITTED BY LAW, FREESCALE EXPRESSLY
|
||||
DISCLAIMS ANY WARRANTY FOR THE SOFTWARE. THE SOFTWARE IS PROVIDED "AS IS",
|
||||
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT
|
||||
LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
||||
PURPOSE, OR NON-INFRINGEMENT. YOU ASSUME THE ENTIRE RISK ARISING OUT OF THE USE
|
||||
OR PERFORMANCE OF THE SOFTWARE, OR ANY SYSTEMS YOU DESIGN USING THE SOFTWARE (IF
|
||||
ANY). NOTHING IN THIS AGREEMENT MAY BE CONSTRUED AS A WARRANTY OR REPRESENTATION
|
||||
BY FREESCALE THAT THE SOFTWARE OR ANY DERIVATIVE WORK DEVELOPED WITH OR INCORPORATING
|
||||
THE SOFTWARE WILL BE FREE FROM INFRINGEMENT OF THE INTELLECTUAL PROPERTY RIGHTS OF
|
||||
THIRD PARTIES.
|
||||
|
||||
8. INDEMNITY. You agree to fully defend and indemnify Freescale from any and all
|
||||
claims, liabilities, and costs (including reasonable attorney's fees) related to
|
||||
(1) your use (including your sublicensee's use, if permitted) of the Software or
|
||||
(2) your violation of the terms and conditions of this Agreement.
|
||||
|
||||
9. LIMITATION OF LIABILITY. IN NO EVENT WILL FREESCALE BE LIABLE, WHETHER IN
|
||||
CONTRACT, TORT, OR OTHERWISE, FOR ANY INCIDENTAL, SPECIAL, INDIRECT, CONSEQUENTIAL
|
||||
OR PUNITIVE DAMAGES, INCLUDING, BUT NOT LIMITED TO, DAMAGES FOR ANY LOSS OF USE,
|
||||
LOSS OF TIME, INCONVENIENCE, COMMERCIAL LOSS, OR LOST PROFITS, SAVINGS, OR REVENUES
|
||||
TO THE FULL EXTENT SUCH MAY BE DISCLAIMED BY LAW EVEN IF INFORMED IN ADVANCE OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES. FREESCALE'S LIABILITY WILL IN ANY EVENT AND UNDER ANY
|
||||
THEORY OF RECOVERY BE LIMITED TO THE TOTAL AMOUNT RECEIVED BY FREESCALE UNDER THIS
|
||||
AGREEMENT.
|
||||
|
||||
10. COMPLIANCE WITH LAWS; EXPORT RESTRICTIONS. You must not resell, re-export, or
|
||||
provide, directly or indirectly, the licensed software or direct product thereof,
|
||||
in any form without obtaining appropriate export or re-export licenses from the
|
||||
United States Government and from the country from which the export or re-export
|
||||
is to occur. An export occurs when products, technology, or software is transferred
|
||||
from one country to another by any means, including physical shipments, FTP file
|
||||
transfers, E-mails, faxes, remote server access, conversations, and the like. An
|
||||
export also occurs when technology or software is transferred to a foreign national
|
||||
in the United States, or foreign national of the country in which the business
|
||||
activity is taking place. A foreign national is any person who is neither a citizen
|
||||
nor permanent resident of the United States, or the country in which the business
|
||||
activity is taking place. Furthermore, if an export/import license, permit or other
|
||||
government required authority (collectively referred to as "government
|
||||
authorization") is required to transfer technology, software, hardware or other
|
||||
Freescale property to non- Freescale party(ies) and is not approved, then Freescale
|
||||
is not obligated to transfer the Software under this Agreement until such
|
||||
"government authorization" is granted..
|
||||
|
||||
11. GOVERNMENT RIGHTS. The Licensed Software is a "Commercial Item as defined in
|
||||
48 C.F.R. $2.101, consisting of "Commercial Computer Software" and "Commercial
|
||||
Computer Software Documentation," as such terms are used in 48 C.F.R. $ 12.212 or
|
||||
48 C.F.R. $227.7202, as applicable and are only licensed to U.S. Government end
|
||||
users with the rights as are set forth herein..
|
||||
|
||||
12. HIGH RISK ACTIVITIES. You acknowledge that the Software is not fault tolerant
|
||||
and is not designed, manufactured or intended by Freescale for incorporation into
|
||||
products intended for use or resale in on-line control equipment in hazardous,
|
||||
dangerous to life or potentially life-threatening environments requiring fail-safe
|
||||
performance, such as in the operation of nuclear facilities, aircraft navigation
|
||||
or communication systems, air traffic control, direct life support machines or
|
||||
weapons systems, in which the failure of products could lead directly to death,
|
||||
personal injury or severe physical or environmental damage ("High Risk Activities").
|
||||
You specifically represent and warrant that you will not use the Software or any
|
||||
derivative work of the Software for High Risk Activities.
|
||||
|
||||
13. CHOICE OF LAW; VENUE; LIMITATIONS. You agree that the statutes and laws of the
|
||||
United States and the State of Texas, USA, without regard to conflicts of laws
|
||||
principles, will apply to all matters relating to this Agreement or the Software,
|
||||
and you agree that any litigation will be subject to the exclusive jurisdiction of
|
||||
the state or federal courts in Texas, USA. You agree that regardless of any
|
||||
statute or law to the contrary, any claim or cause of action arising out of or
|
||||
related to this Agreement or the Software must be filed within one (1) year after
|
||||
such claim or cause of action arose or be forever barred.
|
||||
|
||||
14. CONFIDENTIAL INFORMATION. You must treat the Software as confidential
|
||||
information and you agree to retain the Software in confidence perpetually, with
|
||||
respect to Software in source code form (human readable), or for a period of five
|
||||
(5) years from the date of termination of this Agreement, with respect to all other
|
||||
parts of the Software. During this period you may not disclose any part of the
|
||||
Software to anyone other than employees who have a need to know of the Software and
|
||||
who have executed written agreements obligating them to protect such Licensed
|
||||
Software to at least the same degree of care as in this Agreement. You agree to use
|
||||
the same degree of care, but no less than a reasonable degree of care, with the
|
||||
Software as you do with your own confidential information. You may disclose Software
|
||||
to the extent required by a court or under operation of law or order provided that
|
||||
you notify Freescale of such requirement prior to disclosure, which you only
|
||||
disclose information required, and that you allow Freescale the opportunity to
|
||||
object to such court or other legal body requiring such disclosure.
|
||||
|
||||
15. PRODUCT LABELING. You are not authorized to use any Freescale trademarks,
|
||||
brand names, or logos.
|
||||
|
||||
16. ENTIRE AGREEMENT. This Agreement constitutes the entire agreement between you
|
||||
and Freescale regarding the subject matter of this Agreement, and supersedes all
|
||||
prior communications, negotiations, understandings, agreements or representations,
|
||||
either written or oral, if any. This Agreement may only be amended in written form,
|
||||
executed by you and Freescale.
|
||||
|
||||
17. SEVERABILITY. If any provision of this Agreement is held for any reason to be
|
||||
invalid or unenforceable, then the remaining provisions of this Agreement will be
|
||||
unimpaired and, unless a modification or replacement of the invalid or unenforceable
|
||||
provision is further held to deprive you or Freescale of a material benefit, in
|
||||
which case the Agreement will immediately terminate, the invalid or unenforceable
|
||||
provision will be replaced with a provision that is valid and enforceable and that
|
||||
comes closest to the intention underlying the invalid or unenforceable provision.
|
||||
|
||||
18. NO WAIVER. The waiver by Freescale of any breach of any provision of this
|
||||
Agreement will not operate or be construed as a waiver of any other or a subsequent
|
||||
breach of the same or a different provision.
|
24
meta-fsl-ppc/custom-licenses/TestFloat
Normal file
24
meta-fsl-ppc/custom-licenses/TestFloat
Normal file
|
@ -0,0 +1,24 @@
|
|||
Written by John R. Hauser. This work was made possible in part by the
|
||||
International Computer Science Institute, located at Suite 600, 1947 Center
|
||||
Street, Berkeley, California 94704. Funding was partially provided by the
|
||||
National Science Foundation under grant MIP-9311980. The original version
|
||||
of this code was written as part of a project to build a fixed-point vector
|
||||
processor in collaboration with the University of California at Berkeley,
|
||||
overseen by Profs. Nelson Morgan and John Wawrzynek. More information
|
||||
is available through the Web page `http://www.cs.berkeley.edu/~jhauser/
|
||||
arithmetic/SoftFloat.html'.
|
||||
|
||||
THIS SOFTWARE IS DISTRIBUTED AS IS, FOR FREE. Although reasonable effort has
|
||||
been made to avoid it, THIS SOFTWARE MAY CONTAIN FAULTS THAT WILL AT TIMES
|
||||
RESULT IN INCORRECT BEHAVIOR. USE OF THIS SOFTWARE IS RESTRICTED TO PERSONS
|
||||
AND ORGANIZATIONS WHO CAN AND WILL TAKE FULL RESPONSIBILITY FOR ALL LOSSES,
|
||||
COSTS, OR OTHER PROBLEMS THEY INCUR DUE TO THE SOFTWARE, AND WHO FURTHERMORE
|
||||
EFFECTIVELY INDEMNIFY JOHN HAUSER AND THE INTERNATIONAL COMPUTER SCIENCE
|
||||
INSTITUTE (possibly via similar legal warning) AGAINST ALL LOSSES, COSTS, OR
|
||||
OTHER PROBLEMS INCURRED BY THEIR CUSTOMERS AND CLIENTS DUE TO THE SOFTWARE.
|
||||
|
||||
Derivative works are acceptable, even for commercial purposes, so long as
|
||||
(1) the source code for the derivative work includes prominent notice that
|
||||
the work is derivative, and (2) the source code includes prominent notice with
|
||||
these four paragraphs for those parts of this code that are retained.
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
Upstream-Status: Unknown
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
libluajit is having symbols that can't be
|
||||
resolved the reloc cannot accommodate an offset greater than 24 bits.
|
||||
|
||||
Looking at libluajit with readelf -r, you see a bunch of entries that look like:
|
||||
000082f0 00003c0a R_PPC_REL24 00000000 sqrt + 0
|
||||
|
||||
These should not occur when the code is compiled and linked with -fPIC.
|
||||
|
||||
It turns out that libluajit *is* compiled and linked with -fPIC, however...
|
||||
There is one assembler file called lj_vm.s which is generated during the build.
|
||||
This file is missing the `@plt' qualifier from external references.
|
||||
|
||||
This file is generated by a program called buildvm. This in turn uses tables
|
||||
in a file called buildvm_arch.h which is generated by dynasm.lua.
|
||||
|
||||
Index: LuaJIT-2.0.1/src/host/buildvm.c
|
||||
===================================================================
|
||||
--- LuaJIT-2.0.1.orig/src/host/buildvm.c 2013-02-19 12:15:00.000000000 -0800
|
||||
+++ LuaJIT-2.0.1/src/host/buildvm.c 2013-05-14 20:26:05.933444512 -0700
|
||||
@@ -107,12 +107,14 @@
|
||||
#endif
|
||||
sprintf(name, "%s%s%s", symprefix, prefix, suffix);
|
||||
p = strchr(name, '@');
|
||||
+#if 0
|
||||
if (p) {
|
||||
if (!LJ_64 && (ctx->mode == BUILD_coffasm || ctx->mode == BUILD_peobj))
|
||||
name[0] = '@';
|
||||
else
|
||||
*p = '\0';
|
||||
}
|
||||
+#endif
|
||||
p = (char *)malloc(strlen(name)+1); /* MSVC doesn't like strdup. */
|
||||
strcpy(p, name);
|
||||
return p;
|
||||
Index: LuaJIT-2.0.1/src/vm_ppcspe.dasc
|
||||
===================================================================
|
||||
--- LuaJIT-2.0.1.orig/src/vm_ppcspe.dasc 2013-02-19 12:15:00.000000000 -0800
|
||||
+++ LuaJIT-2.0.1/src/vm_ppcspe.dasc 2013-05-14 20:26:05.937444512 -0700
|
||||
@@ -1390,7 +1390,7 @@
|
||||
| checknum CARG2
|
||||
| evmergehi CARG1, CARG2, CARG2
|
||||
| checkfail ->fff_fallback
|
||||
- | bl extern func
|
||||
+ | bl extern func@plt
|
||||
| evmergelo CRET1, CRET1, CRET2
|
||||
| b ->fff_restv
|
||||
|.endmacro
|
||||
@@ -1405,7 +1405,7 @@
|
||||
| checknum CARG1
|
||||
| evmergehi CARG3, CARG4, CARG4
|
||||
| checkanyfail ->fff_fallback
|
||||
- | bl extern func
|
||||
+ | bl extern func@plt
|
||||
| evmergelo CRET1, CRET1, CRET2
|
||||
| b ->fff_restv
|
||||
|.endmacro
|
||||
@@ -1437,7 +1437,7 @@
|
||||
| checknum CARG2
|
||||
| evmergehi CARG1, CARG2, CARG2
|
||||
| checkfail ->fff_fallback
|
||||
- | bl extern log
|
||||
+ | bl extern log@plt
|
||||
| evmergelo CRET1, CRET1, CRET2
|
||||
| b ->fff_restv
|
||||
|
|
||||
@@ -1471,7 +1471,7 @@
|
||||
| checknum CARG1
|
||||
| checkanyfail ->fff_fallback
|
||||
| efdctsi CARG3, CARG4
|
||||
- | bl extern ldexp
|
||||
+ | bl extern ldexp@plt
|
||||
| evmergelo CRET1, CRET1, CRET2
|
||||
| b ->fff_restv
|
||||
|
|
||||
@@ -1484,7 +1484,7 @@
|
||||
| checkfail ->fff_fallback
|
||||
| la CARG3, DISPATCH_GL(tmptv)(DISPATCH)
|
||||
| lwz PC, FRAME_PC(BASE)
|
||||
- | bl extern frexp
|
||||
+ | bl extern frexp@plt
|
||||
| lwz TMP1, DISPATCH_GL(tmptv)(DISPATCH)
|
||||
| evmergelo CRET1, CRET1, CRET2
|
||||
| efdcfsi CRET2, TMP1
|
||||
@@ -1503,7 +1503,7 @@
|
||||
| checkfail ->fff_fallback
|
||||
| la CARG3, -8(BASE)
|
||||
| lwz PC, FRAME_PC(BASE)
|
||||
- | bl extern modf
|
||||
+ | bl extern modf@plt
|
||||
| evmergelo CRET1, CRET1, CRET2
|
||||
| la RA, -8(BASE)
|
||||
| evstdd CRET1, 0(BASE)
|
||||
@@ -2399,7 +2399,7 @@
|
||||
| checknum CARG1
|
||||
| evmergehi CARG3, CARG4, CARG4
|
||||
| checkanyfail ->vmeta_arith_vv
|
||||
- | bl extern pow
|
||||
+ | bl extern pow@plt
|
||||
| evmergelo CRET2, CRET1, CRET2
|
||||
| evstddx CRET2, BASE, RA
|
||||
| ins_next
|
|
@ -0,0 +1,4 @@
|
|||
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
|
||||
|
||||
SRC_URI_append_qoriq-ppc = " file://ppc-fixplt.patch "
|
||||
|
20
meta-fsl-ppc/recipes-bsp/apptrk/apptrk_git.bb
Normal file
20
meta-fsl-ppc/recipes-bsp/apptrk/apptrk_git.bb
Normal file
|
@ -0,0 +1,20 @@
|
|||
DESCRIPTION = "Userspace debug agent for PA CodeWarrior"
|
||||
LICENSE = "Freescale-EULA"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=95560debfde180684364319811cc1421"
|
||||
|
||||
DEPENDS = "elfutils"
|
||||
|
||||
SRC_URI = "git://git.freescale.com/ppc/sdk/apptrk.git;nobranch=1"
|
||||
SRCREV = "cbed10997c5e2a4aaa004fb0e1efec858bf1bbe1"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
CFLAGS += " -I${STAGING_INCDIR} -ISource/Linux -ISource/Portable \
|
||||
-ISource/Linux_PA -ISource/PA -DPPC \
|
||||
"
|
||||
CFLAGS_append_powerpc64 = " -DENABLE_64BIT_SUPPORT"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}/usr/bin
|
||||
oe_runmake install DESTDIR=${D}
|
||||
}
|
21
meta-fsl-ppc/recipes-bsp/boot-format/boot-format/flags.patch
Normal file
21
meta-fsl-ppc/recipes-bsp/boot-format/boot-format/flags.patch
Normal file
|
@ -0,0 +1,21 @@
|
|||
Index: git/Makefile
|
||||
===================================================================
|
||||
--- git.orig/Makefile
|
||||
+++ git/Makefile
|
||||
@@ -3,14 +3,14 @@
|
||||
INSTALL=install
|
||||
PREFIX=/usr
|
||||
|
||||
-CFLAGS=-Wall
|
||||
+override CFLAGS+=-Wall
|
||||
|
||||
all: boot_format
|
||||
|
||||
boot_format.o: boot_format.c boot_format.h
|
||||
|
||||
boot_format: boot_format.o
|
||||
- $(CC) $< -o $@
|
||||
+ $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
|
||||
|
||||
install: boot_format
|
||||
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
|
20
meta-fsl-ppc/recipes-bsp/boot-format/boot-format_git.bb
Normal file
20
meta-fsl-ppc/recipes-bsp/boot-format/boot-format_git.bb
Normal file
|
@ -0,0 +1,20 @@
|
|||
DESCRIPTION = "Boot format utility for booting from eSDHC/eSPI"
|
||||
LICENSE = "GPLv2"
|
||||
PR = "r6"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
SRC_URI = "git://git.freescale.com/ppc/sdk/boot-format.git;nobranch=1 \
|
||||
file://flags.patch"
|
||||
SRCREV = "4eb81a6797ef4e58bf7d9b2d58afb37a21c1f550"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
EXTRA_OEMAKE = 'CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"'
|
||||
|
||||
do_install(){
|
||||
oe_runmake DESTDIR=${D} PREFIX=${prefix} install
|
||||
}
|
||||
|
||||
PACKAGES =+ "${PN}-config"
|
||||
FILES_${PN}-config += "${datadir}/*"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
50
meta-fsl-ppc/recipes-bsp/ipc/ipc-ust_git.bb
Normal file
50
meta-fsl-ppc/recipes-bsp/ipc/ipc-ust_git.bb
Normal file
|
@ -0,0 +1,50 @@
|
|||
SUMMARY = "Linux IPC Userspace Tool"
|
||||
DESCRIPTION = "DSP boot application and ipc test application"
|
||||
LICENSE = "BSD"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=fa38cd73d71527dc6efb546474f64d10"
|
||||
|
||||
require ipc.inc
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
# workaround for issue of parallel build, required a actual fix in ipc source
|
||||
PARALLEL_MAKE = ""
|
||||
|
||||
EXTRA_OEMAKE = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC}" AR="${AR}"'
|
||||
|
||||
do_compile () {
|
||||
case ${MACHINE} in
|
||||
bsc9132qds|bsc9131rdb) SOC=B913x;;
|
||||
b4860qds|b4420qds|b4860qds-64b) SOC=B4860;;
|
||||
esac
|
||||
oe_runmake ${SOC}=1
|
||||
}
|
||||
|
||||
do_install () {
|
||||
install -d ${D}${bindir}
|
||||
install -d ${D}${includedir}
|
||||
install -d ${D}/ipc
|
||||
install -m 755 ${S}/dsp_boot/dsp_bt ${D}/ipc
|
||||
install -m 755 ${S}/ipc/ipc_test ${D}/ipc
|
||||
install -m 755 ${S}/ipc/ipc_test67 ${D}/ipc
|
||||
install -m 755 ${S}/ipc/l1d_app ${D}/ipc
|
||||
install -m 755 ${S}/fsl_shm/app ${D}${bindir}/lg_shm_test
|
||||
install -d ${D}${base_libdir}
|
||||
install -m 755 ${S}/ipc/libipc.so ${D}${base_libdir}
|
||||
install -m 755 ${S}/ipc/libmem.so ${D}${base_libdir}
|
||||
install -m 755 ${S}/ipc/libdspboot.so ${D}${base_libdir}
|
||||
install -d ${D}${includedir}/ipc
|
||||
install -d ${D}${includedir}/ipc/ipc/include
|
||||
install -d ${D}${includedir}/ipc/fsl_shm/lib
|
||||
install ${S}/ipc/include/*.h ${D}${includedir}/ipc/ipc/include
|
||||
install ${S}/dsp_boot/*.h ${D}${includedir}/ipc/ipc/include
|
||||
install ${S}/kernel/fsl_ipc_types.h ${D}${includedir}/ipc/ipc/include
|
||||
install ${S}/kernel/fsl_heterogeneous_common.h ${D}${includedir}/ipc/ipc/include
|
||||
install ${S}/kernel/fsl_heterogeneous_l1_defense.h ${D}${includedir}/ipc/ipc/include
|
||||
install ${S}/fsl_shm/include/*.h ${D}${includedir}/ipc/ipc/include
|
||||
install ${S}/fsl_shm/lib/*.h ${D}${includedir}/ipc/fsl_shm/lib
|
||||
}
|
||||
|
||||
FILES_${PN} += "/ipc/*"
|
||||
FILES_${PN}-dbg += "/ipc/.debug"
|
||||
|
7
meta-fsl-ppc/recipes-bsp/ipc/ipc.inc
Normal file
7
meta-fsl-ppc/recipes-bsp/ipc/ipc.inc
Normal file
|
@ -0,0 +1,7 @@
|
|||
DEPENDS = "virtual/kernel"
|
||||
|
||||
SRC_URI = "git://git.freescale.com/ppc/sdk/ipc.git;nobranch=1"
|
||||
SRCREV = "c9c92ac6a7a31c9d878096eb7d135c22a38f20ff"
|
||||
|
||||
COMPATIBLE_MACHINE = "(bsc9132qds|bsc9131rdb|b4860qds|b4420qds)"
|
||||
|
41
meta-fsl-ppc/recipes-bsp/pkc-firmware/pkc-firmware_git.bb
Normal file
41
meta-fsl-ppc/recipes-bsp/pkc-firmware/pkc-firmware_git.bb
Normal file
|
@ -0,0 +1,41 @@
|
|||
DESCRIPTION = "U-boot firmware for c293pcie support "
|
||||
HOMEPAGE = "http://u-boot.sf.net"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
|
||||
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
DEPENDS = "virtual/${TARGET_PREFIX}gcc libgcc"
|
||||
|
||||
inherit deploy
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
SRC_URI = "git://git.freescale.com/ppc/sdk/pkc-firmware.git;nobranch=1"
|
||||
SRCREV = "b891873c1eea7a7d53f9472ea601712897cb17b7"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}"'
|
||||
|
||||
do_compile () {
|
||||
unset LDFLAGS
|
||||
unset CFLAGS
|
||||
unset CPPFLAGS
|
||||
oe_runmake C293QDS_36BIT_SDCARD
|
||||
}
|
||||
|
||||
do_install(){
|
||||
install -d ${D}${sysconfdir}/crypto/
|
||||
install ${S}/u-boot.bin ${D}${sysconfdir}/crypto/pkc-firmware.bin
|
||||
}
|
||||
|
||||
do_deploy(){
|
||||
install -d ${DEPLOYDIR}/pkc-firmware
|
||||
install ${S}/u-boot.bin ${DEPLOYDIR}/pkc-firmware/pkc-firmware.bin
|
||||
}
|
||||
|
||||
addtask deploy after do_install
|
||||
|
||||
FILES_{PN} += "/etc/crypto/pkc-firmware.bin"
|
||||
COMPATIBLE_MACHINE = "(c293pcie)"
|
||||
|
35
meta-fsl-ppc/recipes-bsp/qe-ucode/qe-ucode_git.bb
Normal file
35
meta-fsl-ppc/recipes-bsp/qe-ucode/qe-ucode_git.bb
Normal file
|
@ -0,0 +1,35 @@
|
|||
DESCRIPTION = "qe microcode binary"
|
||||
SECTION = "qe-ucode"
|
||||
LICENSE = "Freescale-EULA"
|
||||
LIC_FILES_CHKSUM = "file://EULA;md5=60037ccba533a5995e8d1a838d85799c"
|
||||
|
||||
python () {
|
||||
if not d.getVar("QE_UCODE", True):
|
||||
machine = d.getVar("MACHINE", True)
|
||||
raise bb.parse.SkipPackage("QE_UCODE not set in \
|
||||
meta-fsl-ppc/conf/machine/%s.conf" % machine)
|
||||
}
|
||||
|
||||
inherit deploy
|
||||
|
||||
SRC_URI = "git://git.freescale.com/ppc/sdk/qe-ucode.git;nobranch=1"
|
||||
SRCREV= "49efc94b553de5c2a9bd28093592eff0068e161c"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
do_install () {
|
||||
install -d ${D}/boot
|
||||
install -m 644 ${QE_UCODE} ${D}/boot/
|
||||
}
|
||||
|
||||
do_deploy () {
|
||||
install -d ${DEPLOYDIR}/boot
|
||||
install -m 644 ${QE_UCODE} ${DEPLOYDIR}/boot/
|
||||
}
|
||||
addtask deploy before do_build after do_install
|
||||
|
||||
PACKAGES += "${PN}-image"
|
||||
FILES_${PN}-image += "/boot/*"
|
||||
ALLOW_EMPTY_${PN} = "1"
|
||||
COMPATIBLE_MACHINE = "(p1021rdb|p1025twr|t1)"
|
||||
|
47
meta-fsl-ppc/recipes-bsp/rcw/rcw_git.bb
Normal file
47
meta-fsl-ppc/recipes-bsp/rcw/rcw_git.bb
Normal file
|
@ -0,0 +1,47 @@
|
|||
DESCRIPTION = "Reset Control Words (RCW)"
|
||||
SECTION = "rcw"
|
||||
LICENSE = "BSD"
|
||||
PR = "r8"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://rcw.py;beginline=8;endline=28;md5=9ba0b28922dd187b06b6c8ebcfdd208e"
|
||||
|
||||
# this package is specific to the machine itself
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
inherit deploy
|
||||
|
||||
SRC_URI = "git://git.freescale.com/ppc/sdk/rcw.git;nobranch=1"
|
||||
SRCREV = "3e89f378ed70e9b856756de8c3dbdfccb045fa0c"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
export PYTHON
|
||||
|
||||
do_install () {
|
||||
make install
|
||||
|
||||
M=`echo ${MACHINE} | sed s/-64b//g`
|
||||
if [ "t1042rdb" = "${M}" ] || [ "t1042rdb-pi" = "${M}" ];then
|
||||
M=t1042rdb_pi
|
||||
fi
|
||||
install -d ${D}/boot/rcw
|
||||
cp -r ${S}/${M}/${M}/* ${D}/boot/rcw
|
||||
}
|
||||
|
||||
do_deploy () {
|
||||
M=`echo ${MACHINE} | sed s/-64b//g`
|
||||
if [ "t1042rdb" = "${M}" ] || [ "t1042rdb-pi" = "${M}" ];then
|
||||
M=t1042rdb_pi
|
||||
fi
|
||||
install -d ${DEPLOYDIR}/rcw
|
||||
cp -r ${S}/${M}/${M}/* ${DEPLOYDIR}/rcw
|
||||
}
|
||||
addtask deploy after do_install
|
||||
|
||||
PACKAGES += "${PN}-image"
|
||||
FILES_${PN}-image += "/boot"
|
||||
|
||||
COMPATIBLE_HOST_qoriq-ppc = ".*"
|
||||
COMPATIBLE_HOST ?= "(none)"
|
||||
ALLOW_EMPTY_${PN} = "1"
|
|
@ -0,0 +1,77 @@
|
|||
From 9ba002f1b1afc7af84a352f4ecab32a30d7ba353 Mon Sep 17 00:00:00 2001
|
||||
From: Zhenhua Luo <zhenhua.luo@freescale.com>
|
||||
Date: Mon, 9 Feb 2015 18:33:56 +0800
|
||||
Subject: [PATCH] u-boot/mpc85xx/u-boot*.lds: remove _GLOBAL_OFFSET_TABLE_
|
||||
definition
|
||||
|
||||
In binutils-2.25, the _GLOBAL_OFFSET_TABLE_ symbols defined by PROVIDE in
|
||||
u-boot.lds overrides the linker built-in symbols
|
||||
(https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=b893397a4b1316610f49819344817715e4305de9),
|
||||
so the linker is treating _GLOBAL_OFFSET_TABLE_ as a definition into the .reloc section.
|
||||
|
||||
To align with the change of binutils-2.25, the _GLOBAL_OFFSET_TABLE_ symbol
|
||||
should not be defined in sections, and the symbols in linker generated .got
|
||||
section should be used(https://sourceware.org/ml/binutils/2008-09/msg00122.html).
|
||||
|
||||
Fixed the following build errors with binutils-2.25:
|
||||
| powerpc-poky-linux-gnuspe-ld.bfd: _GLOBAL_OFFSET_TABLE_ not defined in linker created .got
|
||||
|
||||
Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
|
||||
---
|
||||
arch/powerpc/cpu/mpc85xx/u-boot-nand.lds | 1 -
|
||||
arch/powerpc/cpu/mpc85xx/u-boot-nand_spl.lds | 1 -
|
||||
arch/powerpc/cpu/mpc85xx/u-boot-spl.lds | 1 -
|
||||
arch/powerpc/cpu/mpc85xx/u-boot.lds | 1 -
|
||||
4 files changed, 4 deletions(-)
|
||||
|
||||
diff --git a/arch/powerpc/cpu/mpc85xx/u-boot-nand.lds b/arch/powerpc/cpu/mpc85xx/u-boot-nand.lds
|
||||
index f933b21..0399f93 100644
|
||||
--- a/arch/powerpc/cpu/mpc85xx/u-boot-nand.lds
|
||||
+++ b/arch/powerpc/cpu/mpc85xx/u-boot-nand.lds
|
||||
@@ -44,7 +44,6 @@ SECTIONS
|
||||
_GOT2_TABLE_ = .;
|
||||
KEEP(*(.got2))
|
||||
KEEP(*(.got))
|
||||
- PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
|
||||
_FIXUP_TABLE_ = .;
|
||||
KEEP(*(.fixup))
|
||||
}
|
||||
diff --git a/arch/powerpc/cpu/mpc85xx/u-boot-nand_spl.lds b/arch/powerpc/cpu/mpc85xx/u-boot-nand_spl.lds
|
||||
index b83c553..f044564 100644
|
||||
--- a/arch/powerpc/cpu/mpc85xx/u-boot-nand_spl.lds
|
||||
+++ b/arch/powerpc/cpu/mpc85xx/u-boot-nand_spl.lds
|
||||
@@ -22,7 +22,6 @@ SECTIONS
|
||||
_GOT2_TABLE_ = .;
|
||||
KEEP(*(.got2))
|
||||
KEEP(*(.got))
|
||||
- PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
|
||||
_FIXUP_TABLE_ = .;
|
||||
KEEP(*(.fixup))
|
||||
}
|
||||
diff --git a/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds b/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds
|
||||
index 5ae7b3e..889a4c2 100644
|
||||
--- a/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds
|
||||
+++ b/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds
|
||||
@@ -29,7 +29,6 @@ SECTIONS
|
||||
_GOT2_TABLE_ = .;
|
||||
KEEP(*(.got2))
|
||||
KEEP(*(.got))
|
||||
- PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
|
||||
_FIXUP_TABLE_ = .;
|
||||
KEEP(*(.fixup))
|
||||
}
|
||||
diff --git a/arch/powerpc/cpu/mpc85xx/u-boot.lds b/arch/powerpc/cpu/mpc85xx/u-boot.lds
|
||||
index 2cf0b25..f15eaf3 100644
|
||||
--- a/arch/powerpc/cpu/mpc85xx/u-boot.lds
|
||||
+++ b/arch/powerpc/cpu/mpc85xx/u-boot.lds
|
||||
@@ -50,7 +50,6 @@ SECTIONS
|
||||
_GOT2_TABLE_ = .;
|
||||
KEEP(*(.got2))
|
||||
KEEP(*(.got))
|
||||
- PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
|
||||
_FIXUP_TABLE_ = .;
|
||||
KEEP(*(.fixup))
|
||||
}
|
||||
--
|
||||
2.1.0
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
Upstream-Status: Pending
|
||||
|
||||
From 301832414369b749918e0d5db850eed19b81c0fc Mon Sep 17 00:00:00 2001
|
||||
From: Zhenhua Luo <zhenhua.luo@freescale.com>
|
||||
Date: Tue, 24 Sep 2013 00:54:40 -0500
|
||||
Subject: [PATCH] Fix the depend race issue
|
||||
|
||||
| make[3]: Entering directory `/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-fsl-ppc/build/build/tmp/work/p1022ds-poky-linux-gnuspe/u-boot/git-r30/git/arch/powerpc/cpu/mpc85xx'
|
||||
| /srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-fsl-ppc/build/build/tmp/work/p1022ds-poky-linux-gnuspe/u-boot/git-r30/git/P1022DS_NAND/spl/arch/powerpc/cpu/mpc85xx/.depend:125: *** missing separator. Stop.
|
||||
| make[3]: Leaving directory `/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-fsl-ppc/build/build/tmp/work/p1022ds-poky-linux-gnuspe/u-boot/git-r30/git/arch/powerpc/cpu/mpc85xx'
|
||||
| make[2]: *** [/srv/home/pokybuild/yocto-autobuilder-new/yocto-slave/nightly-fsl-ppc/build/build/tmp/work/p1022ds-poky-linux-gnuspe/u-boot/git-r30/git/P1022DS_NAND/spl/arch/powerpc/cpu/mpc85xx/start.o] Error 2
|
||||
| make[2]: *** Waiting for unfinished jobs....
|
||||
|
||||
Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
|
||||
---
|
||||
spl/Makefile | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/spl/Makefile b/spl/Makefile
|
||||
index 6dbb105..3156d87 100644
|
||||
--- a/spl/Makefile
|
||||
+++ b/spl/Makefile
|
||||
@@ -185,7 +185,11 @@ $(eval $(call make_u_boot_list, $(obj)u-boot.lst, $(LIBS)))
|
||||
$(obj)u-boot-spl.lds: $(LDSCRIPT) $(obj)u-boot.lst depend
|
||||
$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -I$(obj). -ansi -D__ASSEMBLY__ -P - < $< > $@
|
||||
|
||||
-depend: $(obj).depend
|
||||
+# Explicitly make _depend in subdirs containing multiple targets to prevent
|
||||
+# parallel sub-makes creating .depend files simultaneously.
|
||||
+depend dep: $(obj).depend
|
||||
+ for dir in $(SUBDIRS) $(CPUDIR) $(LDSCRIPT_MAKEFILE_DIR) ; do \
|
||||
+ $(MAKE) -C $(SRCTREE)/$$dir _depend ; done
|
||||
.PHONY: depend
|
||||
|
||||
# defines $(obj).depend target
|
||||
--
|
||||
1.8.2.1
|
||||
|
188
meta-fsl-ppc/recipes-bsp/u-boot/u-boot-qoriq_2014.07.bb
Normal file
188
meta-fsl-ppc/recipes-bsp/u-boot/u-boot-qoriq_2014.07.bb
Normal file
|
@ -0,0 +1,188 @@
|
|||
DESCRIPTION = "U-boot bootloader"
|
||||
HOMEPAGE = "http://u-boot.sf.net"
|
||||
SECTION = "bootloaders"
|
||||
PROVIDES = "virtual/bootloader u-boot"
|
||||
LICENSE = "GPLv2 & BSD-3-Clause & BSD-2-Clause & LGPL-2.0 & LGPL-2.1"
|
||||
LIC_FILES_CHKSUM = " \
|
||||
file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
|
||||
file://Licenses/bsd-2-clause.txt;md5=6a31f076f5773aabd8ff86191ad6fdd5 \
|
||||
file://Licenses/bsd-3-clause.txt;md5=4a1190eac56a9db675d58ebe86eaf50c \
|
||||
file://Licenses/lgpl-2.0.txt;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
|
||||
file://Licenses/lgpl-2.1.txt;md5=4fbd65380cdd255951079008b364516c \
|
||||
"
|
||||
|
||||
PV = "2014.07+fslgit"
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
DEPENDS = "boot-format-native libgcc ${@base_contains('TCMODE', 'external-fsl', '', 'virtual/${TARGET_PREFIX}gcc', d)}"
|
||||
|
||||
inherit deploy
|
||||
|
||||
SRC_URI = "git://git.freescale.com/ppc/sdk/u-boot.git;nobranch=1 \
|
||||
file://0001-u-boot-mpc85xx-u-boot-.lds-remove-_GLOBAL_OFFSET_TAB.patch"
|
||||
SRCREV = "659b6a23a8b1f3026200bc6352dbacef53f4dcb1"
|
||||
|
||||
python () {
|
||||
if d.getVar("TCMODE", True) == "external-fsl":
|
||||
return
|
||||
|
||||
ml = d.getVar("MULTILIB_VARIANTS", True)
|
||||
arch = d.getVar("OVERRIDES", True)
|
||||
|
||||
if "e5500-64b:" in arch or "e6500-64b:" in arch:
|
||||
if not "lib32" in ml:
|
||||
raise bb.parse.SkipPackage("Building the u-boot for this arch requires multilib to be enabled")
|
||||
sys_multilib = 'powerpc' + d.getVar('TARGET_VENDOR') + 'mllib32-' + d.getVar('HOST_OS')
|
||||
d.setVar('DEPENDS_append', ' lib32-gcc-cross-powerpc lib32-libgcc')
|
||||
d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/' + sys_multilib)
|
||||
d.setVar('TOOLCHAIN_OPTIONS_append', '/../lib32-' + d.getVar("MACHINE"))
|
||||
d.setVar("WRAP_TARGET_PREFIX", sys_multilib + '-')
|
||||
}
|
||||
|
||||
WRAP_TARGET_PREFIX ?= "${TARGET_PREFIX}"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
UBOOT_LOCALVERSION = "${@d.getVar('SDK_VERSION', True).partition(' ')[0]}"
|
||||
|
||||
USRC ?= ""
|
||||
S = '${@base_conditional("USRC", "", "${WORKDIR}/git", "${USRC}", d)}'
|
||||
|
||||
EXTRA_OEMAKE = 'CROSS_COMPILE=${WRAP_TARGET_PREFIX} CC="${WRAP_TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}"'
|
||||
|
||||
do_compile () {
|
||||
unset LDFLAGS
|
||||
unset CFLAGS
|
||||
unset CPPFLAGS
|
||||
|
||||
if [ ! -e ${B}/.scmversion -a ! -e ${S}/.scmversion ]
|
||||
then
|
||||
head=`git rev-parse --verify --short HEAD 2> /dev/null`
|
||||
printf "%s%s%s" ${UBOOT_LOCALVERSION} +g $head > ${B}/.scmversion
|
||||
printf "%s%s%s" ${UBOOT_LOCALVERSION} +g $head > ${S}/.scmversion
|
||||
fi
|
||||
|
||||
if [ "x${UBOOT_MACHINES}" = "x" ]; then
|
||||
UBOOT_MACHINES=${UBOOT_MACHINE}
|
||||
fi
|
||||
|
||||
for board in ${UBOOT_MACHINES}; do
|
||||
if ! grep -wq $board ${S}/boards.cfg;then
|
||||
echo "WARNING: $board not supported in boards.cfg"
|
||||
continue
|
||||
fi
|
||||
|
||||
oe_runmake O=${board} distclean
|
||||
oe_runmake O=${board} ${board}_config
|
||||
oe_runmake O=${board} all
|
||||
|
||||
case "${board}" in
|
||||
*SDCARD*) UBOOT_TARGET="u-boot-sd";;
|
||||
*SPIFLASH*) UBOOT_TARGET="u-boot-spi";;
|
||||
*NAND*) UBOOT_TARGET="u-boot-nand";;
|
||||
*SRIO*) UBOOT_TARGET="u-boot-srio";;
|
||||
*) UBOOT_TARGET="";;
|
||||
esac
|
||||
|
||||
# deal with sd/spi/nand/srio image
|
||||
UBOOT_SOURCE=u-boot.bin
|
||||
if [ "x${UBOOT_TARGET}" != "x" ] && echo $board |egrep -qi "SECBOOT|SECURE"; then
|
||||
cp ${S}/${board}/${UBOOT_SOURCE} ${S}/${board}/${UBOOT_TARGET}.bin
|
||||
elif [ "x${UBOOT_TARGET}" != "x" ]; then
|
||||
# some boards' final binary was not named as u-boot.bin
|
||||
if [ "${UBOOT_TARGET}" = "u-boot-nand" ];then
|
||||
if echo $board |egrep -q "^(BSC|C29|P10|P2020RDB)";then
|
||||
UBOOT_SOURCE=u-boot-with-spl.bin
|
||||
elif echo $board |egrep -q "^(B4|T1|T2|T4)";then
|
||||
UBOOT_SOURCE=u-boot-with-spl-pbl.bin
|
||||
elif echo $board |egrep -q "^(P2041|P3|P4|P5)";then
|
||||
UBOOT_SOURCE=u-boot.pbl
|
||||
fi
|
||||
elif [ "${UBOOT_TARGET}" = "u-boot-spi" ];then
|
||||
if echo $board |egrep -q "^(P10|P2020RDB)";then
|
||||
UBOOT_SOURCE=u-boot-with-spl.bin
|
||||
elif echo $board |egrep -q "^(T1|T2)";then
|
||||
UBOOT_SOURCE=u-boot-with-spl-pbl.bin
|
||||
elif echo $board |egrep -q "^(B4|P2041|P3|P4|P5|T4)";then
|
||||
UBOOT_SOURCE=u-boot.pbl
|
||||
fi
|
||||
elif [ "${UBOOT_TARGET}" = "u-boot-sd" ];then
|
||||
if echo $board |egrep -q "^(P10|P2020RDB)";then
|
||||
UBOOT_SOURCE=u-boot-with-spl.bin
|
||||
elif echo $board |egrep -q "^(B4|T1|T2|T4)";then
|
||||
UBOOT_SOURCE=u-boot-with-spl-pbl.bin
|
||||
elif echo $board |egrep -q "^(P2041|P3|P4|P5)";then
|
||||
UBOOT_SOURCE=u-boot.pbl
|
||||
fi
|
||||
fi
|
||||
cp ${S}/${board}/${UBOOT_SOURCE} ${S}/${board}/${UBOOT_TARGET}.bin
|
||||
|
||||
# use boot-format to regenerate spi image if BOOTFORMAT_CONFIG is not empty
|
||||
if [ "${UBOOT_TARGET}" = "u-boot-spi" ] && [ -n "${BOOTFORMAT_CONFIG}" ];then
|
||||
${STAGING_BINDIR_NATIVE}/boot_format \
|
||||
${STAGING_DATADIR_NATIVE}/boot_format/${BOOTFORMAT_CONFIG} \
|
||||
${S}/${board}/${UBOOT_SOURCE} -spi ${S}/${board}/${UBOOT_TARGET}.bin
|
||||
fi
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
do_install(){
|
||||
if [ "x${UBOOT_MACHINES}" = "x" ]; then
|
||||
UBOOT_MACHINES=${UBOOT_MACHINE}
|
||||
fi
|
||||
|
||||
for board in ${UBOOT_MACHINES}; do
|
||||
if ! grep -wq $board ${S}/boards.cfg;then
|
||||
continue
|
||||
fi
|
||||
|
||||
case "${board}" in
|
||||
*SDCARD*) UBOOT_TARGET="u-boot-sd";;
|
||||
*SPIFLASH*) UBOOT_TARGET="u-boot-spi";;
|
||||
*NAND*) UBOOT_TARGET="u-boot-nand";;
|
||||
*SRIO*) UBOOT_TARGET="u-boot-srio";;
|
||||
*) UBOOT_TARGET="u-boot";;
|
||||
esac
|
||||
|
||||
if [ -f ${S}/${board}/${UBOOT_TARGET}.bin ]; then
|
||||
mkdir -p ${D}/boot/
|
||||
install ${S}/${board}/${UBOOT_TARGET}.bin ${D}/boot/${UBOOT_TARGET}-${board}-${PV}-${PR}.bin
|
||||
ln -sf ${UBOOT_TARGET}-${board}-${PV}-${PR}.bin ${D}/boot/${UBOOT_TARGET}.bin
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
do_deploy(){
|
||||
if [ "x${UBOOT_MACHINES}" = "x" ]; then
|
||||
UBOOT_MACHINES=${UBOOT_MACHINE}
|
||||
fi
|
||||
|
||||
for board in ${UBOOT_MACHINES}; do
|
||||
if ! grep -wq $board ${S}/boards.cfg;then
|
||||
continue
|
||||
fi
|
||||
|
||||
case "${board}" in
|
||||
*SDCARD*) UBOOT_TARGET="u-boot-sd";;
|
||||
*SPIFLASH*) UBOOT_TARGET="u-boot-spi";;
|
||||
*NAND*) UBOOT_TARGET="u-boot-nand";;
|
||||
*SRIO*) UBOOT_TARGET="u-boot-srio";;
|
||||
*) UBOOT_TARGET="u-boot";;
|
||||
esac
|
||||
|
||||
if [ -f ${S}/${board}/${UBOOT_TARGET}.bin ]; then
|
||||
mkdir -p ${DEPLOYDIR}
|
||||
install ${S}/${board}/${UBOOT_TARGET}.bin ${DEPLOYDIR}/${UBOOT_TARGET}-${board}-${PV}-${PR}.bin
|
||||
|
||||
cd ${DEPLOYDIR}
|
||||
rm -f ${UBOOT_TARGET}-${board}.bin
|
||||
ln -sf ${UBOOT_TARGET}-${board}-${PV}-${PR}.bin ${UBOOT_TARGET}-${board}.bin
|
||||
fi
|
||||
done
|
||||
}
|
||||
addtask deploy after do_install
|
||||
|
||||
PACKAGES += "${PN}-images"
|
||||
FILES_${PN}-images += "/boot"
|
||||
|
||||
ALLOW_EMPTY_${PN} = "1"
|
|
@ -0,0 +1,77 @@
|
|||
test_setkey script usage
|
||||
|
||||
The scripts in this directory may be used for testing
|
||||
native Linux IPsec with the talitos driver as a loadable module.
|
||||
|
||||
It's assumed that these scripts have been placed in the directory
|
||||
named /test_setkey.
|
||||
|
||||
The scripts setup_left and setup_right configure the ip addresses
|
||||
for two boards named 'left' and 'right', which are two gateways for
|
||||
an IPsec tunnel. Connect the eth1 interfaces of left and right boards together.
|
||||
For smartbits testing, connect eth0 on each board to a smartbits port.
|
||||
For other testing (ping, netperf, iperf), connect eth0 on each board to another system.
|
||||
|
||||
The scripts named left.conf-* and right.conf-* are setkey scripts
|
||||
which configure the IPsec SA and SPD entries.
|
||||
The scripts ending in -tunnel use tunnel mode IPsec, and the scripts
|
||||
ending in -transport used transport mode IPsec.
|
||||
Transport mode is useful for quickly testing security functionality
|
||||
using ping or netperf between two boards.
|
||||
Tunnel mode can be used for testing throughput using smartbits or other
|
||||
performance test equipment.
|
||||
|
||||
There is a top level script called 'setup' which
|
||||
is used for a one-step setup on the left and right boards.
|
||||
'setup' uses two or three parameters. The first parameter is the side, left or right.
|
||||
The second parameter is the setkey suffix for the left.conf- and right.conf- files.
|
||||
If the third parameter is supplied, the setup will modprobe that name, so
|
||||
typically you should provide talitos as the third parameter if you want to load the driver.
|
||||
If you have built the talitos driver into the kernel, omit the third parameter to setup.
|
||||
You may test software encryption if talitos is built as a module and you omit the third parameter.
|
||||
|
||||
Below are example uses of the 'setup' script.
|
||||
|
||||
1) One-step setup for smartbits
|
||||
Use a tunnel mode setup on each side.
|
||||
AES-HMAC-SHA1:
|
||||
Left side:
|
||||
/test_setkey/setup left aes-sha1-tunnel talitos
|
||||
Right side:
|
||||
/test_setkey/setup right aes-sha1-tunnel talitos
|
||||
|
||||
3DES-HMAC-SHA1:
|
||||
Left side:
|
||||
/test_setkey/setup left 3des-sha1-tunnel talitos
|
||||
Right side:
|
||||
/test_setkey/setup right 3des-sha1-tunnel talitos
|
||||
|
||||
2) One-step setup for testing ping, netperf, or iperf between two boards.
|
||||
Use a transport mode setup on each side.
|
||||
AES-HMAC-SHA1:
|
||||
Left side:
|
||||
/test_setkey/setup left aes-sha1-transport talitos
|
||||
Right side:
|
||||
/test_setkey/setup right aes-sha1-transport talitos
|
||||
|
||||
3DES-HMAC-SHA1:
|
||||
Left side:
|
||||
/test_setkey/setup left 3des-sha1-transport talitos
|
||||
Right side:
|
||||
/test_setkey/setup right 3des-sha1-transport talitos
|
||||
|
||||
3) Testing ipv4
|
||||
To test ipv4 (with no security) over the two gateways, use steps below.
|
||||
Testing ipv4 is helpful to get your smartbits configuration verified
|
||||
and also establish a baseline performance for throughput.
|
||||
|
||||
On the left board:
|
||||
cd /test_setkey
|
||||
./setup_left
|
||||
./left.ipv4
|
||||
|
||||
On the right board:
|
||||
cd /test_setkey
|
||||
./setup_right
|
||||
./right.ipv4
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
#!/usr/sbin/setkey -f
|
||||
#
|
||||
#
|
||||
# Example ESP Tunnel for VPN.
|
||||
#
|
||||
# ========= ESP =========
|
||||
# | |
|
||||
# Network-A Gateway-A Gateway-B Network-B
|
||||
# 192.168.1.0/24 ---- 200.200.200.10 ------ 200.200.200.20 ---- 192.168.2.0/24
|
||||
#
|
||||
# ====== 83xx board A ====== ===== 83xx board B =====
|
||||
# | | | |
|
||||
# eth0 eth1 eth1 eth0
|
||||
# 192.168.1.130 200.200.200.10 200.200.200.20 192.168.2.130
|
||||
#
|
||||
#
|
||||
# Board A setup
|
||||
#
|
||||
# Flush the SAD and SPD
|
||||
flush;
|
||||
spdflush;
|
||||
|
||||
# I am gateway A (eth0:192.168.1.130, eth1:200.200.200.10)
|
||||
#
|
||||
# Security policies
|
||||
spdadd 192.168.1.0/24 192.168.2.0/24 any -P out ipsec
|
||||
esp/tunnel/200.200.200.10-200.200.200.20/require;
|
||||
|
||||
spdadd 192.168.2.0/24 192.168.1.0/24 any -P in ipsec
|
||||
esp/tunnel/200.200.200.20-200.200.200.10/require;
|
||||
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
#!/usr/sbin/setkey -f
|
||||
#
|
||||
#
|
||||
# Example ESP Tunnel for VPN.
|
||||
#
|
||||
# ========= ESP =========
|
||||
# | |
|
||||
# Network-A Gateway-A Gateway-B Network-B
|
||||
# 192.168.1.0/24 ---- 200.200.200.10 ------ 200.200.200.20 ---- 192.168.2.0/24
|
||||
#
|
||||
# ====== 83xx board A ====== ===== 83xx board B =====
|
||||
# | | | |
|
||||
# eth0 eth1 eth1 eth0
|
||||
# 192.168.1.130 200.200.200.10 200.200.200.20 192.168.2.130
|
||||
#
|
||||
#
|
||||
# Board B setup
|
||||
# Flush the SAD and SPD
|
||||
flush;
|
||||
spdflush;
|
||||
|
||||
# I am gateway B (eth0:192.168.2.130, eth1:200.200.200.20)
|
||||
#
|
||||
# Security policies
|
||||
|
||||
spdadd 192.168.2.0/24 192.168.1.0/24 any -P out ipsec
|
||||
esp/tunnel/200.200.200.20-200.200.200.10/require;
|
||||
|
||||
spdadd 192.168.1.0/24 192.168.2.0/24 any -P in ipsec
|
||||
esp/tunnel/200.200.200.10-200.200.200.20/require;
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/sbin/setkey -f
|
||||
|
||||
flush;
|
||||
spdflush;
|
|
@ -0,0 +1,29 @@
|
|||
# /etc/ipsec.conf - strongSwan IPsec configuration file
|
||||
|
||||
config setup
|
||||
charondebug="chd 2, knl 2"
|
||||
crlcheckinterval=180
|
||||
strictcrlpolicy=no
|
||||
plutostart=no
|
||||
|
||||
conn %default
|
||||
ikelifetime=60m
|
||||
keylife=20m
|
||||
rekeymargin=3m
|
||||
keyingtries=1
|
||||
keyexchange=ikev2
|
||||
type=tunnel
|
||||
auth=esp
|
||||
compress=no
|
||||
mobike=no
|
||||
|
||||
conn net-net
|
||||
left=200.200.200.10
|
||||
leftsubnet=192.168.1.0/24
|
||||
leftcert=moonCert.pem
|
||||
leftid="C=CH, O=Linux strongSwan, CN=moon.strongswan.org"
|
||||
leftfirewall=yes
|
||||
right=200.200.200.20
|
||||
rightsubnet=192.168.2.0/24
|
||||
rightid="C=CH, O=Linux strongSwan, CN=sun.strongswan.org"
|
||||
auto=add
|
|
@ -0,0 +1,28 @@
|
|||
# /etc/ipsec.conf - strongSwan IPsec configuration file
|
||||
|
||||
config setup
|
||||
charondebug="chd 2, knl 2"
|
||||
crlcheckinterval=180
|
||||
strictcrlpolicy=no
|
||||
plutostart=no
|
||||
|
||||
conn %default
|
||||
ikelifetime=60m
|
||||
keylife=20m
|
||||
rekeymargin=3m
|
||||
keyingtries=1
|
||||
keyexchange=ikev2
|
||||
auth=esp
|
||||
compress=no
|
||||
mobike=no
|
||||
|
||||
conn net-net
|
||||
left=200.200.200.20
|
||||
leftcert=sunCert.pem
|
||||
leftid="C=CH, O=Linux strongSwan, CN=sun.strongswan.org"
|
||||
leftsubnet=192.168.2.0/24
|
||||
leftfirewall=yes
|
||||
right=200.200.200.10
|
||||
rightid="C=CH, O=Linux strongSwan, CN=moon.strongswan.org"
|
||||
rightsubnet=192.168.1.0/24
|
||||
auto=add
|
|
@ -0,0 +1,3 @@
|
|||
# /etc/ipsec.secrets - strongSwan IPsec secrets file
|
||||
|
||||
: RSA moonKey.pem
|
|
@ -0,0 +1,8 @@
|
|||
# /etc/ipsec.secrets - strongSwan IPsec secrets file
|
||||
|
||||
: RSA sunKey.pem
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
# /etc/ipsec.conf - strongSwan IPsec configuration file
|
||||
|
||||
config setup
|
||||
plutodebug=control
|
||||
crlcheckinterval=180
|
||||
strictcrlpolicy=no
|
||||
charonstart=no
|
||||
|
||||
conn %default
|
||||
ikelifetime=60m
|
||||
keylife=20m
|
||||
rekeymargin=3m
|
||||
keyingtries=1
|
||||
keyexchange=ikev1
|
||||
left=200.200.200.10
|
||||
leftcert=moonCert.pem
|
||||
leftid="C=CH, O=Linux strongSwan, CN=moon.strongswan.org"
|
||||
leftfirewall=yes
|
||||
|
||||
conn net-net
|
||||
left=%defaultroute
|
||||
leftsubnet=192.168.1.0/24
|
||||
leftcert=moonCert.pem
|
||||
right=200.200.200.20
|
||||
rightsubnet=192.168.2.0/24
|
||||
rightid="C=CH, O=Linux strongSwan, CN=sun.strongswan.org"
|
||||
auto=add
|
||||
|
||||
conn host-host
|
||||
left=%defaultroute
|
||||
leftcert=moonCert.pem
|
||||
right=200.200.200.20
|
||||
rightid="C=CH, O=Linux strongSwan, CN=sun.strongswan.org"
|
||||
auto=add
|
||||
|
||||
conn rw
|
||||
leftsubnet=192.168.1.0/24
|
||||
right=%any
|
||||
auto=add
|
|
@ -0,0 +1,34 @@
|
|||
# /etc/ipsec.conf - strongSwan IPsec configuration file
|
||||
|
||||
config setup
|
||||
plutodebug=control
|
||||
crlcheckinterval=180
|
||||
strictcrlpolicy=no
|
||||
charonstart=no
|
||||
|
||||
conn %default
|
||||
ikelifetime=60m
|
||||
keylife=20m
|
||||
rekeymargin=3m
|
||||
keyingtries=1
|
||||
keyexchange=ikev1
|
||||
left=200.200.200.20
|
||||
leftcert=sunCert.pem
|
||||
leftid="C=CH, O=Linux strongSwan, CN=sun.strongswan.org"
|
||||
leftfirewall=yes
|
||||
|
||||
conn net-net
|
||||
left=%defaultroute
|
||||
leftsubnet=192.168.2.0/24
|
||||
leftcert=sunCert.pem
|
||||
right=200.200.200.10
|
||||
rightsubnet=192.168.1.0/24
|
||||
rightid="C=CH, O=Linux strongSwan, CN=moon.strongswan.org"
|
||||
auto=add
|
||||
|
||||
conn host-host
|
||||
left=%defaultroute
|
||||
leftcert=sunCert.pem
|
||||
right=200.200.200.10
|
||||
rightid="C=CH, O=Linux strongSwan, CN=moon.strongswan.org"
|
||||
auto=add
|
|
@ -0,0 +1,23 @@
|
|||
#!/usr/sbin/setkey -f
|
||||
#I am 200.200.200.10
|
||||
|
||||
flush;
|
||||
spdflush;
|
||||
|
||||
# ESP SAs doing encryption using 192 bit long keys (168 + 24 parity)
|
||||
# and hmac-md5 authentication using 128 bit long keys
|
||||
add 200.200.200.10 200.200.200.20 esp 0x10513
|
||||
-E 3des-cbc 0x7aeaca3f87d060a12f4a4487d5a5c3355920fae69a96c831
|
||||
-A hmac-md5 0xd5f603abc8cd9d19319ca32fb955b10f;
|
||||
|
||||
add 200.200.200.20 200.200.200.10 esp 0x10514
|
||||
-E 3des-cbc 0xf6ddb555acfd9d77b03ea3843f2653255afe8eb5573965df
|
||||
-A hmac-md5 0x1dd90b4c32dcbe9d37b555a23df5170e;
|
||||
|
||||
|
||||
spdadd 200.200.200.20 200.200.200.10 any -P in ipsec
|
||||
esp/transport//require;
|
||||
|
||||
spdadd 200.200.200.10 200.200.200.20 any -P out ipsec
|
||||
esp/transport//require;
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
#!/usr/sbin/setkey -f
|
||||
#
|
||||
#
|
||||
# Example ESP Tunnel for VPN.
|
||||
#
|
||||
# ========= ESP =========
|
||||
# | |
|
||||
# Network-A Gateway-A Gateway-B Network-B
|
||||
# 192.168.1.0/24 ---- 200.200.200.10 ------ 200.200.200.20 ---- 192.168.2.0/24
|
||||
#
|
||||
# ====== 83xx board A ====== ===== 83xx board B =====
|
||||
# | | | |
|
||||
# eth0 eth1 eth1 eth0
|
||||
# 192.168.1.130 200.200.200.10 200.200.200.20 192.168.2.130
|
||||
#
|
||||
#
|
||||
# Board A setup
|
||||
#
|
||||
# Flush the SAD and SPD
|
||||
flush;
|
||||
spdflush;
|
||||
|
||||
# I am gateway A (eth0:192.168.1.130, eth1:200.200.200.10)
|
||||
#
|
||||
# Security policies
|
||||
spdadd 192.168.1.0/24 192.168.2.0/24 any -P out ipsec
|
||||
esp/tunnel/200.200.200.10-200.200.200.20/require;
|
||||
|
||||
spdadd 192.168.2.0/24 192.168.1.0/24 any -P in ipsec
|
||||
esp/tunnel/200.200.200.20-200.200.200.10/require;
|
||||
|
||||
|
||||
# ESP SAs doing encryption using 192 bit long keys (168 + 24 parity)
|
||||
# and hmac-md5 authentication using 128 bit long keys
|
||||
add 200.200.200.10 200.200.200.20 esp 0x201 -m tunnel
|
||||
-E 3des-cbc 0x7aeaca3f87d060a12f4a4487d5a5c3355920fae69a96c831
|
||||
-A hmac-md5 0xd5f603abc8cd9d19319ca32fb955b10f;
|
||||
|
||||
add 200.200.200.20 200.200.200.10 esp 0x301 -m tunnel
|
||||
-E 3des-cbc 0xf6ddb555acfd9d77b03ea3843f2653255afe8eb5573965df
|
||||
-A hmac-md5 0x1dd90b4c32dcbe9d37b555a23df5170e;
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/sbin/setkey -f
|
||||
#I am 200.200.200.10
|
||||
|
||||
flush;
|
||||
spdflush;
|
||||
|
||||
# ESP SAs doing encryption using 192 bit long keys (168 + 24 parity)
|
||||
# and hmac-sha1 authentication using 160 bit long keys
|
||||
add 200.200.200.10 200.200.200.20 esp 0x10513
|
||||
-E 3des-cbc 0x7aeaca3f87d060a12f4a4487d5a5c3355920fae69a96c831
|
||||
-A hmac-sha1 0xe9c43acd5e8d779b6e09c87347852708ab49bdd3;
|
||||
|
||||
add 200.200.200.20 200.200.200.10 esp 0x10514
|
||||
-E 3des-cbc 0xf6ddb555acfd9d77b03ea3843f2653255afe8eb5573965df
|
||||
-A hmac-sha1 0xea6856479330dc9c17b8f6c37e2a895363d83f21;
|
||||
|
||||
spdadd 200.200.200.20 200.200.200.10 any -P in ipsec
|
||||
esp/transport//require;
|
||||
|
||||
spdadd 200.200.200.10 200.200.200.20 any -P out ipsec
|
||||
esp/transport//require;
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
#!/usr/sbin/setkey -f
|
||||
#
|
||||
#
|
||||
# Example ESP Tunnel for VPN.
|
||||
#
|
||||
# ========= ESP =========
|
||||
# | |
|
||||
# Network-A Gateway-A Gateway-B Network-B
|
||||
# 192.168.1.0/24 ---- 200.200.200.10 ------ 200.200.200.20 ---- 192.168.2.0/24
|
||||
#
|
||||
# ====== 83xx board A ====== ===== 83xx board B =====
|
||||
# | | | |
|
||||
# eth0 eth1 eth1 eth0
|
||||
# 192.168.1.130 200.200.200.10 200.200.200.20 192.168.2.130
|
||||
#
|
||||
#
|
||||
# Board A setup
|
||||
#
|
||||
# Flush the SAD and SPD
|
||||
flush;
|
||||
spdflush;
|
||||
|
||||
# I am gateway A (eth0:192.168.1.130, eth1:200.200.200.10)
|
||||
#
|
||||
# Security policies
|
||||
spdadd 192.168.1.0/24 192.168.2.0/24 any -P out ipsec
|
||||
esp/tunnel/200.200.200.10-200.200.200.20/require;
|
||||
|
||||
spdadd 192.168.2.0/24 192.168.1.0/24 any -P in ipsec
|
||||
esp/tunnel/200.200.200.20-200.200.200.10/require;
|
||||
|
||||
|
||||
# ESP SAs doing encryption using 192 bit long keys (168 + 24 parity)
|
||||
# and hmac-sha1 authentication using 160 bit long keys
|
||||
add 200.200.200.10 200.200.200.20 esp 0x201 -m tunnel
|
||||
-E 3des-cbc 0x7aeaca3f87d060a12f4a4487d5a5c3355920fae69a96c831
|
||||
-A hmac-sha1 0xe9c43acd5e8d779b6e09c87347852708ab49bdd3;
|
||||
|
||||
add 200.200.200.20 200.200.200.10 esp 0x301 -m tunnel
|
||||
-E 3des-cbc 0xf6ddb555acfd9d77b03ea3843f2653255afe8eb5573965df
|
||||
-A hmac-sha1 0xea6856479330dc9c17b8f6c37e2a895363d83f21;
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
#!/usr/sbin/setkey -f
|
||||
#I am 200.200.200.10
|
||||
|
||||
flush;
|
||||
spdflush;
|
||||
|
||||
# ESP SAs doing encryption using 192 bit long keys (168 + 24 parity)
|
||||
# and hmac-sha2-256 authentication using 256 bit long keys
|
||||
add 200.200.200.10 200.200.200.20 esp 0x10513
|
||||
-E 3des-cbc 0x7aeaca3f87d060a12f4a4487d5a5c3355920fae69a96c831
|
||||
-A hmac-sha2-256 0x4de03bebf6beb4fdef5a67d349a09580466cc4e54503333b2a5fd34538c91198;
|
||||
|
||||
add 200.200.200.20 200.200.200.10 esp 0x10514
|
||||
-E 3des-cbc 0xf6ddb555acfd9d77b03ea3843f2653255afe8eb5573965df
|
||||
-A hmac-sha2-256 0x5e01eb780b7ecc074ca2ca4fa4a5ea2ff841c977da0ce61c49d1fe767ea5452c;
|
||||
|
||||
|
||||
spdadd 200.200.200.20 200.200.200.10 any -P in ipsec
|
||||
esp/transport//require;
|
||||
|
||||
spdadd 200.200.200.10 200.200.200.20 any -P out ipsec
|
||||
esp/transport//require;
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
#!/usr/sbin/setkey -f
|
||||
#
|
||||
#
|
||||
# Example ESP Tunnel for VPN.
|
||||
#
|
||||
# ========= ESP =========
|
||||
# | |
|
||||
# Network-A Gateway-A Gateway-B Network-B
|
||||
# 192.168.1.0/24 ---- 200.200.200.10 ------ 200.200.200.20 ---- 192.168.2.0/24
|
||||
#
|
||||
# ====== 83xx board A ====== ===== 83xx board B =====
|
||||
# | | | |
|
||||
# eth0 eth1 eth1 eth0
|
||||
# 192.168.1.130 200.200.200.10 200.200.200.20 192.168.2.130
|
||||
#
|
||||
#
|
||||
# Board A setup
|
||||
#
|
||||
# Flush the SAD and SPD
|
||||
flush;
|
||||
spdflush;
|
||||
|
||||
# I am gateway A (eth0:192.168.1.130, eth1:200.200.200.10)
|
||||
#
|
||||
# Security policies
|
||||
spdadd 192.168.1.0/24 192.168.2.0/24 any -P out ipsec
|
||||
esp/tunnel/200.200.200.10-200.200.200.20/require;
|
||||
|
||||
spdadd 192.168.2.0/24 192.168.1.0/24 any -P in ipsec
|
||||
esp/tunnel/200.200.200.20-200.200.200.10/require;
|
||||
|
||||
|
||||
# ESP SAs doing encryption using 192 bit long keys (168 + 24 parity)
|
||||
# and hmac-sha2-256 authentication using 256 bit long keys
|
||||
add 200.200.200.10 200.200.200.20 esp 0x10513 -m tunnel
|
||||
-E 3des-cbc 0x7aeaca3f87d060a12f4a4487d5a5c3355920fae69a96c831
|
||||
-A hmac-sha2-256 0x4de03bebf6beb4fdef5a67d349a09580466cc4e54503333b2a5fd34538c91198;
|
||||
|
||||
add 200.200.200.20 200.200.200.10 esp 0x10514 -m tunnel
|
||||
-E 3des-cbc 0xf6ddb555acfd9d77b03ea3843f2653255afe8eb5573965df
|
||||
-A hmac-sha2-256 0x5e01eb780b7ecc074ca2ca4fa4a5ea2ff841c977da0ce61c49d1fe767ea5452c;
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
#!/usr/sbin/setkey -f
|
||||
#I am 200.200.200.10
|
||||
|
||||
flush;
|
||||
spdflush;
|
||||
|
||||
# ESP SAs doing encryption using 192 bit long keys (168 + 24 parity)
|
||||
# and hmac-md5 authentication using 128 bit long keys
|
||||
add 200.200.200.10 200.200.200.20 esp 0x10513
|
||||
-E aes-cbc 0x7aeaca3f87d060a12f4a4487d5a5c3355920fae69a96c831
|
||||
-A hmac-md5 0xd5f603abc8cd9d19319ca32fb955b10f;
|
||||
|
||||
add 200.200.200.20 200.200.200.10 esp 0x10514
|
||||
-E aes-cbc 0xf6ddb555acfd9d77b03ea3843f2653255afe8eb5573965df
|
||||
-A hmac-md5 0x1dd90b4c32dcbe9d37b555a23df5170e;
|
||||
|
||||
|
||||
spdadd 200.200.200.20 200.200.200.10 any -P in ipsec
|
||||
esp/transport//require;
|
||||
|
||||
spdadd 200.200.200.10 200.200.200.20 any -P out ipsec
|
||||
esp/transport//require;
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
#!/usr/sbin/setkey -f
|
||||
#
|
||||
#
|
||||
# Example ESP Tunnel for VPN.
|
||||
#
|
||||
# ========= ESP =========
|
||||
# | |
|
||||
# Network-A Gateway-A Gateway-B Network-B
|
||||
# 192.168.1.0/24 ---- 200.200.200.10 ------ 200.200.200.20 ---- 192.168.2.0/24
|
||||
#
|
||||
# ====== 83xx board A ====== ===== 83xx board B =====
|
||||
# | | | |
|
||||
# eth0 eth1 eth1 eth0
|
||||
# 192.168.1.130 200.200.200.10 200.200.200.20 192.168.2.130
|
||||
#
|
||||
#
|
||||
# Board A setup
|
||||
#
|
||||
# Flush the SAD and SPD
|
||||
flush;
|
||||
spdflush;
|
||||
|
||||
# I am gateway A (eth0:192.168.1.130, eth1:200.200.200.10)
|
||||
#
|
||||
# Security policies
|
||||
spdadd 192.168.1.0/24 192.168.2.0/24 any -P out ipsec
|
||||
esp/tunnel/200.200.200.10-200.200.200.20/require;
|
||||
|
||||
spdadd 192.168.2.0/24 192.168.1.0/24 any -P in ipsec
|
||||
esp/tunnel/200.200.200.20-200.200.200.10/require;
|
||||
|
||||
|
||||
# ESP SAs doing encryption using 192 bit long keys (168 + 24 parity)
|
||||
# and hmac-md5 authentication using 128 bit long keys
|
||||
add 200.200.200.10 200.200.200.20 esp 0x201 -m tunnel
|
||||
-E aes-cbc 0x7aeaca3f87d060a12f4a4487d5a5c3355920fae69a96c831
|
||||
-A hmac-md5 0xd5f603abc8cd9d19319ca32fb955b10f;
|
||||
|
||||
add 200.200.200.20 200.200.200.10 esp 0x301 -m tunnel
|
||||
-E aes-cbc 0xf6ddb555acfd9d77b03ea3843f2653255afe8eb5573965df
|
||||
-A hmac-md5 0x1dd90b4c32dcbe9d37b555a23df5170e;
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/sbin/setkey -f
|
||||
#I am 200.200.200.10
|
||||
|
||||
flush;
|
||||
spdflush;
|
||||
|
||||
# ESP SAs doing encryption using 192 bit long keys (168 + 24 parity)
|
||||
# and hmac-sha1 authentication using 160 bit long keys
|
||||
add 200.200.200.10 200.200.200.20 esp 0x10513
|
||||
-E aes-cbc 0x7aeaca3f87d060a12f4a4487d5a5c3355920fae69a96c831
|
||||
-A hmac-sha1 0xe9c43acd5e8d779b6e09c87347852708ab49bdd3;
|
||||
|
||||
add 200.200.200.20 200.200.200.10 esp 0x10514
|
||||
-E aes-cbc 0xf6ddb555acfd9d77b03ea3843f2653255afe8eb5573965df
|
||||
-A hmac-sha1 0xea6856479330dc9c17b8f6c37e2a895363d83f21;
|
||||
|
||||
spdadd 200.200.200.20 200.200.200.10 any -P in ipsec
|
||||
esp/transport//require;
|
||||
|
||||
spdadd 200.200.200.10 200.200.200.20 any -P out ipsec
|
||||
esp/transport//require;
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
#!/usr/sbin/setkey -f
|
||||
#
|
||||
#
|
||||
# Example ESP Tunnel for VPN.
|
||||
#
|
||||
# ========= ESP =========
|
||||
# | |
|
||||
# Network-A Gateway-A Gateway-B Network-B
|
||||
# 192.168.1.0/24 ---- 200.200.200.10 ------ 200.200.200.20 ---- 192.168.2.0/24
|
||||
#
|
||||
# ====== 83xx board A ====== ===== 83xx board B =====
|
||||
# | | | |
|
||||
# eth0 eth1 eth1 eth0
|
||||
# 192.168.1.130 200.200.200.10 200.200.200.20 192.168.2.130
|
||||
#
|
||||
#
|
||||
# Board A setup
|
||||
#
|
||||
# Flush the SAD and SPD
|
||||
flush;
|
||||
spdflush;
|
||||
|
||||
# I am gateway A (eth0:192.168.1.130, eth1:200.200.200.10)
|
||||
#
|
||||
# Security policies
|
||||
spdadd 192.168.1.0/24 192.168.2.0/24 any -P out ipsec
|
||||
esp/tunnel/200.200.200.10-200.200.200.20/require;
|
||||
|
||||
spdadd 192.168.2.0/24 192.168.1.0/24 any -P in ipsec
|
||||
esp/tunnel/200.200.200.20-200.200.200.10/require;
|
||||
|
||||
|
||||
# ESP SAs doing encryption using 192 bit long keys (168 + 24 parity)
|
||||
# and hmac-sha1 authentication using 160 bit long keys
|
||||
add 200.200.200.10 200.200.200.20 esp 0x201 -m tunnel
|
||||
-E aes-cbc 0x7aeaca3f87d060a12f4a4487d5a5c3355920fae69a96c831
|
||||
-A hmac-sha1 0xe9c43acd5e8d779b6e09c87347852708ab49bdd3;
|
||||
|
||||
add 200.200.200.20 200.200.200.10 esp 0x301 -m tunnel
|
||||
-E aes-cbc 0xf6ddb555acfd9d77b03ea3843f2653255afe8eb5573965df
|
||||
-A hmac-sha1 0xea6856479330dc9c17b8f6c37e2a895363d83f21;
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
#!/usr/sbin/setkey -f
|
||||
#I am 200.200.200.10
|
||||
|
||||
flush;
|
||||
spdflush;
|
||||
|
||||
# ESP SAs doing encryption using 192 bit long keys (168 + 24 parity)
|
||||
# and hmac-sha2-256 authentication using 256 bit long keys
|
||||
add 200.200.200.10 200.200.200.20 esp 0x10513
|
||||
-E aes-cbc 0x7aeaca3f87d060a12f4a4487d5a5c3355920fae69a96c831
|
||||
-A hmac-sha2-256 0x4de03bebf6beb4fdef5a67d349a09580466cc4e54503333b2a5fd34538c91198;
|
||||
|
||||
add 200.200.200.20 200.200.200.10 esp 0x10514
|
||||
-E aes-cbc 0xf6ddb555acfd9d77b03ea3843f2653255afe8eb5573965df
|
||||
-A hmac-sha2-256 0x5e01eb780b7ecc074ca2ca4fa4a5ea2ff841c977da0ce61c49d1fe767ea5452c;
|
||||
|
||||
|
||||
spdadd 200.200.200.20 200.200.200.10 any -P in ipsec
|
||||
esp/transport//require;
|
||||
|
||||
spdadd 200.200.200.10 200.200.200.20 any -P out ipsec
|
||||
esp/transport//require;
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
#!/usr/sbin/setkey -f
|
||||
#
|
||||
#
|
||||
# Example ESP Tunnel for VPN.
|
||||
#
|
||||
# ========= ESP =========
|
||||
# | |
|
||||
# Network-A Gateway-A Gateway-B Network-B
|
||||
# 192.168.1.0/24 ---- 200.200.200.10 ------ 200.200.200.20 ---- 192.168.2.0/24
|
||||
#
|
||||
# ====== 83xx board A ====== ===== 83xx board B =====
|
||||
# | | | |
|
||||
# eth0 eth1 eth1 eth0
|
||||
# 192.168.1.130 200.200.200.10 200.200.200.20 192.168.2.130
|
||||
#
|
||||
#
|
||||
# Board A setup
|
||||
#
|
||||
# Flush the SAD and SPD
|
||||
flush;
|
||||
spdflush;
|
||||
|
||||
# I am gateway A (eth0:192.168.1.130, eth1:200.200.200.10)
|
||||
#
|
||||
# Security policies
|
||||
spdadd 192.168.1.0/24 192.168.2.0/24 any -P out ipsec
|
||||
esp/tunnel/200.200.200.10-200.200.200.20/require;
|
||||
|
||||
spdadd 192.168.2.0/24 192.168.1.0/24 any -P in ipsec
|
||||
esp/tunnel/200.200.200.20-200.200.200.10/require;
|
||||
|
||||
|
||||
# ESP SAs doing encryption using 192 bit long keys (168 + 24 parity)
|
||||
# and hmac-sha2-256 authentication using 256 bit long keys
|
||||
add 200.200.200.10 200.200.200.20 esp 0x10513 -m tunnel
|
||||
-E aes-cbc 0x7aeaca3f87d060a12f4a4487d5a5c3355920fae69a96c831
|
||||
-A hmac-sha2-256 0x4de03bebf6beb4fdef5a67d349a09580466cc4e54503333b2a5fd34538c91198;
|
||||
|
||||
add 200.200.200.20 200.200.200.10 esp 0x10514 -m tunnel
|
||||
-E aes-cbc 0xf6ddb555acfd9d77b03ea3843f2653255afe8eb5573965df
|
||||
-A hmac-sha2-256 0x5e01eb780b7ecc074ca2ca4fa4a5ea2ff841c977da0ce61c49d1fe767ea5452c;
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
#!/usr/sbin/setkey -f
|
||||
#I am 200.200.200.10
|
||||
|
||||
flush;
|
||||
spdflush;
|
||||
|
||||
# ESP SAs doing null encryption
|
||||
# and null authentication
|
||||
add 200.200.200.10 200.200.200.20 esp 0x10513
|
||||
-E null
|
||||
-A null;
|
||||
|
||||
add 200.200.200.20 200.200.200.10 esp 0x10514
|
||||
-E null
|
||||
-A null;
|
||||
|
||||
|
||||
spdadd 200.200.200.20 200.200.200.10 any -P in ipsec
|
||||
esp/transport//require;
|
||||
|
||||
spdadd 200.200.200.10 200.200.200.20 any -P out ipsec
|
||||
esp/transport//require;
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
#!/usr/sbin/setkey -f
|
||||
#
|
||||
#
|
||||
# Example ESP Tunnel for VPN.
|
||||
#
|
||||
# ========= ESP =========
|
||||
# | |
|
||||
# Network-A Gateway-A Gateway-B Network-B
|
||||
# 192.168.1.0/24 ---- 200.200.200.10 ------ 200.200.200.20 ---- 192.168.2.0/24
|
||||
#
|
||||
# ====== 83xx board A ====== ===== 83xx board B =====
|
||||
# | | | |
|
||||
# eth0 eth1 eth1 eth0
|
||||
# 192.168.1.130 200.200.200.10 200.200.200.20 192.168.2.130
|
||||
#
|
||||
#
|
||||
# Board A setup
|
||||
#
|
||||
# Flush the SAD and SPD
|
||||
flush;
|
||||
spdflush;
|
||||
|
||||
# I am gateway A (eth0:192.168.1.130, eth1:200.200.200.10)
|
||||
#
|
||||
# Security policies
|
||||
spdadd 192.168.1.0/24 192.168.2.0/24 any -P out ipsec
|
||||
esp/tunnel/200.200.200.10-200.200.200.20/require;
|
||||
|
||||
spdadd 192.168.2.0/24 192.168.1.0/24 any -P in ipsec
|
||||
esp/tunnel/200.200.200.20-200.200.200.10/require;
|
||||
|
||||
|
||||
# ESP SAs doing null encryption
|
||||
# and null authentication
|
||||
add 200.200.200.10 200.200.200.20 esp 0x201 -m tunnel
|
||||
-E null
|
||||
-A null;
|
||||
|
||||
add 200.200.200.20 200.200.200.10 esp 0x301 -m tunnel
|
||||
-E null
|
||||
-A null;
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
set -v
|
||||
route add -net 192.168.2.0 netmask 255.255.255.0 gw 200.200.200.20
|
|
@ -0,0 +1,25 @@
|
|||
-----BEGIN CERTIFICATE-----
|
||||
MIIEIjCCAwqgAwIBAgIBFzANBgkqhkiG9w0BAQsFADBFMQswCQYDVQQGEwJDSDEZ
|
||||
MBcGA1UEChMQTGludXggc3Ryb25nU3dhbjEbMBkGA1UEAxMSc3Ryb25nU3dhbiBS
|
||||
b290IENBMB4XDTA5MDgyNzEwMDMzMloXDTE0MDgyNjEwMDMzMlowRjELMAkGA1UE
|
||||
BhMCQ0gxGTAXBgNVBAoTEExpbnV4IHN0cm9uZ1N3YW4xHDAaBgNVBAMTE21vb24u
|
||||
c3Ryb25nc3dhbi5vcmcwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDK
|
||||
L2M91Lu6BYYhWxWgMS9z9TMSTwszm5rhO7ZIsCtMRo4PAeYw+++SGXt3CPXb/+p+
|
||||
SWKGlm11rPE71eQ3ehgh2C3hAurfmWO0iQQaCw+fdreeIVCqOQIOP6UqZ327h5yY
|
||||
YpHk8VQv4vBJTpxclU1PqnWheqe1ZlLxsW773LRml/fQt/UgvJkCBTZZONLNMfK+
|
||||
7TDnYaVsAtncgvDN78nUNEe2qY92KK7SrBJ6SpUEg49m51F+XgsGcsgWVHS85on3
|
||||
Om/G48crLEVJjdu8CxewSRVgb+lPJWzHd8QsU0Vg/7vlqs3ZRMyNtNKrr4opSvVb
|
||||
A6agGlTXhDCreDiXU8KHAgMBAAGjggEaMIIBFjAJBgNVHRMEAjAAMAsGA1UdDwQE
|
||||
AwIDqDAdBgNVHQ4EFgQUapx00fiJeYn2WpTpifH6w2SdKS4wbQYDVR0jBGYwZIAU
|
||||
XafdcAZRMn7ntm2zteXgYOouTe+hSaRHMEUxCzAJBgNVBAYTAkNIMRkwFwYDVQQK
|
||||
ExBMaW51eCBzdHJvbmdTd2FuMRswGQYDVQQDExJzdHJvbmdTd2FuIFJvb3QgQ0GC
|
||||
AQAwHgYDVR0RBBcwFYITbW9vbi5zdHJvbmdzd2FuLm9yZzATBgNVHSUEDDAKBggr
|
||||
BgEFBQcDATA5BgNVHR8EMjAwMC6gLKAqhihodHRwOi8vY3JsLnN0cm9uZ3N3YW4u
|
||||
b3JnL3N0cm9uZ3N3YW4uY3JsMA0GCSqGSIb3DQEBCwUAA4IBAQCctXg2xeMozaTV
|
||||
jiBL1P8MY9uEH5JtU0EceQ1RbI5/2vGRdnECND9oADY5vamaaE2Mdq2Qh/vlXnML
|
||||
o3ii5ELjsQlYdTYZOcMOdcUUXYvbbFX1cwpkBhyBl1H25KptHcgQ/HnceKp3kOuq
|
||||
wYOYjgwePXulcpWXx0E2QtQCFQQZFPyEWeNJxH0oglg53QPXfHY9I2/Gukj5V0bz
|
||||
p7ME0Gs8KdnYdmbbDqzQgPsta96/m+HoJlsrVF+4Gqihj6BWMBQ2ybjPWZdG3oH9
|
||||
25cE8v60Ry98D0Z/tygbAUFnh5oOvaf642paVgc3aoA77I8U+UZjECxISoiHultY
|
||||
7QTufOwP
|
||||
-----END CERTIFICATE-----
|
|
@ -0,0 +1,27 @@
|
|||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIIEowIBAAKCAQEAyi9jPdS7ugWGIVsVoDEvc/UzEk8LM5ua4Tu2SLArTEaODwHm
|
||||
MPvvkhl7dwj12//qfklihpZtdazxO9XkN3oYIdgt4QLq35ljtIkEGgsPn3a3niFQ
|
||||
qjkCDj+lKmd9u4ecmGKR5PFUL+LwSU6cXJVNT6p1oXqntWZS8bFu+9y0Zpf30Lf1
|
||||
ILyZAgU2WTjSzTHyvu0w52GlbALZ3ILwze/J1DRHtqmPdiiu0qwSekqVBIOPZudR
|
||||
fl4LBnLIFlR0vOaJ9zpvxuPHKyxFSY3bvAsXsEkVYG/pTyVsx3fELFNFYP+75arN
|
||||
2UTMjbTSq6+KKUr1WwOmoBpU14Qwq3g4l1PChwIDAQABAoIBACBFB/Xqajv6fbn9
|
||||
K6pxrz02uXwGmacXAtVIDoPzejWmXS4QA4l17HrJDmelSnhelDKry8nnYHkTrTz7
|
||||
mn0wQ4HDWy86o/okJUG/TKRLd6bf79aRQqqohqd3iQkHk43GyzuXH+oGioVKF0fc
|
||||
ACDWw4wfjL7FMNdHCZ4Bz9DrHO/ysHe9B6rvSYm3VZRhSxaneIkaLkkDadKpVx3f
|
||||
XNFlMxY4qKPJYYSoJZ61iMqrO7+rnA93tmyDDs8PKU3BtnpfNrdePgleJHhk8Zqy
|
||||
Ev2/NOCSUxbKE8NCtLpGTs+T0qjjnu4k3WPd3ZOBAan0uPDekHZeHB/aXGLhYcxx
|
||||
J5SurqECgYEA+F1gppkER5Jtoaudt/CUpdQ1sR9wxf75VBqJ4FiYABGQz9xlG4oj
|
||||
zL/o572s0iV3bwFpnQa+WuWrxGkP6ZuB/Z82npc0N/vLou/b4dxvg4n7K+eOOEf0
|
||||
8FMjsse2tqTIXKCqcmQnR0NPQ1jwuvEKsXP5w/JOlnRXAXnd4jxsJI0CgYEA0GaT
|
||||
61ySttUW9jC3mxuY6jkQy8TEQqR3nOFvWwmCXIWOpN/MTTPus+Telxp/pdKhU+mo
|
||||
PmX3Unyne5PvwleWDq3YzltX5ZDZGJ5UJlKuNnfGIzQ6OcHRbb7zBpQG6qSRPuug
|
||||
bgo688hTnb1L59nK88zWVK45euf6pyuoI+SwIGMCgYEA7yvE8knyhBXvezuv0z1b
|
||||
eGHmHp5/VDwY0DQKSEAoiBBiWrkLqLybgwXf/KJ8dZZc8En08aFX2GLJyYe/KiB1
|
||||
ys3ypEBJqgvRayP+o/9KZ+qNNRd0rqAksPXvL7ABNNt0kzapTSVDae3Yu6s/j1am
|
||||
DIL5qAeERIDedG5uDPpQzdUCgYB7MtjpP63ABhLv8XbpbBQnCxtByw3W89F+Xcrt
|
||||
v55gQdhE4cSuMzA/CuMH4vNpPS6AI9aBJNhj3CtKo/cOJachAGb1/wvkO5ALvLW0
|
||||
fhZdPstUTnDJain7vfF/hwzbs/PlhXgu9T9KlLfRvXFdG+Sd4g8mumRiozcLkoRw
|
||||
y6XPTwKBgDJP+s9wXmdG90HST/aqC7FKrVXLpB63dY5swNUfQP6sa0pFnON0r0JC
|
||||
h/YCsGFFIAebQ2uOkM3g3f9nkwTp7910ov+/5uThvRI2w2BBPy0mVuALPjyyF1Z2
|
||||
cb9zpyKiIuXoXRCf4sd8r1lR9bn0Fxx0Svpxf+fpMGSI5quHNBKY
|
||||
-----END RSA PRIVATE KEY-----
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Usage: ./pingsizes.sh 1440 20 (or greater)
|
||||
#
|
||||
|
||||
PINGDEST=${PINGDEST:-200.200.200.10}
|
||||
k=$1
|
||||
lim="$((k+$2))"
|
||||
((k-=1))
|
||||
while [ "$k" != "$lim" ] ; do
|
||||
echo -n "ping -s $((k+=1)) : "
|
||||
ping -i 1000 -c 1 -s $k $PINGDEST | grep packets &
|
||||
sleep 1
|
||||
PID=`ps -eaf | grep 'ping -i' | grep -v grep | sed 's/[ ][ ]*/ /g' | cut -d " " -f 2`
|
||||
if [ -n "$PID" ] ; then
|
||||
echo "****************** killing $PID"
|
||||
kill $PID > /dev/null
|
||||
fi
|
||||
done
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Usage: ./pingsizes.sh 1440 20 (or greater)
|
||||
#
|
||||
|
||||
PINGDEST=${PINGDEST:-200.200.200.10}
|
||||
k=$1
|
||||
lim="$((k+$2))"
|
||||
((k-=1))
|
||||
while [ "$k" != "$lim" ] ; do
|
||||
echo ping -s $((k+=1))
|
||||
ping -i 1000 -c 1 -s $k $PINGDEST &
|
||||
sleep 1
|
||||
PID=`ps -eaf | grep 'ping -i' | sed 's/[ ][ ]*/ /g' | cut -d " " -f 2`
|
||||
if [ -n "$PID" ] ; then
|
||||
echo "****************** killing $PID"
|
||||
kill $PID
|
||||
fi
|
||||
done
|
|
@ -0,0 +1,2 @@
|
|||
200.200.200.20 secretkeyracoon
|
||||
200.200.200.10 secretkeyracoon
|
|
@ -0,0 +1,22 @@
|
|||
path pre_shared_key "/test_setkey/psk.txt" ;
|
||||
|
||||
remote anonymous
|
||||
{
|
||||
exchange_mode main ;
|
||||
lifetime time 1 hour ;
|
||||
proposal {
|
||||
encryption_algorithm 3des;
|
||||
hash_algorithm sha1;
|
||||
authentication_method pre_shared_key ;
|
||||
dh_group 2 ;
|
||||
}
|
||||
}
|
||||
|
||||
sainfo anonymous
|
||||
{
|
||||
pfs_group 2;
|
||||
lifetime time 1 hour ;
|
||||
encryption_algorithm 3des ;
|
||||
authentication_algorithm hmac_sha1 ;
|
||||
compression_algorithm deflate ;
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
#!/usr/sbin/setkey -f
|
||||
#I am 200.200.200.20
|
||||
|
||||
flush;
|
||||
spdflush;
|
||||
|
||||
# ESP SAs doing encryption using 192 bit long keys (168 + 24 parity)
|
||||
# and hmac-md5 authentication using 128 bit long keys
|
||||
add 200.200.200.10 200.200.200.20 esp 0x10513
|
||||
-E 3des-cbc 0x7aeaca3f87d060a12f4a4487d5a5c3355920fae69a96c831
|
||||
-A hmac-md5 0xd5f603abc8cd9d19319ca32fb955b10f;
|
||||
|
||||
add 200.200.200.20 200.200.200.10 esp 0x10514
|
||||
-E 3des-cbc 0xf6ddb555acfd9d77b03ea3843f2653255afe8eb5573965df
|
||||
-A hmac-md5 0x1dd90b4c32dcbe9d37b555a23df5170e;
|
||||
|
||||
|
||||
spdadd 200.200.200.20 200.200.200.10 any -P out ipsec
|
||||
esp/transport//require;
|
||||
|
||||
spdadd 200.200.200.10 200.200.200.20 any -P in ipsec
|
||||
esp/transport//require;
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
#!/usr/sbin/setkey -f
|
||||
#
|
||||
#
|
||||
# Example ESP Tunnel for VPN.
|
||||
#
|
||||
# ========= ESP =========
|
||||
# | |
|
||||
# Network-A Gateway-A Gateway-B Network-B
|
||||
# 192.168.1.0/24 ---- 200.200.200.10 ------ 200.200.200.20 ---- 192.168.2.0/24
|
||||
#
|
||||
# ====== 83xx board A ====== ===== 83xx board B =====
|
||||
# | | | |
|
||||
# eth0 eth1 eth1 eth0
|
||||
# 192.168.1.130 200.200.200.10 200.200.200.20 192.168.2.130
|
||||
#
|
||||
#
|
||||
# Board B setup
|
||||
#
|
||||
# Flush the SAD and SPD
|
||||
flush;
|
||||
spdflush;
|
||||
|
||||
# I am gateway B (eth0:192.168.2.130, eth1:200.200.200.20)
|
||||
#
|
||||
# Security policies
|
||||
spdadd 192.168.2.0/24 192.168.1.0/24 any -P out ipsec
|
||||
esp/tunnel/200.200.200.20-200.200.200.10/require;
|
||||
|
||||
spdadd 192.168.1.0/24 192.168.2.0/24 any -P in ipsec
|
||||
esp/tunnel/200.200.200.10-200.200.200.20/require;
|
||||
|
||||
|
||||
# ESP SAs doing encryption using 192 bit long keys (168 + 24 parity)
|
||||
# and hmac-md5 authentication using 128 bit long keys
|
||||
add 200.200.200.10 200.200.200.20 esp 0x201 -m tunnel
|
||||
-E 3des-cbc 0x7aeaca3f87d060a12f4a4487d5a5c3355920fae69a96c831
|
||||
-A hmac-md5 0xd5f603abc8cd9d19319ca32fb955b10f;
|
||||
|
||||
add 200.200.200.20 200.200.200.10 esp 0x301 -m tunnel
|
||||
-E 3des-cbc 0xf6ddb555acfd9d77b03ea3843f2653255afe8eb5573965df
|
||||
-A hmac-md5 0x1dd90b4c32dcbe9d37b555a23df5170e;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user