nixuser has joined #openwrt-devel
soxrok2212 has joined #openwrt-devel
Tapper has quit [Ping timeout: 480 seconds]
<vulpes2[m]> okay I think I might need some help at this point
<vulpes2[m]> this device is really odd and I can't get it to boot at all
<vulpes2[m]> it has a firmware-style partition with kernel and squashfs, but it's set up in a really dumb way
<vulpes2[m]> the uImage header says the data is lzma compressed, type is linux kernel, and the compressed data size is about 7.5MB
<vulpes2[m]> Turns out this size somehow includes the squashfs image as well, but the squashfs is not lzma compressed
<vulpes2[m]> not only that, the lzma compressed kernel also has some padding after it, so the squashfs is at a very uniform offset, which leads me to believe that it has to be a deliberate decision
Habbie has quit [Ping timeout: 480 seconds]
minimal has quit [Quit: Leaving]
Habbie has joined #openwrt-devel
aiyion has quit [Remote host closed the connection]
aiyion has joined #openwrt-devel
slh_ has joined #openwrt-devel
slh has quit [Remote host closed the connection]
slh has joined #openwrt-devel
slh64 has quit [Read error: No route to host]
goliath has quit [Quit: SIGSEGV]
<vulpes2[m]> it seems to have a very high resemblance to this https://github.com/openwrt/openwrt/commit/f8b02130d2cd3b919c1292bc8ee8870f66794536
<vulpes2[m]> which makes sense since it's the same vendor
danitool has quit [Remote host closed the connection]
Znullptr has joined #openwrt-devel
slh_ is now known as slh64
Tapper has joined #openwrt-devel
<neggles> vulpes2[m]: oh god an arcadyan device
<neggles> you can check the 'persist log' box btw and firefox will keep the requests :P and that sounds like an lzma uImage with appended initrd
<neggles> you got a flash dump i can peek at?
xutaxkamay has quit [Ping timeout: 480 seconds]
_znullptr has joined #openwrt-devel
xutaxkamay has joined #openwrt-devel
Znullptr has quit [Ping timeout: 480 seconds]
Tapper has quit [Ping timeout: 480 seconds]
csrf has quit [Quit: Leaving]
bluew has quit [Remote host closed the connection]
bluew has joined #openwrt-devel
Tapper has joined #openwrt-devel
snh has quit [Quit: ZNC - http://znc.in]
snh has joined #openwrt-devel
aiyion_ has joined #openwrt-devel
aiyion has quit [Read error: Connection reset by peer]
rmilecki has quit [Read error: Connection reset by peer]
cbeznea has joined #openwrt-devel
znull_ has joined #openwrt-devel
_znullptr has quit [Ping timeout: 480 seconds]
rua has quit [Ping timeout: 480 seconds]
rua has joined #openwrt-devel
wvdakker has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
wvdakker has joined #openwrt-devel
danieli has quit [Quit: Ping timeout (120 seconds)]
danieli has joined #openwrt-devel
srslypascal is now known as Guest331
Guest331 has quit [Read error: Connection reset by peer]
srslypascal has joined #openwrt-devel
<aiyion_> hauke: I'd like to add a patch for the NanoPi R1, but the current issues on master make testing it pretty hard. Any recommendation on whether the clockspeed fix is a real fix and I could hand in a patch, or if it just resolves the symptom for this one device?
aiyion_ is now known as aiyion
danitool has joined #openwrt-devel
rmilecki has joined #openwrt-devel
srslypascal has quit [Quit: Leaving]
znull_ has quit [Ping timeout: 480 seconds]
srslypascal has joined #openwrt-devel
srslypascal has quit [Remote host closed the connection]
srslypascal has joined #openwrt-devel
robimarko has joined #openwrt-devel
torv has quit [Remote host closed the connection]
torv has joined #openwrt-devel
<russell--> i have a ramips/mt7628an board (out of tree) that i'm rebasing to recent openwrt (was working circa late april 2022). my first test build from the rebase is not formatting or mounting the jffs2 overlay. does that sound familiar at all or any suggestions where to look?
<russell--> i can manually format/mount it with mount -t jffs2 /dev/mtdblock6 /mnt and subsequent boots then mount it
<robimarko> It uses the SquashFS splitter or?
<stintel> ah meh our prebuilt toolchain is for glibc host of course
<russell--> yeah, disabling all my packages and it works, that narrows it down to some bitrot/self-inflicted wound
<russell--> i should be able to figure it out from here
<KGB-1> https://tests.reproducible-builds.org/openwrt/openwrt_sunxi.html has been updated. (0% images and 99.5% packages reproducible in our current test framework.)
<owrt-snap-builds> Build [#819](https://buildbot.openwrt.org/master/images/#builders/1/builds/819) of `ath79/generic` completed successfully.
Lynx- has joined #openwrt-devel
svanheule_ has joined #openwrt-devel
svanheule has quit [Ping timeout: 480 seconds]
bluew has quit [Remote host closed the connection]
bluew has joined #openwrt-devel
Tapper has quit [Ping timeout: 480 seconds]
MaxSoniX has joined #openwrt-devel
Lynx- has quit [Ping timeout: 480 seconds]
goliath has joined #openwrt-devel
Piraty has quit [Remote host closed the connection]
guidosarducci has quit [Remote host closed the connection]
guidosarducci has joined #openwrt-devel
Lynx- has joined #openwrt-devel
Piraty has joined #openwrt-devel
<pepes> There are missing up to date Releases on GitHub ( = https://github.com/openwrt/openwrt/releases ), but tags are there.
<hgl> when using the sdk to build a package, how to skip building target specific packages? i have commented out CONFIG_ALL_NONSHARED in .config, but when running make with no arguments, target packages still get built.
<hgl> jow, btw, would you be available to merge this? https://github.com/openwrt/openwrt/pull/11076
<nick[m]12> can we send it upstream again?
<stintel> nick[m]12: looks like CI for olsrd PR said OK ;)
Znullptr has joined #openwrt-devel
<nick[m]12> stintel: thanks for the reminder! sorry :)
<stintel> nick[m]12: yw and np ;)
<stintel> wondering if I should continue my attempts to make Kconfiglib work with OpenWrt buildroot ... if I can make it work properly it could even be used in CI to detect things like that
Lynx- has quit [Remote host closed the connection]
<nick[m]12> stintel: would be nice to have that tool and to be more modular :)
minimal has joined #openwrt-devel
<stintel> I was looking into it to use maybe in a django webservice where I can define profiles for all the different devices I own / images I build, and then have my CI speak to that webservice to know what it should build
<stintel> maybe a bit far-fetched
<KGB-0> 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.)
<johnf> hmm, here's an interesting one
<johnf> I'm installing packages onto an old openwrt system using opkg install and local files in /tmp
<johnf> and I've got a package that's being removed
<johnf> iptables-mod-ipsec was autoinstalled and is now orphaned, removing.
<johnf> I've tried setting the flag on this package to hold but it doesn't prevent the removal
<johnf> and I can't find anything meaningful on how to prevent this removal from occuring
goliath has quit [Quit: SIGSEGV]
<johnf> stintel: hey, do you have any ideas on this?
<johnf> also should I be in #openwrt with this question? Building these packages was very much -devel
<stintel> johnf: sorry, no idea, I don't know much about opkg
<stintel> probably best to upgrade to 22.03 if you can
Tapper has joined #openwrt-devel
<johnf> that definitely would be the best approach overall
<johnf> but this is a kind of complicated in field upgrade of a large number of legacy devices
<stintel> ah that sucks
<johnf> it's cool
<johnf> I'm working my way through it
<stintel> best of luck!
<johnf> this isn't the first roadblock and it won't be the last
<johnf> ;);
<johnf> err, that should be ;)
<johnf> thanks for trying to help
<stintel> maybe someone else will have an idea
clayface has quit [Remote host closed the connection]
clayface has joined #openwrt-devel
<johnf> I was able to get past the problem by reshipping and re-installing the package
<johnf> kind of annoying, there are plenty of options like --autoremove and --force-removal-of-dependent-packages
<johnf> but nothing I can see to prevent it
<johnf> this is an ancient lede version of opkg as well
<johnf> opkg - 2017-07-28-4bd8601e-1
<johnf> so maybe there's something more obvious in a more recent version
Lynx- has joined #openwrt-devel
shibboleth has joined #openwrt-devel
<aiyion> Sungbo is currently not reading here, is he?
_znullptr has joined #openwrt-devel
Znullptr has quit [Read error: Connection reset by peer]
znull_ has joined #openwrt-devel
_znullptr has quit [Read error: Connection reset by peer]
_znullptr has joined #openwrt-devel
znull_ has quit [Read error: Connection reset by peer]
znull_ has joined #openwrt-devel
_znullptr has quit [Read error: Connection reset by peer]
Lynx- has quit [Quit: Going offline, see ya! (www.adiirc.com)]
_znullptr has joined #openwrt-devel
znull_ has quit [Remote host closed the connection]
znull_ has joined #openwrt-devel
_znullptr has quit [Read error: Connection reset by peer]
Misanthropos has quit [Read error: Connection reset by peer]
Misanthropos has joined #openwrt-devel
srslypascal has quit [Quit: Leaving]
_znullptr has joined #openwrt-devel
znull_ has quit [Remote host closed the connection]
<KGB-1> https://tests.reproducible-builds.org/openwrt/openwrt_lantiq.html has been updated. (96.2% images and 99.6% packages reproducible in our current test framework.)
srslypascal has joined #openwrt-devel
_znullptr has quit [Read error: Connection reset by peer]
znull_ has joined #openwrt-devel
cbeznea has quit [Quit: Leaving.]
Lynx- has joined #openwrt-devel
goliath has joined #openwrt-devel
shibboleth has quit [Quit: shibboleth]
_znullptr has joined #openwrt-devel
znull_ has quit [Read error: Connection reset by peer]
MaxSoniX has quit [Quit: Konversation terminated!]
cbeznea has joined #openwrt-devel
goliath has quit [Quit: SIGSEGV]
_znullptr has quit [Read error: Connection reset by peer]
_znullptr has joined #openwrt-devel
znull_ has joined #openwrt-devel
_znullptr has quit [Read error: Connection reset by peer]
minimal has quit [Quit: Leaving]
cbeznea has quit [Quit: Leaving.]
goliath has joined #openwrt-devel
<nick[m]12> does anynone know what to use instead of "devm_gpio_free"?
_znullptr has joined #openwrt-devel
znull_ has quit [Read error: Connection reset by peer]
znull_ has joined #openwrt-devel
_znullptr has quit [Read error: Connection reset by peer]
mirko has quit [Quit: leaving]
Lynx- has quit [Quit: Going offline, see ya! (www.adiirc.com)]
_znullptr has joined #openwrt-devel
znull_ has quit [Read error: Connection reset by peer]
Borromini has joined #openwrt-devel
goliath has quit [Quit: SIGSEGV]
_znullptr has quit [Read error: Connection reset by peer]
_znullptr has joined #openwrt-devel
<robimarko> nick[m]12: You can just use the non device managed version gpio_free() for that
<aiyion> finally -.-' blocktrron: thanks for telling s2 about kernel relocation. Got OpenWrt booting on the Wavlink router
<blocktrron> aiyion: huh?
znull_ has joined #openwrt-devel
_znullptr has quit [Read error: Connection reset by peer]
<aiyion> quite a while ago. we were in a mumble call; after we were done with gluon stuff you talked him through lzma unpacking errors and how to circumvent them.
<aiyion> now he told me.
<robimarko> nick[m]12: Yeah, I think they got rid of the device managed one as there isnt really a point in it
<robimarko> Since on error or device being removed it will get freed
<nick[m]12> robimarko: thanks
Borromini has quit [Quit: Lost terminal]
_znullptr has joined #openwrt-devel
znull_ has quit [Remote host closed the connection]
robimarko has quit [Quit: Leaving]
<nick[m]12> Trying to write a uint32 to uint16? Isn't that wrong?
<nick[m]12> and out of bounds
_znullptr has quit [Read error: Connection reset by peer]
_znullptr has joined #openwrt-devel
<nick[m]12> I would just cast
<Habbie> it writes uint16 to uint32, and i believe the cast/conversion is implicit
<nick[m]12> Habbie: sorry, wrong link
<Habbie> oh no
<Habbie> the cast (truncate) might still be implicit, but i'm not 100% sure
aiyion_ has joined #openwrt-devel
<nick[m]12> argh no, sorry forget it
indy has quit [Ping timeout: 480 seconds]
goliath has joined #openwrt-devel
aiyion has quit [Ping timeout: 480 seconds]
<nick[m]12> Habbie: but do you see on the first link, why gcc complains about out of bounds?
<Habbie> rtk_uint16 smiSvlanSP2C[RTL8367C_SVLAN_SP2C_LEN]; is rtk_uint16 smiSvlanSP2C[2];
<Habbie> then there's for(i = 0; i < 2; i++)
<Habbie> first round, it reads smiSvlanSP2C[1]
<Habbie> second round, it wants to read smiSvlanSP2C[2] and gcc notices this
<nick[m]12> ah the pointer is incremented before they access the value xD
<Habbie> yes
<jow> random side note: I was once bitten by naming an internal variable `index`
<jow> eventually I removed it's declaration atc. but left a conditional referncing it in place
<jow> code continued working fine and I wtf'ed an hour or so
<jow> until I understood that `index` now referred to `index()` from <string.h>
<jow> which was always true (non-zero pointer address)
<jow> probably not relevant for kernel code though
<Habbie> ouch
<jow> this loop in rtl8367c_setAsicSvlanSP2CConf() looks weird
<jow> like a convoluted way to read both members of an uint16_t array as uint32_t each
<KGB-1> https://tests.reproducible-builds.org/openwrt/openwrt_bcm47xx.html has been updated. (100.0% images and 99.6% packages reproducible in our current test framework.)
<jow> basically this or do I misunderstand the purpose? https://pastebin.com/CAj6hrzv
<jow> also smiSvlanSP2C could be declared as `rtk_uint16 smiSvlanSP2C[RTL8367C_SVLAN_SP2C_LEN] = { 0 };` making the explicit memset unnecessary
<jow> also `rtl8367c_setAsicReg()` seems to be declared as `extern ret_t rtl8367c_setAsicReg(rtk_uint32 reg, rtk_uint32 value);`
<jow> so the explicit typecase is not even needed
<jow> *typecast
<jow> the compiler should take care of converting the `value` parameter to uint32_t implicitly
<jow> I could be totally wrong, but imho the entire function can be simplified into this: https://pastebin.com/eaiPfdPW
csrf has joined #openwrt-devel
znull_ has joined #openwrt-devel
_znullptr has quit [Read error: Connection reset by peer]
Tapper has quit [Quit: Tapper]
_lore_ has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
_lore_ has joined #openwrt-devel
_lore_ has quit []
_lore_ has joined #openwrt-devel
_lore_ has quit []
_znullptr has joined #openwrt-devel
znull_ has quit [Read error: Connection reset by peer]
_lore_ has joined #openwrt-devel
znull_ has joined #openwrt-devel
_znullptr has quit [Read error: Connection reset by peer]
_lore_ has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
_lore_ has joined #openwrt-devel