*** tpb <[email protected]> has joined #litex | 00: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 #litex | 02:24 | |
*** Degi_ <[email protected]> has joined #litex | 04:33 | |
*** Degi <[email protected]> has quit IRC (Ping timeout: 256 seconds) | 04:33 | |
*** Degi_ is now known as Degi | 04:33 | |
*** FabM <FabM!~FabM@2a03:d604:103:600:87a3:5c19:7dbe:f486> has joined #litex | 06: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 PR | 08: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 wiki | 08:53 |
*** cr1901_ <cr1901_!~cr1901@2601:8d:8600:911:9d70:8f88:7606:6eed> has joined #litex | 12:40 | |
*** trabucay1e <[email protected]> has joined #litex | 12:42 | |
*** gatecat_ <[email protected]> has joined #litex | 12:42 | |
*** Moe_Icenowy <Moe_Icenowy!~MoeIcenow@2604:a880:2:d1::1d1:f001> has joined #litex | 12:42 | |
*** Xesxen_ <Xesxen_!~cyber@hackalot/deelnemer/xesxen> has joined #litex | 12:44 | |
*** gruetze_ <gruetze_!~quassel@wireguard/tunneler/gruetzkopf> has joined #litex | 12:44 | |
*** rektide_ <[email protected]> has joined #litex | 12: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 gatecat | 12:46 | |
*** _whitelogger <[email protected]> has joined #litex | 12:46 | |
*** nats` <nats`!~nats@2001:41d0:8:c634::1> has joined #litex | 12:46 | |
*** rektide_ <[email protected]> has quit IRC (Ping timeout: 256 seconds) | 12:50 | |
*** rektide <[email protected]> has joined #litex | 12:51 | |
*** linear_cannon <[email protected]> has quit IRC (Ping timeout: 256 seconds) | 12:53 | |
*** linear_cannon <[email protected]> has joined #litex | 12:54 | |
*** gruetze_ is now known as gruetzkopf | 13:00 | |
*** trabucay1e is now known as trabucayre | 13:03 | |
*** cr1901_ is now known as cr1901 | 13:48 | |
Peanut | When 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 |
Peanut | Ugh, s/literoot/buildroot/ | 15:21 |
Peanut | See https://github.com/litex-hub/linux-on-litex-vexriscv/commit/ff565452b32ffd356f7fea755c0aeb8b89323593 | 15: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 MoeIcenowy | 15: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.c | 15:54 |
Peanut | In 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 days | 15:57 |
Peanut | Thanks | 15:57 |
Peanut | Should I open an issue? | 15:57 |
geertu | Peanut: 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 |
geertu | somlo: ^ | 16:43 |
geertu | Peanut: 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 #litex | 16:52 | |
Peanut | geertu: 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 Xesxen | 17:25 | |
somlo | geertu: 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 #litex | 17:40 | |
*** truc is now known as bjonnh | 18: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 mismatch | 19:01 |
trabucayre | if default match your kernel version BR2_KERNEL_HEADERS_X_Y is not set in defconfig ... | 19:02 |
Peanut | trabucayre: I hadn't found that header yet, let me try that right away. | 19:03 |
trabucayre | https://git.buildroot.net/buildroot/tree/package/linux-headers/Config.in.host | 19:07 |
tpb | Title: Config.in.host « linux-headers « package - buildroot - Buildroot: Making Embedded Linux easy (at git.buildroot.net) | 19:07 |
Peanut | trabucayre: That particular version doesn't exist in the file you linked? | 19:15 |
trabucayre | use BR2_KERNEL_HEADERS_VERSION and set BR2_DEFAULT_KERNEL_VERSION with something like 5.14.0 | 19:22 |
trabucayre | or BR2_KERNEL_HEADERS_AS_KERNEL=y | 19:30 |
Peanut | That 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 #litex | 20:24 | |
*** zjason` <zjason`[email protected]> has quit IRC (Ping timeout: 240 seconds) | 20:25 | |
trabucayre | yep | 20:29 |
Peanut | Took 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 |
geertu | somlo: You have to make a similar change to drivers/fpga/litex-fpga.c | 20:52 |
trabucayre | Peanut: you have to do 'make clean && make' | 21:02 |
trabucayre | when you change something in toolchain you have to do a full rebuild | 21:02 |
somlo | geertu: 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 myself | 21:02 |
Peanut | Yes, of course I did. I did 'make clean', 'make BR2_EXTERNAL=' and then 'make'. | 21:02 |
somlo | this is a vexriscv 32-bit thing I don't deal with directly on my end | 21:03 |
somlo | "patches welcome" and all that happy stuff :) | 21:03 |
trabucayre | you have modified your defconfig or your current config? If defconfig you have to do 'make xxx_defconfig' again | 21:03 |
Peanut | I 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 |
trabucayre | looks good | 21:06 |
trabucayre | you have BR2_DEFAULT_KERNEL_VERSION="5.14.0" or something like this? | 21:08 |
Peanut | No, I don't. (I did a test with it earlier, but it's properly commented out). | 21:08 |
somlo | geertu: 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 whatever | 21:08 |
trabucayre | sorry: BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_14 | 21:09 |
Peanut | No, I'm basically using this file: https://github.com/litex-hub/linux-on-litex-vexriscv/blob/master/buildroot/configs/litex_vexriscv_defconfig | 21:10 |
Peanut | So 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 |
trabucayre | you have to thing: 1/ kernel version, config and fragment | 21:11 |
trabucayre | 2/ toolchain | 21:11 |
trabucayre | after make xxx_defconfig the simpliest way is to use make menuconfig | 21:12 |
trabucayre | Toolchain -> Kernel Headers (Same as kernel being built) | 21:12 |
trabucayre | Toolchain -> Custom kernel headers series (5.14.x) | 21:12 |
Peanut | It currently says 'Custom kernel headers series (5.16.x or later)', let me change that. | 21:14 |
trabucayre | yep | 21:20 |
Peanut | The build completed, testing it now. | 21:22 |
trabucayre | you have to add these two options to the defconfig to fix this issue | 21:24 |
Peanut | Thanks, 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 #litex | 23: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/!