Attention is currently required from: Hoernchen, Timur Davydov, fixeria, laforge, osmith, pespin.
Hello Hoernchen, Jenkins Builder, fixeria, laforge, osmith,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-trx/+/42243?usp=email
to look at the new patch set (#6).
The following approvals got outdated and were removed:
Verified-1 by Jenkins Builder
Change subject: build: add --disable-multi-arfcn configure option
......................................................................
build: add --disable-multi-arfcn configure option
- add configure flag to disable Multi ARFCN support
- compile Channelizer, Synthesis, RadioInterfaceMulti and fft.c only when enabled
- guard Multi ARFCN-specific code with ENABLE_MULTI_ARFCN
- avoid requiring fftw3f when Multi ARFCN support is disabled
Change-Id: I2495c5b5c79f2fe74bef83902058e1d2207c1f3c
---
M Transceiver52M/Makefile.am
M Transceiver52M/arch/common/Makefile.am
M Transceiver52M/osmo-trx.cpp
M Transceiver52M/radioInterface.h
M configure.ac
5 files changed, 44 insertions(+), 11 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/43/42243/6
--
To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/42243?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Change-Id: I2495c5b5c79f2fe74bef83902058e1d2207c1f3c
Gerrit-Change-Number: 42243
Gerrit-PatchSet: 6
Gerrit-Owner: Timur Davydov <dtv.comp(a)gmail.com>
Gerrit-Reviewer: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: Timur Davydov <dtv.comp(a)gmail.com>
Attention is currently required from: Hoernchen, fixeria, laforge, osmith, pespin.
Hello Hoernchen, Jenkins Builder, fixeria, laforge, osmith,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-trx/+/42243?usp=email
to look at the new patch set (#5).
The following approvals got outdated and were removed:
Verified+1 by Jenkins Builder
Change subject: build: add --disable-multi-arfcn configure option
......................................................................
build: add --disable-multi-arfcn configure option
- add configure flag to disable Multi ARFCN support
- compile Channelizer, Synthesis, RadioInterfaceMulti and fft.c only when enabled
- guard Multi ARFCN-specific code with ENABLE_MULTI_ARFCN
- avoid requiring fftw3f when Multi ARFCN support is disabled
Change-Id: I2495c5b5c79f2fe74bef83902058e1d2207c1f3c
---
M Transceiver52M/Makefile.am
M Transceiver52M/arch/common/Makefile.am
M Transceiver52M/osmo-trx.cpp
M Transceiver52M/radioInterface.h
M configure.ac
5 files changed, 44 insertions(+), 11 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/43/42243/5
--
To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/42243?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Change-Id: I2495c5b5c79f2fe74bef83902058e1d2207c1f3c
Gerrit-Change-Number: 42243
Gerrit-PatchSet: 5
Gerrit-Owner: Timur Davydov <dtv.comp(a)gmail.com>
Gerrit-Reviewer: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Attention is currently required from: laforge.
Hoernchen has posted comments on this change by Hoernchen. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/42306?usp=email )
Change subject: ccid: properly emit wait time ext messages
......................................................................
Patch Set 2:
(4 comments)
File ccid_common/ccid_slot_fsm.c:
https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/42306/comment/b3dd17d6_9b… :
PS2, Line 229: resp = ccid_gen_data_block(cs, ss->seq, CCID_CMD_STATUS_TIME_EXT, 1, NULL, 0);
> can we be sure that we can allocate sufficient waitign time extension messages? what a about a car […]
Then the firmware will crash and burn either way because we can't handle that slow timing and other slots won't have buffers either, but it's now a flag instead of a counter, processed once per loop, and the total amount is clamped until the card is considered mute.
File ccid_common/iso7816_fsm.h:
https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/42306/comment/42e6f0f8_18… :
PS2, Line 25: ISO7816_E_RX_SINGLE, /*!< single-byte data received on UART */
> this cosmetic re-formatting or code does not belong to the patch. […]
Just unhide the build failure here and you can see that the linter prevents building this without reformatting according to the linter rules we have.
File ccid_common/iso7816_fsm.c:
https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/42306/comment/e52236f9_1d… :
PS2, Line 227: { ISO7816_E_TX_ERR_IND, "TX_ERR_IND" },
> same as above
Done
https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/42306/comment/7871849d_7a… :
PS2, Line 555: S(ISO7816_E_POWER_UP_IND),
> and more cosmetic changes
Done
--
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/42306?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: Ib69483d453a0e5ebb1bc1885a8f78790a0f10d70
Gerrit-Change-Number: 42306
Gerrit-PatchSet: 2
Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Wed, 11 Mar 2026 00:19:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Attention is currently required from: Hoernchen, laforge.
Hello Jenkins Builder, laforge,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/42306?usp=email
to look at the new patch set (#3).
The following approvals got outdated and were removed:
Code-Review-1 by laforge, Verified+1 by Jenkins Builder
Change subject: ccid: properly emit wait time ext messages
......................................................................
ccid: properly emit wait time ext messages
The CCID message that tells the host that the card
asked for a wait time extension was missing.
This is a bit weird, because it breaks the 1:1
relationship between messages and responses that
usually exists, nor does it consume a bSeq,
so we just emit WT msgs as appropriate.
It is bounded to prevent msgb exhaustion issues.
Closes: OS#6458
Change-Id: Ib69483d453a0e5ebb1bc1885a8f78790a0f10d70
---
M ccid_common/ccid_device.h
M ccid_common/ccid_slot_fsm.c
M ccid_common/iso7816_fsm.c
M ccid_common/iso7816_fsm.h
4 files changed, 119 insertions(+), 82 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/06/42306/3
--
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/42306?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: Ib69483d453a0e5ebb1bc1885a8f78790a0f10d70
Gerrit-Change-Number: 42306
Gerrit-PatchSet: 3
Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Attention is currently required from: dexter.
neels has posted comments on this change by neels. ( https://gerrit.osmocom.org/c/pysim/+/41845?usp=email )
Change subject: personalization: add param_source.py, add batch.py
......................................................................
Patch Set 6:
(11 comments)
Patchset:
PS6:
there will be a new patch set soon, thanks for the feedback!
File pySim/esim/saip/batch.py:
https://gerrit.osmocom.org/c/pysim/+/41845/comment/f24a7bae_34d7aa7a?usp=em… :
PS6, Line 65: params: list[ParamAndSrc]=None,
> why not use [] as default? ...
IIRC the linter warns against passing empty lists as default argument, because in python there can arise an evil twin situation that is hard to see: like some functions change the arg in-place or something, i don't remember in detail.
https://gerrit.osmocom.org/c/pysim/+/41845/comment/bd98a8ed_3caf0795?usp=em… :
PS6, Line 80: self.params = params or []
> ... then you could write self.params = params here. […]
(marking done, bc discussion will be above)
https://gerrit.osmocom.org/c/pysim/+/41845/comment/32c6d044_21645ff6?usp=em… :
PS6, Line 92: csv_columns = next(self.csv_rows)
> In the above comment you say that self.csv_rows can also be a list. […]
hm that's right, it has to be an iter(list), thx
https://gerrit.osmocom.org/c/pysim/+/41845/comment/a3e376b3_476ec8e8?usp=em… :
PS6, Line 97: csv_row = None
> As far as I understand self. […]
it is optional, configured by the caller, whether a CSV file is present. If yes, it will pass nonempty csv_rows and use at least one CsvSource. So the csv_rows != None case definitely has to be supported.
File pySim/esim/saip/param_source.py:
https://gerrit.osmocom.org/c/pysim/+/41845/comment/df80bc66_187a2e6c?usp=em… :
PS6, Line 31: class ParamSource:
> As far as I understand this is an abstract class. Maybe declare it as […]
That is right. The ABC discussion is a slightly dangerous one, because I am pretty firm in my opinion against using it, though not everyone seems to agree with it. It would be great if I am allowed to work without ABC, or otherwise let's schedule a call, or i will hold a talk about ABC -- either way let's not list points for and against it here but rather talk in person?
https://gerrit.osmocom.org/c/pysim/+/41845/comment/b655dbde_252b85c9?usp=em… :
PS6, Line 42: so the user can enter '0000' to get a four digit random number."""
> If this should work as the bare minimum, we should also have some kind of dummy constructor that can […]
Hmm. it's even worse, most subclasses completely replace this. I will make a better plan, thanks.
https://gerrit.osmocom.org/c/pysim/+/41845/comment/4cd391b0_8a0ba5dd?usp=em… :
PS6, Line 51:
> Excess linebreak? (the other classes are only separated with one)
yea you're right, sometimes i do sometimes i don't, thx.
i think it's because this separates the base definitions from the actual implementations, but not important
https://gerrit.osmocom.org/c/pysim/+/41845/comment/944bfb95_3efd540d?usp=em… :
PS6, Line 95: last_value = int(last_str) if last_str is not None else "9" * len(first_str)
> Here last_value is either an int or it is a string with an integer number. […]
heh funny code =) you are right
https://gerrit.osmocom.org/c/pysim/+/41845/comment/c8a453fc_9b4a59b5?usp=em… :
PS6, Line 121: val = random.randbytes(self.num_digits // 2) # TODO secure random source?
> As far as I understand this should return a bytearray but what you actually want is a hexstring. […]
This uses the fact that all BinaryParameter can take a bytes as input value.
We could convert to hexstring and then the BinaryParameter can convert back to binary, but by passing just the bytes we skip the two conversions.
A thought could be this: most places now use a string value to pass parameter settings around, so if we define that a string is the preferred way, then i would change this; but the idea in ConfigurableParameter that I took over from the code I got when I started is that a bytes and BytesIO and hexstring all work, so i would leave the patch unchanged.. agreed?
https://gerrit.osmocom.org/c/pysim/+/41845/comment/3a1f2a8f_e471a54c?usp=em… :
PS6, Line 174: return val
> You could just do if csv_row: return csv_row.get(self.csv_column) else: raise ... […]
it's more like
if not csv_row or not csv_row.get(self.csv_column):
raise...
return csv_row.get(self.csv_column)
so i'm pretty sure this patch as it is is the most minimalistic way of writing this =)
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/41845?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I01ae40a06605eb205bfb409189fcd2b3a128855a
Gerrit-Change-Number: 41845
Gerrit-PatchSet: 6
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: dexter <pmaier(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 10 Mar 2026 22:20:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: dexter <pmaier(a)sysmocom.de>
Attention is currently required from: lynxis lazus.
Hoernchen has posted comments on this change by lynxis lazus. ( https://gerrit.osmocom.org/c/osmo-asf4-dfu/+/42302?usp=email )
Change subject: Errata 2.6.10: enable watchdog on boot
......................................................................
Patch Set 3: Code-Review-1
(1 comment)
Patchset:
PS3:
this needs checking and then undoing the current settings first before fixing it to use the right bits! Fortunately even the wrong window approach does the job in the existing bootloaders.
Additionally the datasheet uses raw bit offsets which are easier to read/check than looking up the defines used here, but this is a matter of personal taste.
The error was copypaste from contrib/same54_urow.ipynb which I used to inspect and play with a urow dump from gdb, at some point it turned into WEN which is not "watchdog en", but window en... you can use that to check the new urow dump.
--
To view, visit https://gerrit.osmocom.org/c/osmo-asf4-dfu/+/42302?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-asf4-dfu
Gerrit-Branch: master
Gerrit-Change-Id: I581037724d19fb5abd0c5067f16a5769f9e264a7
Gerrit-Change-Number: 42302
Gerrit-PatchSet: 3
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Reviewer: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Comment-Date: Tue, 10 Mar 2026 21:40:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/42317?usp=email )
Change subject: ccid: Handle the TPDU-length = 4 case according to CCID spec
......................................................................
ccid: Handle the TPDU-length = 4 case according to CCID spec
While ISO7816-3 forbids any TPDU shorter from 5 bytes, the CCID spec
begs to differ and actually permits a host to send us 4-byte TPDUs of
Form 1, giving the responsibility of adding the P3=00h octet to the CCID
implementation.
Let's implement this accordingly. While at it, also reject TPDUs of
lengths 1, 2 and 3 bytes - just like zero-length TPDUs.
Change-Id: Ia27962bda526af3373b36d637e2b548aa01a3346
Closes: OS#6973
---
M ccid_common/ccid_device.c
1 file changed, 12 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/17/42317/1
diff --git a/ccid_common/ccid_device.c b/ccid_common/ccid_device.c
index 8a53860..0ef85b6 100644
--- a/ccid_common/ccid_device.c
+++ b/ccid_common/ccid_device.c
@@ -457,17 +457,26 @@
/* Section 6.1.4 */
static int ccid_handle_xfr_block(struct ccid_slot *cs, struct msgb *msg)
{
- const union ccid_pc_to_rdr *u = msgb_ccid_out(msg);
+ union ccid_pc_to_rdr *u = msgb_ccid_out(msg);
const struct ccid_header *ch = (const struct ccid_header *) u;
struct msgb *resp;
int rc;
- if (u->xfr_block.hdr.dwLength == 0) {
+ /* TODO: The checks below assume TPDU-level exchange and T=0. When adding
+ * APDU-level or character level exchange or T=1 support, this needs adjustment */
+ if (u->xfr_block.hdr.dwLength < 4) {
/* CCID Rev 1.1 permits a zero-length XfrBlock on the protocol level, but what should we do
- * with a zero-length TPDU? We need to reject it as bError=1 (Bad dwLength) */
+ * with a zero-length or otherwise short TPDU? We need to reject it as bError=1 (Bad dwLength) */
resp = ccid_gen_data_block(cs, u->xfr_block.hdr.bSeq, CCID_CMD_STATUS_FAILED, 1, 0, 0);
goto out;
+ } else if (u->xfr_block.hdr.dwLength == 4) {
+ /* CCID v1.1 Section 3.2.1:
+ * Command TPDU = CLA INS P1 P2, the CCID is responsible to add P3=00h */
+ msgb_put(msg, 1);
+ u->xfr_block.hdr.dwLength = 5;
+ u->xfr_block.abData[4] = 0x00;
}
+ /* from 5 bytes upwards, we can simply transceive it */
/* handle this asynchronously */
rc = cs->ci->slot_ops->xfr_block_async(cs, msg, &u->xfr_block);
--
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/42317?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: Ia27962bda526af3373b36d637e2b548aa01a3346
Gerrit-Change-Number: 42317
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>