**** BEGIN LOGGING AT Tue Sep 15 02:59:57 2020 **** BEGIN LOGGING AT Tue Sep 15 03:25:22 2020 Sep 15 05:05:21 mrkiko: I just tried a build with default config for gbpc1 and mt76 isn't selected. As for SD card, could you double check if kmod-sdhci-mt7620 is included? Sep 15 05:10:33 morning Sep 15 05:12:37 jow: i decided to use "list" method after all due to its simplicity - can you take a look at https://patchwork.ozlabs.org/project/openwrt/patch/20200914163107.27739-1-zajec5@gmail.com/ [PATCH luci] luci-base: use actual JSON-RPC for verifying ubus RPC URL Sep 15 05:17:01 hexa-: what is your overlay filesystem? **** BEGIN LOGGING AT Tue Sep 15 05:48:42 2020 Sep 15 06:01:48 >KGB-0< https://tests.reproducible-builds.org/openwrt/openwrt_ath97.html has been updated. (99.2% images and 99.7% packages reproducible in our current test framework.) **** BEGIN LOGGING AT Tue Sep 15 06:39:34 2020 **** BEGIN LOGGING AT Tue Sep 15 06:55:17 2020 Sep 15 07:08:55 zorun: ping Sep 15 07:12:40 aparcar[m]: pong, but only for 5 minutes Sep 15 07:15:07 do you think the opkg patch I sent is very insecure? Sep 15 07:15:16 else I'd send a regular patch Sep 15 07:17:19 And I don't really understand you commeting regarding SIGNATURE_CHECK or the usage of SIGNED_PACKAGES - sorry Sep 15 07:19:44 "file:packages" seems overly specific Sep 15 07:20:53 it boils down to "why do you need to depend on SIGNED_PACKAGES" Sep 15 07:21:18 the obvious answer is "you need signed package lists" but this is not actually th ecase Sep 15 07:22:41 should we just always trust local feeds? Sep 15 07:22:57 that's maybe dangerous if you mirror stuff externally e.g. via rsync Sep 15 07:24:00 no idea, sorry Sep 15 07:24:19 but fair, we should use SIG_CHK instead SGND_PKGS, as already done in package/system/opkg/Makefile Sep 15 07:24:24 rmilecki: approach looks good. But can you use session/list instead? Also remove "params: undefined" and maybe inline the options object Sep 15 07:25:04 aparcar[m]: maybe it should be like ssh keys... for local feeds, so it prompts when there is a missing signature, and generates one if it isn't found, etc Sep 15 07:25:14 jow: opinion on the opkg patch? Should the file:packages repo be trusted by default or a special variable added? Sep 15 07:26:18 so, interactive it prompts, non-interactive, then need to add the signature into config to allow it through ? Sep 15 07:26:25 Tusker: not sure if prompts should be added to the IB... Sep 15 07:26:58 k, maybe not Sep 15 07:31:29 "the opkg patch" ? Sep 15 07:32:28 jow: nevermind I though you maybe saw it already on the ML https://lists.infradead.org/pipermail/openwrt-devel/2020-September/031403.html Sep 15 07:32:55 that patch is a no-go Sep 15 07:33:49 jow: I figured it's "very poor". So I'm asking if you have an idea Sep 15 07:34:35 it probably should become a per-source attribute in the configuration Sep 15 07:36:00 nbd: can you check https://patchwork.ozlabs.org/project/openwrt/patch/20200727181444.28780-1-zajec5@gmail.com/ please? [PATCH uhttpd rfc] client: really close connection on timeout Sep 15 07:40:33 the easiest I could think of would be src/trusted and src/gz/trusted. The extra stuff seems unused, just like the handling of dist and dist/gz in general. Should that maybe get some cleanup? Sep 15 07:40:48 I've never seen OpenWrt use this debian-style Sep 15 07:42:33 jow: since you want "call" method, I'll have to replace "params: undefined" with arguments instead of totally dropping it Sep 15 07:43:04 I'm ok with that, it;ll just make request slightly more complex (few more lines) Sep 15 07:43:08 working on that Sep 15 07:43:26 with extra stuff I mean insertion of $url/$extra/$file, as used in debian Sep 15 07:43:44 params: ["00000000000000000000000000000000", "session", "list", {}] Sep 15 07:44:17 rmilecki: ah okay, fine then. Sep 15 07:44:52 rmilecki: "fine" as "stick to list" or "use session list"? ;) Sep 15 07:46:00 rmilecki: I'd prefer session/list because it is guaranteed to be available since it is an rpcd builtin Sep 15 07:46:09 got it Sep 15 07:46:39 well "list" is also built-in I believe ;) Sep 15 07:47:38 OK, I have "session" "list" with reply "{jsonrpc: "2.0", id: "init", error: {code: -32002, message: "Access denied"}}" - that is HTTP code 200, so all good Sep 15 07:48:13 rmilecki: an even better candidate would be session/access Sep 15 07:48:33 with no arguments? Sep 15 07:48:41 jow: zorun would you be okay with a patch adding "src/trusted" to opkg which skips signature checks? This is then added per default to the local packages feed. Sep 15 07:49:02 session access '{ "scope": "ubus", "object": "session", "function": "access" }' Sep 15 07:49:10 that should succeed even for the null session Sep 15 07:49:40 succeed as in HTTP 200 and UBUS_STATUS_OK Sep 15 07:50:45 please remind me, how is that better from a simple "list" request? ;) Sep 15 07:50:51 list as listing ubus objects Sep 15 07:51:24 list request is fine too Sep 15 07:52:03 jow: that's what I put in my patch in the first place ;) https://patchwork.ozlabs.org/project/openwrt/patch/20200914163107.27739-1-zajec5@gmail.com/ **** BEGIN LOGGING AT Tue Sep 15 07:54:01 2020 Sep 15 07:54:44 jow: can I inline options, and push with your Acked? Sep 15 07:54:50 yep Sep 15 07:54:59 thank you for all help Sep 15 08:26:07 greearb: ping Sep 15 08:27:52 greearb: I've been testing stintel's patches for ath10k-ct 5.8 and got two FW crashes (qca9880, wave-1) https://gist.github.com/svanheule/711d0d8182ce126a43ba58da8d29faff Sep 15 08:29:05 these patches: https://patchwork.ozlabs.org/project/openwrt/list/?series=199172 Sep 15 08:30:14 That's weird. Was there a problem with the infradead mailing list? For some reason, I was unsubscribed at some point after June 20th 9:30PM GMT Sep 15 08:31:00 svanheule[m]: I see those sporadically. I guess it's just the QCA9880 firmware doing its thing. :/ Sep 15 08:32:11 (On current master, that is.) Sep 15 08:32:41 rsalvaterra: weird, I don't remember seeing them before. But maybe I just wasn't paying enough attention to the logs (no clear issues with the connected devices) Sep 15 08:33:22 "current master" might explain why I don't remember them Sep 15 08:33:49 Yeah, the driver usually recovers in a couple of seconds, so it can go by unnoticed. Sep 15 08:34:33 svanheule[m]: I also don't remember seeing these crashes on 19.07. Sep 15 08:34:39 dansan: yes Sep 15 08:35:48 dansan: http://lists.openwrt.org/pipermail/openwrt-devel/2020-June/029781.html Sep 15 08:36:21 stintel: Thank you! :) That's very helpful to know. I'm probably on too many mailing lists Sep 15 08:36:32 welcome :) Sep 15 08:37:00 Good to know I haven't made some enemy out there somewhere who's pranking me, lol! **** BEGIN LOGGING AT Tue Sep 15 08:43:12 2020 Sep 15 08:46:54 @all: i'm planning to push https://patchwork.ozlabs.org/project/openwrt/patch/20200914151523.4757-1-zajec5@gmail.com/ today [PATCH V3 uhttpd] ubus: add new RESTful API Sep 15 08:47:20 if you use LuCI, you may want to test it at least Sep 15 08:56:45 :+1: Sep 15 08:56:55 fingers crossed, it all looks like good stuff :) Sep 15 08:59:17 thanks Sep 15 08:59:23 rmilecki: btw, event subscription auth is still pending, right? Sep 15 08:59:29 jow: correct Sep 15 08:59:34 i think i'll start working on that right now Sep 15 09:03:33 jow: can we get rid of the packages/ folder of ImageBuilders by adding a feed like added to snapshots? (src/gz openwrt_kmods https://downloads.openwrt.org/snapshots/targets/mvebu/cortexa9/kmods/5.4.52-1-414b18aa0d8abc3a21dbf831bc990cd6/) Sep 15 09:04:13 Only kernel.ipk and libc seem missing, where at least kernel.ipk is a dummy package Sep 15 09:04:29 this way we could skip any modification of opkg Sep 15 09:09:17 anyone here have experience with nand ? uboot reads ff ff ff ff at offset 5f20000, but when I boot into openwrt, it reads the values that I wrote to that offset. If I write to that offset in uboot, it reads fine in both uboot and openwrt. any idea why this is the case? something wrong with sector size vs page size etc ? Sep 15 09:30:53 Tusker: maybe OpenWrt doesn't write to OOB correctly / at all? Sep 15 09:31:31 Tusker: try dumping that block including OOB after writing with OpenWRt and after writing with uboot Sep 15 09:32:50 hang on, if you write to it in uboot, it reads fine in both uboot and openwrt? when do you get fffff? Sep 15 09:33:05 is that perhaps just uboot hasn't initialized things before it does the first write? Sep 15 09:33:19 if I write in openwrt, it reads fine in openwrt, but fails to read in uboot Sep 15 09:33:29 if I write in uboot, it reads fine in uboot and reads fine in openwrt Sep 15 09:35:39 all data and OOB reads as ff, for the case of writing from openwrt Sep 15 09:37:26 if I write in uboot, the data looks perfect, and OOB has a mixture of mostly ff, but scattering of 69 a6 9a, 9a 99 a5, 33 ff c3, 3c c0 33 Sep 15 09:59:00 hmmm.... seems nandwrite -p resolves it, mtd write maybe needs to have the file itself padded ? **** BEGIN LOGGING AT Tue Sep 15 10:02:26 2020 Sep 15 10:10:39 will investigate it more tomorrow... need to go now Sep 15 10:10:43 thanks for the pointers **** BEGIN LOGGING AT Tue Sep 15 10:16:04 2020 Sep 15 10:22:25 Hello guys!! I sent here a message yestarday, so sorry for repeating myself. Just wondering if anyone of you got problems in having MMC/SD working in a mt7621 board (GB-PC1 in my case), and how to fix that; snapshot build, no mmc module enabled by default. I also noticed GB-PC1 builds with mt76-core which brings in unneeded code and a wpad instance running uselessly, since there is no wi-fi on this Sep 15 10:22:31 device. Sep 15 10:24:00 aparcar[m]: the libc and kernel packages are intentionally withheld from the package repositories Sep 15 10:25:27 mrkiko: I tried a build 5 hours ago with default config for gbpc1 and mt76 isn't selected. As for SD card, could you double check if kmod-sdhci-mt7620 is included? Sep 15 10:25:37 jow: but couldn't they be added to the kmods/ folders and the kmods index? Sep 15 10:26:37 gch981213: it's not... I noticed it wasn't included and I didn't include it either since I tough it was mt7620 Sep 15 10:26:44 mrkiko: I'm guessing you probably used an old config and device packages aren't selected Sep 15 10:26:46 other approach is to add both libc and kernel to the cache folder and install those two files directly, without an index. kmods are remotely installed Sep 15 10:27:29 gch981213: I did select my r6220 first, then changed my mind and selected gb-pc1, maybe this influenced? Sep 15 10:28:39 gch981213: and, on a totally differnet topic: I remembed you spoke about some netgear devices like the r6220 execuging some sercomm code before loading the kernel or something like that. Where can the that code found? Is in the the u-boot or somewhere else? And what does this code do? Sep 15 10:29:34 btw, even ahci wasn't selected Sep 15 10:29:40 so probably oyu'rte right Sep 15 10:30:15 mrkiko: If you saved the config before changing device in menu, packages for the new device won't be selected. Sep 15 10:31:00 gch981213: thanks, I'll take care to not do this anymore Sep 15 10:31:33 jow: okay correction: only add kernel and libc to packages/ folder and disable the index creation + remove the file:packages repository entry. kmods are now downloaded from remote. Sep 15 10:31:34 mrkiko: I don't remember about those r6220 stuff. Sorry. Sep 15 10:32:02 I just tested it and seem to work fine. I'm off for now, will send some patches tomorrow Sep 15 10:32:54 gch981213: well, don't remember either if it was specific to r6220 or not, thank you very very much! Sep 15 10:41:04 don't even remember if it was you telling this or blocktrron ; thank you guys for your help in any case. without your help the ramips 5.4 transition would have been harder... Sep 15 10:41:10 for me **** BEGIN LOGGING AT Tue Sep 15 10:43:03 2020 **** BEGIN LOGGING AT Tue Sep 15 12:27:52 2020 Sep 15 12:55:34 What do NIC and switch interfaces look like for ARM SoCs? Sep 15 12:58:10 for me Sep 15 12:58:14 oops, sorry Sep 15 12:59:06 russell--: f2fs Sep 15 13:13:21 svanheule[m], that is same as bug 123, some buffer memory corruption in the rx logic, and not sure how to make progress on it. Sep 15 13:15:12 hello, anyone here have experience using libmodbus with RS-485 on embedded Linux? Sep 15 13:18:19 to make nand backups, should one use nanddump or cat ? Or both? Sep 15 13:46:16 eduardas: do you have any particular question or concern? it "just works" just like on regular linux... Sep 15 13:48:37 karlp: yes, I have specific questions. I find that when using modbus_rtu_set_custom_rts, the RTS duration is dependent on usleep function and that gives much too long RTS duration Sep 15 13:49:08 karlp: I link to ligpiod to implement my callback for modbus_rtu_set_custom_rts Sep 15 13:49:50 I highly recommend not using custom userspace gpios for rts if you're being serious. Sep 15 13:50:10 you're ~always going to have a bad time as soon as you use a device from another vendor that has different timing windows than what you tested with. Sep 15 13:50:12 karlp: I would have liked to use native RS-485 UART driver functionality (I run on i.MX6UL SoC), but driver gives gaps between bytes periodically when rts-gpios is enabled in devicetree Sep 15 13:50:37 gaps of how long? Sep 15 13:50:44 longer than t3.5? Sep 15 13:50:45 karlp: I believe this is actually a mainline kernel driver problem, honestly Sep 15 13:50:49 if so, fix that driver Sep 15 13:51:08 you'll have _far_ more happiness with that than with trying to speed up user space delays on gpio toggling Sep 15 13:51:45 what I've done before is to just hardcode the gpios into the serial driver, before rts-gpios features were available. Sep 15 13:51:45 karlp: I do not have that option since I do this for my dayjob and I was asked for a quick workaround Sep 15 13:52:00 it's almost guaranteed to be the quicker turnaround still. Sep 15 13:52:12 karlp: I was never given the opportunity to learn driver development as such Sep 15 13:52:28 seriously, how are you possibly going to sleep predictably in user space around the kernel serial layer? Sep 15 13:53:14 are you getting the driver enable held on for too long after the transmission has finished? Sep 15 13:53:32 how constrained is your environment, can you get the other devices to delay before replying? Sep 15 13:53:34 karlp: if it is really so bad, why does libmodbus even bother implementing a custom callback for RTS? Sep 15 13:53:48 eduardas: because some people insisted on it, and it sort of owrks for some people Sep 15 13:53:55 but it's never going to make you happy long term. Sep 15 13:54:57 karlp: I am aware of that. But I really do not have many options if I can not fix the driver myself. Sep 15 14:00:13 it's one of the most common bug reports/issues on libmodbus is it not doing what people hoped it would do. Sep 15 14:02:39 karlp1: just wondering: libmodbus is the most popular FOSS Modbus RTU implementation on Linux? Sep 15 14:03:05 karlp1: because it seemed to me that way when I needed to justify using it Sep 15 14:03:40 sorry, got lost there. https://paste.jvnv.net/view/3LYMM Sep 15 14:03:54 eduardas: there's not really many others that I'm aware of. Sep 15 14:04:09 there's two python modules, but they require python Sep 15 14:04:30 I've heard anecdotally that the differences between them is mostly in how they handle (or not) RTU timing. Sep 15 14:04:45 karlp1: thank you for posting that paste Sep 15 14:05:39 are you _sure_ you're getting interbyte delays on the imx uart _only_ when adding rts-gpios? Sep 15 14:05:55 it would seem unrelated, or at least, should be. Sep 15 14:06:08 karlp1: pretty sure, I will post logic analyzer output.. a moment Sep 15 14:07:15 karlp1: https://imgur.com/kCoyOAH Sep 15 14:07:41 karlp1: I just echo a bunch of As to /dev/ttymxc4 Sep 15 14:08:04 and the gaps are not present when not using rts-gpios in dts Sep 15 14:10:47 are those individual bytes? Sep 15 14:11:16 or is that "a few bytes, big gap, a few more bytes, big gap, few more bytes" ? Sep 15 14:12:27 karlp1: it is as you've just described Sep 15 14:12:29 if you're doing the same methodolgy for testing with and without rts gpios and getting that clear an issue, I'd be very much looking at what the rts-gpios handling for your uart is actually doing. Sep 15 14:12:56 if you're using a ~close to upstream kernel and write nicely, you might be able to get help on it as well. Sep 15 14:13:12 but this isn't really anything to do with openwrt Sep 15 14:13:19 karlp1: I am using upstream 5.8.5 with custom dts Sep 15 14:13:37 karlp1: but I am not sure to whom exactly I can complain Sep 15 14:13:48 should be pretty easy to get linux-serial to help you then, Sep 15 14:14:38 have you tried other modes from https://elixir.bootlin.com/linux/latest/source/Documentation/devicetree/bindings/serial/fsl-imx-uart.txt ? Sep 15 14:14:40 karlp1: that is a mailing list. There is no dedicted freenode channel for this as far as I understand Sep 15 14:15:04 yes, you will need to write a nice clear email to them. Sep 15 14:15:11 karlp1: also I wanted to find someone with i.MX6 hardware using rts-gpios with mainline to verify this Sep 15 14:15:23 that mailing list is th ebest place for that. Sep 15 14:15:29 karlp1: just to do a sanity check Sep 15 14:15:37 openwrt doesn't actually run mainline Sep 15 14:15:51 so you're not really looking in the right place, you just got lucky Sep 15 14:16:07 I'd try uart-has-rtscts and use the cts line instead, see if that still gives you the delays Sep 15 14:16:51 karlp1: I googled some cases where people were using libmodbus on openwrt, so that is why I thought asking Sep 15 14:17:11 karlp1: also asked on yocto and other channels Sep 15 14:18:14 karlp1: I though that it's the best I can do quickly since I'm not subscribed to any mailing lists at the moment Sep 15 14:20:22 karlp1: and just to answer your question: yes, I'm aware of those settings and I've played around with them Sep 15 14:21:01 svanheule[m]: congrats for your device additions; fine soldering scares me a little bit :D Sep 15 14:21:57 mrkiko: thanks! Sep 15 14:22:18 mrkiko: wait till you see what I'm doing to TP-Link's OC200 Sep 15 14:22:22 :P Sep 15 14:22:32 I will have a go at that too, soon Sep 15 14:22:43 mrkiko: https://tweakers.net/fotoalbum/image/xjUZySIf8gGjbbbOIZqMtlhq.jpg Sep 15 14:22:56 the bottom pins are your everyday 2.54mm header Sep 15 14:23:00 karlp1: thank you for your advice. I think this is very useful. Sep 15 14:24:00 I'd very carefully confirm that the inserted delays are _only_ from rts-gpios as my number one step, and if so, take that to linux-serial. if the hardware isn't fixed yet, and you don't get delays with uart-has-rtscs, I'd use that, and just move on with life. Sep 15 14:25:23 svanheule[m]: no recovery for those devices in general unfortunately ... **** BEGIN LOGGING AT Tue Sep 15 14:48:44 2020 Sep 15 16:05:43 Hello. I cannot get gdb running on build host due to the requirement for NCURSESW6_5.1.20000708 Sep 15 16:06:11 The distro ncurses is relatively new ncurses 6 version. Sep 15 16:06:27 Is there a way to get OpenWRT build its own ncurses and use it? Sep 15 16:51:48 svanheule[m]: is there a tp-link firesale you took advantage of? :D Sep 15 16:53:50 Borromini: it was shipped to him by another Stijn Sep 15 16:54:40 Borromini: It's not what it looks like! I'm not a TP-Link fanboy :P Sep 15 16:54:46 stintel: oh you sent it to him? :D Sep 15 16:54:51 funny coincidence :P Sep 15 16:54:59 svanheule[m]: i was getting worried. Sep 15 16:55:00 (after said other Stijn bricked his first OC200 and failed to get UART on the 2nd :P) Sep 15 16:55:14 :P Sep 15 16:55:27 anyone else named Stijn wants to send me hardware? ;-) Sep 15 16:55:50 I have 2 colleagues also called Stijn, I can ask them :P Sep 15 16:56:09 haha while we're at it Sep 15 16:56:19 i have this funny thing. i ordered custom M&M's Sep 15 16:56:30 you know, from Mars Sep 15 16:57:03 but it seems just today (when i want to see where the delivery is at, track & trace) their google hosted domain seems to suffer from an expired certificate >_> Sep 15 16:57:06 mymmseu.com Sep 15 16:57:12 is this working for you guys? Sep 15 16:57:20 i get 'has expired' Sep 15 16:57:28 me too Sep 15 16:57:47 they get your personal info, and then they vanish? Sep 15 16:58:06 at least they didn't get your nudes :) Sep 15 16:58:49 worse :( Sep 15 16:58:53 they got my credit card :D Sep 15 16:59:16 weird. mms.com/be-nl/ shows the expired certificate message but then does show the site Sep 15 17:37:05 >KGB-0< https://tests.reproducible-builds.org/openwrt/openwrt_lantiq.html has been updated. (98.1% images and 99.7% packages reproducible in our current test framework.) Sep 15 19:04:22 got a question about GRE tunnels for anyone who wants to answer…. I understand that they need (a) fixed endpoints (“local” and “remote”), (b) a device name (of course), and (c) a route pointing to what network(s) are reachable via this tunnel… why does it also need an interior address to the tunnel, usually as a /30? What does that address ever get used for?