ChanServ changed the topic of #armlinux to: ARM kernel talk [Upstream kernel, find your vendor forums for questions about their kernels] | https://libera.irclog.whitequark.org/armlinux
Pali has quit [Ping timeout: 256 seconds]
apritzel has quit [Ping timeout: 256 seconds]
Tokamak has quit [Read error: Connection reset by peer]
Tokamak has joined #armlinux
amitk has joined #armlinux
mag_ has joined #armlinux
mag has quit [Ping timeout: 256 seconds]
scosu has quit [Quit: No Ping reply in 180 seconds.]
scosu has joined #armlinux
Tokamak has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mag has joined #armlinux
lag_ has joined #armlinux
tchebb_ has joined #armlinux
ajb-lina- has joined #armlinux
vireshk- has joined #armlinux
mag_ has quit [*.net *.split]
amitk has quit [*.net *.split]
suzukikp has quit [*.net *.split]
mraynal has quit [*.net *.split]
milkylainen_ has quit [*.net *.split]
pg12_ has quit [*.net *.split]
krzk has quit [*.net *.split]
gpiccoli has quit [*.net *.split]
abelvesa has quit [*.net *.split]
tchebb has quit [*.net *.split]
lag has quit [*.net *.split]
ajb-linaro has quit [*.net *.split]
vireshk has quit [*.net *.split]
sibis has quit [*.net *.split]
Norkle has quit [*.net *.split]
lag_ is now known as lag
amitk has joined #armlinux
krzk has joined #armlinux
pg12_ has joined #armlinux
Norkle has joined #armlinux
milkylainen_ has joined #armlinux
suzukikp1 has joined #armlinux
gpiccoli_ has joined #armlinux
sibis has joined #armlinux
abelvesa has joined #armlinux
gpiccoli_ has joined #armlinux
gpiccoli_ has quit [Changing host]
krzk is now known as Guest1226
mraynal has joined #armlinux
iivanov has quit [Quit: Leaving...]
<geertu>
ukleinek: no, about mtd
iivanov has joined #armlinux
guillaume_g has joined #armlinux
apritzel has joined #armlinux
<mraynal>
ukleinek: yes it was related to another patch (I took the time to send various "fixes" and cleanups yesterday), I don't like #ifdefs but Geert is right that I'm adding a lot of text for a debug feature which should be dropped if CONFIG_DEBUG_FS=n
apritzel has quit [Ping timeout: 250 seconds]
djrscally has joined #armlinux
<Xogium>
where are the dt bindings to setup a spinand flash ? I have searched everywhere but didn't see them
<Xogium>
yep poor me having to work with a spinand from gigadevice
<Xogium>
also do I really need to set the partitions for it inside the device tree ?
<Xogium>
first time I actually have to work with nand…
<Xogium>
jn: erk, thanks. For some reason I was searching under spi not mtd…
sszy has joined #armlinux
<jn>
i guess the same partitioning options as for other MTD devices are available: command line parameters and devicetree, primarily
<Xogium>
hmm seems easy enough… Except I don't know what I'm meant to put in reg property. The documentation on this board is beyond nonexistent, and what little there is of it I cannot even trust, as it comes from a totally disgusting u-boot fork
<Xogium>
and a broken buildroot :p
matthias_bgg has joined #armlinux
<jn>
Documentation/devicetree/bindings/mtd/partitions/partition.yaml says about reg: partition's offset and size within the flash
<jn>
but that's the partition node's reg. there are other things that need a reg property too
<jn>
did you mean something else?
<mraynal>
Xogium: the reg property of the device itself is the SPI CS
<Xogium>
that is, I followed the vendor's wiki to the letter, and realized that their firmware they give for demo is completely broken. Oh sure I can upload their u-boot to ram, but it is no use if said u-boot doesn't even know the spinand chip. My guess is they changed the chip and simply did not recompile u-boot to add said chip
<jn>
i'm curious, which SoC is this?
<Xogium>
f1c200s. Mangopi r3 board
<jn>
ah, allwinner's newest ARM926 :)
<Xogium>
yeah
<Xogium>
not 3 days I've got it and I already want to die
<Xogium>
dfrobot is also one of the worse vendors I've ever delt with
<jn>
the F1C100 has (some) mainline support, but it's also incomplete
<Xogium>
I tried to explain that for my friend under windows, their flasher doesn't even work, because it doesn't recognize the ch341 uart bridge
<jn>
(and the F1C200 doesn't)
<Xogium>
they… simply responded with a screenshot of their software detecting a cp2104
<jn>
what a pain
<Xogium>
... dude, you changed the cp2104 for a ch341 on r3
<Xogium>
jn: what's missing for mainline on f1c100s ? I didn't find a summary of that
<Xogium>
but if it can at least make things better… the f1c200s is the big brother of 100s. Only difference is 64 MB of ram
<jn>
i just looked in the devicetree, and i don't see an SPI controller
<jn>
i haven't compared it against the F1C100 datasheet to see what *should* be there
<Xogium>
gah what a bloody mess
<Xogium>
I mean I want to use mainline
<Xogium>
it isn't exactly like I've got a choice given they completely broke their own forks of stuff, and of course don't bother maintaining it, typical chinese vendor behavior I reckon
<jn>
there's almost nothing in the mainline DT for F1C100: just CPUs, clocks, timers, UARTs
<Xogium>
good lord
<jn>
errr, CPU, singular.
<Xogium>
not even i2c ?
* Xogium
head desks
<jn>
nope
<jn>
very incomplete yet
<Xogium>
that's on 5.17 I assume
<jn>
one commit: ARM: dts: suniv: add initial DTSI file for F1C100s
<Xogium>
man it's not even yet 10 am, and I already got a headache
<jn>
and that was it. yes, on 5.17-rc1
<jn>
it's an interesting situation, IF you don't have to resolve it within a deadline
<Xogium>
gah… I guess I don't have any other option than make the kernel fork work…
<Xogium>
I was due to have something working today x.x
<Xogium>
but hey it's not like I can pull miracles
<Xogium>
their buildroot tree + external tree is awefull
<Xogium>
they give you a nice sdcard.img you can flash, yay ! Only to discover that… they've hardcoded the kernel command line in the device tree, with root=/dev/mtdblock2
<Xogium>
I frankly felt like actually banging my head on the desk. I always thought this was a figure of speech… until I had the urge for real
<jn>
it's healthier to throw the board against the wall or something :)
<Xogium>
hehe
<Xogium>
yeah
<Xogium>
what an idea… who in the world set the command line in the dts ?
<Xogium>
I even had to patch their u-boot because it's so old I run into the issue of multiple yylock definition thingy with gcc >= 10
<geertu>
Xogium: The boot loader is supposed to update/set the properties under /chosen
<Xogium>
geertu: I uh… guess it didn't
<Xogium>
must be the case only if you have bootargs defined in there, yes ?
<geertu>
Xogium: probably
<geertu>
It also doesn't work with very old U-Boot.
<geertu>
Or if you use uImage/zImage with appended DTB
<Xogium>
hmm
<Xogium>
I'll have to analyze what they've done here
<Xogium>
still it is kinda the first time I see the kernel command line defined in a dts
<Xogium>
it didn't cross my mind you could even do that :p
alexels has joined #armlinux
Pali has joined #armlinux
<Xogium>
geertu: ... they've hardcoded the command line directly in the chosen node
<geertu>
Xogium: yes, to be overridden by the boot loader
<Xogium>
but… doesn't the bootloader do that even if you don't set the command line there ?
<Xogium>
I mean, I never set the command line in the chosen node in my dts :O
<Xogium>
geertu: I mean, they did this not in u-boot device tree but in linux's
<geertu>
Xogium: I override it in U-Boot's bootargs. Or Linux CONFIG_CMDLINE on older systems which still use appended DTB
<Xogium>
right… just the first time I see this. Very confusing
apritzel has joined #armlinux
Guest1226 is now known as krzk
krzk is now known as Guest1121
sikkileo[m] is now known as sikkileo
Amit_T has joined #armlinux
Guest1121 is now known as krzk
apritzel_ has joined #armlinux
Misotauros has quit [Ping timeout: 250 seconds]
matthias_bgg has quit [Read error: Connection reset by peer]
matthias_bgg has joined #armlinux
matthias_bgg has quit [Quit: Leaving]
prabhakarlad has joined #armlinux
suzukikp1 has quit [Quit: This computer has gone to sleep]
suzukikp has joined #armlinux
XV8 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
XV8 has joined #armlinux
headless has joined #armlinux
sakman has joined #armlinux
guillaume_g has quit [Quit: Konversation terminated!]
XV8 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]