Setup 7 does not work properly after add LPC support in scan_system.sh
Some issues found when trying to use MDIS in setup 7. Using the binary m_open with an MDIS device, we got an error:
sudo mt_simp can_8
open can_8
*** ERROR (MDIS) 0x0b06: BK: board handler not found ***
Additionally, checking the system.dsc, we came across that is incomplete as some entries are missing in the sc31_fpga section
sc31_fpga {
# ------------------------------------------------------------------------
# general parameters (don't modify)
# ------------------------------------------------------------------------
DESC_TYPE = U_INT32 0x2
HW_TYPE = STRING CHAMELEON_ISA
_WIZ_MODEL = STRING CHAMELEON_ISA
_WIZ_BUSIF = STRING cpu,0
# ------------------------------------------------------------------------
# Chameleon BBIS Device:
# DEVICE_IDV2_X is: ((Cham devId) << 8 | instance)
# inside groups:
# DEVICE_IDV2_X is: ((Cham devId) << 8 | index inside group )
# ------------------------------------------------------------------------
DEVICE_IDV2_0 = U_INT32 0x2200
DEVICE_IDV2_1 = U_INT32 0x2202
DEVICE_IDV2_2 = U_INT32 0x2500
DEVICE_IDV2_3 = U_INT32 0x1d00
DEVICE_IDV2_4 = U_INT32 0x5200
The remaining entries are:
DEVICE_ADDR = U_INT32 0xf000e000
DEVICE_ADDR_IO = U_INT32 0x0
Besides, in Makefile, the target to build the module men_chameleon_bb_isa.ko was not added.
Finally, the binary fpga_load have to be modified to work properly with scan_system, as, by default, fpga_load, when dumps information of LPC bus, it displays the string:
Chameleon FPGA table for device 0xf000e000
However, scan_system expects the string:
BARs of FPGA PCI device
To start parsing the BAR information, it won't check the proper file in order to check if the IP Core is already being used or not.
Action points:
- Modify scan_system to add men_chamelon_bb_isa in the Makefile
- Modify scan_system to add the entries DEVICE_ADDR and DEVICE_ADDR_IO in system.dsc
- Modify fpga_load to align the LPC bus chameleon output with PCI output.