MaxSoniX has quit [Remote host closed the connection]
MaxSoniX has joined #openwrt-devel
<f00b4r0>
interesting. If the device hostname contains "invalid characters"(?) then attempting to use the "Save mtdblock content" Luci feature fails with "Invalid characters in filename"
<f00b4r0>
or at least that's what I guess. I'm a bit puzzled because my hostname only has letters, numbers and - _
<Habbie>
not all definitions of hostname appreciate _
<Habbie>
for example, the one glibc enforces on DNS resolution
<f00b4r0>
sure but the system is perfectly happy with it and I don't see why Luci should suddenly choke on that when it comes to building a filename?
<jow_>
f00b4r0: likely the cgi-io applet disliking some bytes in the requested filename
<jow_>
luci simply concat datestamp with hostname, unsanitized and requests this as content disposition attachment name
<f00b4r0>
hostname is: 20800001-01-Thibaut_France
<f00b4r0>
not sure why that would trigger an error
<jow_>
check the HTTP request made when you click download
<jow_>
see what it sends as filename param
<f00b4r0>
err, why is '-' blacklisted here?
<jow_>
it's whitelisted
<jow_>
underscore is disallowed tho8ugh
<f00b4r0>
oh i'm reading this backwards
<f00b4r0>
yes well then, "why is '_' blacklisted"? :-)
<schmars[m]>
not a valid character in a dns label, i assume
danitool has joined #openwrt-devel
<f00b4r0>
i don't think that's luci's job to decide that though. We're talking about downloading a file here
MAbeeTT has quit [Remote host closed the connection]
<jow_>
it's not LuCI, it's cgi-io
<schmars[m]>
ah sorry, thought we're talking about hostnames
MAbeeTT has joined #openwrt-devel
<f00b4r0>
jow_: ok
<jow_>
I think the missing underscore is an oversight
<jow_>
assumption was that it is covered by isalnum()
<f00b4r0>
always happy to trigger corner cases bugs ;-)
<dwfreed>
do note that as Habbie says, underscore really isn't valid in hostnames, regardless of whether some environments allow it or not :)
<f00b4r0>
sure, but that's a battle for another tool :)
<dwfreed>
(and Habbie knows a thing or two about hostnames)
<f00b4r0>
ack
Tapper has joined #openwrt-devel
<Habbie>
but no more than two. nobody really knows the one true definition of hostname :D
<f00b4r0>
;)
dgcampea has quit [Remote host closed the connection]
dgcampea has joined #openwrt-devel
djfe_ has joined #openwrt-devel
djfe has quit [Ping timeout: 480 seconds]
MaxSoniX has quit [Read error: Network is unreachable]
MaxSoniX has joined #openwrt-devel
maciekb has quit [Ping timeout: 480 seconds]
hadis has joined #openwrt-devel
<hadis>
PaulFertser: I'm back! And with a question about that DEVICE_TYPE option no less! I can't figure out how to set that option for my device only. I can't just add it to target/linux/ramips/Makefile since that would affect all raimps devices but it's also not clear to me where and how to create a Makefile for just my device
<PaulFertser>
hadis: I'm not sure but have you tried adding it in a section inside image.mk?
<PaulFertser>
hadis: and you'd probably need to experiment with empty .config every time, as in certain cases the included packages list is kept despite changes to the target makefiles.
<hadis>
PaulFertser: Ah! Something automagically added my device to target/linux/ramips/image/mt76x8.mk I think I can also add the device type in my device's section
<PaulFertser>
hadis: not image.mk, image/Makefile section for your device
<PaulFertser>
hadis: yes, mt76x8.mk in this case
<hadis>
great
<PaulFertser>
Not sure but it might work as expected
<hadis>
We will see, I'm compiling
<hadis>
Working on this is really exciting!
hadis has quit [Remote host closed the connection]
maciekb has joined #openwrt-devel
<hgl>
jow_: does ucode has functions that manipulates ip addresses? like returning the nth address from a cidr?
MaxSoniX has quit [Read error: No route to host]
MaxSoniX has joined #openwrt-devel
MaxSoniX has quit [Remote host closed the connection]
MaxSoniX has joined #openwrt-devel
dgcampea is now known as Guest936
dgcampea has joined #openwrt-devel
hadis has joined #openwrt-devel
dgcampea has quit [Remote host closed the connection]
Guest936 has quit [Ping timeout: 480 seconds]
dgcampea has joined #openwrt-devel
<hadis>
PaulFertser: I seem to be a bit stuck on all fronts. I can't figure out how to set up a framebuffer device for the ili9341, I'm getting `[ 14.760980] ads7846: probe of spi0.2 failed with error -22` for the touchscreen and setting `DEVICE_TYPE:=basic` in mt76x8.mk doesn't seem to do anything.
<PaulFertser>
hadis: did you remove .config prior to trying? You do not really need to flash to check what packages were added as =y to .config .
<hadis>
For the display I did find 'kmod-fb-tft-ili9486' and 'PACKAGE_kmod-fb-tft' but I'm not sure how to enable either
<PaulFertser>
hadis: re framebuffer, I'd like to see full dmesg and full dts you're using with it.
<hadis>
I did delete the .config and only set the platform and device with `make`
<hadis>
I've been trying to find the right documentation on these things but it's really hard.
<PaulFertser>
hadis: net/bridge is probably from the kernel? Just check .config after you select your device from scratch. Also I'd remove tmp/ beforehand just in case.
<PaulFertser>
hadis: don't worry about DEVICE_TYPE yet, since for this board it's apparently ok to define it as lan and dhcp in 02_network.
<PaulFertser>
hadis: not sure how to add kmod-fb-tft-ili9486 to the build or how to make it work?
soxrok2212 has quit [Remote host closed the connection]
soxrok2212 has joined #openwrt-devel
<PaulFertser>
hadis: but you need ili9341, not ili9486, right?
<hadis>
Yes I need ili9341 but I can't find a driver for that
<PaulFertser>
hadis: add it to package/kernel/linux/modules/video.mk
<PaulFertser>
hadis: is my answer re touchscreen clear?
rsalvaterra has quit []
<Ansuel>
hauke news for lantiq? if everything goes well i would fork after the WERROR thing is merged
<hadis>
No it's not since I don't yet know what's meant with no IRQ. I will have to research that
rsalvaterra has joined #openwrt-devel
<hadis>
I will define it like you said in 02_network, thanks
<mrkiko>
hadis: well, you're at a pretty good point, looking at the dmesg
<mrkiko>
hadis: so this is a 3D printer?
<hadis>
yes I got through almost all errors tonight
<hadis>
it is a 3d printer!
<PaulFertser>
hadis: means you didn't define irq in the DT for this device.
guidosarducci has quit [Remote host closed the connection]
guidosarducci has joined #openwrt-devel
<mrkiko>
hadis: really nice. Didn't expect to find a mt7828-based device on a 3D printer :D
soxrok2212 has quit [Read error: Connection reset by peer]
schwicht has joined #openwrt-devel
soxrok2212 has joined #openwrt-devel
<hadis>
I found that too just now
<hadis>
that pin is the same for all three spi devices
<hadis>
but only the touchscreen would need interrupts, right
<PaulFertser>
hadis: looks like it if the other drivers work without.
<PaulFertser>
hadis: no idea how they get the driver loading without explicit specification of the irq.
<hadis>
From the documentation: `interrupts = <5 0>, <6 0>;`, It doesn't say but can I assume that the first value is the pin number and the second is GPIO_ACTIVE_LOW / GPIO_ACTIVE_HIGH ?
minimal has joined #openwrt-devel
<hadis>
PaulFertser: Everything about the device is jank. I found 9 DTBs in total on the flash and eMMC
<hadis>
none of them are consistent with the actual hardware or the kernel logs
<PaulFertser>
hadis: yes, irq is common to the spi controller, and should be specified somewhere in there.
<hadis>
Okay, I have added it . Now I will edit 02_network for my device and do a fresh compile
<PaulFertser>
hadis: I see in other upstream dts files interrupts is specified for the touchscreen itself, sorry.
<hadis>
Well since flashforge seem to have put it in the spi section it shouldn't matter, right?
<hadis>
PaulFertser: Also are you sure that I have to explicitly set the lan interface in 02_network? Running `uci set network.lan.proto="dhcp"` is enough
<hadis>
(at runtime)
<PaulFertser>
hadis: 02_network still needs something for your board, take a look at "git log" for it for other examples.
madwoota is now known as Guest943
madwoota has joined #openwrt-devel
Guest943 has quit [Ping timeout: 480 seconds]
<robimarko>
nbd: I have Qnap 301W users reporting that 2.5G is not being advertised due to https://git.openwrt.org/?p=project/netifd.git;a=commit;h=1eb0fafaa9865b729509a7d47ecf1f05c2c0595c
<robimarko>
Honestly, that is rather weird to me
madwoota has quit [Ping timeout: 480 seconds]
schwicht has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cbeznea has quit [Quit: Leaving.]
<hadis>
PaulFertser: I worded my last message poorly. What I meant was if adding `ucidef_set_network_lan_proto "dhcp"` in 02_network is enough
<hadis>
Which I'm going to test right now!
goliath has quit [Quit: SIGSEGV]
hadis has quit [Remote host closed the connection]
Daanct12 has quit [Remote host closed the connection]
Daanct12 has joined #openwrt-devel
Daaanct12 has joined #openwrt-devel
hadis has joined #openwrt-devel
Daanct12 has quit [Ping timeout: 480 seconds]
<hadis>
Of course it wasn't going to be as easy as adding the same interrupt pin as in the stock firmware: `error: hwirq 0x28 is too large for :palmbus@10000000:intc@200`
<hadis>
`[ 1.730000] gpio_pendown is 11, spi->irq is 40 [ 1.740000] ads7846 spi32766.2: touchscreen, irq 40`
<hadis>
this is from the stock firmware
romany047 has quit [Quit: Ping timeout (120 seconds)]
romany047 has joined #openwrt-devel
Daanct12 has joined #openwrt-devel
Daaanct12 has quit [Ping timeout: 480 seconds]
hadis has quit [Remote host closed the connection]
hadis has joined #openwrt-devel
<hauke>
Ansuel: I think we can get lantiq to work again
<hauke>
it should not block the release
<hauke>
Ansuel: I would like to have the build infrastructure ready before branching
<hauke>
I would like to have a rc1 shortly after th branchin
<hauke>
*the
<Ansuel>
with build infra what do you mean ?
<hauke>
build bots for 23.0X
<hauke>
or build master
<Ansuel>
ok. I agree that it's a good idea to produce a RC right after... max 2-3 days. I'm waiting for WERROR CI to finish, then I would merge the PR and then ok to branch
goliath has joined #openwrt-devel
<hadis>
PaulFertser: I think I have both spi devices working without errors now!! They aren't being mentioned in the syslog at all and are present in /sys/class/spi_master/spi0/ !
<hadis>
PaulFertser: Now I just have to figure out how to load the appropriate drivers for them
<hadis>
(also I hope you don't mind me pinging you so much)
Lynx- has joined #openwrt-devel
<hgl>
Ansuel: any thoughts on the refactor PR? still waiting for your green light
<Lynx->
jow_ is there a way to have procd service show up as 'inactive' when a script run by the command exits? At the moment I see 'running' when script exits.
<schmars[m]>
Looking for the procd equivalent of a oneshot service?
Tapper has quit [Remote host closed the connection]
Tapper has joined #openwrt-devel
<PaulFertser>
hadis: I do not mind at all, sure.
<PaulFertser>
hadis: what drivers do you mean? The touchscreen driver is loaded, the flash driver is loaded, and you just need to package the framebuffer driver now?
<hadis>
How do I check what drivers are loaded on embedded hardware?
<hadis>
PaulFertser: I suppose the work has been done for me already with the ili9486 driver. it looks like I can just copy it and change the number! :D
<PaulFertser>
hadis: yes, I showed you video.mk before today :)
<hadis>
I didn't fully understand what you meant until now!
<hadis>
Strange, neither driver is showing up in `make menuconfig`
<hadis>
I've never done anything with embedded hardware, drivers or the kernel so this is all new to me
<hadis>
PaulFertser: The drivers should be in `Kernel Modules ---> Video Support` but the only options I see there are for Video4Linux even though I can find my new ili9341 driver by hitting `/` and searching for it
<hadis>
tmn505: Would that go in `target/linux/ramips/image/mt76x8.mk`?
<tmn505>
yes, to be sure it's picked up remove tmp dir
<tmn505>
sorry, didn't read full path, it should go to 'target/linux/ramips/mt76x8/target.mk'
<hadis>
That did not work and actually: running `git grep 'FEATURES.*display'` already shows`target/linux/ramips/image/mt76x8.mk: FEATURES += display`
<hadis>
oh right I see now
<hadis>
There they are! :D
tidalf_ has joined #openwrt-devel
<hadis>
tmn505: thank you!
<hadis>
Is there anything more to including a driver in the kernel vs as a module than saving ram if the module doesn't have to be loaded?
<Ansuel>
kernel partition limitation
<hadis>
ah that makes sense
tidalf has quit [Ping timeout: 480 seconds]
<oliv3r[m]>
o/
<Lynx->
schmars[m] I use procd service in cake-autorate (bash script) to launch it. But if the bash script errors out, procd service shows up as 'running', which is misleading.
MaxSoniX has quit [Quit: Konversation terminated!]
<nick[m]1234>
* This release makes ASN Template the default with ./configure, the previous ASN parsing can be built with --enable-asn=original
<hadis>
I'll be leaving on vacation tomorrow but when I'm back I'll work on setting everything up properly and I'll attempt to upstream the port
<PaulFertser>
hadis: that sounds like a nice plan. Have a cool vacation trip :)
<hadis>
Thanks!
<PaulFertser>
hadis: tmn505 helped too :)
<hadis>
tmn505: thank you!
<hadis>
There are a couple more people but I don't have logs for this chat sadly
<hadis>
and I have a terrible memory for names
<PaulFertser>
hadis: it's great to see people learning and contributing to free software, was a pleasure to help you.
<hadis>
You've been a great teacher
Borromini has quit [Quit: Lost terminal]
<hadis>
Would this be the first 3D printer with an OpenWRT port? :D
<Habbie>
might be!
<Ansuel>
why i'm reading openwrt and 3d printer ahahahah
<hadis>
Ansuel: don't you like to use your 3d printer as a wifi bridge? :')
<Habbie>
hadis, enjoy your vacation!
<hadis>
thanks guys!
<hadis>
Ansuel: For real though, there's a project that lets you install Klipper (arguably the best 3d printer firmware) on my model of printer but the way they did it is by either desoldering the linux daughter board or by disabling it. Then they hook up a raspberry pi to control the mainboad/printer board... needless to say that's a crude solution and raspberry pis don't come cheap in 2023 (if they come at all that i
<hadis>
the linux board of this printer and then port the Klipper host software onto it.
<hadis>
I have also figured out how both backup the flash and eMMC of this machine as well as flash the new OpenWRT all by simply plugging in a usb strick and restarting the printer
<hadis>
Basically this will reduce the cost of unlocking this proprietary 3d printer to that of a 16gb usb stick as well as make it possible without having to solder a bunch of wires to tiny pads while also being 100% reversible.
cmonroe has quit [Read error: Connection reset by peer]