Skip to content

Instantly share code, notes, and snippets.

View shadeslayer's full-sized avatar
👁️‍🗨️

Rohan Garg shadeslayer

👁️‍🗨️
View GitHub Profile
#!/bin/sh
for x in $(cat /proc/cmdline); do
case ${x} in
m_bpp=*) export bpp=${x#*=} ;;
hdmimode=*) export mode=${x#*=} ;;
esac
done
HPD_STATE=/sys/class/amhdmitx/amhdmitx0/hpd_state
# Boot Arguments
setenv bootargs "root=UUID=<%= rootfs_blkid %> rootwait ro ${condev} no_console_suspend vdaccfg=0xa000 logo=osd1,loaded,0x7900000,720p,full dmfc=3 cvbsmode=576cvbs hdmimode=${m} m_bpp=${m_bpp} vout=${vout_mode} ${disableuhs} ${hdmi_hpd} ${hdmi_cec} ${enabledac}"
# Booting
fatload mmc 0:1 0x21000000 <%= uImage %>
fatload mmc 0:1 0x22000000 <%= uInitrd %>
fatload mmc 0:1 0x21800000 boot/meson8b_odroidc.dtb
fdt addr 21800000
#!/bin/bash
#
# Copyright (C) 2013 Rohan Garg <rohan@kde.org>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
Running tests...
Couldn't fetch node '' ('registry')
raising event 'add' on ''
No callbacks found
insert '' (registry) succeeded:
Fetched node '' ('registry')
Couldn't fetch node 'logging.stderr.facility.generic.level' ('string')
register callback 0x4303e9 on 'logging.stderr.facility.generic.level' for 'add' succeeded
register callback 0x4303e9 on 'logging.stderr.facility.generic.level' for 'change' succeeded
register callback 0x430309 on 'logging.stderr.facility.generic.level' for 'delete' succeeded
Running tests...
Couldn't fetch node '' ('registry')
raising event 'add' on ''
No callbacks found
insert '' (registry) succeeded:
Fetched node '' ('registry')
Couldn't fetch node 'logging.stderr.facility.generic.level' ('string')
register callback 0x43047c on 'logging.stderr.facility.generic.level' for 'add' succeeded
register callback 0x43047c on 'logging.stderr.facility.generic.level' for 'change' succeeded
register callback 0x43039c on 'logging.stderr.facility.generic.level' for 'delete' succeeded
% ./turn_unittest --gtest_filter=TurnClient.AllocateTcp
Running tests...
Couldn't fetch node '' ('registry')
raising event 'add' on ''
No callbacks found
insert '' (registry) succeeded:
Fetched node '' ('registry')
Couldn't fetch node 'logging.stderr.facility.generic.level' ('string')
register callback 0x4303e9 on 'logging.stderr.facility.generic.level' for 'add' succeeded
register callback 0x4303e9 on 'logging.stderr.facility.generic.level' for 'change' succeeded
% ./turn_unittest --gtest_filter=TurnClient.Allocate
Running tests...
Couldn't fetch node '' ('registry')
raising event 'add' on ''
No callbacks found
insert '' (registry) succeeded:
Fetched node '' ('registry')
Couldn't fetch node 'logging.stderr.facility.generic.level' ('string')
register callback 0x4303e9 on 'logging.stderr.facility.generic.level' for 'add' succeeded
register callback 0x4303e9 on 'logging.stderr.facility.generic.level' for 'change' succeeded
diff --git a/media/mtransport/third_party/nICEr/src/stun/turn_client_ctx.c b/media/mtransport/third_party/nICEr/src/stun/turn_client_ctx.c
index 6eae232..6704a6b 100644
--- a/media/mtransport/third_party/nICEr/src/stun/turn_client_ctx.c
+++ b/media/mtransport/third_party/nICEr/src/stun/turn_client_ctx.c
@@ -299,6 +299,10 @@ static void nr_turn_stun_ctx_cb(NR_SOCKET s, int how, void *arg)
} else if (ctx->stun->error_code == 300) {
r_log(NR_LOG_TURN, LOG_INFO, "TURN(%s): Alternate server recieved, restarting TURN", ctx->tctx->label);
ctx->retry_ct = 0;
+ if (ctx->tctx->turn_server_addr.protocol == IPPROTO_TCP) {
+ r_log(NR_LOG_TURN, LOG_INFO, "TURN(%s): Closing TCP socket", ctx->tctx->label);
#0 nr_stun_message_has_attribute (msg=0x0, type=9, attribute=0x7fffe73fabf0) at /home/shadeslayer/src/other/gecko-dev/media/mtransport/third_party/nICEr/src/stun/stun_msg.c:165
#1 0x0000000000429eda in nr_stun_client_restart (ctx=0x7fffe8ce5c0c) at /home/shadeslayer/src/other/gecko-dev/media/mtransport/third_party/nICEr/src/stun/stun_client_ctx.c:159
#2 0x0000000000429f48 in nr_stun_client_restart_with_cb (ctx=<optimized out>, finished_cb=finished_cb@entry=0x42e924 <nr_turn_stun_ctx_cb>)
at /home/shadeslayer/src/other/gecko-dev/media/mtransport/third_party/nICEr/src/stun/stun_client_ctx.c:179
#3 0x000000000042eb51 in nr_turn_stun_ctx_restart (ctx=0x7fffe96bbbfc) at /home/shadeslayer/src/other/gecko-dev/media/mtransport/third_party/nICEr/src/stun/turn_client_ctx.c:227
#4 nr_turn_stun_ctx_cb (s=<optimized out>, how=<optimized out>, arg=0x7fffe96bbbfc)
at /home/shadeslayer/src/other/gecko-dev/media/mtransport/third_party/nICEr/src/stun/turn_client_ctx.c:306
#5 0x0000000000429ddc in nr_stun_client_s
remote: Counting objects: 9651, done.
remote: Compressing objects: 100% (5623/5623), done.
error: RPC failed; result=56, HTTP code = 200 | 25.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed