Project

General

Profile

Bug #3121

osmo-bts-sysmo can't read eeprom...

Added by keith over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
03/28/2018
Due date:
% Done:

0%

Spec Reference:

Description

This might be related to 7cf144b27d sysmo: Fix compiler warnings in eeprom.c

http://cgit.osmocom.org/osmo-bts/commit/?id=7cf144b27d75fadfb4ec65019985bb10660a066a

root@sysmobts-v2:~/bin# ./osmo-bts-sysmo-0.7.0.80-7fc1 -c /etc/osmocom/osmo-bts.cfg
((*))
  |
 / \ OsmoBTS
% Ignoring deprecated logging level everything
<0017> ../../../git/src/ctrl/control_if.c:854 CTRL at 0.0.0.0 4238
<0010> ../../../git/src/vty/telnet_interface.c:104 telnet at 127.0.0.1 4241
<0012> ../../git/src/input/ipaccess.c:887 enabling ipaccess BTS mode, OML connecting to 172.16.0.1:3002
<0006> phy_link.c:58 PHY link state change shutdown -> connecting
<0006> l1_if.c:1623 sysmoBTSv2 L1IF compiled against API headers v5.1.0
<0006> l1_if.c:1576 Unable to read band support from EEPROM, assuming all bands
<0006> l1_if.c:184 Tx SYS prim LAYER1-RESET.req
<0006> l1_if.c:1835 Assuming 1002 for sysmoBTS Model number 65535
root@sysmobts-v2:~/bin# cat /lib/firmware/sysmobts-v2.bit > /dev/fpgadl_par0 ; sleep 1; cat /lib/firmware/sysmobts-v2.out > /dev/dspdl_dm644x_0
root@sysmobts-v2:~/bin# ./osmo-bts-sysmo-0.7.0.80-ca60 -c /etc/osmocom/osmo-bts.cfg
((*))
  |
 / \ OsmoBTS
% Ignoring deprecated logging level everything
<0017> ../../../git/src/ctrl/control_if.c:854 CTRL at 0.0.0.0 4238
<0010> ../../../git/src/vty/telnet_interface.c:104 telnet at 127.0.0.1 4241
<0012> ../../git/src/input/ipaccess.c:887 enabling ipaccess BTS mode, OML connecting to 172.16.0.1:3002
<0006> phy_link.c:58 PHY link state change shutdown -> connecting
<0006> l1_if.c:1623 sysmoBTSv2 L1IF compiled against API headers v5.1.0
<0006> l1_if.c:184 Tx SYS prim LAYER1-RESET.req
<0006> l1_if.c:1835 Assuming 1002 for sysmoBTS Model number 65535

History

#1 Updated by keith over 1 year ago

On the 2050....

root@sysmobts-v2:~/bin# ./osmo-bts-sysmo-0.7.0.80-7fc1 -c /etc/osmocom/osmo-bts.cfg 2>&1  | egrep -i calib\|eeprom 
<0006> l1_if.c:1605 Failed to read from EEPROM.
<0006> l1_if.c:1576 Unable to read band support from EEPROM, assuming all bands
<0006> calib_file.c:318 Error reading RxCalibration from EEPROM, band=0, ul=1, err=-3
<0006> calib_file.c:318 Error reading RxCalibration from EEPROM, band=1, ul=1, err=-3
<0006> calib_file.c:205 MAC Address is 24:62:78:00:00:2c -> NO FIXUP
<0006> l1_if.c:184 Tx SYS prim SET-RX-CALIB.req
<0006> calib_file.c:430 L1 calibration table calib_rxu_1800.cfg loaded (src: eeprom)
<0006> calib_file.c:318 Error reading RxCalibration from EEPROM, band=3, ul=1, err=-3
<0006> calib_file.c:318 Error reading RxCalibration from EEPROM, band=0, ul=0, err=-3
<0006> calib_file.c:318 Error reading RxCalibration from EEPROM, band=1, ul=0, err=-3
<0006> calib_file.c:318 Error reading RxCalibration from EEPROM, band=2, ul=0, err=-3
<0006> calib_file.c:318 Error reading RxCalibration from EEPROM, band=3, ul=0, err=-3
<0006> calib_file.c:356 Error reading TxCalibration from EEPROM, band=0, err=-3
<0006> calib_file.c:356 Error reading TxCalibration from EEPROM, band=1, err=-3
<0006> l1_if.c:184 Tx SYS prim SET-TX-CALIB.req
<0006> calib_file.c:430 L1 calibration table calib_tx_1800.cfg loaded (src: eeprom)
<0006> calib_file.c:356 Error reading TxCalibration from EEPROM, band=3, err=-3

root@sysmobts-v2:~/bin# ./osmo-bts-sysmo-0.7.0.80-ca60 -c /etc/osmocom/osmo-bts.cfg 2>&1  | egrep -i calib\|eeprom
<0006> l1_if.c:1611 Read clock calibration(370) from EEPROM.
<0006> calib_file.c:205 MAC Address is 24:62:78:00:00:2c -> NO FIXUP
<0006> l1_if.c:184 Tx SYS prim SET-RX-CALIB.req
<0006> calib_file.c:430 L1 calibration table calib_rxu_850.cfg loaded (src: eeprom)
<0006> l1_if.c:184 Tx SYS prim SET-RX-CALIB.req
<0006> calib_file.c:430 L1 calibration table calib_rxu_1800.cfg loaded (src: eeprom)
<0006> calib_file.c:318 Error reading RxCalibration from EEPROM, band=2, ul=0, err=-3
<0006> l1_if.c:184 Tx SYS prim SET-TX-CALIB.req
<0006> calib_file.c:430 L1 calibration table calib_tx_1800.cfg loaded (src: eeprom)
<0006> calib_file.c:440 L1 calibration table loading complete!

#2 Updated by keith over 1 year ago

I don't fully understand this, but it seems to me now that by casting to pointer (uint32_t*)&ee.cfg.v1.rfClk you loose the address info to calculate the size to read, so it fails.
casting to (int)&ee.cfg.v1.rfClk avoids the compiler error..
going to test if it actually works..

#4 Updated by keith over 1 year ago

  • Subject changed from osmo-bts can't read eeprom... to osmo-bts-sysmo can't read eeprom...
  • Assignee set to keith

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)