Tapper has quit [Quit: Tapper]
dlg has quit [Server closed connection]
dlg has joined #openwrt-devel
cp- has quit [Server closed connection]
cp- has joined #openwrt-devel
agb has quit [Server closed connection]
agb has joined #openwrt-devel
Namidairo has quit [Server closed connection]
Namidairo has joined #openwrt-devel
wigyori has quit [Server closed connection]
wigyori has joined #openwrt-devel
snh has quit [Server closed connection]
snh has joined #openwrt-devel
pekster has quit [Server closed connection]
pekster has joined #openwrt-devel
_whitelogger has joined #openwrt-devel
dannyAAM has joined #openwrt-devel
minimal has quit [Quit: Leaving]
neggles has quit [Server closed connection]
neggles has joined #openwrt-devel
ptudor has quit [Ping timeout: 480 seconds]
Strykar has quit [Server closed connection]
Strykar has joined #openwrt-devel
ptudor has joined #openwrt-devel
Mathew has quit [Server closed connection]
Mathew has joined #openwrt-devel
goliath has quit [Quit: SIGSEGV]
danitool has quit [Quit: Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos]
eigma has quit [Server closed connection]
eigma has joined #openwrt-devel
Spr0cket has quit [Server closed connection]
Spr0cket has joined #openwrt-devel
<Mangix> specifically in the context of urandom-seed
\x has left #openwrt-devel [#openwrt-devel]
Vaughn has quit [Server closed connection]
Vaughn has joined #openwrt-devel
\x has joined #openwrt-devel
<owrt-2102-builds> Build [#47](https://buildbot.openwrt.org/openwrt-21.02/images/#builders/4/builds/47) of `layerscape/armv7` failed.
hurricos has quit [Server closed connection]
hurricos has joined #openwrt-devel
tlj has quit [Ping timeout: 480 seconds]
jayk has quit [Server closed connection]
jayk has joined #openwrt-devel
kerneltoast has quit [Server closed connection]
kerneltoast has joined #openwrt-devel
Nyshan_ has joined #openwrt-devel
zx2c4 has quit [Server closed connection]
zx2c4 has joined #openwrt-devel
Nyshan_ has quit [Remote host closed the connection]
tlj has joined #openwrt-devel
chder has quit [Server closed connection]
chder has joined #openwrt-devel
xutaxkamay has quit [Server closed connection]
xutaxkamay has joined #openwrt-devel
EqUaTe has quit [Server closed connection]
EqUaTe has joined #openwrt-devel
Slimey has quit [Server closed connection]
Slimey has joined #openwrt-devel
cmonroe_ has quit [Server closed connection]
cmonroe has joined #openwrt-devel
MaxSoniX has joined #openwrt-devel
valku has quit [Quit: valku]
mcbridematt has joined #openwrt-devel
csrf has quit [Quit: Leaving]
Mathew has quit [Ping timeout: 480 seconds]
<KGB-0> https://tests.reproducible-builds.org/openwrt/openwrt_ath79.html has been updated. (98.6% images and 99.6% packages reproducible in our current test framework.)
tmn505 has quit [Server closed connection]
tmn505 has joined #openwrt-devel
mrnuke has quit [Server closed connection]
mrnuke has joined #openwrt-devel
goliath has joined #openwrt-devel
guerby has quit [Server closed connection]
guerby has joined #openwrt-devel
felix has quit [Server closed connection]
felix has joined #openwrt-devel
<dhewg> in ucode, how do I check a value against NaN?
<dhewg> ucode -e 'let i = NaN; warn(i, i == NaN, i != NaN, "\n");'
<dhewg> like, what?
dansan has quit [Server closed connection]
dansan has joined #openwrt-devel
Obi-Wan has quit [Server closed connection]
Obi-Wan has joined #openwrt-devel
GNUmoon has quit [Server closed connection]
GNUmoon has joined #openwrt-devel
<dhewg> 'type(i) == "double" && !i' works at least
<dhewg> jow: is that ^ intentionally?
borek has joined #openwrt-devel
jow has quit [Server closed connection]
jow has joined #openwrt-devel
borek has quit [Ping timeout: 480 seconds]
arnd has quit [Server closed connection]
arnd has joined #openwrt-devel
<dhewg> i!=i as per the definition of nan I guess?
goliath_ has joined #openwrt-devel
jayk_ has joined #openwrt-devel
jayk has quit [Read error: Connection reset by peer]
goliath has quit [Ping timeout: 480 seconds]
yolo has quit [Server closed connection]
yolo has joined #openwrt-devel
PaulFertser has quit [Server closed connection]
PaulFertser has joined #openwrt-devel
goliath_ has quit []
G10h4ck has quit [Server closed connection]
<jow> dhewg: yes, x != x works for detecting nan
dangole has quit [Remote host closed the connection]
dangole has joined #openwrt-devel
clayface_ has quit [Server closed connection]
<jow> dhewg: it follow js semantics (it yields NaN/false/true as well for the same tests)
clayface has joined #openwrt-devel
<jow> dhewg: so function isNaN(x) { return x != x }
<dhewg> yeah, thx, doing that now. is it woth adding isNaN to the math lib, which uses isnan() from the c math lib?
<dhewg> or is x!=x equal to that?
<jow> it is equal
<jow> but I guess I could add a function too
<dhewg> no matter which type?
<jow> yep, double nan is the only value/type combination where x!=x yields true
<dhewg> alright
danitool has joined #openwrt-devel
ptudor_ has joined #openwrt-devel
bluew has quit [Ping timeout: 480 seconds]
<jow> hm, isnan() function in math raises some more question
<jow> how should it repond to non-double arguments
opty has quit [Server closed connection]
<jow> technically they're not numbers either
opty has joined #openwrt-devel
<\x> dhewg: are those rules on 6g added now? good to try now or nah?
<jow> but returning false for them as well would render the function useless for the purpose of detecting NaNs
<jow> returning "true" on math.isnan("foobar") falls wrong tho
<jow> *feels
<jow> erm returning false
robimarko has joined #openwrt-devel
ptudor has quit [Ping timeout: 480 seconds]
<dhewg> \x: if you mean preventing incompatible encryption modes, that's still open
<dhewg> jow: if you get true for everything not double that'll render the function rather useless
<dhewg> there's the check for "Infinity", which works nicely
<\x> dhewg: then how about the stability of your new AC1300 AP becoming an AX4300 one? weirdly enough its real stable on ipq40xx atleast when I ran it for a day or so, hbu?
<dhewg> jow: heh that was fast :)
<dhewg> \x: no crashes or issues so far on ipq4019. in fact I'm using it as the primary wifi for my notebook
<dhewg> better reception, but mainly because it's less crowded
<dhewg> jow: does it make sense to add other typechecks a la isstring() too? doing that as string comparison in ucode feels weird
<jow> hm
<jow> will consider it, although it feels like bloat to me
<jow> if you only want to check against one type, a dedicated isX() function is slightly more efficient
<jow> if you want to test multiple (e.g. int or double) you've get additional call overhead
<dhewg> I'm not a js guy, so maybe it just feels less efficient than it really is
Guest67 is now known as ynezz
goliath has joined #openwrt-devel
Borromini has joined #openwrt-devel
Nyshan has quit [Remote host closed the connection]
MaxSoniX has quit [Quit: Konversation terminated!]
MaxSoniX has joined #openwrt-devel
<dhewg> and maybe it's because of my lack of js knowledge, but I found "export default", "==>", "...args" and it's not documented what exaclty those do
<dhewg> I mean I can guess, but... :)
tlj has quit [Ping timeout: 480 seconds]
gtk2 has quit [Server closed connection]
gtk2 has joined #openwrt-devel
<KGB-2> https://tests.reproducible-builds.org/openwrt/openwrt_sunxi.html has been updated. (0% images and 99.6% packages reproducible in our current test framework.)
GNUmoon has quit [Quit: Leaving]
GNUmoon has joined #openwrt-devel
snh has quit [Read error: Connection reset by peer]
snh has joined #openwrt-devel
<jow> dhewg: ^
<dhewg> ok,
danieli has quit [Server closed connection]
danieli has joined #openwrt-devel
<stintel> anyone knows if I can convince git to use 3-digit number in format-patch rather than 4-digit?
<karlp> sounds like tilting at windmills IMO :)
robimarko has quit [Remote host closed the connection]
<stintel> well we use 3-digit patch prefix in OpenWrt
<karlp> yeah,. but we also use ranges for where they are form/going.
<stintel> I know
<karlp> so the "sequential numbered from tip" isn't ever going to work anyway
<karlp> whether it's 3 or 4,
<stintel> that's why you have --start-number
<stintel> but the 0 prefix is meh
robimarko has joined #openwrt-devel
<karlp> just do a batch mv of all the ones in tree now to move to 4 digits ;)
<dhewg> jow: sorry, hope it
<stintel> :P
<karlp> "bhave consistently with upstream"
<dhewg> 's not annoying, but if using uhttpd's -o/-O that's always in template mode, right?
<dhewg> or can I use raw mode with that? and/or can include() be forced to use raw?
<stintel> git format-patch -2 --start-number=990; rename 099 99 099*
<stintel> I guess this will have to do for my hackery
<stintel> or maybe I can --start-number=9990 or so
<stintel> just need my hack patches to be applied last
<jow> dhewg: yeah, always template mode. LuCI uses a small toplevel "template" which then simply requires/imports the entire rest which then runs in raw mode
indy has quit [Server closed connection]
indy has joined #openwrt-devel
<dhewg> yeah, I saw that. I need to do some digging, the full picture is not yet clear to me
<dhewg> like, if I use -o/-O, then it wants uhttpd_ucode.so, yet luci works without
<dhewg> is that because it's using a patch under /cgi-bin?
<jow> it has a fallback to run as executable from /cgi-bin/luci
<jow> if uhttpd_ucode support is present, the /cgi-bin/luci path is overlay with a ucode prefix
<jow> *overlaid
<dhewg> I guessed so, so I've been using luci in cgi fallback mode
<dhewg> shouldn't it depend on the lib?
<jow> on uhttpd-mod-ucode you mean?
<dhewg> yeah
<jow> it would result in higher idle memory requirements
<jow> but yeah, we could consider it
<dhewg> ok, I didn't measure anything here, but the cgi/mod-lang arguments are old, always mentioning how cgi sucks
<dhewg> maybe if-!TINY or something
<jow> yeah
<dhewg> but anyway, how does luci now include() something in raw mode?
ynezz has quit [Server closed connection]
ynezz has joined #openwrt-devel
<jow> through import
<dhewg> that I haven't figured out yet
<jow> import is the counterpart to export
ynezz is now known as Guest361
<jow> and when something is required through import it is considered to be a module
<jow> and modules are always raw and strict by definition
<jow> you could achieve a similar effect by using require() to load your code
<stintel> ah more people digging into ucode, good :)
<owrt-2102-builds> Build [#46](https://buildbot.openwrt.org/openwrt-21.02/images/#builders/40/builds/46) of `ramips/mt7621` failed.
<jow> stuff requested with require() is also always raw
<dhewg> but that required knowledge if the modules before
<dhewg> which excludes lsdir() which I'm using plugin style atm
<dhewg> right?
<jow> use require() then
<dhewg> docs needs more "see also" :)
<jow> or loadfile()
<dhewg> aha, nice
<dhewg> thx
* dhewg tries
<jow> hah, just noticed that the README.md lacks require()
<jow> no wonder you're confused
<dhewg> I was just looking for js require() :P
<dhewg> doesn't help the years of avoiding js
<dhewg> lol
<jow> so basically include(path) -> compile and execute "path" in template mode, it implictly prints itself to stdout
<jow> require(path) -> compile and execute "path" in raw mode and return whatever the compiled code returned
<jow> loadfile(path, options) -> compile "path" into a function and return the compiled function
<jow> options can control whether raw or template, stripping options etc.
enyc has quit [Server closed connection]
enyc has joined #openwrt-devel
<dhewg> nice, the picture clears up
<dhewg> works
<dhewg> call(loadfile("lib/" + c, { raw_mode: true}), this, scope);
minimal has joined #openwrt-devel
<aiyion> Good day everyone. Got the Wavlink router working yesterday; I think the dts is complete now.
<aiyion> One problem is my partition offset for the rootfs, which leads to missing eraseblock boundaries, which in turn lead to read only mount: https://bpa.st/CREA
<aiyion> What is the preferred helper to handle this kind of issue? This is the branch with my latest changes: https://github.com/openwrt/openwrt/compare/master...AiyionPrime:openwrt:wavlink_wing_12ml_rev.a_4G_LTE
<stintel> append-kernel | pad-to $$$$(BLOCKSIZE) ?
<stintel> something like that?
<stintel> just the pad-to and add BLOCKSIZE inside define Device/wavlink_ws-wn572hp3
wvdakker has quit [Server closed connection]
wvdakker has joined #openwrt-devel
slh has quit [Server closed connection]
slh has joined #openwrt-devel
tlj has joined #openwrt-devel
<stintel> ugh another day another sdcard problem? sigh
<stintel> f2fs inconsistent node block, ...
<aiyion> stintel, thanks will try that in an hour :)
<stintel> aiyion: welcome!
<stintel> so if overlay fails to mount, /dev/loop0 is deconfigured, there is no way to even fix that then
<stintel> you can't mkfs.f2fs on /dev/loop0 it's 0MB
<stintel> dd'ing a new factory image also doesn't overwrite the broken f2fs
<stintel> wipefs only clears partition table
<stintel> so I ended up doing dd if=/dev/zero ...
<f00b4r0> the loopmount system has a number of "drawbacks", indeed
<stintel> should at least have a way to recreate loop0
<stintel> so that you can just mkfs on it
<f00b4r0> i understand why it's done that way but I can't say I like it.
<f00b4r0> stintel: i hope you didn't just discover a major issue with the m300, I have one in the field now :D
<stintel> f00b4r0: no this is rpi4
<f00b4r0> ah ok
<stintel> the m300 are doing a fantastic job, ever since figuring out that watchdog voodoo
<stintel> aside from the crash in xfrm
<stintel> but that's not m300 related
<f00b4r0> *nod*
<stintel> I guess not many people bothered migrating their IPsec setups to xfrm
<f00b4r0> that device rocks.
<f00b4r0> but let's not say it too loud or the aftermarket prices will climb :D
<stintel> well it's not >1Gbps capable so I won't use it for that long most likely :P
<f00b4r0> heh
<f00b4r0> I'm never hitting 1Gbps on wan anyway so for me it's perfect :)
<stintel> ah I'd like a device that can do 10GbE inter-VLAN routing with stateful filtering :P
<f00b4r0> sure. That can be done. Probably not within your intended budget though ;)
<stintel> not for the price of a 2nd hand M300 at least ;)
<f00b4r0> see that other qoriq board PR for instance :D
<stintel> I can buy a house here for the price of that board
<f00b4r0> (which went awfully quiet, sadly)
<f00b4r0> lol
kenny has joined #openwrt-devel
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #openwrt-devel
<KGB-1> https://tests.reproducible-builds.org/openwrt/openwrt_omap.html has been updated. (11.1% images and 99.6% packages reproducible in our current test framework.)
gnustomp[m] has quit [Server closed connection]
gnustomp[m] has joined #openwrt-devel
Tapper has joined #openwrt-devel
MaxS0niX has joined #openwrt-devel
MaxSoniX has quit [Ping timeout: 480 seconds]
MaxS0niX has quit [Read error: Connection reset by peer]
MaxS0niX has joined #openwrt-devel
goliath has quit [Quit: SIGSEGV]
soxrok2212_ has joined #openwrt-devel
soxrok2212 has quit [Ping timeout: 480 seconds]
bluse-blue[m] has quit [Server closed connection]
bluse-blue[m] has joined #openwrt-devel
<aiyion> stintel: I think I'm doing it wrong. I've been recommended a relocate function from nbd's staging tree by a friend; not sure how problematic or helpful that is.
<stintel> relocate is to relocate in memory afaik, nothing to do with flash layout
<aiyion> Using kernel-relocate instead appears to be working
soxrok2212 has joined #openwrt-devel
soxrok2212_ has quit [Ping timeout: 480 seconds]
goliath has joined #openwrt-devel
niyawe has quit [Server closed connection]
niyawe has joined #openwrt-devel
<hgl> anyone knows what does `proto_set_keep 1` do in netifd when the dev is managed externally? from the source code, it seems it means netifd would skipping updating the device's ip address, but I can't be sure.
valku has joined #openwrt-devel
G10h4ck has joined #openwrt-devel
<schmars[m]> I'm trying to programmatically extract vars such as IMAGE_SIZE per device. Any ideas? :)
<schmars[m]> I've seen something like `make -C target/linux/and-so-on val.FOO` used but cant that to work
<aiyion> it is okay to introduce a variant of a device before the regular one, correct?
<schmars[m]> aiyion: there are a lot of devices that are supported fine but where e.g. the first revision had a completely different SoC that's unsupported, so my hunch would be yes absolutely
<aiyion> what I mean is, Wavlink produced the "WN572HP3" a mediocre dualband device for outdoor usage.
<aiyion> Afterwords they introduced a vraint, that came with a 4G modem.
srslypascal is now known as Guest387
srslypascal has joined #openwrt-devel
<aiyion> I'd like to know if I can add it as variant in the Makefile, even though the regular device does not exist there yet.
<aiyion> Adding support should be as easy as dropping everything 4G related, but I have nothing to test it on.
<schmars[m]> Go for it i'd say. If you want to know how to do variants, check out the old tp-link wr802 or archer c7/a7
<schmars[m]> wr841n is what i meant
Guest387 has quit [Ping timeout: 480 seconds]
<KGB-2> https://tests.reproducible-builds.org/openwrt/openwrt_lantiq.html has been updated. (96.2% images and 99.6% packages reproducible in our current test framework.)
guidosarducci_ has joined #openwrt-devel
MaxS0niX has quit [Quit: Konversation terminated!]
guidosarducci has quit [Remote host closed the connection]
Mathew has joined #openwrt-devel
mcbridematt has quit [Ping timeout: 480 seconds]
cmonroe has quit [Remote host closed the connection]
cmonroe has joined #openwrt-devel
<hauke> ccccccnvvdicjkjhnjjldfdnckehvrcubtkkbkflhncr
<stintel> :)
<hauke> sorry wrong button again ;-)
<aiyion> schmars[m]: Looks like that does not work; make menuconfig denies setting the model.
<aiyion> Looks like I add the device as if it was actually called `4g` at the end, and whenever somebody adds the regular, my addition gets moved around.
<schmars[m]> i haven't done a device myself yet to be honest, so i can't really help :-)
Tapper has quit [Ping timeout: 480 seconds]
<aiyion> Got it. Missed a reference earlier. Works like a charm.
<aiyion> Now all that's left is cleaning up git and test it a little more.
linusw has quit [Quit: Connection closed for inactivity]
tlj_ has joined #openwrt-devel
tlj has quit [Ping timeout: 480 seconds]
floof58 is now known as Guest398
floof58 has joined #openwrt-devel
Guest398 has quit [Ping timeout: 480 seconds]
<aiyion> Where do I find sensible values for spi-max-frequency?
<aiyion> I currently run at 40MHz, but feel like it could do more. Is there a better way, than trial and error up to the value in the datasheet of the spi-chip?
<aiyion> "104MHz Standard and Dual SPI"
<aiyion> "80MHz for Quad SPI and QPI"
<slh> aiyion: it's a mixture of checking what the OEM firmware does (lower ceiling), what the chip specs say (upper ceiling), personal testing (floating somewhere in the middle) - just be aware that other users might have gotten worse boards, so what works on yours, might not work reliably on yours
<slh> s/yours$/theirs/
<aiyion> oem did 40MHz, that's why used it as a starting point.
<slh> 40 MHz isn't too bad, I probably would stick to that
<aiyion> GigaDevice 25Q128ESIG3
<aiyion> Mhm. okay. Thank you.
<slh> we've seen quite a few devices recently where the frequency had to be dropped later, as the higher figures weren't working for everyone
<aiyion> If I read the datasheet correctly 80MHz is the lowest figure, for a special read call.
<slh> there are obviously some cases where the OEM vendor didn't care and just set the minimum frequency, there it makes sense to try and test what's possible. but if the vendor has come up with a 'reasonable' frequency, they might have done the testing (over larger batches of boards) already
<aiyion> if 40 is fine, I won't mind.
Borromini has quit [Quit: Lost terminal]
Acinonyx has joined #openwrt-devel
G10h4ck has quit [Ping timeout: 480 seconds]
Tapper has joined #openwrt-devel
goliath has quit [Quit: SIGSEGV]
robimarko has quit [Quit: Leaving]
G10h4ck has joined #openwrt-devel
bluew has joined #openwrt-devel
goliath has joined #openwrt-devel
<KGB-1> https://tests.reproducible-builds.org/openwrt/openwrt_bcm47xx.html has been updated. (100.0% images and 99.6% packages reproducible in our current test framework.)
G10h4ck has quit [Ping timeout: 480 seconds]
<hauke> blocktrron: neoraider: Could you please look into this problem: https://github.com/openwrt/openwrt/issues/11319
<aiyion> Thanks everyone, the patches are submitted :)
T-Bone has joined #openwrt-devel
f00b4r0 has quit [Ping timeout: 480 seconds]
csrf has joined #openwrt-devel
dwfreed has quit [Quit: ZNC - http://znc.in]
dwfreed has joined #openwrt-devel
valku has quit [Remote host closed the connection]
valku has joined #openwrt-devel