aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/misc/sysmobts_eeprom.h
AgeCommit message (Collapse)AuthorFilesLines
2016-07-02sysmobts: Store the netmask as suffixsysmocom/old-stableHolger Hans Peter Freyther1-5/+6
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
2016-07-02sysmobts: Store a simple network config in the EEPROM as wellHolger Hans Peter Freyther1-7/+9
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
2016-07-02sysmobts: Make reservation for mode/netmask/ip and sucHolger Hans Peter Freyther1-1/+14
Change-Id: I84a7ecb310034d1d3927008f392028b3ef87a394
2016-07-02sysmobts: Fix eeprom padding before gpg keyHolger Hans Peter Freyther1-1/+1
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
2016-07-02sysmobts: Add the barebox boot state reservationHolger Hans Peter Freyther1-1/+2
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
2016-05-13sysmobts: Read the clock calibration from another placeHolger Hans Peter Freyther1-1/+1
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.
2013-10-04EEPROM: add model_nr, model_flags and trx_nr to EEPROMHarald Welte1-1/+9
2012-07-11add new sysmobst-mgr daemonHarald Welte1-0/+19
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.