dangole has quit [Remote host closed the connection]
Tapper1 has joined #openwrt-devel
svanheule_ has joined #openwrt-devel
Tapper1 has quit []
Tapper has quit [Ping timeout: 480 seconds]
svanheule has quit [Ping timeout: 480 seconds]
cmonroe has joined #openwrt-devel
cmonroe_ has quit [Ping timeout: 480 seconds]
cmonroe has quit [Ping timeout: 480 seconds]
danitool has quit [Ping timeout: 480 seconds]
amaumene has joined #openwrt-devel
<amaumene> hi guys, I've opened a task here https://bugs.openwrt.org/index.php?do=details&task_id=4239&only_watched=1 it seems we are missing patches from 5.13 to have bridges in the list of devices when enabling hardware offload with nft. what's weird is it's working fine with software offload, so I'm not 100% sure this is not an issue with nft itself.
<amaumene> if anyone can help to confirm/investigate I'm happy to spend more time on this :)
minimal has quit []
cmonroe has joined #openwrt-devel
cmonroe has quit [Quit: Textual IRC Client: www.textualapp.com]
cmonroe has joined #openwrt-devel
ldir has joined #openwrt-devel
ldir has quit []
GNUmoon has quit [Ping timeout: 480 seconds]
amaumene has quit [Remote host closed the connection]
amaumene has joined #openwrt-devel
srslypascal has quit [Remote host closed the connection]
srslypascal has joined #openwrt-devel
valku has quit [Quit: valku]
<neggles> Grommish: classic :P I wonder why this happens to your oct3, stintel's oct2, but not my oct2..
dedeckeh has joined #openwrt-devel
rua has quit [Ping timeout: 480 seconds]
rua has joined #openwrt-devel
Tapper has joined #openwrt-devel
shibboleth has joined #openwrt-devel
rua has quit [Quit: Leaving.]
<Grommish> neggles: Dunno but I wish you would figure it out ;p
<neggles> Grommish: rude! :P
<Grommish> neggles: hah, as always, said with <3 ;p
<neggles> the most confusing is stintel's SNIC10E having the problem, and mine not
amaumene has quit [Remote host closed the connection]
<neggles> cause in theory the only differences between our setups are whatever packages we baked in, and my devicetree changes
<Grommish> neggles: I should just see if you can build out my target from your source
<neggles> I can do that
<neggles> ER-4 right?
<Grommish> Itus Shield
<neggles> ahk
<neggles> ok switched to multi-device build with per-device rootfs, and added iperf2
<neggles> building both
GNUmoon has joined #openwrt-devel
<Grommish> Ok.. I can just pull it down and tftp load it into rAM for testing.. I'll have to switch to the Router slot, but thats ok
<neggles> i am running entirely out of initrd
<neggles> as this thing has nowhere near enough NOR to have room for a mips kernel, given that there's no zImage for octeon
<neggles> and the NAND driver doesn't work right even on 19.07/octeon sdk kernel
<Grommish> I load the initramfs images from FAT during boot, so it's jsut a matter of putting it into the right loadaddr
<Grommish> and it's got a 1.5Gb fat partition for whatever reason
<neggles> why make fail
<neggles> grr
<neggles> i probably need to delete tmp/staging/build
<neggles> that or it's just going to do the same thing it did before and work on -j1 but not -j49
guidosarducci_ has quit [Ping timeout: 480 seconds]
xes_ has joined #openwrt-devel
<neggles> Grommish: https://vault.neggl.es/pub/?dir=openwrt/octeon
<aparcar> Grommish: is there a working rust setup now?
<Grommish> neggles: Your build has no ethernet forme
<Grommish> neggles: even with the reset /etc/config/network
<neggles> interesting
<neggles> Grommish: nothing under /sys/class/net?
<Grommish> aparcar: Depends on what you mean by working. Right now, the only thing I'm testing is mips64 because I don't have any other devices.. In theory, it should work though I'm still tryiing to get things settled as far as where things go
<Grommish> neggles: Yep
<neggles> Grommish: hmm. odd. possibly kernel config is missing some bits
<neggles> shouldn't be... all i did was flip on some nand stuff
<neggles> oh so they *are* showing up in /sys/class/net
<neggles> ah, crap, i forgot, i have a custom uci config script in there >.>
<Grommish> I can reset /etc/config/network easy enough, but then nothing happens *shrug*
<neggles> it's not even a script actually it's just /etc/config/network and /etc/config/system - bad neggles!
<neggles> bad!
<neggles> does eth0 etc. show up under `ip link`
<Grommish> neggles: Eh, I leave it on UTC, so Oz isn't so far
<Grommish> neggles: Yep
<neggles> alright, then assuming you've done a uci commit, /etc/init.d/network restart should bring it all up
<Grommish> neggles: 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
<Grommish> Yes
<Grommish> you can see the uci show network
<Grommish> service network stop/reload/start didn't error
<neggles> uci show network doesn't confirm that you committed though :P but i assume you have
<neggles> what about just doing `ip link set eth0 up`
<Grommish> neggles: I set it directly un /etc/config because it was easier to over-write your network config
<neggles> ok
pmelange has joined #openwrt-devel
<neggles> dmesg/logread show anything interesting?
pmelange has left #openwrt-devel [#openwrt-devel]
<Grommish> neggles: eth0 came up but not active.. dmesg -> https://paste.neggles.dev/fbVka
<neggles> it seems to think it's come up
<neggles> idk why the network configuration isn't being applied
<neggles> maybe try doing it via direct /etc/init.d/network restart instead of via service?
<Grommish> It comes "up' but never active
<neggles> yeah, no ip address
<Grommish> Ah well, was worth a try hehe
<neggles> if you manually assign a static via `ip addr add 1.2.3.4/5 dev eth0`
<neggles> and a def route
<neggles> that'll work
<neggles> it's not the driver that's broken, the config just isn't being applied for some reason
<neggles> somethin' broken in userspace
<neggles> maybe because i forgot to turn on build all target specific packages by default heh
<Grommish> Ok.. Good news is, I can get out
<neggles> how's the ram lookin'
<Grommish> at least as far as the upstream gateway internally
<Grommish> I can't route anything
<Grommish> no DNS it seems
<neggles> ip route add 0.0.0.0/0 via gateway.ip.address dev eth0
<Grommish> no br-lan interface either though
<neggles> yeah
<neggles> something in the uci network config applying stuff is broken
<neggles> i probably just need to do a proper rebuild
<Grommish> Well.. I can get to 1.1.1.1
<Grommish> RAM is holding
<neggles> try `/etc/init.d/network restart` directly
<neggles> i also uh, i assume you didn't select failsafe mode right? cause failsafe's network config override stuff would stop /etc/config/network applying
<Grommish> No failsafe
<neggles> ok good
<Grommish> I'm not showing dnsmasq
<Grommish> Which is why I don't have DNS or dhcp ;p
<neggles> dnsmasq is almost certainly not present in this image but dhcpcd should be
<neggles> alright alright lemme just rebuild this without half the packages cut out (i was trying to make a tiny kernel i could fit lzma'd in NOR)
<Grommish> Wait.. I started this chasing down a mem leak I attributed to dnsmasq and/or adblock
<Grommish> You don't use dnsmasq, but I do and I get stintel does
<neggles> yup no dnsmasq in here
<Grommish> err I'd bet stintel does I mean
<neggles> and... if dnsmasq was causing trouble, that might explain why iperf didn't do anything
<Grommish> I found a dnsmasq memleak reported in like ubuntu or something recently
<Grommish> which is why I went looking
<neggles> shall i rebuild with dnsmasq?
<stintel> when the ERL was still my backup router, dnsmasq would not run unless it became primary
<Grommish> Sure, if you don't mind tainting your build ;D
<stintel> so I'm pretty sure dnsmasq is not the problem
<neggles> meh, ./scripts/env save :P
<Grommish> I'm at 39420 (nice) on RAM used
rua has joined #openwrt-devel
<neggles> quick, write 30mib to /tmp
<Grommish> and have been around there since boot
<Grommish> I just tumepd 13mb x3 to tmp
<neggles> heh, i was aiming for hitting 69420 used kib :P
<Grommish> heh
<neggles> kib? bytes?
<Grommish> openwrt-octeon-itus_shield-bridge-squashfs-sysupgrade.tar 100% 13MB 14.0MB/s 00:00
<neggles> hah
<Grommish> One for the bridge, router, and gateway
<neggles> conveniently i already had dnsmasq built
philipp64 has quit [Ping timeout: 480 seconds]
<Grommish> Hmm.. ok.. someone explain.. I just scp'd 13Mb x3 to /tmp.. the RAM went from 39420 to 39900?
<Grommish> And no neggles, I'm just using it because I figure you trust it ;p I don't make general use of your stuffz!
<neggles> I really don't mind that much or i'd have put in some form of access control
<neggles> and /tmp will show up in buff/cache iirc
<Grommish> I used to use hastebin until they got bought, now I don't trust them
shibboleth has quit [Quit: shibboleth]
goliath has joined #openwrt-devel
<neggles> it adds literally 90kb wow
<neggles> though IIRC 50% of the filesize is from "mips64 kernel with debug info"
<neggles> stintel: an EAP615-Wall showed up in the mail today
<neggles> what's still WIP in your tree?
<stintel> neggles: I just need to clean it up and finish it
philipp64 has joined #openwrt-devel
<aparcar> Grommish: that sounds great, I'd like to test it to since I want to build some rust stuff "soonish"
<neggles> stintel: so just dotting Is / crossing Ts / etc? okeydokey, let me know if there's anything you'd like tested
<aparcar> can you please point me to the PR
<Grommish> aparcar: What arch?
<aparcar> Grommish: all
<neggles> that's... odd. this appears to be a US/FCC unit, rude
<Grommish> aparcar: https://github.com/openwrt/packages/pull/13916 I'm still working on where to put CARGO_HOME.. I'm thinking STAGING_DIR_HOST but then I get itchy on the memleak
<Grommish> aparcar: I asked about the arch because right now it has to be patched in until I test and upstream the tuple
<Grommish> Easy enough to figure out though
<Grommish> neggles: no DNS but I'm tired and probably not doing something right.. I'm going to call it for now and leave it running
<neggles> Grommish: i didn't do a full rebuild, so whatever's preventing uci defaults / network config applying is probably still causing that
<neggles> that or it's because my overwritten system/network config files are still in there
<neggles> dnsmasq is running on mine though, so, we'll see...
<Grommish> network I removed, system just resets the TZ
<stintel> neggles: "dotting Is / crossing Ts / etc?" wut?
<neggles> oh, sorry - it's an idiom 'finishing up all the little details'
<Grommish> Ok.. How do I add ninja to a package now?
<Grommish> HOST_USE_NINJA:=1 doesn't seem to do it, and calling ninja/host anymore doens't work since it moved to tools?
<Grommish> or did it just not work because I had legacy ninja
<neggles> Grommish: sooo uhhhh.... with the only change being adding dnsmasq, I am now seeing a slow memory usage climb
<Grommish> Woohoo!
<neggles> dnsmasq is running but it's only doing dns
<neggles> Grommish: hmm we've got 2.85 here
<ynezz> its not dhcpdnsmasq
<Grommish> That wasn't the one I saaw previously
<neggles> ram usage is definitely going up, lets see if it keeps going up when i stop dnsmasq
<neggles> ynezz: i laughed :P
<Grommish> ynezz: Probably not, I agree, but between Octeon driver and other things, something bad has happened between 5.4 and 5.10 :(
<neggles> it's probably still octeon-ethernet's fault, yeah
<Grommish> neggles: Not according to them heheh
<neggles> Grommish: okay yeah, with dnsmasq stopped, no climb
<Grommish> neggles: dnsmasq was always shown as the oom-killer target which is why I started looking at it originally
<Grommish> But then some questioned the size of the adblock block-list I was using since it's also kept in RAM
<neggles> i wonder if it's ipv6's fault
<Grommish> neggles: would also explain why I saw no leak when i yanked the octeon_ethernet.ko
<Grommish> Obviously
<Grommish> neggles: Maybe.. i do run ipv6
<neggles> nothing else is bound to a udp socket on ipv6
<neggles> iperf3 ipv6 time?
<Grommish> I will have to try it later, I need to get some sleep.. I'm Eastern US and its 5am hehe
* stintel uses IPv6 too
<Grommish> and I've got a stream at 11 I gotta be at
<Grommish> Better yet, I'll turn off ipv6 on a known-broken build
<Grommish> or not build it in
<ynezz> Grommish: you mean like something in kernel networking stack is affecting dhcp functionality in dnsmasq?
<ynezz> Grommish: or by 5.4 you're refering to 21.02 release and by 5.10 to current master?
<Grommish> I am on master regardless
<Grommish> 5.4 is the current Octeon target revision
<ynezz> ah, ok, so it's not related to dnsmasq
<Grommish> 5.10 has memleak
<stintel> ynezz: octeon has a severe memory leak with 5.10, so we decided in the last meeting we will not bump it because my backup router died after ~8h, it's not acceptable
<Grommish> ynezz: Dunno yet that the thing.. When neggles just turns on dnsmasq, the leak came back.. it was no there prior to it being included
<stintel> the alternative is: we drop octeon :)
<stintel> so someone is going to have to figure out that memleak, or no octeon in next release
<Grommish> ynezz: I run dnsmasq by rote, he doesn't and he never saw the leak
<Grommish> only stintel and I did
<stintel> maintainers response was "kmemleak false positives"
<stintel> very useful
<Grommish> and very "not my problem" hehe
<neggles> ohhhhhhhhhh yeah
<neggles> it's ipv6
<Grommish> Easy enough for me to test
<neggles> i just jumped 6mib of RAM usage in the space of 20 seconds
<neggles> iperf3 ipv6
<stintel> neggles: don't come to conclusions too quickly though
<stintel> RAM usage fluctuates weirdly during several iperf runs
<neggles> i find it levels out and the highest it gets to is largely dependent on peak b/w
<neggles> but, you have a point
<stintel> I remember seeing similar things when I was testing multicast iperf ;)
<Grommish> I'm building out a no v6 build because I have no shame apparently
<ynezz> did anyone tried to bisect it?
svanheule_ has quit [Quit: svanheule_]
svanheule has joined #openwrt-devel
<Grommish> ynezz: When I asked about bisecting the Openwrt kernel.. I was laughed at
<neggles> well there's also the absolutely horrifying hackjob that is "octeon, but kernel 5.10"
<neggles> because marvell won't give us the SDK version with 5.4 in it
<neggles> so we're dragging up patches from 4.9 or 4.14...
<stintel> ynezz: bisecting kernel 5.4 to 5.10 on OpenWrt ... please advise how to pull that off :)
<stintel> using external git kernel excludes our patches and then the thing wouldn't boot\
<Grommish> and apparantly they tried to pull the driver out and then shoved it back in at the last miniute
<neggles> sorta
<neggles> gregkh, being gregkh, decided to yeet it because nobody had touched it in a while
<neggles> (and it's a mess) - then marvell devs went "hey no don't do that! we're gonna fix it, we swear!"
<stintel> nbd: question, when classifying traffic with qosify, should the outgoing packet (e.g. on WAN) have the configured DSCP value set, or is that only used internally as ISP most likely ignores that anyway?
<neggles> it is quite frustrating that Marvell seem to be doing quite well with upstreaming Armada, OcteonTX, and their switch ASIC stuff, but they won't even just *publish the octeon SDK*
<neggles> ok, I may have unfairly blamed ipv6
<stintel> neggles: octeon too old :)
<stintel> same shit with wifi5
<neggles> except it's not! they have a MIPS octeon that only came out in 2020!
<ynezz> stintel: well, you need to first strip that patchset down to bare minimum, boot either from RAM/NFS etc.
<stintel> and soon with wifi6 as wifi7 is being worked on
<Grommish> I'm just glad the people who know what they are actually doing are equally as confused BTW
<nbd> stintel: outgoing packets should have the dscp value set
<stintel> nbd: ok, thanks. then we need to debug why they haven't
<neggles> Grommish: haha, do not make the mistake of assuming I know what I'm doing :P
<Grommish> neggles: I laid no blame ;p
<stintel> ynezz: definitely not easy to pull off, going to take a fair amount of work, and it's not going to be for everyone most likely
<stintel> and as I retired my ERL as backup router, it's low prio for me
<ynezz> git diff --stat v5.4.173..v5.10.1 -- drivers/staging/octeon
<ynezz> 9 files changed, 94 insertions(+), 94 deletions(-)
<ynezz> not that huge
<Grommish> ynezz: Honeslty, I think isolating the commits was the part that wasn't known how to do :) At least for me
<stintel> I think it's more likely to be a change in network subsystem that requires a modification in the driver that was overlooked
<ynezz> yeah, could be
<neggles> definitely not ipv6
<neggles> told dnsmasq to only bind to the v4 addr
<neggles> still tickin' upwards
<Grommish> So, we are back to why your builds don't have it
<Grommish> but main does
<stintel> I don't even have dnsmasq in my snic10 .config
<neggles> but do you have device packages
<stintel> and I saw increasing memory while not routing
<neggles> i turned that off
<f00b4r0> jow: I'm preparing a PR for coova-chilli as discussed yesterday, however I'm stuck with the "wan" service interface trigger: until the upstream interface is up and the default route is too, there is no way to programmatically detect which interface is the actual wan interface, is there? So when chilli init is processed, if the network isn't up when the trigger registers, if I use network_find_wan I will get no result?
<stintel> "device packages"?
<neggles> 'select all device specific packages by default'
<stintel> no
<neggles> and i made exactly one change between this image (which has the problem, whenever dnsmasq is running) and the previous image (which does not have the problem)
<neggles> changed dnsmasq from m to y
<neggles> hmm i am not sure that it *is* still ticking up actually, dnsmasq running, bound to v4 only
<neggles> will give it a minute or five
<ynezz> what about comparing perf output on working and not working kernel? if there are huge allocations differencies then it should be visible
<neggles> oh yeah there it goes
<aparcar> Grommish: what is your opinion on downloading a pre build rust compiler? I'm asking since we also offer to download a pre build bpf thing which reduces compile time by an hour or something
<Grommish> aparcar: Preferrable. People had issues with using something like rustup (which turns out couldn't use anyway) because it was pre-compiled, but if the build system is building the dist archives, I can't see why they'd complain.. it currently builds a dist archive and uses that to install anyway
<Grommish> I already split the host and target into different archives
<Grommish> aparcar: I mean.. ideally, we'd offer a full LLVM, not just for bpf
<Grommish> aparcar: There isn't a reason not to at that point.. rust builds out llvm, libc, clang
<Grommish> There were questions about using the bpf llvm, but it was suggested to better keep them separate
<neggles> heh
<Grommish> Welcome to the club!
<stintel> try adding an echo 3 > vm_caches or whatever in that loop
<stintel> also, if dnsmasq was leaking wouldn't the memory free after restarting it? it's a userspace process ..
<stintel> is procd memory usage increasing maybe?
<neggles> doesn't drop_caches only affect buff/cached
<Grommish> I never could get the octeon_ethernet to show up under lsmod even went {m}
<Grommish> but will pulling the driver free the mem?
<neggles> cache drop = no effect
<neggles> and this is with dnsmasq explicitly bound to 127.0.0.1 and <lan IP address> so it's not a wildcard socket thing or an ipv6 thing
<neggles> i wonder if it has anything to do with the archaic/screwy nature of this network driver combined with the single OpenWRT dnsmasq patch
awgh has quit [Ping timeout: 480 seconds]
<neggles> except that patch should be a nop on kernels > 2.6.32 so no
awgh has joined #openwrt-devel
Tapper has quit [Ping timeout: 480 seconds]
guidosarducci has joined #openwrt-devel
<rmilecki> can MTD_ERASE_PARTIAL (AKA target/linux/generic/pending-5.4/411-mtd-partial_eraseblock_write.patch) be broken without anyone noticing?
<rmilecki> [ 42.220716] Unable to handle kernel execution of user memory at virtual address 0000000000000000
<rmilecki> (...)
<rmilecki> [ 42.507278] Call trace:
<rmilecki> [ 42.509787] 0x0
<rmilecki> [ 42.511673] mtd_erase+0x54/0x78
<rmilecki> It's from 21.02
<PaulFertser> Erase partial is probably essential for some mikrotik targets.
robimarko has joined #openwrt-devel
<robimarko> rmilecki: I think that partial erase has been broken for a while
<rmilecki> robimarko: thanks
<rmilecki> anyone recalls what did we need MTD partial writes for? nbd?
<robimarko> Mikrotik
<robimarko> Its hard and soft config
srslypascal is now known as Guest754
srslypascal has joined #openwrt-devel
<rmilecki> robimarko: is there some script / tool does write to unaligned partitions?
<rmilecki> robimarko: can you point it, please?
<robimarko> Well there was the rbcfg tool
<robimarko> But all of that was moved into kernel
<robimarko> f00b4r0 is the author, so he can share more details
<rmilecki> thanks
<robimarko> I know that there has been an effort to fix the partial erase and write in an upstream friendly manner
<robimarko> But I dont know whats the status
<dlg> robimarko: are you in the mood to talk about uboot and ipq4019s?
<robimarko> Sure
<f00b4r0> rmilecki: partial erase is completely fsckd up yes. #3271 is the correct fix, unfortunately it's not moving.
Guest754 has quit [Ping timeout: 480 seconds]
<rmilecki> f00b4r0: ah, 4K erase sounds nice
<neggles> Grommish / stintel: hm. dnsmasq still running, no memory usage creep, but it bumped up when i did a dns lookup. idk, something's screwy. not sure how to work out what.
<robimarko> dlg: What problem are you having with u-boot on IPQ4?
<f00b4r0> rmilecki: if you can help this PR get some traction, it would be very helpful. There are other affected targets iirc. Basically any target that sets 4K_SECTORS + 4K_LIMIT and expects larger partitions to use 64K EB will see 4K EB being used, which can mess sysupgrade due to EB mismatch
<dlg> robimarko: the short version is i dont know enough
<rmilecki> yeah, that needs a big cleanup, all that 4B and 64B mess
<dlg> robimarko: the long version is i got an rb450gx4 so i could work toward hacking on an ethernet switch phy in openbsd, and didnt realise how much of a gap there is between turning the board on and loading my kernel
<f00b4r0> mikrotik devices "can" live without 4K, that just means bootloader configuration can no longer happen in OS. It's a hindrance, but it's not lethal. However I think the variable EB feature is nevertheless desirable
<robimarko> dlg: Well, RB450Gx4 doesnt even use U-boot
Tapper has joined #openwrt-devel
<robimarko> They use MikroTiks Routerboot
<robimarko> Which is way more limited
<robimarko> And we essentially hack around its limtits all the time
<dlg> robimarko: i know that now. but i have routerboot loading mainline u-boot
<dlg> and im basically where i would be if i was booting u-boot from metal
<dlg> my problem is getting the sdhci controller working now
<robimarko> Well not really
<robimarko> I wouldnt suggest doing that
<dlg> which could be because of missing clocks and regulator support
<robimarko> If you want U-boot replace RouterBoot with it
<robimarko> And yeah, the SDHCI controller doesnt work
<robimarko> At least not when I tried it last time
<robimarko> Clocks are missing as well as regulator support
<robimarko> But I think even with the clocks it wasnt working
<robimarko> I basically added just bare minimum to boot from SPI-NOR or SPI-NAND on IPQ4019
<robimarko> But I can tell you that ethernet support is in the works
<dlg> cool
<dlg> but sdhci would still suck if i was on something like a habanero, right?
<robimarko> Why?
<robimarko> Its got a 32MB of NOR
<robimarko> So you can boot whatever kernel you want
<dlg> unless the kernel is on the sdcard :(
<robimarko> Well yeah
<robimarko> Unfortunately, I didnt have a need for it so I only tried the easy way
<robimarko> To hardcode the clock and regulator and thats it
<karlp> (is the plan touse sdcard long term anyway? can you not just keep booting over network for testing bsd as well?)
<dlg> either would work
<dlg> both would be great
<dlg> robimarko: do you have a diff from when you tried that?
<robimarko> Unfortunately not
<robimarko> Its been a while
<dlg> fair enough
<robimarko> Over a year
<robimarko> I mean, if you dont care you can use Qualcomms U-boot
<robimarko> Its public
<robimarko> And everything works there, but there are limits as they have hacked it like always
<dlg> is that the gl-inet repo?
<robimarko> No
<robimarko> GL-inet probably just forked the original
<dlg> cool, i'll have a look
<dlg> thank you
<robimarko> I have pretty much destroyed my Habanero DVK
<robimarko> With mods so I dont really use it anymore
<dlg> "maybe a hammer will fix sdhci"?
<robimarko> Unfortunatelly not
robimarko has quit [Remote host closed the connection]
SamantazFox_ has quit [Ping timeout: 480 seconds]
<rmilecki> ah, i found it, MTD_ERASE_PARTIAL doesn't work with NAND
<rmilecki> NAND has ._write_oob pointer set instead of ._write
<rmilecki> so doing part->parent->_write() crashes kernel
Misanthropos has quit [Read error: Connection reset by peer]
minimal has joined #openwrt-devel
mattytap_ has joined #openwrt-devel
mattytap has quit [Ping timeout: 480 seconds]
Misanthropos has joined #openwrt-devel
pmelange has joined #openwrt-devel
pmelange has left #openwrt-devel [#openwrt-devel]
danitool has joined #openwrt-devel
SamantazFox_ has joined #openwrt-devel
valku has joined #openwrt-devel
<stintel> nbd: is there any documentation on how the dns based classification works? it doesn't seem to work, and udnssnoop is undocumented
madwoota has quit [Read error: Connection reset by peer]
madwoota has joined #openwrt-devel
<stintel> I also don't see the add_dns_host call in the dnsmasq patch
<stintel> and is there an ubus call to show whatever has been added by add_dns_host ?
<stintel> I don't see anything in dump or status
<rsalvaterra> Heads up: don't try Linux 5.10.94 on MT7622 unless you have a serial cable available. Something seems to have broken upstream. :/
<aparcar> anyone facing issues with downloads.openwrt.org?
<rsalvaterra> aparcar: Opened fine here. Any specific issue?
<aparcar> I guess it was a local issue, sorry for the noise
Borromini has joined #openwrt-devel
<Borromini> stintel: ping
dangole has joined #openwrt-devel
<[florian]> aparcar: no news, and yes
<rsalvaterra> I just did a git grep CONFIG_COMPAT_32BIT_TIME target/linux/ and I'm horrified.
<rsalvaterra> Time to do some cleaning.
Gaspare has joined #openwrt-devel
<dwmw2_gone> dangole: hi, any progress on the SATA thing?
<aparcar> [florian]: all right don't hesitate to vote, in case you're in favor, it's a majority
rua has quit [Ping timeout: 480 seconds]
rua has joined #openwrt-devel
Gaspare has quit [Ping timeout: 480 seconds]
<[florian]> aparcar: will do
<aparcar> [florian]: thanks :)
<dangole> dwmw2_gone: I've compared all relevant registers in the state after Linux has booted and I can't spot any (relevant) difference. maybe I'm not yet including the right registers in the dump... or what is missing may be hiding behind some indirect access or just requires initialization...
<dangole> dwmw2_gone: so if you have any good ideas what to do next...
<dangole> dwmw2_gone: maybe you can try TFTP-booting the vendor image using the new U-Boot and see if that works?
<dwmw2_gone> Did you try booting one U-Boot from the other?
vchrizz1 has joined #openwrt-devel
vchrizz has quit [Read error: Connection reset by peer]
rua has quit [Remote host closed the connection]
<dwmw2_gone> The vendor image ought to boot from our new U-Boot, I think?
sankanro has joined #openwrt-devel
vchrizz1 has quit [Remote host closed the connection]
danitool has quit [Quit: Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos]
vchrizz has joined #openwrt-devel
rua has joined #openwrt-devel
sankanro has quit [Remote host closed the connection]
dedeckeh has quit [Remote host closed the connection]
cmonroe has quit [Quit: Textual IRC Client: www.textualapp.com]
<stintel> Borromini: pong
<champtar> for proper iptables-nft support we need to split xt_* and ipt_* modules ...
<Borromini> stintel: hey. just wondering why the EAP615 DTS says 'disabled' for the 5 GHz radio?
<stintel> it doesn't
<stintel> it's a dbdc chip connected to the pcie1 node
<Borromini> ok. Didn't know it was DBDC.
cmonroe has joined #openwrt-devel
<stintel> so what's in pcie0 node is to be ignored (removed in my current version)
<stintel> I just force-pushed
<stintel> let me just finish it completely
GNUmoon has quit [Ping timeout: 480 seconds]
<Borromini> :)
<Borromini> i backported it to 21.02, was wondering about that
<Borromini> stintel: thanks
mattytap__ has joined #openwrt-devel
snh has quit [Quit: ZNC - http://znc.in]
snh has joined #openwrt-devel
<stintel> man that UniFi Switch Flex is almost perfect
<stintel> I mounted one on the bottom of my desk, powering a GS108Tv3, a Cisco C7941 IP phone, and a spare port so that I can play with a PoE-PD device without the need for an injector
mattytap_ has quit [Ping timeout: 480 seconds]
<stintel> Borromini: do you still have stock firmware on your EAP615? :P
SamantazFox_ has quit [Read error: No route to host]
SamantazFox__ has joined #openwrt-devel
<Borromini> stintel: it's on the way
<Borromini> the EAP
<Borromini> at this point i'm trying to resuscitate my XGS1250... I flashed some shoddy code Birger put together
<Borromini> and the OpenWrt kernel panics... and that's the point where you find out effing ZyXEL locked their uboot :^)
<stintel> ah you don't have it yet
<Borromini> nope
<Borromini> so out of my depth with this ch314a thingy
<Borromini> giving me the evil eye
<stintel> neggles: piong
rua has quit [Ping timeout: 480 seconds]
<neggles> stintel: hello, yes, this is dog
<neggles> ah, eap615 tree update?
<neggles> borromini: what kind of ch341 trouble? they’re generally fairly solid these days
<stintel> neggles: I think I'm ready with EAP615-Wall, yes. just haven't tested the GPIO buttons
<stintel> but you have a US device, might not be compatible
<neggles> IIRC they match what’s in the tp-link gpl tarball DTS
<neggles> which only has one version present
<stintel> https://git.openwrt.org/?p=openwrt/staging/stintel.git;a=blob;f=tools/firmware-utils/patches/999-eap615.patch;h=2348bbce24188922e94153756cc9b56e2e3af857;hb=140b2f7369a3bbbad520aeed478b18bbd2cc61f1
<stintel> check the support list
<neggles> i suspect the (US) model just has locked down 2.4GHz caldata like ubiq’s -US models, but, I shall dump the flash once I am out of bed
<Borromini> neggles: it's a first for me and i just learned MX25 in the chip name means, well... that I need to use the holes marked 25XX on it =)
<Borromini> so i'm giving it another shot :)
<Borromini> just seems this flash chip is a bit too new to be supported by stable flashrom i read
<Borromini> yay
<stintel> neggles: what's your e-mail to cc you in the patch for EAP615 ?
<Borromini> thanks for the thorough commit message stintel
<stintel> neggles: nvm found it :P
<stintel> Borromini: welcome
<neggles> borromini: ah, what’s the chip name? often you have to specify a particular set of models
<neggles> I’ve not come across anything that it doesn’t work with just yet
<neggles> stintel: the one from #4517? :P
<Borromini> neggles: i found MX25L12805D is very similar in their github
<stintel> Borromini: lurked from github :P
<Borromini> actual model is MX25L12833F
<Borromini> stintel: sorry? :P
<stintel> ehr, sorry that was for neggles
<Borromini> oh :)
<neggles> hehehe
<Borromini> first time i'm dumping a flash chip this way
<Borromini> (well and hoping to restore it to a usable state)
<Borromini> so far so good :^)
GNUmoon has joined #openwrt-devel
<Borromini> the issue is the vendor locked uboot so I cannot interact with it over serial
<neggles> Borromini: you should be able to use the 12835F definition, they’re nearly identical
<neggles> only difference I can see is 4kbit / 8kbit OTP
<Borromini> neggles: well it balks if I do, I did try that
<neggles> interesting
<neggles> usually it’ll give you a set of options to choose from
<Borromini> that it did indeed: https://paste.debian.net/1228641/
<Borromini> but I probably did it wrong and should have passed the whole 'MX25L12835F/MX25L12845E/MX25L12865E' value?
<neggles> “MX25L12835F/MX25L12845E/MX25L12865E"
<neggles> yeah
<Borromini> ok, thanks
<Borromini> learning as we go :)
<neggles> it’s not very intuitive, it’d be nice if you could supply any of those individual models
rua has joined #openwrt-devel
<Borromini> yes, that's what confused me
<neggles> took me a while to work that one out
<Borromini> =)
<neggles> I’ve got one of those $9 allwinner f1c200s boards I’ve been meaning to make into a dedicated flash programmer… though tbh I have about four or five unfinished spi flash programmer device designs
<Borromini> that sounds neat
<neggles> i wonder if they make 256mbit SPI PSRAM chips or if 128 is the max
<neggles> though actually the allwinner would be able to handle what I’m thinking of - attach SPI flash chip, plug device into USB port, it shows up as a mass storage device with a file you can copy to read/dump the chip + a .txt with device info
<neggles> we love adorable single-chip Linux device
<Borromini> =)
<neggles> it’s a 0.4mm pitch QFN88, ARM926EJ-S, has 64MB of built in RAM
<neggles> hand-solderable with a little bit of care
<neggles> (and a hotplate/hot air pencil)
<Borromini> i have zero soldering skills and experience, unfortunately
<Borromini> did/do plan on learning it though
<neggles> hehe, i wouldn't really suggest DIYing a board just to play with
<neggles> Borromini: at least, not when you can get an f1c200s board for very little https://www.aliexpress.com/item/1005003589764946.html (they're cheaper direct from the OEM but their shop is closed until the 8th of feb)
<Borromini> :)
<Borromini> i've dumped the flash contents, how should I go about modifying the uboot environment?
<neggles> do you have the partition table? (also what device is this)
<Borromini> XGS1250-10, and yes i do have a partition table
<Borromini> sec
<Borromini> is a DTS OK for that?
<neggles> yea
Tapper has quit [Ping timeout: 480 seconds]
<Borromini> i think i found it, looking at it in ghex
<neggles> Borromini: okay soy
<neggles> er, so*
<stintel> *yawn*
<neggles> you have your .bin right? `dd if=flashdump.bin of=u-boot-env.bin iflag=skip_bytes,count_bytes skip=$((0xe0000)) count=65536`
danitool has joined #openwrt-devel
<neggles> `dd if=flashdump.bin of=u-boot-env2.bin iflag=skip_bytes,count_bytes skip=$((0xf0000)) count=65536`
<Borromini> yeah i do
<Borromini> ok thanks
<Borromini> sec
<neggles> `strings` will extract the current environment from those without any effort, then to make a replacement you use `mkenvimage`
<neggles> and some more dd trickery to merge them back into the dump
<Borromini> ok, strings on the first dd indeed shows all the uboot-env settings nicely
<neggles> the two env images should be identical
<neggles> to run `mkenvimage` you will need a text file with all of the env settings in `key=value` form, which should be pretty much what you get from `strings`
<neggles> does u-boot output to console & just not accept input? or is it totally silent?
<Borromini> u-boot-env2.bin is empty
<Borromini> it outputs to console
<neggles> ha! classic
<neggles> that just means it's not had the env changed since initial flash
<neggles> or they're not actually using redundant environments
<Borromini> yep full log here: u-boot-env2.bin iflag=skip_bytes,count_bytes skip=$((0xf0000)) count=6553
<Borromini> no the u-boot-env2 partition is empty
<Borromini> $ file u-boot*bin
<Borromini> u-boot-env2.bin: ISO-8859 text, with very long lines, with no line terminators
<Borromini> u-boot-env.bin: data
<neggles> yeah, that's normal - if the default u-boot environment is still in use, i.e. it's not had `saveenv` run since it was flashed at the factory, env2 will be blan
<neggles> default env is stored inside u-boot itself, don't need a third copy
<Borromini> ah i see
<Borromini> in that PR i was told to change the boot command to something bogus so that it falls back to a shell
<neggles> Borromini: care to pastebin the `strings` dump?
<Borromini> sure, sec
<neggles> interesting, that has a 1s bootdelay...
<neggles> you should be able to get into the console by powering it on and holding down spacebar on your serial terminal
<Borromini> no no
<Borromini> that does not work, i tried ... ZyXEL disabled it
<neggles> odd.
<neggles> hmm. pull the u-boot binary itself out - dd iflag=count_bytes if=flashdump.bin of=u-boot.bin count=$((0xe0000))
<neggles> then run `strings -20` on that and you should find the default/baked-in env
<neggles> but you could also set `bootcmd=help` or something like that
<Borromini> maybe a silly question, but that would make it sit there and wait for input at every boot, no?
<Borromini> (just wondering if i need to change it back to something sane once I get a functional firmware going again)
<Borromini> i just ran strings -20, but it is spewing out a lot of stuff, no set env values though, even some html from what seems to be an embedded recovery
<neggles> on just the u-boot bin?
<neggles> interesting
<Borromini> yes, i'll upload it
<neggles> please and thankyou :)
<neggles> I collect strange u-boots :P
<Borromini> =D
<neggles> yuuuup, built-in http recovery firmware
<Borromini> which is neat, except there seems to be no way to trigger it
<Borromini> maybe I should play with the power plug
<Borromini> (well it would be neater of course just to get into uboot)
<neggles> is there a gpl dump for this thing
<Borromini> yes sec
Tapper has joined #openwrt-devel
<Borromini> hmmm maybe not (yet), i'm checking
<neggles> ew it looks like you have to make individual requests
<Borromini> https://svanheule.net/switches/gpl_source_drops there's one for a similar XGS1210
<Borromini> but not for the XGS1250-12
<Borromini> oh i can write ZyXEL if you'd like apparently they are rather forthcoming
<Borromini> will do :)
<neggles> can't hurt to have
<neggles> but i suspect the 1210 one will cover what i'm looking for
<Borromini> at least the SoC is identical
<Borromini> so i assume the platform is very similar
<stintel> I can't get over the port layout on that zyxel :P
<Borromini> request has been sent
<Borromini> stintel: how so?
<Borromini> neggles: sorry, i see my paste buffer fouled up the link to what should have been the full boot log, i can still link to it if you'd like but i suppose it won't help
<Borromini> unlike on their plain gigabit switches OpenWrt supports now this one does not prompt for user input to interrupt booting on the console.
<neggles> Borromini: it is fine :P
<neggles> i suspect they've bypassed the usual autoboot
<stintel> Borromini: 3x 10GbE copper + 1x 10GbE SFP+
<Borromini> stintel: instead of multiple SFP+ ones?
<stintel> 2x copper + 2x SFP+ would be nicer :P
<Borromini> :)
<stintel> or just 4x copper + 2x SFP+ shared with two of the copper 10GbE ports
<stintel> probably just OCD ;)
<Borromini> =)
<stintel> wait what
<Habbie> lol
<Habbie> this is elon musk level shitposting ;)
<neggles> absolute perfection
<stintel> well I approve, made some nice cash from some DOGE I mined >10y ago
<stintel> sold last year close to ath
<neggles> DOGE isn't 10 years old! :P
<stintel> it's older
<neggles> i mined 200k doge back when it was only a few weeks old
<neggles> sold it all *four days before Musk started shitposting about it*
<stintel> ah, sorry, my math is off
<neggles> it's about five years old
<stintel> no
<stintel> 2013
<neggles> ah
<stintel> my best friend and me were mining it just after launch, he then created a blackjack site that accepted doge
<neggles> damn you're right
<stintel> he made 10s of millions of doge with that
<neggles> my doge was indeed mined in december of 2013
<stintel> but sold a year later and used the money for some holiday :P
<neggles> time isn't real
<stintel> I remember the Qt wallet, had a good laugh at that :P
<stintel> with all the doge meme slogans in comic sans 😂
<neggles> heh, importing my dogecoin-qt wallet into something functional in 2020 was a *chore*
<neggles> I don't really regret selling when i did though, crypto is a distributed pyramid scheme, someone else has to buy in for you to get paid out... and I got ~$400 out of what cost me maybe $10 in power at the time
<neggles> yup that's the pupper!
<stintel> haha this brings back memories
<neggles> I think I mined more like 300k actually, i remember I sent 100k to the dogecoin nascar fund
<stintel> I used to be mining LTC on p2pool, which announced found blocks in IRC
<stintel> so I created a vanity address 😂
<stintel> irclogs/2013/02/Freenode/#p2pool-alt.log.xz:24|21:04:25< p2pool13> LITECOIN BLOCK FOUND by LamersWqTi6d4DQg5jyeWhSGh767EdiEK2! http://explorer.litecoin.net/block/36ca81b6ec3597c84f1cbc18c842ed9edc8b93e71fd04af851730a35a5049efd
<neggles> hahahaha
<stintel> little did I know I should have mined more and kept more :P
<Borromini> neggles: thanks for the help, appreciate it a lot. It's bedtime for me here... will be back later :)
<Borromini> night guys
<stintel> nn
Borromini has quit [Quit: leaving]
<neggles> oh
<neggles> i just had some news
<neggles> the reason it doesn't prompt to press any key to pause is because CONFIG_AUTOBOOT_PROMPT=""
<neggles> they haven't done any nasty tricks or anything as far as i can see - and yes this gpl tarball includes both 1210 and 1250 sources
noltari has joined #openwrt-devel
slh64 has joined #openwrt-devel
slh has joined #openwrt-devel
slh has quit [Remote host closed the connection]