Wednesday, 2022-01-19

*** tpb <[email protected]> has joined #litex00:00
*** bl0x_ <bl0x_!~bastii@p200300d7a7172200fba0d562efa7c9cd.dip0.t-ipconnect.de> has quit IRC (Ping timeout: 240 seconds)02:22
*** bl0x_ <bl0x_!~bastii@p200300d7a710cc00d7429a35fc1fea6a.dip0.t-ipconnect.de> has joined #litex02:24
*** Degi_ <[email protected]> has joined #litex04:33
*** Degi <[email protected]> has quit IRC (Ping timeout: 256 seconds)04:33
*** Degi_ is now known as Degi04:33
*** FabM <FabM!~FabM@2a03:d604:103:600:87a3:5c19:7dbe:f486> has joined #litex06:47
_florent_bl0x_: Thanks, that's indeed probably a copy&paste leftover that I missed when merging the cmod a7 support, I'll merge your PR08:51
_florent_david-sawatzke[m: Thanks, interesting. I'll havea closer look at what is does. I'm indeed not sure if this could be integrated, but we could definitely have a link to it in the wiki08:53
*** cr1901_ <cr1901_!~cr1901@2601:8d:8600:911:9d70:8f88:7606:6eed> has joined #litex12:40
*** trabucay1e <[email protected]> has joined #litex12:42
*** gatecat_ <[email protected]> has joined #litex12:42
*** Moe_Icenowy <Moe_Icenowy!~MoeIcenow@2604:a880:2:d1::1d1:f001> has joined #litex12:42
*** Xesxen_ <Xesxen_!~cyber@hackalot/deelnemer/xesxen> has joined #litex12:44
*** gruetze_ <gruetze_!~quassel@wireguard/tunneler/gruetzkopf> has joined #litex12:44
*** rektide_ <[email protected]> has joined #litex12:45
*** _whitelogger <[email protected]> has quit IRC (Ping timeout: 240 seconds)12:46
*** rektide <[email protected]> has quit IRC (Ping timeout: 240 seconds)12:46
*** gatecat <[email protected]> has quit IRC (Ping timeout: 240 seconds)12:46
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:51a1:26ce:1709:19d8> has quit IRC (Ping timeout: 240 seconds)12:46
*** gruetzkopf <gruetzkopf!~quassel@wireguard/tunneler/gruetzkopf> has quit IRC (Ping timeout: 240 seconds)12:46
*** Xesxen <Xesxen!~cyber@hackalot/deelnemer/xesxen> has quit IRC (Ping timeout: 240 seconds)12:46
*** MoeIcenowy <[email protected]> has quit IRC (Ping timeout: 240 seconds)12:46
*** nats` <nats`!~nats@2001:41d0:8:c634::1> has quit IRC (Ping timeout: 240 seconds)12:46
*** trabucayre <[email protected]> has quit IRC (Ping timeout: 240 seconds)12:46
*** gatecat_ is now known as gatecat12:46
*** _whitelogger <[email protected]> has joined #litex12:46
*** nats` <nats`!~nats@2001:41d0:8:c634::1> has joined #litex12:46
*** rektide_ <[email protected]> has quit IRC (Ping timeout: 256 seconds)12:50
*** rektide <[email protected]> has joined #litex12:51
*** linear_cannon <[email protected]> has quit IRC (Ping timeout: 256 seconds)12:53
*** linear_cannon <[email protected]> has joined #litex12:54
*** gruetze_ is now known as gruetzkopf13:00
*** trabucay1e is now known as trabucayre13:03
*** cr1901_ is now known as cr190113:48
PeanutWhen trying to build the literoot for linux-on-litex-vexriscv, I always end up with "Incorrect selection of kernel headers: expected 5.16.x, got 5.14.x" - which is doubly puzzling, because the BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION points to a 5.13 kernel, according to the git commit stamp.15:21
PeanutUgh, s/literoot/buildroot/15:21
PeanutSee https://github.com/litex-hub/linux-on-litex-vexriscv/commit/ff565452b32ffd356f7fea755c0aeb8b8932359315:27
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:9d70:8f88:7606:6eed> has quit IRC (Ping timeout: 240 seconds)15:41
*** Moe_Icenowy is now known as MoeIcenowy15:41
_florent_Peanut: This need to be updated, could you send a PR if you have the updated sha1?15:52
Peanut_florent_: I'm not quite at the level that I understand how to fix this. I -think- that the sha1 points to a particular commit on the litex-rebase branch of the kernel. However, if I try e.g. the current commit, it fails to build the kernel due to an error in drivers/fpga/litex-fpga.c15:54
PeanutIn line 168, devm_fpga_mgr_create() is not known when building.15:56
_florent_Peanut: ok, I'll need to rebuild the kernel and update. I'll look at this in the next days15:57
PeanutThanks15:57
PeanutShould I open an issue?15:57
geertuPeanut: Commit 4ba0b2c294fe6919 ("fpga: mgr: Use standard dev_release for class driver") didn't update drivers/fpga/litex-fpga.c (it's not upstream), and somlo forgot to update it when rebasing?16:43
geertusomlo: ^16:43
geertuPeanut: I always build my Linux images from a separate Linux source tree (i.e. linux-on-litex-vexriscv/images/Image is a symlink to /path/to/linux-riscv-orangecrab/arch/riscv/boot/Image)16:45
*** cr1901 <cr1901!~cr1901@2601:8d:8600:911:c11c:2a92:dcdc:271a> has joined #litex16:52
Peanutgeertu: thanks for that. I can see in the commit that you found that devm_fpga_mgr_create() gets removed/renamed, so that matches the error I'm seeing.17:08
*** Xesxen_ is now known as Xesxen17:25
somlogeertu: was it ever (thus, should it be) in https://github.com/litex-hub/linux/tree/litex-rebase ? If not, should we add it to the list of things "curated" as part of that tree?17:30
somlo(I don't think I "lost" anything during rebase, so my guess is it was never part of the stuff I'm keeping track of -- but I might be wrong, happens fairly regularly :)17:31
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has quit IRC (Quit: Connection reset by peep)17:38
*** peepsalot <peepsalot!~peepsalot@openscad/peepsalot> has joined #litex17:40
*** truc is now known as bjonnh18:47
*** indy <[email protected]> has quit IRC (Quit: ZNC 1.8.2 - https://znc.in)18:59
trabucayre_florent_: you need to add BR2_KERNEL_HEADERS_5_14=y manually in defconfig to avoid header version mismatch19:01
trabucayreif default match your kernel version BR2_KERNEL_HEADERS_X_Y is not set in defconfig ...19:02
Peanuttrabucayre: I hadn't found that header yet, let me try that right away.19:03
trabucayrehttps://git.buildroot.net/buildroot/tree/package/linux-headers/Config.in.host19:07
tpbTitle: Config.in.host « linux-headers « package - buildroot - Buildroot: Making Embedded Linux easy (at git.buildroot.net)19:07
Peanuttrabucayre: That particular version doesn't exist in the file you linked?19:15
trabucayreuse BR2_KERNEL_HEADERS_VERSION and set BR2_DEFAULT_KERNEL_VERSION with something like 5.14.019:22
trabucayreor BR2_KERNEL_HEADERS_AS_KERNEL=y19:30
PeanutThat last option seems the most convenient, testing that first..19:33
*** FabM <FabM!~FabM@armadeus/team/FabM> has quit IRC (Ping timeout: 268 seconds)20:07
*** zjason`` <zjason``[email protected]> has joined #litex20:24
*** zjason` <zjason`[email protected]> has quit IRC (Ping timeout: 240 seconds)20:25
trabucayreyep20:29
PeanutTook a while, but with BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="53b46d10f9a438a29c061cac05fb250568d1d21b" and BR2_KERNEL_HEADERS_AS_KERNEL=y, it still results in "Incorrect selection of kernel headers: expected 5.16.x, got 5.14.x"20:44
geertusomlo: You have to make a similar change to drivers/fpga/litex-fpga.c20:52
trabucayrePeanut: you have to do 'make clean && make'21:02
trabucayrewhen you change something in toolchain you have to do a full rebuild21:02
somlogeertu: similar to what? also, I drivers/fpga/litex-fpga.c (driver for ICAPBitstream fpga manager) isn't something I actually use with Rocket, so while I'm happy to apply patches on top of it in the "curated" tree, I am not set up to test them myself21:02
PeanutYes, of course I did. I did 'make clean', 'make BR2_EXTERNAL=' and then 'make'.21:02
somlothis is a vexriscv 32-bit thing I don't deal with directly on my end21:03
somlo"patches welcome" and all that happy stuff :)21:03
trabucayreyou have modified your defconfig or your current config? If defconfig you have to do 'make xxx_defconfig' again21:03
PeanutI made the change in linux-on-litex-rexriscv/buildroot/configs/litex_vexriscv_defconfig, then in buildroot did 'make clean', 'make BR2_EXTERNAL=../linux-on-litex-vexriscv/buildroot litex_vexriscv_defconfig', then 'make'.21:05
trabucayrelooks good21:06
trabucayreyou have BR2_DEFAULT_KERNEL_VERSION="5.14.0" or something like this?21:08
PeanutNo, I don't. (I did a test with it earlier, but it's properly commented out).21:08
somlogeertu: if I change something in https://github.com/litex-hub/linux/tree/litex-rebase I would prefer to either 1. build it and test it myself (I can only do that easily on rocket), or 2. to have it come as a pre-tested patch from someone I trust (e.g., you :) ), in case it's specific to vexriscv or mor1k or whatever21:08
trabucayresorry: BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_1421:09
PeanutNo, I'm basically using this file: https://github.com/litex-hub/linux-on-litex-vexriscv/blob/master/buildroot/configs/litex_vexriscv_defconfig21:10
PeanutSo that's got a KERNEL_CUSTOM_REPO_URL and a KERNEL_CUSTOM_REPO_VERSION in there, and then a KERNEL_CUSTOM_CONFIG_FILE fragment.21:10
trabucayreyou have to thing: 1/ kernel version, config and fragment21:11
trabucayre2/ toolchain21:11
trabucayreafter make xxx_defconfig the simpliest way is to use make menuconfig21:12
trabucayreToolchain -> Kernel Headers (Same as kernel being built)21:12
trabucayreToolchain -> Custom kernel headers series (5.14.x)21:12
PeanutIt currently says 'Custom kernel headers series (5.16.x or later)', let me change that.21:14
trabucayreyep21:20
PeanutThe build completed, testing it now.21:22
trabucayreyou have to add these two options to the defconfig to fix this issue21:24
PeanutThanks, that worked, I have a 5.14.0 kernel now which includes the I2C device that I added to the ButterStick board config.21:29
*** Degi <[email protected]> has quit IRC (Ping timeout: 240 seconds)23:21
*** Degi <[email protected]> has joined #litex23:23
*** Degi <[email protected]> has quit IRC (Ping timeout: 256 seconds)23:34

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!