Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reform
reform-boundary-uboot
Commits
38e65aeb
Commit
38e65aeb
authored
9 years ago
by
Tom Rini
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
git://git.denx.de/u-boot-net
parents
cf23b4da
50768f5b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README
+6
-0
6 additions, 0 deletions
README
drivers/net/phy/atheros.c
+3
-0
3 additions, 0 deletions
drivers/net/phy/atheros.c
net/bootp.c
+10
-1
10 additions, 1 deletion
net/bootp.c
with
19 additions
and
1 deletion
README
+
6
−
0
View file @
38e65aeb
...
...
@@ -5409,6 +5409,12 @@ List of environment variables (most likely not complete):
Ethernet is encapsulated/received over 802.1q
VLAN tagged frames.
bootpretryperiod - Period during which BOOTP/DHCP sends retries.
Unsigned value, in milliseconds. If not set, the period will
be either the default (28000), or a value based on
CONFIG_NET_RETRY_COUNT, if defined. This value has
precedence over the valu based on CONFIG_NET_RETRY_COUNT.
The following image location variables contain the location of images
used in booting. The "Image" column gives the role of the image and is
not an environment variable name. The other columns are environment
...
...
This diff is collapsed.
Click to expand it.
drivers/net/phy/atheros.c
+
3
−
0
View file @
38e65aeb
...
...
@@ -33,6 +33,9 @@ static int ar8035_config(struct phy_device *phydev)
phydev
->
supported
=
phydev
->
drv
->
features
;
genphy_config_aneg
(
phydev
);
genphy_restart_aneg
(
phydev
);
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
net/bootp.c
+
10
−
1
View file @
38e65aeb
...
...
@@ -60,6 +60,8 @@ char net_nis_domain[32] = {0,}; /* Our NIS domain */
char
net_hostname
[
32
]
=
{
0
,};
/* Our hostname */
char
net_root_path
[
64
]
=
{
0
,};
/* Our bootpath */
static
ulong
time_taken_max
;
#if defined(CONFIG_CMD_DHCP)
static
dhcp_state_t
dhcp_state
=
INIT
;
static
u32
dhcp_leasetime
;
...
...
@@ -380,7 +382,7 @@ static void bootp_timeout_handler(void)
{
ulong
time_taken
=
get_timer
(
bootp_start
);
if
(
time_taken
>=
TIMEOUT_MS
)
{
if
(
time_taken
>=
time_taken_max
)
{
#ifdef CONFIG_BOOTP_MAY_FAIL
puts
(
"
\n
Retry time exceeded
\n
"
);
net_set_state
(
NETLOOP_FAIL
);
...
...
@@ -675,12 +677,19 @@ void bootp_request(void)
u32
bootp_id
;
struct
in_addr
zero_ip
;
struct
in_addr
bcast_ip
;
char
*
ep
;
/* Environment pointer */
bootstage_mark_name
(
BOOTSTAGE_ID_BOOTP_START
,
"bootp_start"
);
#if defined(CONFIG_CMD_DHCP)
dhcp_state
=
INIT
;
#endif
ep
=
getenv
(
"bootpretryperiod"
);
if
(
ep
!=
NULL
)
time_taken_max
=
simple_strtoul
(
ep
,
NULL
,
10
);
else
time_taken_max
=
TIMEOUT_MS
;
#ifdef CONFIG_BOOTP_RANDOM_DELAY
/* Random BOOTP delay */
if
(
bootp_try
==
0
)
srand_mac
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment