Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
6fc605be
Commit
6fc605be
authored
Jul 05, 2012
by
Wesley W. Terpstra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return to 62.5MHz; packet loss was the filter not the frequency.
Update Etherbone config space with correct IP address.
parent
469df055
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
board.h
boards/arria/board.h
+1
-1
bootp.c
lib/bootp.c
+11
-0
No files found.
boards/arria/board.h
View file @
6fc605be
...
...
@@ -6,7 +6,7 @@
/* Board-specific parameters */
/* WR Core system/CPU clock frequency in Hz */
#define CPU_CLOCK
1250
00000ULL
#define CPU_CLOCK
625
00000ULL
/* WR Reference clock period (picoseconds) and frequency (Hz) */
#define REF_CLOCK_PERIOD_PS 8000
...
...
lib/bootp.c
View file @
6fc605be
...
...
@@ -124,7 +124,10 @@ int send_bootp(uint8_t* buf, int retry) {
int
process_bootp
(
uint8_t
*
buf
,
int
len
)
{
volatile
unsigned
int
*
eb_ip
=
(
unsigned
int
*
)
0x20718
;
unsigned
int
ip
;
uint8_t
mac
[
6
];
get_mac_addr
(
mac
);
if
(
len
!=
BOOTP_END
)
return
0
;
...
...
@@ -139,5 +142,13 @@ int process_bootp(uint8_t* buf, int len)
mprintf
(
"Discovered IP address!
\n
"
);
memcpy
(
myIP
,
buf
+
BOOTP_YIADDR
,
4
);
ip
=
(
buf
[
BOOTP_YIADDR
+
0
]
<<
24
)
|
(
buf
[
BOOTP_YIADDR
+
1
]
<<
16
)
|
(
buf
[
BOOTP_YIADDR
+
2
]
<<
8
)
|
(
buf
[
BOOTP_YIADDR
+
3
]);
while
(
*
eb_ip
!=
ip
)
*
eb_ip
=
ip
;
return
1
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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