Commit 55317d5e authored by vincentb.nikhef.nl's avatar vincentb.nikhef.nl
Browse files

Added debug to build

parent 35e18b32
......@@ -4,6 +4,7 @@ DO_FPGA=1
DO_KM3NET=1
DO_WRPC=1
DO_REMOTE=1
DBG=""
while true
do
......@@ -13,6 +14,7 @@ do
--no-km3net ) DO_KM3NET=0; shift ;;
--no-wrpc ) DO_WRPC=0; shift ;;
--no-remote ) DO_REMOTE=0; shift ;;
--debug ) DBG="DEBUG=1"; shift ;;
"" ) break ;;
* ) echo "Unknown option '$1'"; exit 1 ;;
esac
......@@ -112,12 +114,12 @@ if [ $DO_KM3NET -eq 1 ]; then
echo "The following images are included:" > artifacts/imageinfo.txt
echo "" >> artifacts/imageinfo.txt
build " * clbv2base - Base version 1" base
build " * clbv2base3 - Base version 3" base BPS_V3=1
build " * clbv2dom - DOM image (*no* WR broadcast!)" runtime
build " * clbv2dom_bc - DOM image (with WR broadcast!)" runtime MAC_BROADCAST=1
build " * clbv2golden - Golden image (*no* WR broadcast!)" golden
build " * clbv2golden_bc - Golden image (with WR broadcast!)" golden MAC_BROADCAST=1
build " * clbv2base - Base version 1" base $DBG
build " * clbv2base3 - Base version 3" base BPS_V3=1 $DBG
build " * clbv2dom - DOM image (*no* WR broadcast!)" runtime $DBG
build " * clbv2dom_bc - DOM image (with WR broadcast!)" runtime MAC_BROADCAST=1 $DBG
build " * clbv2gold - Golden image (*no* WR broadcast!)" golden $DBG
build " * clbv2gold_bc - Golden image (with WR broadcast!)" golden MAC_BROADCAST=1 $DBG
echo "" >> artifacts/imageinfo.txt
echo ".bit = direct programming on FPGA" >> artifacts/imageinfo.txt
echo ".bin = programming with flasher tool" >> artifacts/imageinfo.txt
......
......@@ -128,6 +128,7 @@ int wrxExecute() {
case WRX_COMMAND_NONE:
return 0;
case WRX_COMMAND_AUTONEG_OFF:
// TODO, understand magic values
pcs_write(MDIO_REG_MCR, 0x0160);
break;
case WRX_COMMAND_AUTONEG_ON:
......
......@@ -89,10 +89,18 @@ static void wrc_initialize()
mac_addr[1], mac_addr[2], mac_addr[3], mac_addr[4],
mac_addr[5]);
wrxInit(mac_addr, 0);
#ifdef BROADCAST
wrxInit(mac_addr, 0);
#else
wrxInit(mac_addr, 1);
#endif
ep_init(mac_addr);
#ifdef BROADCAST
ep_enable(1, 0); //Autonegotiation disable
#else
ep_enable(1, 1); //Autonegotiation enable
#endif
//autonegotiation = ep_get_autonegotiation();
......
......@@ -97,8 +97,11 @@ static void wrc_initialize()
mac_addr[5]);
*/
ep_init(mac_addr);
// ep_enable(1, 1);
#ifdef BROADCAST
ep_enable(1, 0); // Auto Negotiate switched off for simulation
#else
ep_enable(1, 1);
#endif
mprintf("Endpoint Initialized!\n");
get_mac_addr(mac_adr_readback);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment