Example #1
0
extra_commands = []
extra_commands.append("@%s/signing-key.asim" % BDK_ROOT)
if asim.chip.startswith("CN9") or asim.chip.startswith(
        "CNF95XX") or asim.chip.startswith("LOKI"):
    # eMMC0 then eMMC1, trusted mode
    # GPIO[3-0] = BOOT[3-0]
    # GPIO[4] = MCP debug
    # GPIO[5] = NCSI_ON_GPIO
    # GPIO[8-6] Unused
    # GPIO[9] = AVS Disable
    # GPIO[10] = TRUSTED_MODE
    # GPIO[11] = CCPI_NODE_ID, must be 0
    # GPIO[13-12] = BOOT[5-4]
    # GPIO[15-14] Unused
    # GPIO[17-16] = GSER_CLK0_TERM_SEL
    # GPIO[23-18] Unused
    # GPIO[24] = PCIE0_EP_MODE
    # GPIO[25] = PCIE1_EP_MODE
    extra_commands.append("control n0.gpio0 set strap 0x408")
else:
    # Change strapping to EMMC_SS, trusted boot
    extra_commands.append("control n0.gpio0 set strap 0x402")
asim.start(10 * 60, extra_commands)  # 10 min limit
asim_tests.do_diags_boot(asim, use_emmc=True, use_trust=True)
asim.stop()

print "***********"
print "Test Passed"
print "***********"
Example #2
0
# ***********************license start***********************************
# Copyright (C) 2018 Marvell International Ltd.
# SPDX-License-Identifier: BSD-3-Clause
# https://spdx.org/licenses
# **********************license end**************************************

import time
from asim_helper import AsimHelper
import asim_tests

asim = AsimHelper()
asim.start(10 * 60, [])  # 10 min limit
asim_tests.do_diags_boot(asim)

asim.send("tg")
asim.wait_for("BDK Traffic Generator")
asim.wait_for("Type \"help\" for a list of commands")
asim.wait_for("(INS)Command>")
asim.send("loopback all internal")
asim.wait_for("(INS)Command>")
asim.send("wait_links")
asim.wait_for("(INS)Command>")
asim.send("default all")
asim.wait_for("(INS)Command>")

if asim.chip.startswith("CN80XX"):
    ports = [
        "XFI0.0", "SGMII1.0", "SGMII1.1", "LBK0.0", "LBK0.1", "LBK0.2",
        "LBK0.3"
    ]
elif asim.chip.startswith("CN81XX"):
Example #3
0
# ***********************license start***********************************
# Copyright (C) 2018 Marvell International Ltd.
# SPDX-License-Identifier: BSD-3-Clause
# https://spdx.org/licenses
# **********************license end**************************************

from asim_helper import AsimHelper
from asim_helper import BDK_ROOT
import asim_tests

asim = AsimHelper()

extra_commands = []
# Change strapping to SPI1_CS0,SPI1_CS1 boot
extra_commands.append("control n0.gpio0 set strap 0x200c")
extra_commands.append("control n0.mpi0 connect 0 /dev/zero")
extra_commands.append("control n0.mpi1 connect 0 /dev/zero")
extra_commands.append("control n0.mpi1 connect 1 " + BDK_ROOT +
                      "/target-bin/bdk.bin")
asim.start(10 * 60, extra_commands)  # 10 min limit
asim_tests.do_diags_boot(asim, use_spi1=True)
asim.stop()

print "***********"
print "Test Passed"
print "***********"