lists.osmocom.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

gerrit-log

Thread Start a new thread
Download
Threads by month
  • ----- 2026 -----
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2025 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
gerrit-log@lists.osmocom.org

January 2022

  • 3 participants
  • 781 discussions
Change in osmo-e1-hardware[master]: icE1usb fw: Add missing usb_e1.h in the Makefile header list
by tnt 15 Jan '22

15 Jan '22
tnt has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1-hardware/+/26903 ) Change subject: icE1usb fw: Add missing usb_e1.h in the Makefile header list ...................................................................... icE1usb fw: Add missing usb_e1.h in the Makefile header list Signed-off-by: Sylvain Munaut <tnt(a)246tNt.com> Change-Id: I2088700c0fc99dbb2940956dd9066ea098ef3eb6 --- M firmware/ice40-riscv/icE1usb/Makefile 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-e1-hardware refs/changes/03/26903/1 diff --git a/firmware/ice40-riscv/icE1usb/Makefile b/firmware/ice40-riscv/icE1usb/Makefile index b2f85d1..06f5484 100644 --- a/firmware/ice40-riscv/icE1usb/Makefile +++ b/firmware/ice40-riscv/icE1usb/Makefile @@ -49,6 +49,7 @@ e1.h \ misc.h \ usb_desc_ids.h \ + usb_e1.h \ usb_str_app.gen.h \ $(NULL) -- To view, visit https://gerrit.osmocom.org/c/osmo-e1-hardware/+/26903 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-e1-hardware Gerrit-Branch: master Gerrit-Change-Id: I2088700c0fc99dbb2940956dd9066ea098ef3eb6 Gerrit-Change-Number: 26903 Gerrit-PatchSet: 1 Gerrit-Owner: tnt <tnt(a)246tNt.com> Gerrit-MessageType: newchange
2 2
0 0
Change in osmo-e1-hardware[master]: icE1usb fw: Fix the E1 shutdown process
by tnt 15 Jan '22

15 Jan '22
tnt has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1-hardware/+/26901 ) Change subject: icE1usb fw: Fix the E1 shutdown process ...................................................................... icE1usb fw: Fix the E1 shutdown process So, once BD are submitted to hw, we have to wait for them to get back, and that's what the SHUTDOWN state is for. Now, this needs to completete before we can call e1_start() again and so in case it wasn't done in time, we just busy waited in e1_start(). Problem is that in the absence of a valid signal, the RX side won't process anything and so we will wait forever. For the TX side, if we are in remote tick config and we never had any valid signal, this could also hang. So we change this. There is actually no need to wait for the shutdown to complete, we can resume where we left off. For RX: We use the 'RECOVER' which basically waits for all pending BD to be done, empty the fifo and auto-restarts. The only "side effect" is that we'll loose up to 4 multiframe of data at the beginning but the RX start is async anyway, no guarantee of where we pick up. For TX: First we empty the FIFO from any data that wasn't already submitted to the hardware (and is now stale) and we also use the 'RECOVER' state which will wait until the FIFO reaches nominal level before starting feeding new data. The "side effect" here is we might TX up to 4 multiframe of old data. Although this is rather unlikely because the conditions for TX not to have transmitted those before are unlikely (and hopefully go away completely with OS#5402) Signed-off-by: Sylvain Munaut <tnt(a)246tNt.com> Change-Id: I3f3de5491e0999f89a63f507fafdc4af8c22c905 --- M firmware/ice40-riscv/icE1usb/e1.c 1 file changed, 46 insertions(+), 14 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-e1-hardware refs/changes/01/26901/1 diff --git a/firmware/ice40-riscv/icE1usb/e1.c b/firmware/ice40-riscv/icE1usb/e1.c index b1695a6..6597124 100644 --- a/firmware/ice40-riscv/icE1usb/e1.c +++ b/firmware/ice40-riscv/icE1usb/e1.c @@ -216,11 +216,17 @@ } static void -e1f_multiframe_empty(struct e1_fifo *fifo) +e1f_multiframe_empty_tail(struct e1_fifo *fifo) { fifo->rptr[0] = fifo->rptr[1] = (fifo->wptr[0] & ~15); } +static void +e1f_multiframe_empty_head(struct e1_fifo *fifo) +{ + fifo->wptr[0] = fifo->wptr[1] = ((fifo->rptr[1] + 15) & ~15); +} + // Main logic // ---------- @@ -364,21 +370,47 @@ volatile struct e1_core *e1_regs = _get_regs(port); struct e1_state *e1 = _get_state(port); - /* Checks */ - while ((e1->rx.state == SHUTDOWN) || (e1->tx.state == SHUTDOWN)) - e1_poll(port); + /* RX */ + switch (e1->rx.state) { + case IDLE: + /* We're idle, clear fifo and normal start */ + e1f_reset(&e1->rx.fifo); + e1->rx.state = STARTING; + break; - if ((e1->rx.state != IDLE) || (e1->tx.state != IDLE)) - panic("Invalid E1 hardware state (port=%d, rxs=%d, txs=%d)", - port, e1->rx.state, e1->tx.state); + case SHUTDOWN: + /* Shutdown is pending, go to recover which is basically + * a shutdown with auto-restart */ + e1->rx.state = RECOVER; + break; - /* Clear FIFOs */ - e1f_reset(&e1->rx.fifo); - e1f_reset(&e1->tx.fifo); + default: + /* Huh ... hope for the best */ + printf("[!] E1 RX start while not stopped ...\n"); + } - /* Flow state */ - e1->rx.state = STARTING; - e1->tx.state = STARTING; + /* TX */ + switch (e1->tx.state) { + case IDLE: + /* We're idle, clear fifo and normal start */ + e1f_reset(&e1->tx.fifo); + e1->tx.state = STARTING; + break; + + case SHUTDOWN: + /* Shutdown is pending, go to recover which is basically + * a shutdown with auto-restart */ + e1->tx.state = RECOVER; + + /* We also prune any pending data in FIFO that's not + * already queued to hw */ + e1f_multiframe_empty_head(&e1->rx.fifo); + break; + + default: + /* Huh ... hope for the best */ + printf("[!] E1 TX start while not stopped ...\n"); + } /* Update CRs */ _e1_update_cr_val(port); @@ -600,7 +632,7 @@ if (e1->rx.state == RECOVER) { if (e1->rx.in_flight != 0) goto done_rx; - e1f_multiframe_empty(&e1->rx.fifo); + e1f_multiframe_empty_tail(&e1->rx.fifo); } /* Fill new RX BD */ -- To view, visit https://gerrit.osmocom.org/c/osmo-e1-hardware/+/26901 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-e1-hardware Gerrit-Branch: master Gerrit-Change-Id: I3f3de5491e0999f89a63f507fafdc4af8c22c905 Gerrit-Change-Number: 26901 Gerrit-PatchSet: 1 Gerrit-Owner: tnt <tnt(a)246tNt.com> Gerrit-MessageType: newchange
2 2
0 0
Change in osmo-e1-hardware[master]: icE1us fw: Add missing ice1usb_proto.h to dependency list
by tnt 15 Jan '22

15 Jan '22
tnt has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1-hardware/+/26904 ) Change subject: icE1us fw: Add missing ice1usb_proto.h to dependency list ...................................................................... icE1us fw: Add missing ice1usb_proto.h to dependency list Signed-off-by: Sylvain Munaut <tnt(a)246tNt.com> Change-Id: I63af9839f79dbb0ce40e6582c86076a6cb213b39 --- M firmware/ice40-riscv/icE1usb/Makefile 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-e1-hardware refs/changes/04/26904/1 diff --git a/firmware/ice40-riscv/icE1usb/Makefile b/firmware/ice40-riscv/icE1usb/Makefile index 06f5484..0022bd9 100644 --- a/firmware/ice40-riscv/icE1usb/Makefile +++ b/firmware/ice40-riscv/icE1usb/Makefile @@ -47,6 +47,7 @@ HEADERS_app=\ config.h \ e1.h \ + ice1usb_proto.h \ misc.h \ usb_desc_ids.h \ usb_e1.h \ -- To view, visit https://gerrit.osmocom.org/c/osmo-e1-hardware/+/26904 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-e1-hardware Gerrit-Branch: master Gerrit-Change-Id: I63af9839f79dbb0ce40e6582c86076a6cb213b39 Gerrit-Change-Number: 26904 Gerrit-PatchSet: 1 Gerrit-Owner: tnt <tnt(a)246tNt.com> Gerrit-MessageType: newchange
2 3
0 0
Change in osmo-e1-hardware[master]: icE1usb fw: Add more hw units to config.h along with sys clock
by tnt 15 Jan '22

15 Jan '22
tnt has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1-hardware/+/26905 ) Change subject: icE1usb fw: Add more hw units to config.h along with sys clock ...................................................................... icE1usb fw: Add more hw units to config.h along with sys clock Those are already in the gateware, this just adds the define for them. Signed-off-by: Sylvain Munaut <tnt(a)246tNt.com> Change-Id: I87fae20e4a987c2186d5db6747e03e7ce9789a8f --- M firmware/ice40-riscv/icE1usb/config.h 1 file changed, 8 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-e1-hardware refs/changes/05/26905/1 diff --git a/firmware/ice40-riscv/icE1usb/config.h b/firmware/ice40-riscv/icE1usb/config.h index e10a120..f467b65 100644 --- a/firmware/ice40-riscv/icE1usb/config.h +++ b/firmware/ice40-riscv/icE1usb/config.h @@ -8,7 +8,7 @@ #pragma once #define SPI_FLASH_BASE 0x80000000 -#define UART_BASE 0x81000000 +#define DBG_UART_BASE 0x81000000 #define LED_BASE 0x82000000 #define USB_CORE_BASE 0x83000000 #define USB_DATA_BASE 0x84000000 @@ -16,3 +16,10 @@ #define DMA_BASE 0x86000000 #define E1_CORE_BASE 0x87000000 #define MISC_BASE 0x88000000 +#define GPS_UART_BASE 0x89000000 +#define I2C_BASE 0x8a000000 + +/* Alias for common code */ +#define UART_BASE DBG_UART_BASE + +#define SYS_CLK_FREQ 30720000 -- To view, visit https://gerrit.osmocom.org/c/osmo-e1-hardware/+/26905 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-e1-hardware Gerrit-Branch: master Gerrit-Change-Id: I87fae20e4a987c2186d5db6747e03e7ce9789a8f Gerrit-Change-Number: 26905 Gerrit-PatchSet: 1 Gerrit-Owner: tnt <tnt(a)246tNt.com> Gerrit-MessageType: newchange
2 3
0 0
Build failure of network:osmocom:latest/osmo-pcap in openSUSE_Leap_15.1_ARM/armv7l
by OBS Notification 14 Jan '22

14 Jan '22
Visit https://build.opensuse.org/package/live_build_log/network:osmocom:latest/os… Package network:osmocom:latest/osmo-pcap failed to build in openSUSE_Leap_15.1_ARM/armv7l Check out the package for editing: osc checkout network:osmocom:latest osmo-pcap Last lines of build log: [ 52s] [157/174] cumulate gcc-7-lp151.3.2 [ 52s] [158/174] cumulate hostname-3.16-lp151.2.3 [ 52s] [159/174] cumulate libosmogsm-devel-1.6.0-lp151.1.1 [ 52s] [160/174] cumulate libgnutls-devel-3.6.7-lp151.1.1 [ 52s] [161/174] cumulate libosmogb12-1.6.0-lp151.1.1 [ 52s] [162/174] cumulate pam-1.3.0-lp151.7.2 [ 52s] [163/174] cumulate gcc-PIE-7-lp151.3.2 [ 52s] [164/174] cumulate libosmogb-devel-1.6.0-lp151.1.1 [ 52s] [165/174] cumulate shadow-4.6-lp151.1.2 [ 52s] [166/174] cumulate sysuser-shadow-2.0-lp151.3.3 [ 52s] [167/174] cumulate system-group-hardware-20170617-lp151.4.3 [ 52s] [168/174] cumulate libutempter0-1.1.6-lp151.4.3 [ 52s] [169/174] cumulate util-linux-2.33.1-lp151.2.2 [ 52s] [170/174] cumulate aaa_base-84.87+git20180409.04c9dae-lp151.4.1 [ 52s] [171/174] cumulate systemd-234-lp151.25.2 [ 52s] [172/174] cumulate rpm-build-4.14.1-lp151.13.2 [ 52s] [173/174] cumulate aaa_base-malloccheck-84.87+git20180409.04c9dae-lp151.4.1 [ 52s] [174/174] cumulate post-build-checks-84.88+git20181015.ceb5c96-lp151.1.1 [ 52s] now installing cumulated packages [ 52s] Preparing... ######################################## [ 52s] file /usr/lib/libsystemd.so.0.19.0 conflicts between attempted installs of libsystemd0-234-lp151.25.2.armv7hl and libsystemd0-mini-234-lp151.25.2.armv7hl [ 54s] exit ... [ 54s] ### VM INTERACTION START ### [ 57s] [ 20.485870] sysrq: SysRq : Power Off [ 57s] [ 20.516186] reboot: Power down [ 57s] ### VM INTERACTION END ### [ 57s] [ 57s] obs-arm-5 failed "build osmo-pcap.spec" at Fri Jan 14 01:47:12 UTC 2022. [ 57s] -- Configure notifications at https://build.opensuse.org/my/subscriptions openSUSE Build Service (https://build.opensuse.org/)
1 0
0 0
Build failure of network:osmocom:latest/osmo-pcap in openSUSE_Leap_15.2/x86_64
by OBS Notification 14 Jan '22

14 Jan '22
Visit https://build.opensuse.org/package/live_build_log/network:osmocom:latest/os… Package network:osmocom:latest/osmo-pcap failed to build in openSUSE_Leap_15.2/x86_64 Check out the package for editing: osc checkout network:osmocom:latest osmo-pcap Last lines of build log: [ 46s] [164/181] cumulate gcc-7-lp152.4.114 [ 46s] [165/181] cumulate hostname-3.16-lp152.3.5 [ 46s] [166/181] cumulate libosmogsm-devel-1.6.0-lp152.1.1 [ 46s] [167/181] cumulate libosmogb12-1.6.0-lp152.1.1 [ 46s] [168/181] cumulate libgnutls-devel-3.6.7-lp152.8.1 [ 46s] [169/181] cumulate pam-1.3.0-lp152.10.25 [ 46s] [170/181] cumulate gcc-PIE-7-lp152.4.114 [ 46s] [171/181] cumulate libosmogb-devel-1.6.0-lp152.1.1 [ 46s] [172/181] cumulate shadow-4.6-lp152.3.80 [ 46s] [173/181] cumulate sysuser-shadow-2.0-lp152.4.114 [ 46s] [174/181] cumulate system-group-hardware-20170617-lp152.5.114 [ 46s] [175/181] cumulate libutempter0-1.1.6-lp152.5.114 [ 46s] [176/181] cumulate util-linux-2.33.1-lp152.4.78 [ 46s] [177/181] cumulate aaa_base-84.87+git20180409.04c9dae-lp152.13.1 [ 46s] [178/181] cumulate systemd-234-lp152.30.1 [ 46s] [179/181] cumulate rpm-build-4.14.1-lp152.17.5 [ 46s] [180/181] cumulate aaa_base-malloccheck-84.87+git20180409.04c9dae-lp152.13.1 [ 46s] [181/181] cumulate post-build-checks-84.87+git20200110.2d02f07-lp152.1.1 [ 46s] now installing cumulated packages [ 46s] Preparing... ######################################## [ 46s] file /usr/lib64/libsystemd.so.0.19.0 conflicts between attempted installs of libsystemd0-234-lp152.30.1.x86_64 and libsystemd0-mini-234-lp152.30.1.x86_64 [ 47s] exit ... [ 47s] ### VM INTERACTION START ### [ 50s] [ 13.059774] sysrq: Power Off [ 50s] [ 13.087711] reboot: Power down [ 50s] ### VM INTERACTION END ### [ 50s] [ 50s] cloud102 failed "build osmo-pcap.spec" at Fri Jan 14 00:59:50 UTC 2022. [ 50s] -- Configure notifications at https://build.opensuse.org/my/subscriptions openSUSE Build Service (https://build.opensuse.org/)
1 0
0 0
Build failure of network:osmocom:latest/osmo-pcap in openSUSE_Leap_15.1/x86_64
by OBS Notification 14 Jan '22

14 Jan '22
Visit https://build.opensuse.org/package/live_build_log/network:osmocom:latest/os… Package network:osmocom:latest/osmo-pcap failed to build in openSUSE_Leap_15.1/x86_64 Check out the package for editing: osc checkout network:osmocom:latest osmo-pcap Last lines of build log: [ 25s] [164/180] cumulate hostname-3.16-lp151.2.3 [ 25s] [165/180] cumulate libosmogsm-devel-1.6.0-lp151.1.1 [ 25s] [166/180] cumulate libosmogb12-1.6.0-lp151.1.1 [ 25s] [167/180] cumulate libgnutls-devel-3.6.7-lp151.1.1 [ 25s] [168/180] cumulate pam-1.3.0-lp151.7.38 [ 25s] [169/180] cumulate gcc-PIE-7-lp151.3.5 [ 25s] [170/180] cumulate libosmogb-devel-1.6.0-lp151.1.1 [ 25s] [171/180] cumulate shadow-4.6-lp151.1.27 [ 25s] [172/180] cumulate sysuser-shadow-2.0-lp151.3.70 [ 25s] [173/180] cumulate system-group-hardware-20[ 3.940355] serial8250: too much work for irq4 [ 25s] 170617-lp151.4.70 [ 25s] [174/180] cumulate libutempter0-1.1.6-lp151.4.70 [ 25s] [175/180] cumulate util-linux-2.33.1-lp151.2.23 [ 25s] [176/180] cumulate aaa_base-84.87+git20180409.04c9dae-lp151.4.1 [ 25s] [177/180] cumulate systemd-234-lp151.25.7 [ 25s] [178/180] cumulate rpm-build-4.14.1-lp151.13.10 [ 25s] [179/180] cumulate aaa_base-malloccheck-84.87+git20180409.04c9dae-lp151.4.1 [ 25s] [180/180] cumulate post-build-checks-84.88+git20181015.ceb5c96-lp151.1.1 [ 25s] now installing cumulated packages [ 25s] Preparing... ######################################## [ 25s] file /usr/lib64/libsystemd.so.0.19.0 conflicts between attempted installs of libsystemd0-234-lp151.25.7.x86_64 and libsystemd0-mini-234-lp151.25.1.x86_64 [ 25s] exit ... [ 25s] ### VM INTERACTION START ### [ 28s] [ 7.432601] sysrq: SysRq : Power Off [ 28s] [ 7.435548] reboot: Power down [ 28s] ### VM INTERACTION END ### [ 28s] [ 28s] cloud118 failed "build osmo-pcap.spec" at Fri Jan 14 00:59:29 UTC 2022. [ 28s] -- Configure notifications at https://build.opensuse.org/my/subscriptions openSUSE Build Service (https://build.opensuse.org/)
1 0
0 0
Build failure of network:osmocom:latest/osmo-pcap in openSUSE_Leap_15.1_ARM/aarch64
by OBS Notification 14 Jan '22

14 Jan '22
Visit https://build.opensuse.org/package/live_build_log/network:osmocom:latest/os… Package network:osmocom:latest/osmo-pcap failed to build in openSUSE_Leap_15.1_ARM/aarch64 Check out the package for editing: osc checkout network:osmocom:latest osmo-pcap Last lines of build log: [ 19s] [159/176] cumulate gcc-7-lp151.3.2 [ 19s] [160/176] cumulate hostname-3.16-lp151.2.3 [ 19s] [161/176] cumulate libosmogsm-devel-1.6.0-lp151.1.1 [ 19s] [162/176] cumulate libosmogb12-1.6.0-lp151.1.1 [ 19s] [163/176] cumulate libgnutls-devel-3.6.7-lp151.1.1 [ 19s] [164/176] cumulate pam-1.3.0-lp151.7.2 [ 19s] [165/176] cumulate gcc-PIE-7-lp151.3.2 [ 19s] [166/176] cumulate libosmogb-devel-1.6.0-lp151.1.1 [ 19s] [167/176] cumulate shadow-4.6-lp151.1.2 [ 19s] [168/176] cumulate sysuser-shadow-2.0-lp151.3.3 [ 19s] [169/176] cumulate system-group-hardware-20170617-lp151.4.3 [ 19s] [170/176] cumulate libutempter0-1.1.6-lp151.4.3 [ 19s] [171/176] cumulate util-linux-2.33.1-lp151.2.2 [ 19s] [172/176] cumulate aaa_base-84.87+git20180409.04c9dae-lp151.4.1 [ 19s] [173/176] cumulate systemd-234-lp151.25.2 [ 19s] [174/176] cumulate rpm-build-4.14.1-lp151.13.2 [ 19s] [175/176] cumulate aaa_base-malloccheck-84.87+git20180409.04c9dae-lp151.4.1 [ 19s] [176/176] cumulate post-build-checks-84.88+git20181015.ceb5c96-lp151.1.1 [ 19s] now installing cumulated packages [ 19s] Preparing... ######################################## [ 19s] file /usr/lib64/libsystemd.so.0.19.0 conflicts between attempted installs of libsystemd0-234-lp151.25.2.aarch64 and libsystemd0-mini-234-lp151.25.2.aarch64 [ 19s] exit ... [ 19s] ### VM INTERACTION START ### [ 22s] [ 10.809172] sysrq: SysRq : Power Off [ 22s] [ 10.810916] reboot: Power down [ 22s] ### VM INTERACTION END ### [ 22s] [ 22s] obs-arm-8 failed "build osmo-pcap.spec" at Fri Jan 14 00:58:50 UTC 2022. [ 22s] -- Configure notifications at https://build.opensuse.org/my/subscriptions openSUSE Build Service (https://build.opensuse.org/)
1 0
0 0
Change in osmo-iuh[master]: test-ranap: put message gen tests into function
by dexter 13 Jan '22

13 Jan '22
dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-iuh/+/26899 ) Change subject: test-ranap: put message gen tests into function ...................................................................... test-ranap: put message gen tests into function This unit test generats a lot of ranap messages for test, but the code for that is in the main() function. Lets seperate this test code into its own function like we do it in all other unit tests. Change-Id: I7021e48b051afb6f13fdd54843d4cd92a499de2a --- M src/tests/test-ranap.c 1 file changed, 25 insertions(+), 21 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/99/26899/1 diff --git a/src/tests/test-ranap.c b/src/tests/test-ranap.c index b3ea4cb..73987f6 100644 --- a/src/tests/test-ranap.c +++ b/src/tests/test-ranap.c @@ -77,7 +77,7 @@ ASN_STRUCT_FREE(asn_DEF_RANAP_Cause, c_dec); } -int main(int argc, char **argv) +static void test_ranap_messages(void) { uint8_t nas_buf[] = { 0xaa, 0xbb, 0xcc }; struct msgb *msg; @@ -91,26 +91,6 @@ uint8_t ck[16] = { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 }; int i; - asn1_xer_print = 1; - - //asn_debug = 1; - - test_common_init(); - ranap_set_log_area(DRANAP); - - test_aper_int(1); - test_aper_int(2); - test_aper_int(3); - test_aper_int(255); - test_aper_int(256); - test_aper_int(257); - test_aper_int(64000); - test_aper_int(0xffff); - test_aper_int(0xffff+1); - test_aper_int(0xffff+2); - test_aper_int(16000000); - test_aper_causemisc(RANAP_CauseMisc_unspecified_failure, 0x42); - for (i = 0; i < 1; i++) { printf("\n==> DIRECT TRANSFER\n"); msg = ranap_new_msg_dt(0, nas_buf, sizeof(nas_buf)); @@ -191,6 +171,30 @@ printf("%s\n", msgb_hexdump(msg)); msgb_free(msg); } +} + +int main(int argc, char **argv) +{ + asn1_xer_print = 1; + + //asn_debug = 1; + + test_common_init(); + ranap_set_log_area(DRANAP); + + test_aper_int(1); + test_aper_int(2); + test_aper_int(3); + test_aper_int(255); + test_aper_int(256); + test_aper_int(257); + test_aper_int(64000); + test_aper_int(0xffff); + test_aper_int(0xffff+1); + test_aper_int(0xffff+2); + test_aper_int(16000000); + test_aper_causemisc(RANAP_CauseMisc_unspecified_failure, 0x42); + test_ranap_messages(); printf("report\n"); talloc_report(talloc_asn1_ctx, stdout); -- To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/26899 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-iuh Gerrit-Branch: master Gerrit-Change-Id: I7021e48b051afb6f13fdd54843d4cd92a499de2a Gerrit-Change-Number: 26899 Gerrit-PatchSet: 1 Gerrit-Owner: dexter <pmaier(a)sysmocom.de> Gerrit-MessageType: newchange
3 2
0 0
Change in pysim[master]: Add pyyaml to requirements.txt
by laforge 13 Jan '22

13 Jan '22
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/26918 ) Change subject: Add pyyaml to requirements.txt ...................................................................... Add pyyaml to requirements.txt Change-Id: I3430c32aea59af97360b9e766bfe95a146f09fe0 --- M requirements.txt 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/18/26918/1 diff --git a/requirements.txt b/requirements.txt index b94bf24..7308cf8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,3 +6,4 @@ construct bidict gsm0338 +pyyaml -- To view, visit https://gerrit.osmocom.org/c/pysim/+/26918 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: pysim Gerrit-Branch: master Gerrit-Change-Id: I3430c32aea59af97360b9e766bfe95a146f09fe0 Gerrit-Change-Number: 26918 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <laforge(a)osmocom.org> Gerrit-MessageType: newchange
1 2
0 0
  • ← Newer
  • 1
  • ...
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • ...
  • 79
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.