Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Peter Jansweijer
gitified_old_clb_svn
Commits
55317d5e
Commit
55317d5e
authored
Oct 29, 2020
by
vincentb.nikhef.nl
Browse files
Added debug to build
parent
35e18b32
Changes
6
Hide whitespace changes
Inline
Side-by-side
build_all.sh
View file @
55317d5e
...
...
@@ -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
" * clbv2gold
en
- Golden image (*no* WR broadcast!)"
golden
build
" * clbv2gold
en
_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
...
...
sw/embedded/WRPC/dev/wrx_wrpc.c
View file @
55317d5e
...
...
@@ -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
:
...
...
sw/embedded/WRPC/wrc_broadcast.elf
View file @
55317d5e
No preview for this file type
sw/embedded/WRPC/wrc_mac.elf
View file @
55317d5e
No preview for this file type
sw/embedded/WRPC/wrc_main.c
View file @
55317d5e
...
...
@@ -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();
...
...
sw/embedded/WRPC_simu/wrc_main.c
View file @
55317d5e
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment