Age | Commit message (Collapse) | Author | Files | Lines |
|
If one uses ip(8) one can configure the ip using the form of
A.B.C.D/N. Store N as uint8_t and parse it using strtok_r to
get the otional /N.
Change-Id: I45f884e1a980511fdb3a09425408262420870e0b
|
|
Make it possible to store:
* Static vs. DHCP mode
* IPv4 address
* Netmask
* GW IPv4 address
* DNS IPv4 address
Add a simple CRC8 and pick 0xFF as initial value so an all
zero EEPROM will not generate a 0 CRC. The code tries to
differentiate exit code between unreadable EEPROM and CRC error.
This is a reference to see if we want to have store it in the
EEPROM or not.
Change-Id: Ia7c59506d9f6e4cb6acd4bb0e198abd28a90f50f
|
|
Change-Id: I84a7ecb310034d1d3927008f392028b3ef87a394
|
|
Correct the too short padding I introduced in the commit
a55b166c6c7af79cbefe8e65fe77b2d61c634d2d. The result needs to
be 121 and not 120. Add static asserts to make sure it does
not happen again.
Change-Id: Icaaf520a280ee58c483fa64df4e447702ec746ac
|
|
We are using up to 48 (actually only 8) bytes to manage the boot
state of the device. Add it to the eeprom reservation. It turns out
the current padding was too large (37 + 84 don't end at 120).
Change-Id: I8354a05afcf3cb5f4fa1660cec78b6cbe26f9168
|
|
Read the clock calibration from the place that will be read by
the BTS process. Use the standard eeprom code for doing that.
The code assumes that this and the other eeprom code don't
write/invlidate the others reason. If that assumption would not
be true calls to eeprom_free_resources should be added.
|
|
|
|
This daemon is taking care of counting the number of hours in operation
and to watch the system temperature as determined by internal
temperature sensors.
Later, it will export an external interface for firmware reload, as well
as a way to raise OML ALARMs in case of temperature issues or other
problems.
|