dangole has joined #openwrt-devel
Luke-Jr has joined #openwrt-devel
minimalist has joined #openwrt-devel
minimalist has quit [Read error: Network is unreachable]
minimal has quit [Read error: Connection reset by peer]
minimalist has joined #openwrt-devel
Luke-Jr has quit [Ping timeout: 480 seconds]
minimalist has quit []
Luke-Jr has joined #openwrt-devel
Luke-Jr has quit [Ping timeout: 480 seconds]
Luke-Jr has joined #openwrt-devel
Luke-Jr has quit [Ping timeout: 480 seconds]
danitool has quit [Ping timeout: 480 seconds]
MaxSoniX has joined #openwrt-devel
MaxSoniX has quit [Quit: Konversation terminated!]
mrnuke has quit [Ping timeout: 480 seconds]
csrf has quit [Remote host closed the connection]
csrf has joined #openwrt-devel
goliath has joined #openwrt-devel
ptudor has quit [Ping timeout: 480 seconds]
ptudor has joined #openwrt-devel
zkrx has quit []
zkrx has joined #openwrt-devel
csrf has quit [Ping timeout: 480 seconds]
zkrx has quit []
goliath has quit [Quit: SIGSEGV]
zkrx has joined #openwrt-devel
EqUaTe has joined #openwrt-devel
ptudor has quit [Ping timeout: 480 seconds]
ptudor has joined #openwrt-devel
zorun has joined #openwrt-devel
danitool has joined #openwrt-devel
<oliv3r[m]> Hi, I'm very naieve and unfamiliar with DSA. I have a Realtek based switch, and so far, it works, in that from the local ethernet port, I can ping the world on any LAN port (e.g. any lan port has an internet connected cable inserted). I would like however to turn my switch into a 'dumb unmanaged switch' if you will, e.g. disable dsa, and have it 'just work' all ports switched. Plugin device in port 1 and 12, they can communicate. This
<oliv3r[m]> is currently not possible with my default DSA setup. For testing and development purposes, I'd just like to completly 'turn off'/'disable' these fancy DSA features. Not sure if it is fully possible however; as the switch chip might always need at least 1 vlan?
<jow> putting all per-port netdevs into a bridge should achieve that
<oliv3r[m]> ah, well right now, it doesn't :(
<jow> maybe the implementation is bugged then
<oliv3r[m]> unless 'dhcp' is somehow blocked of course :)
<oliv3r[m]> i can try setting up a fixed IP on the second device, and see if ping works, but I'd expect dhcp also to work ...
<jow> could you pastebin your current /etc/conf8g/network somewhere? Just to cross-check
danitool has quit [Remote host closed the connection]
danitool has joined #openwrt-devel
goliath has joined #openwrt-devel
<aska> Hi, I have a EA8300 that does not boot. I have gain serial access and see the error "nandboot" not defined. If I run the command "run bootpart1" it will boot to the Linksys firmware as if everything is normal. I flashed the Linksys firmware again, but it does not automatically fix this.
<oliv3r[m]> jow: certainly! https://pastebin.com/G0HigN3D
<aska> I do not want to mess thing up. What command I should enter to set the nadboot?
<aska> (sorry if I ask in wrong channel, I think dev know more about these)
<jow> aska: this sounds as if the uboot environment is broken
<jow> aska: it usually contains a variable that contains a boot script
<jow> aska: can you pastebin the output of printenv?
<aska> I think so, the situation is I run this script and then mess thing up https://forum.openwrt.org/t/need-help-with-debricking-of-ea8300/76074
<jow> oliv3r[m]: try a setup without any bridge vlan: https://pastebin.com/7pEKMBTe
<aska> after that flash a sysupgrade firmware and not boot
<aska> I am on ubuntu and "screen" cannot page up the log, is there a way I can page up under "screen"?
<jow> aska: okay so that script changed the "bootcmd" variable to "run nandboot" but no "nandboot" is defined on your device
<jow> aska: you said that "run bootpart1" successfully boots your firmware, so the solution would be
<jow> aska: setenv bootcmd "run bootpart1"
<jow> aska: the above command applies to the uboot shell
<jow> aska: if you use fw_setenv from a booted firmware, it should be fw_setenv bootcmd "run bootpart1"
<aska> the first command not work
<aska> let me try the 2nd one after boot
<jow> Mangix: do you want me to trick into recompiling cmake yet again? :)
<Mangix> :)
<jow> I honestly have no opinion on it, but if it reduces redundnancy then go for it?
<oliv3r[m]> jow: no go :( wireshark see's DHCP requests being broadcasted, but nothing comes back on the wire
<Mangix> just need to wait to get the tools/zstd changes merged to get rid of the rpath hack
<jow> oliv3r[m]: hmm, that does look like an implementation bug though. The config I pasted should be equivalent to a dumb, do-nothing switch
<jow> oliv3r[m]: this is one of those realtek switches, right?
<oliv3r[m]> yep; so I wouldn't be supprised :p
<jow> might be that there's additional smartness that needs to be disabled outside of the network uci config
<jow> not sure if there's extra ethtool knobs etc. for switch ic specific features
<oliv3r[m]> (some context, I have 2 USB dongles on my host, 1 runs the dhcp server, connects to the switch on port1; eth0 (on the switch) is configued via dhcp, and pulls one from port1 (but can pull it from any port if i hook it up) ping etc on the switch works from any port. I can 'short' the 2.5g and the SFP ports (DAC cable) and I see duplicate ping requests going in out, so all that works fine. I plug the second USB eth into port8, but that
<oliv3r[m]> port fails to get an ip
<oliv3r[m]> Let me first boot the vendor firmware, because it should work there (the switch is the 'dumb'/unmanaged) variant by stock
<oliv3r[m]> from 'u-boot' (after running rtk network on, which inits the hardware) itdhcp works immediatly :)
<oliv3r[m]> so at least no hardware fault
<aska> it now automatically boot. thanks jow!
<jow> aska: yw
<aska> I need to look into what command should be the proper one
<aska> it now only boot to the first part even I issue command to boot to altkernel
<aska> part 2 should be called altkernel in this router
<ldir> Ideas for solving this: I want to extract the number from the end of a string that must end with either a single 4 or 6 - so foo4 or foo6 or foo_4 would be valid, foo44 or foo64 or foo1234 would not. The returned value must be either nothing, 4 or 6.
<ldir> local family=$(echo "$set" | sed -nre 's#.*([46]$)#\1#p') is close-ish but not right
* ldir has learned 'changing the escape char' and 'saving a string' in sed this morning
<jow> ... | sed -nrE 's#^.*[^0-9]([46])$#\1#p'
zorun has quit [Ping timeout: 480 seconds]
<jow> this will rule out sole `4` or `6` (yields epty then) - but that probably makes sense
<ldir> jow: How do you *do* that! :-)
<jow> otherwise test4 -> 4, test6 -> 6, test44 -> nothing, 4 > nothing
xback has joined #openwrt-devel
<jow> upside or learning Perl as first language, comes with a lifetime regex mastering subscription
<ldir> lol
<oliv3r[m]> jow: how would one normally 'block' port - port isolation with DSA? or is that not a thing?
<jow> oliv3r[m]: usually by not making the port part of a bridge
<jow> or part of a different bridge
<oliv3r[m]> that's hardware briding (via brctl through dsa) yeah?
<jow> unless you mean per-port isolation
<oliv3r[m]> i do mean per-port isolation :)
<jow> as in, no isolated port can talk toanother isolated port but only to non-isolated (upstream) ones
<oliv3r[m]> exactly
<jow> sec
<jow> add one or more sections like that to your /e/c/network:
<jow> config device
<jow> option name lan1
<jow> option isolate 1
<jow> repeat for each port you want to isolate
<oliv3r[m]> ok; how does that boil down to the cli?
<aska> Thanks again jow. it is working properly now. found the original bootcmd command in the toh wiki page
<jow> let me figure out the corresponding cli command
<aska> very happy now ^_^
<jow> oliv3r[m]: not sure if there's an ip or bridge subcommand
<jow> but netifd does this: echo 1 > /sys/class/net/$portname/brport/isolated
<oliv3r[m]> right, fair nuff
<jow> bridge link set dev $portname isolated on/off
<dwfreed> was just going to say that
<jow> "bridge" is usually not preinstalled though
<oliv3r[m]> cool :) thank you!!
<[Pokey]> Oh hey, jow, I hope you don't mind me catching you. Apparently you're the person to talk to with regards to adding a toggle switch to LuCI for a specific model of device which has a GPIO toggle to switch between an internal and external USB. Would this be correct?
<jow> [Pokey]: yes
<[Pokey]> How would I go about starting that process off?
<jow> [Pokey]: it needs to be implemented as uci option in openwrt first, then we can cover it in LuCI
<jow> [Pokey]: above sounds like something that should go into /etc/init.d/system
<jow> or /etc/config/system rather, with a custom, target specific init script reading from it
<oliv3r[m]> but netifd does this: echo 1 > /sys/class/net/$portname/brport/isolated; I don't even have that node, 'find' won't even find any 'isolated' :(
guerby has quit [Remote host closed the connection]
<dwfreed> is the port in a bridge?
<[Pokey]> Right. I'm guessing this isn't something that as an example from before on another device? I am a complete noob when it comes to OpenWRT contribution, I am just barely scraping by with help from others and heavy copy paste in order to add support for a couple of device variants
<oliv3r[m]> brctl shows all ports as part of the bridge, bridge link show, shows lal ports
<jow> oliv3r[m]: ls /sys/class/net/lan1/brport
<jow> should list a bunch of bridge port specific resources
<jow> [Pokey]: do you have an openwrt buildroot cloned?
<oliv3r[m]> interesting; 'find' doesn't find this name ...
<oliv3r[m]> find /sys/class -iname 'isolated' says 'no sir
<jow> oliv3r[m]: it's symlinks to locations elsewhere
guerby has joined #openwrt-devel
<oliv3r[m]> but usually find finds any filename?
<jow> find might not be following them
<dwfreed> busybox find may be acting differently than gnu find
<oliv3r[m]> ah your right, I was searching /sys/class/net, my bad
<[Pokey]> jow: I do, yes. I'm currently able to compile a target bin for my device
<oliv3r[m]> ok so that works; thanks a lot; I have enough dsa now to try to debug this
<jow> [Pokey]: a couple of targets/boards already ship custom "fixup" init scripts
<jow> check: find target/linux/ -type f -path '*/init.d/*'
<[Pokey]> Ah yes, I see
<jow> you can find examples for matching your specific board in those files, e.g. target/linux/apm821xx/base-files/etc/init.d/hwmon_fancontrol
<jow> once your script figured out that it runs on the (a) board that requires gpio toggling, it can use uci commands to read user settings and act upon them
guidosarducci has quit [Remote host closed the connection]
<[Pokey]> Oh I see. Right
<jow> you need to come up with a place and option name to store the desired state (external/internal)
<jow> my first suggestion would be defining a new section in /etc/config/system
<[Pokey]> So theres support to add custom stuff like this just its a framework rather than a targeted thing here
<jow> config usb; option mode internal/external
<jow> then query with uci -q system.@usb[0].mode
<[Pokey]> sounds like a plan
guidosarducci has joined #openwrt-devel
<jow> [Pokey]: this looks like a precedent, I guess there is other boards that require similar, hardwqare specific toggles
<jow> first thing that comes to mind is poe power with is typically realized by gpio toggling as well
robimarko has joined #openwrt-devel
<[Pokey]> jow: Yea, it is not a surprise that is so. So from my understanding (I'm wasting time with theory rather than practical here whilst I flash some firmware) I can add a config section and it will just immediately be picked up by uci, then that init script can be set up to just run the uci command to read the setting and do the appropriate action based on it's value? Then presumably LuCI can use uci commands internally to write that option
<[Pokey]> too
<jow> [Pokey]: that's the plan, yes
<[Pokey]> Wonderful, much easier than playing wit DTSI files haha
<jow> once uci understands that option (and something acts upon it), LuCI can be easily extended to expose the setting as widget
<jow> need to figure out a suitable place
<[Pokey]> I have an outstanding patch for adding device support. Should I roll this into the same commit later do you think?
<jow> later since it is kind of optional
<[Pokey]> Okay. I'll start a new branch to tinker in then
<jow> optional as in, without this you would need to do manual gpio toggling on the cli
<jow> but the device would still work
<[Pokey]> Yea, makes sense
<[Pokey]> # uci -q show system.@usb[0].mode
<[Pokey]> system.cfg03b3cf.mode='external'
<[Pokey]> alrighty, a bit messier than I anticipated that output being but it works I guess
<oliv3r[m]> jow: might be related to my USB (apple) adapter; which is only 100Mbit; could be the switch is not setting up 100mbit links properly (though it says it is a 100mbit link). Luckily I had 2 USB 3.0 gigabit adapters; so at least I know what direction to debug; stupid thing is; its setup properly in u-boot; so tftpboot works fine; anyway, plenty to debug :)
<robimarko> \x: Was it you or somebody else with the cheap used Linksys from Amazon?
cbeznea has joined #openwrt-devel
<\x> robimarko: I bought one yeah
<robimarko> \x: Great, mine arrived yesterday
<\x> i think mrnuke also bought one
<robimarko> Its pretty much new
<\x> ill be interested on how viable will the linksys dual firmware be like
<\x> like, if i flash from it, which one will it replace, fw1 or fw2?
<\x> and if I sysupgrade from openwrt, will it replace which one?
<robimarko> \x: We are quite a long time from that
<\x> well yeah in mainline
<\x> The chinese already has qsdk working with 22.03 userspace
<\x> I still havent tried it, something seems missing from the recipe
<robimarko> \x: I couldnt care less about those
<\x> ahaha well yeah
<\x> but sure, im looking forward getting real openwrt support on it
<\x> robimarko: would also be interested on a coremark run, just so I have some idea on cpu perf
<\x> that chinese one im saying is this one
<\x> heres their recipe
<robimarko> So they are using GL-inets builder
<robimarko> You can find bunch of people for that in the Flint/AX1800 thread on the forum
seer has quit [Ping timeout: 480 seconds]
<\x> i think glinet does have a "21.xx" with qsdk 4.4 kernel
<\x> havent came across with the 5.4 one
<\x> but i still havent looked for it so yeah
<robimarko> There is 5.4 for it as well
<nbd> hauke: ping
<\x> robimarko: ill look forward for another branch on your github that i can just build to try once you get it up and booting atleast
<robimarko> \x: Well, its booting already
<\x> wew
<\x> 5.15?
<robimarko> 5.15 and Next
<robimarko> However, its missing a lot of things
<\x> whats the next lts anyway? 6.0 isnt it ansuel said
<robimarko> Whatever is the last kernel released in this year
<robimarko> That is what the practice has been for as far as I can remember
<robimarko> So probably 6.1 as there is plenty of time for it
<robimarko> \x: Fun story, adding the missing QUP6 I2C clock will cause the board to freeze
<\x> i dont know about that thing, what does it do? eli5
<\x> i dont have the device yet so i cant play with it
<[Pokey]> aha it's an \x ! Can I get your github username or other credit line to credit you in my device support commit please? :P
<\x> [Pokey]: just tell \x on irc
<[Pokey]> Alrighty, nice
<\x> all good [Pokey]
<[Pokey]> I caught jow too, working on that as a separate patch
<\x> based
<[Pokey]> blerg
<[Pokey]> the commit title is 60 chars
<[Pokey]> how can I get that down...
<\x> 16/32M
<[Pokey]> Had to make it ramips: add support for Zbtlink ZBT-WG1602-V04
<[Pokey]> thats 47
<\x> "ramips: add support for Zbtlink ZBT-WG1602-V04 16M/32M"
<\x> 55.
<\x> 54*
<[Pokey]> needs to be 50
SlimeyX_ has joined #openwrt-devel
SlimeyX__ has joined #openwrt-devel
SlimeyX has quit [Ping timeout: 480 seconds]
SlimeyX__ is now known as SlimeyX
<[Pokey]> Well there we go https://github.com/openwrt/openwrt/pull/10829 thanks again \x, let's see where this takes us :D
<\x> based
SlimeyX_ has quit [Ping timeout: 480 seconds]
bluew has quit [Ping timeout: 480 seconds]
<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.)
<robimarko> Coremark on IPQ6018
<\x> so yours came with a 6018?
<\x> not a 6000
<robimarko> \x: This is on a CP01-C1 dev board
<robimarko> I havent even powered on Linksys
<\x> ah
<\x> i think the WRT3200ACM is like 7k coremarks
<Habbie> i have a 3200acm here, need me to try anything?
<\x> Habbie: sure, coremark.
<\x> its on the repos, just opkg install
<\x> robimarko: and yeah thats already faster on MT7622B, RT3200 is like 4650 coremarks
<robimarko> \x: We are missing 1.2GHz OPP point
<robimarko> But, I am gonna run it at 1.32
<\x> are the clocks of these really have to follow multiples of 24?
<robimarko> Yep, quite a drastic downgrade
<robimarko> Well, there are 864, 1056, 1200, 1320, 1440, 14880, 1608 and 1800 MHz points
<\x> oops
<\x> but yeah
<robimarko> Those are what QCA upstreamed
<robimarko> There is more
<\x> ahemm, anything above 1800?
<robimarko> Nope
<robimarko> Top model is rated at 1.8GHz
<robimarko> Though the core should be pretty much the same as IPQ8074
<robimarko> So it could do 2.2, but I am not sure if the PMIC is capable of that current though
<Habbie> CoreMark 1.0 : 7019.783025
<\x> yeah
<Habbie> wrt3200acm with openwrt 21.02
<\x> Habbie, hella fast
<\x> OC'd ipq4019 is 2600's coremarks
<\x> 1.1GHz MT7921A is 2750ish iirc, ill retry later
<\x> MT7621A*
<\x> robimarko: so it seems pretty linear not hitting any bottlenecks, so 1.2GHz (ipq6000) should be around 4000 coremarks
<robimarko> \x: Yeah, it should be linear
<rmilecki> ddns-scripts should get rewritten from scratch
<rmilecki> change my mind
<rmilecki> its code is so messy, absolutely painful to follow & understand
<rmilecki> eval-s everywhere
<rmilecki> variables named without any sense
Tapper has joined #openwrt-devel
<rmilecki> verbose mode *disabling* actual ddns functionality (working like dry mode)
aiyion has quit [Remote host closed the connection]
aiyion has joined #openwrt-devel
snh has quit [Read error: Connection reset by peer]
noltari_ has joined #openwrt-devel
noltari has quit [Ping timeout: 480 seconds]
noltari_ has quit [Ping timeout: 480 seconds]
noltari has joined #openwrt-devel
snh has joined #openwrt-devel
MaxSoniX has joined #openwrt-devel
snh has quit [Remote host closed the connection]
snh has joined #openwrt-devel
srslypascal has joined #openwrt-devel
<[Pokey]> Hey \x I did also get the firmware from the manufacturer to confirm we haven't missed a trick. The USBs are DPDT controlled on that firmware too
noltari has quit [Read error: Connection reset by peer]
noltari has joined #openwrt-devel
srslypascal has quit [Ping timeout: 480 seconds]
srslypascal has joined #openwrt-devel
danitool has quit [Quit: Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos]
SlimeyX has quit [Read error: Connection reset by peer]
noltari_ has joined #openwrt-devel
aska has quit [Quit: Leaving...]
noltari has quit [Ping timeout: 480 seconds]
SlimeyX has joined #openwrt-devel
valku has joined #openwrt-devel
dangole has quit [Remote host closed the connection]
aiyion has quit [Remote host closed the connection]
aiyion has joined #openwrt-devel
dangole has joined #openwrt-devel
aiyion has quit [Remote host closed the connection]
aiyion has joined #openwrt-devel
minimal has joined #openwrt-devel
<\x> ah yeah
mrnuke has joined #openwrt-devel
dangole has quit [Remote host closed the connection]
dangole has joined #openwrt-devel
dangole has quit [Remote host closed the connection]
Gaspare has joined #openwrt-devel
dangole has joined #openwrt-devel
<KGB-2> 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.)
goliath has quit [Quit: SIGSEGV]
Ibarakasen has joined #openwrt-devel
gladiac has joined #openwrt-devel
<Ibarakasen> Hello, I found a potentially serious bug in UCI system: If the storage is full, uci commit wipes the config file.
<Ibarakasen> I would expect it to try making an atomic change where it first writes the new files and then swaps the new and old file..
<Ibarakasen> Tested on OpenWRT 21.02, not yet tested on 22.03.
<f00b4r0> known "feature"
<Ibarakasen> Is that an expected behaviour?
<f00b4r0> not really. It's just that there hasn't been a proper fix implemented (yet)
<Ibarakasen> Right, so not even 22.03 has it fixed yet.
<f00b4r0> no
<Ibarakasen> Okay, thank you for the information.
Ansuel has joined #openwrt-devel
gladiac has quit [Quit: k thx bye]
<Ibarakasen> Are there complications that make the proper fix hard(er) to implement?
<Ibarakasen> I looked through the code a bit, it seems that there is an atomic swap, but there seem to be no checks that the export to temporary file was successful.
<rmilecki> Ibarakasen: there is fix pending
<rmilecki> [PATCH 0/9] uci: fixes for uci_set and uci_add_list https://patchwork.ozlabs.org/project/openwrt/list/?series=313995
<Ibarakasen> Thank you for the patches.
goliath has joined #openwrt-devel
srslypascal has quit [Ping timeout: 480 seconds]
robimarko has quit [Remote host closed the connection]
robimarko has joined #openwrt-devel
zorun has joined #openwrt-devel
feckert has quit [Ping timeout: 480 seconds]
Gaspare has quit [Quit: Gaspare]
tlj_ has quit [Remote host closed the connection]
<Ansuel> shellcheck warns that [ -f /etc/opkg.conf ] && grep -q "src/" /etc/opkg.conf || exit 0 exti 0 may run if [ -f /etc/opkg.conf ] is true
<Ansuel> can't understand how anyone have any idea about it?
tlj_ has joined #openwrt-devel
<Ansuel> ok if A is true but B is false, C will run.
<Ansuel> mh interesting this is the first case where this logic is correct... in any other context i notice it used as if-then-else (uncorrectly)
srslypascal has joined #openwrt-devel
<ldir> I always get nervous with shell && and || sequences
<f00b4r0> rmilecki: oh i didn't know about these, neat. Too bad they didn't make the 22.03 cut
<rmilecki> f00b4r0: noone reviewed or applied them yet
<f00b4r0> yeah I noticed that
<f00b4r0> sad.
<f00b4r0> then again, not as sad as my mtd patch ;)
<rmilecki> Ansuel: maybe add some braces?
<rmilecki> no, wait...
<rmilecki> it's a simple foo && bar ||qux
<rmilecki> shuld work
<rmilecki> Ansuel: ahh, i just saw "ok if A is true but B is false, C will run."
<rmilecki> Ansuel: right, we usually do foo && { bar } || { qux } ← this may be safe
<Ansuel> what if something fail in { } ?
<f00b4r0> just use if then else fi and be safe and readable ;)
<Ansuel> anyway uci stuff should be checked by jow as it's a pretty crucial component
dangole has quit [Remote host closed the connection]
dangole has joined #openwrt-devel
<rmilecki> Ansuel: i *think* that with { } it doesn't matter
<Ansuel> probably but still shellcheck print a warning and it's not that readable
<Ansuel> wonder if that syntax is used to save some char from the script?
danitool has joined #openwrt-devel
<rmilecki> $ true && { echo "foo"; false; } || { echo "oh crap"; }
<rmilecki> foo
<rmilecki> oh crap
<rmilecki> Ansuel: just use "if ... ; then + else + fi" :P
<Ansuel> OH NO
<Ansuel> ahahahha
<Ansuel> the generate.sh script in qos-scripts is full of that
Gaspare has joined #openwrt-devel
<ldir> and update_kernel.sh
<Ansuel> at least no warning with shellcheck
goliath has quit [Quit: SIGSEGV]
guidosarducci_ has joined #openwrt-devel
guidosarducci has quit [Ping timeout: 480 seconds]
Ibarakasen has quit [Ping timeout: 480 seconds]
seer has joined #openwrt-devel
Ibarakasen has joined #openwrt-devel
goliath has joined #openwrt-devel
<Slimey> mrnuke can you show me your serial connections on the WAX218? are you just using Rx Tx and Gnd ?
Gaspare has quit [Quit: Gaspare]
<mrnuke> Slimey: Yup. Need to pull out my old notes
<Slimey> couldnt get this board to output anything, not really sure of baud rate, if vcc is needed, etc
Gaspare has joined #openwrt-devel
<mrnuke> Slimey: Check images in the comment. Params are 115200n8
<oliv3r[m]> Anybody here have any experience with DaC (Direct Attach Copper)? I'm hacking on the realtek target, and I have 1 mikrotik DAC cables; 1m and 3m. My switch has 2 SFP ports, so i'm shortting those.. If I plug in the 1m in both ports, I get a link, can ping etc, so the links are working fine. If I do the same with the 3m cable, it doesn't work (get error spam, but that's for me to fix I suppose). The i2c data is very very little different
<oliv3r[m]> between the two; so I assume the exchange is inband as part of the serdes link. The original author that got the SFP ports working described the same issue, and left it at 'hit or miss which ones will work'. As the author has since left, I'm trying to figure out what could be going on, but I have no idea where to start really. He mentioned something about calibration data, but that data would have to come from the module? Where could I
<oliv3r[m]> start?
<KGB-2> https://tests.reproducible-builds.org/openwrt/openwrt_lantiq.html has been updated. (96.2% images and 96.9% packages reproducible in our current test framework.)
Gaspare has quit [Quit: Gaspare]
Gaspare has joined #openwrt-devel
<[Pokey]> Is it generally safe to keep writing firmwares to SPI flash as you test or does it risk wearing it out?
<mrnuke> [Pokey]: How long will it take you to write 100000 images ?
<[Pokey]> mrnuke: :P fair
<mrnuke> [Pokey]: That being said, I generally prefer to run initramfs/tftpboot for testing because it's faster
<[Pokey]> mrnuke: Fair. I just have a convenient Web UI
<mrnuke> "convenient" ?
<[Pokey]> mrnuke: More convenient than running a TFTP server and using the serial console yes
* mrnuke laughs
<[Pokey]> ¯\_(ツ)_/¯
<Mangix> Ansuel: have fun updating :)
<Ansuel> mh?
<Mangix> I've noticed that check seems to not be sensitive enough
MaxSoniX has quit [Quit: Konversation terminated!]
<mrnuke> [Pokey]: I recommend you give the tftp method a try. Setup is annoying, but once you can 'Ctrl-R tftp put' and 'run bootcmd' it's waaay faster :)
<Mangix> Ansueo: hahaha whoops https://github.com/openwrt/openwrt/issues/10832 . Looks like I needed both commits in that PR.
<[Pokey]> mrnuke: Sounds like I am missing context because I am not certain what you mean
<[Pokey]> I assume you mean tweaking UBoot to start it easier
<Ansuel> Mangix rip I have to merge it
<mrnuke> [Pokey]: Yeah. you set up bootcmd to boot off of tftp, so uboot automatically does a tftp boot each time :D
<[Pokey]> mrnuke: Ah. Yea I don't want it to do that because I test in bursts and sometimes I wanna be on flash for extended periods
<[Pokey]> Good point for general concerns of testiong many images though
<mrnuke> [Pokey]: And if you set your tftp server such that you can push files to it, it's trivial to push freshly built images: "tftp localhost -c put bin/... myimage.img"
<Ansuel> me wondering why the router doesn't print anything on the serial
<Ansuel> and doesn't notice the power cable was not plugged in
<Mangix> reminds me of that one joke "Who will win? Experienced PC builder or Power switch on PSU"
<mrnuke> Ansuel: I wish MR7350 were that simple :)
<robimarko> mrnuke: MR7530 arrived yesterday, its brand new
<robimarko> Will have to wait a day or two to open it up though
<robimarko> I am digging through a bunch of broken IPQ6018 stuff anyway, good news is that CPU scaling PLL fixes were picked
bluew has joined #openwrt-devel
<Slimey> mrnuke thanks
<Slimey> thats what i used hmm i have to take it back to the lab and try again ;')
<Slimey> have to pop in some pogo pins
<mrnuke> robimarko: You have four screws on the bottom. Two are under the label. It's really annoying
<robimarko> mrnuke: So the usual stuff
<mrnuke> robimarko: I tried my eap610-outdoor branch. No serial output at all. It just reboots and mover very slow after reboot.
<mrnuke> robimarko: I presume it's the borked CPU scaling
<robimarko> mrnuke: Whats the CPU model?
<robimarko> CPU scaling thats upstream is meant to be used solely on IPQ6010/18
<mrnuke> the /proc/cpuinfo says "Qualcomm Technologies, Inc IPQ6018"
<robimarko> That is not correct, its just the default
<robimarko> Check /sys/kernel/debug/
<robimarko> For socinfo and read the ID there
Gaspare has quit [Quit: Gaspare]
<robimarko> cat /sys/devices/soc0/machine
<robimarko> It will give you the real CPU model that is read from SMEM
<robimarko> It could be IPQ6018 as well
<mrnuke> robimarko: says "IPQ6018"
<robimarko> Then it shouldnt be crashing
<robimarko> Though, I have not tried your tree at all
<mrnuke> robimarko: look for "cpr4_ipq807x_apss_read_fuse_data: apc_corner: speed bin " in https://paste.debian.net/1255218/
<mrnuke> not sure if it's somehow relevant
<robimarko> 0 is correct for 6010/18
<Ansuel> Mangix they reported problem is not fixed?
<Mangix> it needs a toolchain rebuild
<Mangix> the problem is GCC not finding zstd
<Mangix> I just tested it with rm -rf build_dir staging_dir tmp
<Mangix> works fine
Gaspare has joined #openwrt-devel
<owrt-snap-builds> Build [#667](https://buildbot.openwrt.org/master/images/#builders/42/builds/667) of `ramips/mt76x8` failed.
<[Pokey]> hmm. Why is my new file in /etc/init.d not +x? It was +x when I compiled it and everything else in that directory is +x on the device
Strykar has quit [Quit: /quit]
Strykar has joined #openwrt-devel
<owrt-snap-builds> Build [#686](https://buildbot.openwrt.org/master/images/#builders/26/builds/686) of `apm821xx/sata` failed.
Borromini has joined #openwrt-devel
<Mangix> FINALLY fixed zlib
<Mangix> that was annoying
<Borromini> hey guys
<owrt-snap-builds> Build [#682](https://buildbot.openwrt.org/master/images/#builders/41/builds/682) of `bcm27xx/bcm2708` failed.
<Borromini> i thought i read there were some throughput regressions on 5.15 vs 5.10 but i'm unsure if that was specific to mvebu or another target? Anyone recall something similar?
<Ansuel> Mangix you were fast
<Mangix> puished
<owrt-snap-builds> Build [#674](https://buildbot.openwrt.org/master/images/#builders/49/builds/674) of `mvebu/cortexa53` failed.
<owrt-snap-builds> Build [#707](https://buildbot.openwrt.org/master/images/#builders/8/builds/707) of `x86/64` failed.
<owrt-snap-builds> Build [#668](https://buildbot.openwrt.org/master/images/#builders/50/builds/668) of `mediatek/mt7623` failed.
<owrt-snap-builds> Build [#683](https://buildbot.openwrt.org/master/images/#builders/40/builds/683) of `ipq40xx/mikrotik` failed.
<Ansuel> mhh Mangix is it normal?
<owrt-snap-builds> Build [#351](https://buildbot.openwrt.org/master/images/#builders/73/builds/351) of `imx/cortexa7` failed.
<jow> Ansuel: I would say no :)
<owrt-snap-builds> Build [#682](https://buildbot.openwrt.org/master/images/#builders/45/builds/682) of `bcm47xx/legacy` failed.
<Ansuel> we have 2 user that say it compiles correcty and buildbot broken yheee
<jow> those two users likely built in a clean tree
<jow> *unclean tree
<jow> the linker command for cc1 appears to lack an -lzstd
<jow> I suggest to revert the changes for now and do further testing
<jow> unless you enjoy debugging this under the pressure of all builds failing :)
<Ansuel> nha i think i will revert... it's free only need to understand if it's just the last one of also the other
<jow> the last failing build was including the latest git head (tools/zstd: build libraries as static)
<Ansuel> so i guess this is ok... https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=e6cc3ded0709aa6c7a190c31575bb5c19e204cd2
<jow> which zstd was it using before?
<jow> host one?
<jow> or is gcc bundling a copy?
<Ansuel> guess building a copy
<jow> you could try reverting the zstd static thing first and await the next build
<jow> if it still fails revert more
<jow> before you do anything you probably should try a completely clean build locally first
<jow> maybe the zdzd static commit only worked for the testers because they still had a dynamic copy of zstd.so lingering around in theeir staging_dir/host
<jow> *zstd
<owrt-snap-builds> Build [#679](https://buildbot.openwrt.org/master/images/#builders/23/builds/679) of `mpc85xx/p2020` failed.
<Ansuel> buildbot compiled correctly with that commit tho but some user reported compilation error before the last commit got applied... ahhh i will revert both and just debug
<jow> congratulations to your first buildbot breakign commit btw :)
<Ansuel> this is a big one and sorry :( I also need to understand why workflow didn't failed....
<owrt-snap-builds> Build [#686](https://buildbot.openwrt.org/master/images/#builders/66/builds/686) of `apm821xx/nand` failed.
<dwfreed> probably because workflow runs on clean checkout as well?
<jow> maybe using a different sequence of commands
<dwfreed> oh, unclean works, not clean
<dwfreed> then idk
<owrt-snap-builds> Build [#671](https://buildbot.openwrt.org/master/images/#builders/19/builds/671) of `ramips/mt7621` failed.
robimarko has quit [Quit: Leaving]
<Mangix> jow: locally I can't reproduce this failure. I guess I'll set up a VM.
<Ansuel> Mangix: while we check this i reverted them. Think we can include both of them in a single pr when we handle that
<Mangix> checking for library containing ZSTD_compress... no <--- hmmmm
<Mangix> wait a minute...I'm compining GCC12
<Ansuel> MHHHHH
<Mangix> sounds like GCC12 has a bugfix for zstd
<Ansuel> and gcc 11 and 10 is broken ?
<Mangix> who knows
<Mangix> I'm about to swap
<owrt-snap-builds> Build [#183](https://buildbot.openwrt.org/master/images/#builders/78/builds/183) of `at91/sama7` failed.
<blocktrron> dhewg: regarding the amsdu patch - can you re-apply it to current openwrt?
<Mangix> or just disable zstd in GCC
<Ansuel> a patch backport would be ideal
<Mangix> so stupid that they don't use pkgconfig. would have avoided this mess
<owrt-snap-builds> Build [#680](https://buildbot.openwrt.org/master/images/#builders/48/builds/680) of `bcm47xx/generic` failed.
Ibarakasen has quit [Quit: Leaving]
<owrt-snap-builds> Build [#672](https://buildbot.openwrt.org/master/images/#builders/67/builds/672) of `sunxi/cortexa8` failed.
<Ansuel> any idea why we still have this ?
<Ansuel> WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
<Mangix> Ansuel: libpam is in the packages feed
Gaspare has quit [Quit: Gaspare]
<Ansuel> but BUSYBOX_DEFAULT_PAM is n by default
<owrt-snap-builds> Build [#675](https://buildbot.openwrt.org/master/images/#builders/29/builds/675) of `pistachio/generic` failed.
<Mangix> how do I refresh toolchaiin/gcc ?
<Mangix> Ansuel: doesn't matter. there's still an unfound dependency, even if unused
<Ansuel> Mangix you mean patches?
<Mangix> yeah
<Mangix> I tried make toolchain/gcc/initial/refresh
<Mangix> didn't work
<owrt-snap-builds> Build [#180](https://buildbot.openwrt.org/master/images/#builders/79/builds/180) of `ipq40xx/chromium` failed.
<Ansuel> Mangix i'm testing but i think you need to make toolchain/gcc/final/clean and make toolchain/gcc/final/compile QUILT=1
<Ansuel> and then
<Ansuel> make toolchain/gcc/final/refresh QUILT=1
<Mangix> why isn't QUILT default?
<Mangix> it is for packages
<Ansuel> i'm curious if it will work
<Mangix> The source directory was not unpacked using quilt. Please rebuild with QUILT=1 <-- QUILT=1 was passed
<jow> could be that it is simply unimplem,ented for that directory
<Mangix> Receiving objects: 34% (953258/2755465), 1.33 GiB <-- sheesh gcc git is huge
<Ansuel> --depth=1 :D
<Mangix> I don't want depth 1
<Mangix> I need to checkout releases
<Mangix> ugh bad news. All of those upstream zstd patches were backported
<Mangix> I think I need to set up a Debian VM to reproduce
<Ansuel> use buildbot container ?
<Mangix> I've never been able to set that up
<Ansuel> did you set up the required args?
Borromini has quit [Quit: leaving]
<Mangix> oh interesting
<Mangix> I have a debian nspawn container
<Mangix> hmmm buster container
<Mangix> ERROR: tools/firmware-utils failed to build. <--- hmmmmmm
<Mangix> bash: cmake: command not found
<Ansuel> o.O
<Mangix> oh got debian vi is garbage
<Ansuel> how is possible that it's broken only now o.O
<Mangix> because most people have cmake on the host
<Mangix> probably including the buildbot
<Mangix> this is a minimal container
<Ansuel> so if I remove cmake
<Ansuel> in theory i should repro
<Ansuel> let me try
<Mangix> yeah
<Mangix> sudo apt remove cmake;make tools/firmware-utils/{clean,compile} V=s
<Ansuel> Package 'cmake' is not installed, so not removed
<Mangix> probably available in staging_dir
<Mangix> wipe it and make tools/firmware-utils
<Mangix> good news
<Mangix> I reproduced the zstd failure
<Ansuel> nice
<Ansuel> meanwhile trying to repro the firmware-utils
<Mangix> if it helps, I ran my run with make -j 31
<Mangix> so there was no chance for cmake to be built
<Ansuel> aand why libressl is replaced?
<Mangix> cmake depends on it
<Ansuel> right!
<Mangix> and after my pr cmake will depend on zlib too
<rmilecki> [Pokey]: if you compiled firmware once with file without +x and then changed ONLY +x, the OpenWrt's buiildroot will not rebuild package/rootfs properly
<rmilecki> [Pokey]: modify something in that file and then rebuild firmware (make V=s)
<Ansuel> news about the zstd ?
<[Pokey]> rmilecki: okay, l try that tomorrow, thank you
<rmilecki> [Pokey]: yw
GNUmoon has quit [Quit: Leaving]
GNUmoon has joined #openwrt-devel
GNUmoon has quit [Remote host closed the connection]
<Mangix> Ansuel: trying to fix. not sure why AC_SEARCH_LIBS(ZSTD_compress, zstd) is failing...
GNUmoon has joined #openwrt-devel
<Mangix> g++ -o conftest -g -I/home/mangix/devstuff/openwrt/staging_dir/host/include -static-libstdc++ -static-libgcc -L/home/mangix/devstuff/openwrt/staging_dir/host/lib conftest.cpp <-- where is lzstd ???
<Ansuel> Mangix real question is why it does work on gcc12
<Ansuel> did they refactor the scan lib logic?
GNUmoon has quit [Remote host closed the connection]
<Ansuel> Support for Realtek's clock controllers (COMMON_CLK_REALTEK) [N/y/?] (NEW)
GNUmoon has joined #openwrt-devel
<Ansuel> my god this is broken from a month o.o
<Ansuel> https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=4850bd887c3aeac10cee3cd6e96bf2418dd98c93 config wasn't updated for this
goliath has quit [Quit: SIGSEGV]
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #openwrt-devel
<minimal> Mangix: where did you get my container from? ;-)
<Mangix> minimal: what?
<Mangix> Ansuel: I found the issue
<Mangix> pool.c:(.text+0x14f): undefined reference to `pthread_join'
<Mangix> missing pthread flag
<minimal> Mangix: you said it was a minimal container...
<Mangix> minimal as in small and not a lot of stuff installed
<minimal> Mangix: my nicname...
<Ansuel> Mangix what O_O
<Mangix> Ansuel: /usr/bin/ld: /home/mangix/devstuff/openwrt/staging_dir/host/lib/libzstd.a(.._.._.._lib_common_pool.c.o): in function `POOL_resize':
<Ansuel> check if that is fixed in gcc 12
<Mangix> it was not
<Mangix> the actual issue is that Debian 10 uses an older glibc with libpthread separate
<Mangix> Fedora 37 has a newer glibc with pthread builtin
<Ansuel> pls don't tell me you use fedora
<Mangix> LOL why?
<Ansuel> no i mean it would explain why you couldn't repro
<Mangix> right. it has a newer glibc
<Ansuel> so it wasn't even related to gcc12
<Mangix> nope
mrnuke has quit [Read error: Connection reset by peer]
mrnuke has joined #openwrt-devel
<Ansuel> Mangix did you read the comments from jow ? could be helpful like adding to ac search libs -lzstd ?
<Ansuel> as suggested in the link?
<Mangix> first thing I'm trying is AC_SEARCH_LIBS(ZSTD_compress, zstd, [], [], ["-lpthread"])
minimal has quit [Quit: Leaving]
<Ansuel> wonder if that can be problematic for new glibc with libpthread compiled in
<Mangix> no
<Mangix> libpthread becomes a stub, just like musl
<Ansuel> oh ok
<Mangix> POSIX requires libpthread, libm, librt, and I think some others
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #openwrt-devel
noltari_ has quit [Read error: Connection reset by peer]
noltari has joined #openwrt-devel
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #openwrt-devel
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #openwrt-devel
<Mangix> Ansuel: fixed. I hate the patch but good enough
<Ansuel> should we consider proposing it upstream?
<Mangix> probably