*** goliath <goliath!~goliath@user/goliath> has quit IRC (Quit: SIGSEGV) | 00:09 | |
*** nucatus <nucatus!~nucatus@lie62-2-78-196-130-58.fbx.proxad.net> has joined #yocto | 00:53 | |
*** camus <camus!~Instantbi@120.198.34.172> has joined #yocto | 00:55 | |
*** nucatus <nucatus!~nucatus@lie62-2-78-196-130-58.fbx.proxad.net> has quit IRC (Ping timeout: 245 seconds) | 00:58 | |
*** camus <camus!~Instantbi@120.198.34.172> has quit IRC (Ping timeout: 245 seconds) | 01:18 | |
*** otavio <otavio!~otavio@201-34-65-230.user3p.brasiltelecom.net.br> has quit IRC (Remote host closed the connection) | 01:22 | |
*** prabhakarlad <prabhakarlad!~prabhakar@pc.renesas.eu> has quit IRC (Quit: Client closed) | 01:24 | |
*** nucatus <nucatus!~nucatus@lie62-2-78-196-130-58.fbx.proxad.net> has joined #yocto | 01:26 | |
*** nucatus <nucatus!~nucatus@lie62-2-78-196-130-58.fbx.proxad.net> has quit IRC (Ping timeout: 265 seconds) | 01:30 | |
*** rber|res <rber|res!~rber|res@ppp-2-86-128-196.home.otenet.gr> has joined #yocto | 01:32 | |
*** RobertBerger <RobertBerger!~rber|res@ppp-2-86-128-196.home.otenet.gr> has quit IRC (Ping timeout: 265 seconds) | 01:34 | |
*** camus <camus!~Instantbi@120.198.34.172> has joined #yocto | 01:54 | |
*** nucatus <nucatus!~nucatus@lie62-2-78-196-130-58.fbx.proxad.net> has joined #yocto | 01:55 | |
*** camus <camus!~Instantbi@120.198.34.172> has quit IRC (Read error: Connection reset by peer) | 01:57 | |
*** camus <camus!~Instantbi@120.198.34.172> has joined #yocto | 01:57 | |
*** nucatus <nucatus!~nucatus@lie62-2-78-196-130-58.fbx.proxad.net> has quit IRC (Ping timeout: 276 seconds) | 02:00 | |
*** camus1 <camus1!~Instantbi@120.198.34.172> has joined #yocto | 02:03 | |
*** camus <camus!~Instantbi@120.198.34.172> has quit IRC (Ping timeout: 258 seconds) | 02:04 | |
*** camus1 is now known as camus | 02:04 | |
*** alex88 <alex88!~alex88@ip72-207-140-105.lv.lv.cox.net> has quit IRC (Read error: Connection reset by peer) | 02:10 | |
*** alex88 <alex88!~alex88@ip72-207-140-105.lv.lv.cox.net> has joined #yocto | 02:11 | |
*** vmeson <vmeson!~rmacleod@198-48-226-187.cpe.pppoe.ca> has quit IRC (Ping timeout: 268 seconds) | 02:24 | |
*** vmeson <vmeson!~rmacleod@198-48-226-187.cpe.pppoe.ca> has joined #yocto | 02:39 | |
*** sakoman <sakoman!~steve@rrcs-66-91-142-162.west.biz.rr.com> has quit IRC (Quit: Leaving.) | 02:44 | |
*** camus1 <camus1!~Instantbi@120.198.34.172> has joined #yocto | 02:52 | |
*** camus <camus!~Instantbi@120.198.34.172> has quit IRC (Ping timeout: 256 seconds) | 02:54 | |
*** camus1 is now known as camus | 02:54 | |
*** nucatus <nucatus!~nucatus@lie62-2-78-196-130-58.fbx.proxad.net> has joined #yocto | 02:57 | |
*** nucatus <nucatus!~nucatus@lie62-2-78-196-130-58.fbx.proxad.net> has quit IRC (Ping timeout: 240 seconds) | 03:02 | |
*** nucatus <nucatus!~nucatus@lie62-2-78-196-130-58.fbx.proxad.net> has joined #yocto | 03:29 | |
*** camus <camus!~Instantbi@120.198.34.172> has quit IRC (Ping timeout: 240 seconds) | 03:35 | |
*** paulg <paulg!~Paul@104-195-159-20.cpe.teksavvy.com> has quit IRC (Ping timeout: 276 seconds) | 03:45 | |
*** camus <camus!~Instantbi@120.198.34.172> has joined #yocto | 04:16 | |
*** camus <camus!~Instantbi@120.198.34.172> has quit IRC (Ping timeout: 258 seconds) | 04:22 | |
alicef | any way to add commands to yocto git command ? something like BB_GIT_CMD = "depth=1" | 04:24 |
---|---|---|
*** nucatus <nucatus!~nucatus@lie62-2-78-196-130-58.fbx.proxad.net> has quit IRC (Remote host closed the connection) | 04:26 | |
*** nucatus <nucatus!~nucatus@lie62-2-78-196-130-58.fbx.proxad.net> has joined #yocto | 04:26 | |
*** bluelightning <bluelightning!~paul@2406:e003:1385:8501:ad77:7a5:e243:41b9> has quit IRC (Ping timeout: 240 seconds) | 04:55 | |
*** camus <camus!~Instantbi@120.198.34.172> has joined #yocto | 05:01 | |
*** roussinm <roussinm!~mroussin@bras-base-qubcpq1306w-grc-21-184-145-222-193.dsl.bell.ca> has quit IRC (Quit: WeeChat 3.3-dev) | 05:11 | |
*** dtometzki <dtometzki!~dtometzki@fedora/dtometzki> has quit IRC (Quit: ZNC 1.8.2 - https://znc.in) | 05:34 | |
*** Tokamak <Tokamak!~Tokamak@107.117.203.17> has quit IRC (Ping timeout: 240 seconds) | 05:40 | |
mihai | yo | 05:42 |
*** mihai <mihai!~mihai@user/mihai> has left #yocto | 05:55 | |
*** mihai <mihai!~mihai@user/mihai> has joined #yocto | 05:56 | |
michaelo[m] | I'm on Matrix and receiving some of these messages in bursts. | 05:59 |
michaelo[m] | The synchronization with libera.chat looks broken | 05:59 |
*** rostam98[m] <rostam98[m]!~rostam98m@2001:470:69fc:105::ca0e> has joined #yocto | 05:59 | |
*** nucatus <nucatus!~nucatus@lie62-2-78-196-130-58.fbx.proxad.net> has quit IRC (Remote host closed the connection) | 06:11 | |
*** xmn <xmn!~xmn@cpe-72-225-198-203.nyc.res.rr.com> has quit IRC (Quit: ZZZzzz…) | 06:17 | |
*** camus <camus!~Instantbi@120.198.34.172> has quit IRC (Ping timeout: 265 seconds) | 06:18 | |
*** camus <camus!~Instantbi@120.198.34.172> has joined #yocto | 06:34 | |
*** mckoan|away is now known as mckoan | 06:38 | |
*** sbach <sbach!~sbach@user/sbach> has quit IRC (Read error: Connection reset by peer) | 06:40 | |
*** sbach <sbach!~sbach@user/sbach> has joined #yocto | 06:40 | |
*** nucatus <nucatus!~nucatus@lie62-2-78-196-130-58.fbx.proxad.net> has joined #yocto | 06:41 | |
mckoan | alicef: see BB_GIT_SHALLOW_DEPTH in bitbake/lib/bb/fetch2/git.py | 06:42 |
*** camus <camus!~Instantbi@120.198.34.172> has quit IRC (Ping timeout: 258 seconds) | 06:42 | |
*** camus <camus!~Instantbi@120.198.34.172> has joined #yocto | 06:49 | |
*** nucatus <nucatus!~nucatus@lie62-2-78-196-130-58.fbx.proxad.net> has quit IRC (Ping timeout: 265 seconds) | 06:57 | |
*** prabhakarlad <prabhakarlad!~prabhakar@pc.renesas.eu> has joined #yocto | 07:10 | |
*** nucatus <nucatus!~nucatus@lie62-2-78-196-130-58.fbx.proxad.net> has joined #yocto | 07:10 | |
*** vd <vd!~vd@bras-base-mtrlpq2848w-grc-41-70-53-240-121.dsl.bell.ca> has quit IRC (Ping timeout: 246 seconds) | 07:20 | |
*** rosa <rosa!~madeleine@p5480f5a7.dip0.t-ipconnect.de> has joined #yocto | 07:27 | |
*** nucatus <nucatus!~nucatus@lie62-2-78-196-130-58.fbx.proxad.net> has quit IRC (Remote host closed the connection) | 07:32 | |
*** nucatus <nucatus!~nucatus@lie62-2-78-196-130-58.fbx.proxad.net> has joined #yocto | 07:41 | |
*** camus1 <camus1!~Instantbi@120.198.34.172> has joined #yocto | 07:56 | |
*** camus <camus!~Instantbi@120.198.34.172> has quit IRC (Ping timeout: 240 seconds) | 07:57 | |
*** camus1 is now known as camus | 07:57 | |
qschulz | override: don't reinvent the wheel and take upgrade mechanisms that already exist (mender, rauc, swupdate, you namne it) | 08:07 |
qschulz | most of them support A/B mechanism I think | 08:07 |
qschulz | which have their own specific way of booting rootfs A or B (kernel A and B too I guess) | 08:07 |
*** florian <florian!~florian@port-217-146-132-69.static.as20676.net> has joined #yocto | 08:08 | |
qschulz | you'll need to implement the U-Boot logic I guess but I sure hope it's appropriately documented :) | 08:08 |
qschulz | michaelo[m]: It's very hard for me to restrain myself from trolling on matrix :) | 08:10 |
michaelo | qschulz: funny, then IRC moderates you :) | 08:12 |
qschulz | michaelo: It was more about trolling on Matrix piece of SW :) | 08:14 |
qschulz | I didn't have a good experience with it but people keep telling me everything works perfectly fine :) | 08:15 |
*** LetoThe2nd <LetoThe2nd!uid453638@id-453638.highgate.irccloud.com> has joined #yocto | 08:18 | |
LetoThe2nd | yo dudX | 08:18 |
wyre | hi guys, I'm trying of flashing an ubifs image in NAND and apparently the flshing process looks good but then kernel doesn't load https://bpa.st/BHOA this is my environment https://bpa.st/SMYA, as you can see I had to create a new bootzcmd_ubi variable because the existent one uses bootm instead bootz | 08:20 |
wyre | I'd say all is correct, but it doesn't boot 😞 | 08:21 |
*** alinucs <alinucs!~abo@215.ip-51-38-235.eu> has joined #yocto | 08:22 | |
qschulz | wyre: why are you TFTP loading the ubifs file? | 08:23 |
wyre | qschulz, well, according the documentation https://www.engicam.com/get_attachment.html/rem/custom/files/114421/ct10000_id101223_t100003/GEAM6ULSW_manual_Yocto_2.0.5.pdf page 10 ... the rootfs can be flashed from the tftp | 08:24 |
wyre | in fact, I've taken the script that does this from the manufacturer repo https://github.com/engicam-stable/meta-engicam-nxp/blob/dunfell-community-bsp/script/u-boot-script/ker_dtb_fs.txt | 08:24 |
qschulz | wyre: ubi0: empty MTD device detected | 08:26 |
wyre | qschulz, so the process is not finishing successfully? | 08:27 |
qschulz | and you didn't give us the bootlog so can't help | 08:27 |
wyre | where can I find the bootlog? | 08:27 |
wyre | oh, you mean this part? https://bpa.st/OX7Q | 08:28 |
wyre | as I've said ... it's stuck in there | 08:28 |
qschulz | and what's the content of this bootzcmd_ubi? this is VERY likely an issue with either the device tree being corrupted or not correctly loaded, or incorrect (or missing) bootargs variable | 08:31 |
qschulz | nothing to do with ubi (yet) | 08:31 |
wyre | qschulz, you can see the contents in the link I pasted with the environment https://bpa.st/SMYA | 08:34 |
wyre | I've basically copied the bootcmd_ubi which is using bootm but replacing this with bootz | 08:34 |
wyre | because the built image is a zImage | 08:35 |
*** goliath <goliath!~goliath@user/goliath> has joined #yocto | 08:35 | |
qschulz | check that you have enough space for the zImage in the area reserved for it in your NAND, same for dtb. Make sure when loading into RAM with nand read that one is not overwritting the other. | 08:38 |
qschulz | But that's probably more a question for #u-boot | 08:39 |
wyre | I see, thank you anyway ... | 08:40 |
jsandman | Hi there, I'm trying to generate an extensible sdk for my image with Yocto 3.1.1. I get this weird error that I don't know how to solve " sqlite3_3.31.1.bb:do_fetch) failed with exit code 'setscene whitelist' " Does this sound faimiliar to someone here? | 08:46 |
LetoThe2nd | jsandman: does this happen with a raw dunfell poky? | 08:54 |
michaelo | wyre: wow, your nand read for the DTB is pessimistic, 1 MB for the DTB, while 100 KB (or even 64 KB) are probably enough! | 08:56 |
jsandman | I have not tried to generate an sdk for that. I shall try that yeah | 08:56 |
michaelo | wyre: did you try to boot your kernel and DTB by loading them to the same addresses through tftp? This could rule out an issue in the way you flashed. | 08:57 |
michaelo | wyre: I also agree with the advice from qschulz | 08:58 |
wyre | michaelo, I've used the script that manufacturer provides in their repository (layer) https://github.com/engicam-stable/meta-engicam-nxp/blob/dunfell-community-bsp/script/u-boot-script/ker_dtb_fs.txt | 08:58 |
LetoThe2nd | jsandman: please do so, yes. to trim down the possible sources. | 08:59 |
michaelo | wyre: Thanks for the details, but I'm proposing to figure out whether the kernel works or not... Try "tftp 0x82000000 zImage; tftp 0x83000000 imx6ull-microgea-microdev.dtb; bootz 0x82000000 - 0x83000000" | 09:04 |
qschulz | michaelo: you probably want the load addresses swapped though | 09:05 |
wyre | michaelo, thank you very much 😁 | 09:05 |
qschulz | DTB is usually very small, so unlikely to overwrite the kernel | 09:05 |
qschulz | while the opposite can be true (especially if you have an initrd in the kernel) | 09:05 |
qschulz | s/can be true/is more likely/ | 09:06 |
*** argonautx <argonautx!~argonautx@i577BC79E.versanet.de> has joined #yocto | 09:06 | |
michaelo | qschulz: from what I understand, the kernel will be decompressed at 0x80008000, so there should be enough space for the uncompressed kernel below 0x82000000. But you're right, swapping the two addresses is generally a good idea, and I should do that more often. In this case, there is enough space as the compressed kernel is 7 MB. | 09:09 |
qschulz | if zImage overlaps on 0x83000000, the dtb will replace some code from the zImage even before the zImage is uncompressed, that's what I meant :) | 09:14 |
michaelo | qschulz: right, I eventually understood :) Thanks for the clarification anyway. | 09:19 |
michaelo | So I agree that's a good idea to copy the DTB below the zImage. | 09:19 |
wyre | michaelo, qschulz so do you recommend me still to try that michaelo suggested? | 09:29 |
michaelo | wyre: given the zImage size, my command would work. But what qschulz proposes is: "tftp 0x83000000 zImage; tftp 0x82000000 imx6ull-microgea-microdev.dtb; bootz 0x83000000 - 0x82000000" | 09:32 |
qschulz | wyre: that, or you can compare the content of the RAM after loading the kernel from NAND with nand read followed by md to what is to be expected (tftp followed by md for example) | 09:32 |
michaelo | Good idea | 09:32 |
wyre | qschulz, how can I see the content of the RAM? | 09:33 |
michaelo | md 0x83000000 after tftp or nand read to the same address | 09:33 |
wyre | michaelo, qschulz https://bpa.st/QUOA | 09:35 |
*** camus <camus!~Instantbi@120.198.34.172> has quit IRC (Ping timeout: 252 seconds) | 09:36 | |
qschulz | wyre: 0x83 in tftp log for the kernel? | 09:38 |
qschulz | otherwise, looks like your zImage is corrupted | 09:38 |
wyre | well, I don't know why is doing this | 09:40 |
wyre | because I'm giving the command what you wrote | 09:41 |
qschulz | retype the whole line, there might be some invisible character that messes up the address, U-Boot command line is extremely finicky | 09:42 |
wyre | lol, now "it worked" | 09:42 |
wyre | I don't know why it was not handling properly the address | 09:42 |
wyre | but now did something https://bpa.st/JRVQ | 09:42 |
wyre | qschulz, sure it was because that | 09:42 |
michaelo | wyre, qschulz: that's the first time I see this. Not the invisible characters in U-Boot in general, but the invisible characters in the addresses. I guess I was just lucky so far. | 09:43 |
wyre | so now it's apparently failing because there is no rootfs, right? | 09:44 |
wyre | because I can see at 708 line VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19 | 09:45 |
qschulz | michaelo: it happens so often to me when using Ctrl+W to (try) to remove the last word. Using Delete and not backspace also messes up the command line. | 09:45 |
qschulz | wyre: looks like it | 09:46 |
qschulz | check that your zImage has support for booting ubifs rootfs | 09:46 |
wyre | qschulz, how can I check that? | 09:46 |
wyre | also I'm not sure the rootfs was properly flashed in nand 🤔 | 09:47 |
qschulz | menuconfig | 09:47 |
wyre | qschulz, in u-boot? | 09:47 |
qschulz | wyre: yeah that's unlikely since ubifsls returned something correct in your earlier logs | 09:47 |
RP | michaelo: The invisible character thing can be a pain. I pasted an expression out of a web page into a commandline and caught one. I couldn't understand why grep was not finding things! | 09:47 |
qschulz | no, you want to check if the *kernel* supports it, so kernel menuconfig | 09:47 |
wyre | qschulz, but in the docker instance where I'm building the image, you mean? | 09:48 |
RP | michaelo: thanks for working on that docs change :) | 09:49 |
RP | qschulz: and thanks for the review, I spent quite a while trying to avoid mistakes and you found a load :) | 09:50 |
wyre | I'm not sure what are you talking about, I mean ... apparently menuconfig is a tool? what I should use to check the zImage? at any host? should I boot the zImage in some particular way? ... | 09:51 |
michaelo | RP: your text was already pretty good. Such "raw" text is perfect for me! | 09:52 |
wyre | also ... the problem was in the addresses in the ker_dtb_fs.scr script? | 09:54 |
wyre | should I replace them with these you gave me? | 09:54 |
wyre | I guess the point aren't those addresses themselves but the ${loadaddr} and ${fdt_addr} variables, right? | 09:55 |
michaelo | wyre: actually reading Bootlin's embedded Linux training materials should be profitable for several of your questions: https://bootlin.com/doc/training/embedded-linux/embedded-linux-slides.pdf | 10:10 |
wyre | oh, thank you very much, michaelo 😁 | 10:11 |
qschulz | RP: it's sometimes useful to be able to catch typos/mistakes easily but it's often a curse, I seem to always see them and be bothered by them 😭 For documentation, that's nice though :) | 10:22 |
*** eduardas <eduardas!~eduardas@93.93.57.5> has joined #yocto | 10:30 | |
*** jwillikers <jwillikers!~jwilliker@2604:2800:2:a403:fe91:ac3e:5153:1290> has joined #yocto | 10:35 | |
*** xmn <xmn!~xmn@cpe-72-225-198-203.nyc.res.rr.com> has joined #yocto | 10:35 | |
michaelo | qschulz: indeed, you have a gift, not a curse! | 10:36 |
michaelo | qschulz: however, do you catch *your own typos* that easily too? | 10:36 |
RP | qschulz: I have to laugh as the end of your last email had a small bit of grammar that made me wince :) | 10:37 |
michaelo | qschulz: I agree though that it can be a curse indeed, especially when you're reading a text or source code, and are too distracted by the spelling or style mistakes that it's hard to focus on the meaning instead. | 10:38 |
qschulz | michaelo: I just feel bad if I don't catch my own typos, so I proof read my texts too many times and rephrase often. Since English is not my native language, I end up making mistakes anyway :D | 10:40 |
qschulz | RP: and now I'm curious :) please enlighten me :) | 10:41 |
RP | qschulz: "the script done by" would usually be written/merged/created/added but not done by | 10:42 |
qschulz | RP: made by was probably what I wanted to go for | 10:43 |
RP | qschulz: Just made me smile in the context of this discussion, there are plenty of native speakers who'd say that. It just isn't technically correct :) | 10:43 |
wyre | are dtb and zImage generated always I build my image? 🤔 | 10:43 |
qschulz | RP: do and make are the same wnch :) | 10:43 |
qschulz | the same word in French* | 10:43 |
wyre | how can I force the zImage and dtb regeneration? | 10:44 |
qschulz | it's a mistake very often ~done~ made by French speaker :/ | 10:44 |
qschulz | ~~done~~? what's the strikethrough magic characters on IRC :p | 10:44 |
RP | qschulz: and your other languages will be way better than mine :) | 10:44 |
LetoThe2nd | qschulz: a lot of non-native speakers have specific common errors they make | 10:45 |
qschulz | RP: I'm always wondering how bad it is for native speakers to have to converse in their own language with people''s second/third/4+ language with so many mistakes, syntactical/grammar issues | 10:46 |
qschulz | I tried to bother my former Irish colleague to at least tell me when something was horrendously wrong but he never did... smh how am I going to learn from my mistakes if I don't see them :) | 10:47 |
qschulz | LetoThe2nd: the usual "juste" typo for french people :D | 10:48 |
RP | qschulz: With English it gets interesting as there are many strong dialects/accents. I live in an area with a particularly strong dialect (geordie) | 10:48 |
qschulz | or I am agree, this one hurts a lot :p | 10:48 |
LetoThe2nd | qschulz: for Germans, its "get" vs. "become" | 10:48 |
*** vmeson <vmeson!~rmacleod@198-48-226-187.cpe.pppoe.ca> has quit IRC (Ping timeout: 252 seconds) | 10:48 | |
qschulz | will? | 10:48 |
LetoThe2nd | qschulz: for slavik language, i have the impression that they often leave out "the" or "a" | 10:49 |
LetoThe2nd | qschulz: nope, german "werden" | 10:49 |
qschulz | LetoThe2nd: yup, I had a Ukrainian colleague who did that a lot | 10:49 |
RP | qschulz: that does mean I'm fairly tolerant. There are words I wouldn't use in conversations with non-locals | 10:49 |
qschulz | RP: BTW, please correct me if you read something that could fuel your nightmares :) | 10:54 |
RP | qschulz: I will, in general I don't see things to be honest. As I said, that one just made me smile given the discussion at the time | 10:55 |
qschulz | RP: I think that's a rule. If you correct someone's grammar, you'll make a mistake yourself while arguing/correcting/explaining :) | 11:00 |
*** vmeson <vmeson!~rmacleod@198-48-226-187.cpe.pppoe.ca> has joined #yocto | 11:02 | |
rber|res | "German has more dialects then C" - should explain it all ;) - Oida | 11:07 |
qschulz | Genau | 11:08 |
LetoThe2nd | OIDA | 11:08 |
qschulz | wyre: it depends. But usually if you don't pass arguments to `make`, yes. Otherwise, you can pass `zImage dtbs` and that'll compile what you need | 11:09 |
wyre | qschulz, but when I use bitbake to build the image I just use `bitbake <image-recipe>` ... | 11:10 |
wyre | I mean, I'm not using make 🤔 | 11:10 |
*** tnovotny <tnovotny!~tnovotny@ip4-83-240-26-162.cust.nbox.cz> has joined #yocto | 11:12 | |
qschulz | wyre: bitbake does. But it's safe to assume that your zImage and dtbs are compiled when needed | 11:12 |
wyre | qschulz, I've removed manually tmp/deploy/images/<machine> folder and run again `bitbake <image>`, but it does not produce again the zImage and the dtb 😞 | 11:14 |
qschulz | because you're not supposed to do that IIRC | 11:17 |
qschulz | remove the whole tmpdir or change nothing in it | 11:17 |
qschulz | (make sure you have sstate-cache and downloads directories somewhere safe :) | 11:17 |
wyre | so I should remove the whole tmp dir? 🤔 | 11:17 |
RP | wyre: bitbake <image> -c clean | 11:22 |
RP | and maybe virtual/kernel too since you messed with that :) | 11:22 |
qschulz | I always forget about clean, I always go for the nuke :p | 11:24 |
LetoThe2nd | nuke++ | 11:33 |
*** vd <vd!~vd@bras-base-mtrlpq2848w-grc-41-70-53-240-121.dsl.bell.ca> has joined #yocto | 11:43 | |
vd | hi all -- I can have a recipe in recipes-core/images/foo.bb and multiple append in recipes-*/images/foo.bbappend, and all will be considered, correct? | 11:45 |
LetoThe2nd | vd: correct. | 11:45 |
vd | I have many _bar overrides in my recipe so I wanted to isolate them, I moved them in recipes-bar/images/foo.bbappend. Just wanted to make sure this is supposed to work. | 11:46 |
wyre | RP, I'd say -c clean doesn't even remove the tmp/deploy/images dirs | 11:46 |
qschulz | vd: bitbake-layers show-appends can tell you if it works ;) | 11:50 |
vd | qschulz great thanks! | 11:51 |
vd | last question, if foo.bb has do_rootfs[depends] += "bar:do_build", do I need to change this line if I'm now building the image from a multiconfig with mc:foo:foo? | 11:51 |
vd | in other words, does "depends" target the current multiconfig (if any) or does it target the default local config (as in mc::foo)? | 11:53 |
wyre | michaelo, and you were right, zImage is 7.5MB large and dtb is just 30KB large 🤔 | 11:54 |
qschulz | vd: I don't know but I think you need mc: only when doing cross-references. So if the recipe in which do_rootfs is and bar recipe are for the same machine, no need I'd say for mc: | 11:54 |
vd | qschulz ok indeed I'd expect it to work as if BB_CURRENT_MC was specified. But I see a bench of image recipes with mc: prefix being built, so I'm kinda worried | 11:57 |
vd | for example both mc:foo:linux-ti-staging and linux-ti-staging are being built. Same for an image recipe. Should I specify do_rootfs[mcdepends] += "${BB_CURRENT_MC}:${BB_CURRENT_MC}:bar:do_build" from now on? | 12:09 |
vd | (unless something like do_rootfs[depends]_foo works with an override fashion) | 12:10 |
RP | wyre: it will remove specific contents, not the dir itself | 12:31 |
*** paulg <paulg!~Paul@104-195-159-20.cpe.teksavvy.com> has joined #yocto | 12:41 | |
*** nucatus <nucatus!~nucatus@lie62-2-78-196-130-58.fbx.proxad.net> has quit IRC () | 12:42 | |
michaelo | wyre: this sounds normal to me | 12:55 |
*** vd91 <vd91!~vd@bras-base-mtrlpq2848w-grc-41-70-53-240-121.dsl.bell.ca> has joined #yocto | 13:07 | |
*** vd <vd!~vd@bras-base-mtrlpq2848w-grc-41-70-53-240-121.dsl.bell.ca> has quit IRC (Ping timeout: 246 seconds) | 13:10 | |
vd91 | every time I rm -rf build/ and rebuild, it looks like linux-ti-staging recompiles from scratch (taking several minutes in do_compile). Is it because it's -git version? Like any other package it should be already built and retrieved from my (external) sstate-cache | 13:12 |
*** vd91 is now known as vd | 13:12 | |
qschulz | vd: maybe bitbake-diffsig will be able to tell you why | 13:14 |
jordemort | getting closer but still haven't cracked building an out-of-tree kernel module yet - here's a censored version of my recipe and the error i'm getting https://gist.github.com/jordemort/f62a65e64513fa9fd1386d1a776aa149 | 13:19 |
jordemort | it builds, but then when i try and build my image i get `nothing provides kernel-5.4.24+gd61efa3e9b18 needed by kernel-module-modname-5.4.24+gd61efa3e9b18-5.9.0.8+37203.20200904+COEX20200103+1717-r0.sercomm_na503s` | 13:19 |
jordemort | it looks like `kernel-abiversion` is changing out from under me? in a previous iteration of this i had all my modules installed under /lib/modules/5.4.24+(some hex string) and this module installed under /lib/modules/5.4.24+(some entirely different hex string) | 13:20 |
jordemort | so i've made progress from there in the sense that the package manager now recognizes there's a problem, at least | 13:21 |
*** yocti` <yocti`!~limnoria@mail.yoctoproject.org> has joined #yocto | 13:25 | |
*** Fanfwe42 <Fanfwe42!~fanfwe@im.goudal.net> has joined #yocto | 13:26 | |
*** ad__ <ad__!~heisenbug@mail.kernel-space.org> has joined #yocto | 13:26 | |
qschulz | jordemort: https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta-skeleton/recipes-kernel/hello-mod should help you get the basics I think | 13:34 |
*** alejandrohs <alejandrohs!~alejandro@cpe-70-112-59-126.austin.res.rr.com> has quit IRC (*.net *.split) | 13:34 | |
*** kmaincent1 <kmaincent1!~kmaincent@shells.bootlin.com> has quit IRC (*.net *.split) | 13:34 | |
*** fray <fray!~fray@kernel.crashing.org> has quit IRC (*.net *.split) | 13:34 | |
*** __ad <__ad!~heisenbug@user/ad/x-9056428> has quit IRC (*.net *.split) | 13:34 | |
*** yocti <yocti!~limnoria@mail.yoctoproject.org> has quit IRC (*.net *.split) | 13:34 | |
*** Fanfwe <Fanfwe!~fanfwe@im.goudal.net> has quit IRC (*.net *.split) | 13:34 | |
qschulz | Look also into the makefile and patch your OoT kernel driver's makefile if need be | 13:34 |
vd | qschulz thanks, will try. | 13:35 |
jordemort | qschulz: i'm pretty sure i've got everything from hello-mod covered | 13:35 |
vd | can do_rootfs[depends] += be written somehow with a _foo override? | 13:35 |
jordemort | it builds the module and builds packages for it, the kernel-abiversion is just mismatched | 13:36 |
jordemort | and i'm not sure why or how that's changing under me | 13:36 |
jordemort | if i completely blow away sstate, then it will all build consistently | 13:37 |
JaMa | RP: perfect, thanks, lets see how many I've missed :) | 13:38 |
* RP sets a data for merging all this to core of Monday | 13:40 | |
JaMa | can we test and merge the bitbake compatibility change to older bitbake branches before that? | 13:42 |
RP | JaMa: it just merged | 13:44 |
*** argonautx <argonautx!~argonautx@i577BC79E.versanet.de> has quit IRC (Quit: Leaving) | 13:45 | |
RP | JaMa: admittedly it does need more testing but hopefully I got it right | 13:45 |
override | is there a class or something I can inherit to work with yarn in recipes ? | 13:46 |
override | kinda like how setuptools etc work with python modules | 13:46 |
*** rosa <rosa!~madeleine@p5480f5a7.dip0.t-ipconnect.de> has quit IRC (Remote host closed the connection) | 13:47 | |
*** goliath <goliath!~goliath@user/goliath> has quit IRC (Quit: SIGSEGV) | 13:47 | |
LetoThe2nd | override: nope, not that i know of. also check the layerindex, but i'm pretty sure there is none. | 13:50 |
JaMa | armpit: feel free to use your version of the convertsion, my WIP wasn't very well tested anyway as we use only smack recipe from main security-layer and BBMASK everything else | 14:00 |
tlwoerner | zeddii: could you recommend a MACHINE/BSP to study as a reference that provides a good example of using the kmeta and friends? | 14:03 |
* RP tweaks the conversion script so you can pass mbox/diffs through it | 14:05 | |
RP | this is such a bad idea but... | 14:05 |
*** vd <vd!~vd@bras-base-mtrlpq2848w-grc-41-70-53-240-121.dsl.bell.ca> has quit IRC (Ping timeout: 246 seconds) | 14:09 | |
LetoThe2nd | we love bad ideas. | 14:13 |
*** sakoman <sakoman!~steve@rrcs-66-91-142-162.west.biz.rr.com> has joined #yocto | 14:14 | |
*** vd <vd!~vd@bras-base-mtrlpq2848w-grc-41-70-53-240-121.dsl.bell.ca> has joined #yocto | 14:14 | |
qschulz | RP: I had thought that VAR_var would mean _var is necessarily an override? | 14:15 |
RP | qschulz: you can have a variable called VAR_var | 14:15 |
vd | If you want to ship tweaks for images, how do you choose between writing a class to inherit from or writing image features? | 14:16 |
RP | I'm not saying it is a good idea, just that it is allowed | 14:16 |
qschulz | RP: yeah, makes it so much harder to understand what is an override and what is not... which will be clarified with the new syntax :) | 14:16 |
RP | qschulz: exactly | 14:16 |
RP | qschulz: I did have to go and look at what that test was doing | 14:17 |
qschulz | I'll probably need to do something similar for the modifications I suggested for the other tests | 14:17 |
qschulz | almost got caught by :some_val: override until I remember x86_64 is a valid override too | 14:17 |
qschulz | what a nightmare | 14:17 |
RP | qschulz: I replied about that, before you go too deep have a look at my other patch. I left the automated fixes and the manual ones as two patches | 14:18 |
RP | qschulz: it is a total nightmare, hence the desire to add this syntax :) | 14:18 |
RP | qschulz: FWIW bitbake-selftest does pass after the changes submitted | 14:19 |
qschulz | Yeah but if the tests are false positives... :p | 14:19 |
RP | qschulz: happy to have a second opinion on that | 14:20 |
qschulz | RP: and all that was needed to trigger this change was to present a talk at YP summit :p | 14:20 |
qschulz | (let me believe please) | 14:20 |
RP | qschulz: definitely :) | 14:20 |
qschulz | RP: at least I've an opportunity to do a v2 :p | 14:21 |
qschulz | not that much is supposed to change | 14:21 |
qschulz | though I'm keeping an eye on this new operator if it's still on the table | 14:21 |
qschulz | (admittedly missed a few mails :) ) | 14:22 |
armpit | JaMa: k | 14:22 |
RP | qschulz: new operator is uncertain at the moment. One step at a time | 14:24 |
* RP is struggling with this change alone | 14:24 | |
vd | what is the proper syntax to override a variable with flag? SOMEVAR[flag]_foo ? | 14:35 |
JaMa | RP: the check is already finding more and more places missed by the script (I've shared some in reply to ML, but after fixing them it finds more and more :)) | 14:36 |
JaMa | e.g. RDEPENDS_${PN}-apply_append_class-target = " ${VIRTUAL-RUNTIME_bash}" | 14:37 |
RP | JaMa: It did find one issue in my OE-core patch too | 14:37 |
RP | JaMa: we might want to remove some of the exclusions in the core script for other layers | 14:37 |
RP | JaMa: I think its too specific to core | 14:37 |
RP | JaMa: a list of the issues you're finding might be helpful so we know which exclusions to consider dropping | 14:38 |
RP | my reasoning is core is basically done and it would be better to be more widely useful | 14:38 |
JaMa | e.g. do_generate_toolchain_file_append_class-native was skipped due to "file_append" in the exceptions | 14:40 |
JaMa | but hard to imagine what were the cases where you needed "file_append" in the exceptions | 14:41 |
RP | JaMa: there are test cases with that name in core but this is why I'm thinking we should drop it | 14:41 |
JaMa | but the same would happen in oe-core if here is do_generate_toolchain_file_append somewhere, right? | 14:42 |
RP | JaMa: yes | 14:43 |
vd | does SOMEVAR[flag]_machine += works? | 14:51 |
vd | RP: does this need a change? https://lists.openembedded.org/g/openembedded-core/topic/84439903?p=Created,,,20,1,0,0::recentpostdate%2Fsticky,,,20,2,0,84439903 | 15:03 |
*** michaelo <michaelo!~mike@shells.bootlin.com> has quit IRC (Remote host closed the connection) | 15:04 | |
*** michaelo <michaelo!~mike@shells.bootlin.com> has joined #yocto | 15:04 | |
qschulz | vd: for the new syntax? | 15:05 |
jordemort | ooh i think i figured it out | 15:12 |
jordemort | i'm using meta-freescale and the linux-imx kernel recipe and there's an fsl-kernel-localversion that seems to be fooling w/ things | 15:12 |
vd | qschulz no for the current syntax | 15:13 |
vd | qschulz is there a new syntax supporting this already? | 15:15 |
qschulz | vd: just been posted to the bitbake-devel ML, that's what we were briefly discussing earlier | 15:16 |
qschulz | hence my question :) | 15:16 |
RP | vd: that one isn't really used as an override so no | 15:16 |
qschulz | RP: I think it was just meant as a ping and unrelated to new override syntax? let's see :) | 15:17 |
RP | qschulz: oh | 15:19 |
RP | but it already merged: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=a58b9a291dc251005a3f2e44766938c3c57bf2ff ? | 15:19 |
vd | qschulz my bad. So I guess the current syntax doesn't support override for do_rootfs[depends] += neither, does it? | 15:22 |
vd | RP: my bad, I'm still not used to patches getting applied without a reply ^^ | 15:23 |
qschulz | vd: try do_rootfs_override[depends] I guess? | 15:24 |
RP | vd: it isn't ideal but replying to them all just isn't feasible and we don't have the right automation in place to do it :( | 15:24 |
qschulz | or do_rootfs_override_append_override[depends] and check with bitbake -e but oof, not sure it's ideal :) | 15:24 |
qschulz | RP: I don't know if patchwork can do this for you? | 15:25 |
RP | qschulz: kind of but even that isn't working | 15:26 |
kergoth | flags aren't propogated when overrides are applied. the flags will stay on the original variable name | 15:26 |
kergoth | also bitbake -e doesn't show flag values | 15:26 |
qschulz | kergoth: something to be added maybe then :) | 15:27 |
vd | RP: do you mean that you didn't write a script for your email client to pipe the message in git-am and reply "Applied, thanks." automatically? ;-D | 15:27 |
kergoth | qschulz: the semantics aren't clear. | 15:27 |
RP | we are not adding overrides to flags | 15:27 |
qschulz | RP: pffff you don't know how to have fun | 15:27 |
kergoth | the behavior would be unintuitive no matter how we implement it | 15:27 |
kergoth | when does a flag value replace vs alter an existing value? | 15:27 |
kergoth | it's a mess, no | 15:27 |
qschulz | I was talking about adding the flag value to bitbake -e :) | 15:27 |
RP | vd: if only it were that simple ;-) | 15:28 |
qschulz | Two topics at once, not easy :p | 15:28 |
RP | adding flags to bitbake-getvar would be the right question | 15:28 |
kergoth | bitbake -e's output is actually coming from a function that's used in a bunch of places | 15:28 |
kergoth | yeah, thats what i was going to suggest too :) | 15:28 |
kergoth | could just make it accept flag syntax. bitbake-getvar 'do_rootfs[depends]' | 15:28 |
vd | what is the proper way to add a dependency to task for an override then? | 15:29 |
kergoth | vd: like i suggested earlier, use an intermediate variable if you need to | 15:29 |
kergoth | FOO = "something"; FOO_override = "something else"; do_foo[bar] += "${FOO}" | 15:29 |
*** tnovotny <tnovotny!~tnovotny@ip4-83-240-26-162.cust.nbox.cz> has quit IRC (Quit: Leaving) | 15:29 | |
kergoth | or whatever | 15:29 |
vd | kergoth sorry I missed your reply | 15:30 |
kergoth | np | 15:30 |
vd | kergoth ho ok that's nice, ${FOO} can safely be empty I presume? | 15:30 |
kergoth | exactly, yes | 15:30 |
vd | kergoth: if foo.bb has FOO = ""; do_foo[bar] += "${FOO}" and foo.bbappend has FOO_override = "something else | 15:38 |
vd | ", will do_foo[bar] contain "something else"? | 15:38 |
kergoth | if override is in OVERRIDES, yeah. doesn't matter if its in a bbappend or not, bbappending is basically concatenation | 15:38 |
*** eduardas <eduardas!~eduardas@93.93.57.5> has quit IRC (Quit: Konversation terminated!) | 15:41 | |
vd | kergoth perfect then. Yes I'm setting OVERRIDES .= ":${BB_CURRENT_MC}" to customize recipes and packages based on the multiconfig they are built for. To isolate changes, I put the overriden variables in .bbappend files. | 15:42 |
RP | vd: Small tip is to do something like OVERRIDES .= ":mc-${BB_CURRENT_MC}" since mc-XXX is much more unique than variable mc names | 15:44 |
kergoth | good point. i wish we'd namespaced our existing overrides to avoid conflicts :) | 15:44 |
RP | kergoth: we have tried to learn from that since! | 15:45 |
RP | (task-, pn-, tune- but not img-, bad RP) | 15:46 |
vd | RP: thank you! | 15:47 |
*** bps <bps!~bps@user/bps> has quit IRC (Ping timeout: 268 seconds) | 15:47 | |
*** mckoan is now known as mckoan|away | 15:47 | |
vd | The variable system of OpenEmbedded is very powerful, but I wish the scopes were somehow explicit and obvious (local > auto > multiconfig > machine > distro > image > package > ...) | 15:48 |
kergoth | that layering is essentially encoded both in variables via overrides and in the configuration data in the order of the inclusion of the config files | 15:49 |
kergoth | not 100% since local.conf *has* to be before machine/distro, but.. | 15:49 |
vd | yeah the tricky part in the OE learning curve is knowing if a given config file can override a variable or not | 15:50 |
vd | But I have absolutely no idea how you could make the scope of a variable obvious... | 15:51 |
*** jmiehe <jmiehe!~Thunderbi@user/jmiehe> has joined #yocto | 15:51 | |
jordemort | is there a way to "disinherit" a class from a .bbappend? | 16:04 |
kergoth | nope | 16:04 |
kergoth | vd: its easier than it used to be now that bitbake -e shows variable history. being able to see exactly what lines in what files set the variable is very helpful | 16:05 |
kergoth | course thats not new anymore, just still seems that way to me :) | 16:05 |
override | trying to understand what a sysroot is | 16:06 |
*** florian <florian!~florian@port-217-146-132-69.static.as20676.net> has quit IRC (Quit: Ex-Chat) | 16:14 | |
*** florian <florian!~florian@dynamic-093-135-141-182.93.135.pool.telefonica.de> has joined #yocto | 17:00 | |
*** florian <florian!~florian@dynamic-093-135-141-182.93.135.pool.telefonica.de> has quit IRC (Ping timeout: 265 seconds) | 17:09 | |
*** florian <florian!~florian@dynamic-093-135-141-182.93.135.pool.telefonica.de> has joined #yocto | 17:17 | |
*** Tokamak <Tokamak!~Tokamak@107.116.12.1> has joined #yocto | 17:40 | |
*** florian <florian!~florian@dynamic-093-135-141-182.93.135.pool.telefonica.de> has quit IRC (Ping timeout: 252 seconds) | 17:40 | |
*** jmiehe <jmiehe!~Thunderbi@user/jmiehe> has quit IRC (Quit: jmiehe) | 17:48 | |
*** otavio <otavio!~otavio@201-34-65-230.user3p.brasiltelecom.net.br> has joined #yocto | 17:55 | |
*** yocti` is now known as yocti | 18:10 | |
*** LetoThe2nd <LetoThe2nd!uid453638@id-453638.highgate.irccloud.com> has quit IRC (Quit: Connection closed for inactivity) | 18:11 | |
*** florian <florian!~florian@dynamic-093-135-141-182.93.135.pool.telefonica.de> has joined #yocto | 18:26 | |
*** florian <florian!~florian@dynamic-093-135-141-182.93.135.pool.telefonica.de> has quit IRC (Ping timeout: 258 seconds) | 18:31 | |
*** Tokamak <Tokamak!~Tokamak@107.116.12.1> has quit IRC (Ping timeout: 258 seconds) | 18:32 | |
vd | funny, _append_override or _override_append works the same, it's a bit confusing | 18:42 |
*** bps <bps!~bps@80.71.142.18.ipv4.parknet.dk> has joined #yocto | 18:53 | |
*** Tokamak <Tokamak!~Tokamak@107.117.203.49> has joined #yocto | 18:55 | |
*** bps <bps!~bps@user/bps> has quit IRC (Remote host closed the connection) | 19:07 | |
*** bps <bps!~bps@80.71.142.18.ipv4.parknet.dk> has joined #yocto | 19:07 | |
vd | is one syntax preferred over the other? | 19:17 |
smurray | RP: that hang does seem very much like something changed in Python 3.8 or 3.9, I'm having no luck reproducing it when I try on Debian 10 with 3.7. Which is maybe useful information, need to dig through their release notes (and rig up a test with 3.8.x) | 19:20 |
vd | how do you choose between writing an image feature vs. writing a class to inherit from? | 19:31 |
*** florian <florian!~florian@dynamic-093-135-141-182.93.135.pool.telefonica.de> has joined #yocto | 19:39 | |
rber|res | vd, why do you think _append_override or _override_append works the same? | 19:40 |
rber|res | vd, check here: https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-metadata.html#examples | 19:44 |
*** sakoman <sakoman!~steve@rrcs-66-91-142-162.west.biz.rr.com> has quit IRC (Quit: Leaving.) | 19:51 | |
JaMa | RP: another case missed by conversion script (not sure how common this one is, there are 4 cases in meta-webos-ports which luckily broke do_install task: install -m 0644 ${S}/files/systemd/${SYSTEMD_SERVICE_${PN}} ${D}${systemd_unitdir}/system/ | 20:05 |
*** ant__ <ant__!~ant@host-87-0-18-72.retail.telecomitalia.it> has joined #yocto | 20:10 | |
vd | rber|res you're right, they aren't the same. I'm even more confused now | 20:20 |
vd | rber|res ok I get it, thank you. | 20:32 |
*** Vonter <Vonter!~Vonter@user/vonter> has quit IRC (Ping timeout: 276 seconds) | 20:35 | |
vd | Can you force a package version from a configuration file? | 20:45 |
rber|res | vd, if you are confused with BitBake you are on the right track ;) shameless self promotion: https://www.youtube.com/watch?v=kzY8-ZVqXk8 | 21:02 |
*** amitk_ <amitk_!~amit@103.208.71.30> has quit IRC (Ping timeout: 250 seconds) | 21:03 | |
*** bps <bps!~bps@user/bps> has quit IRC (Ping timeout: 265 seconds) | 21:03 | |
rber|res | vd, version: look e.g. here: http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta-poky/conf/distro/poky-bleeding.conf | 21:04 |
rber|res | vd, this inlcudes: http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta-poky/conf/distro/include/poky-floating-revisions.inc | 21:04 |
rber|res | vd, which sets many things to AUTOREV -> latest and greatest | 21:04 |
rber|res | vd, e.g. PREFERRED_VERSION would work | 21:05 |
vd | rber|res: perfect! | 21:05 |
rber|res | vd, you had also a question about FEATURE vs. class | 21:06 |
rber|res | vd, in my mind those are different things ;) | 21:06 |
rber|res | vd, there are IMAGE, MACHINE, DISTRO features | 21:06 |
vd | rber|res: unfortunately, I have different builds to do with various combinations of firmware versions. I guess I can simply with a multiconfig file per variant which sets the PREFFERED_VERSION for the firmware packages. | 21:07 |
vd | s/simply with/simply write/ | 21:08 |
rber|res | vd, so you build the same image with different versions of components? | 21:09 |
rber|res | vd, I guess PREFERRED_VERSION would work then. | 21:09 |
rber|res | vd, if you also want to build things differently you could introduce a FEATURE, check in your recipes for this FEATURE and build things accordingly | 21:10 |
vd | rber|res: exactly. unfortunately different customer use different firmware versions, so I must support them all. | 21:10 |
rber|res | vd, hehe yes I have many customers who need stuff like that ;) | 21:11 |
vd | can PREFERRED_VERSION be set at the image recipe level? | 21:11 |
rber|res | vd, Yocto chant number 1 (I think): config data is global, recipe data is local | 21:12 |
rber|res | vd, I guess you want it in a config file and not in your image recipe | 21:12 |
vd | yep, hence the multiconfig per combination is preferred | 21:12 |
vd | rber|res: for feature vs. class, I have a few do_rootfs[depends], a few ROOTFS_POSTPROCESS_COMMAND and other kernel command line tweaks per image, and if I want to factorize that, I'm not just if I must write a bbclass, or image features. | 21:13 |
vd | s/just/sure/ | 21:14 |
rber|res | vd, I see as class as something which you define once and it's used multiple times, like cmake.bbclass | 21:14 |
rber|res | vd, if you inherit this in your recipe, the recipe knows about cmake and does it's steps accordingly | 21:15 |
vd | hum, and since I'm customize rootfs overlays and stuffs like that, I guess these are local image FEATURES, not a sharable functionality across images. | 21:16 |
rber|res | vd, kernel command line tweaks: I would just create a .bbappend e.g. to the boot loader environment | 21:16 |
rber|res | vd, IMAGE_FEATURES can be across all images | 21:17 |
*** goliath <goliath!~goliath@user/goliath> has joined #yocto | 21:17 | |
rber|res | vd, http://docs.yoctoproject.org/singleindex.html#ref-features-image | 21:18 |
vd | well depends how you see it. in fact I might define an overlay.bbclass, which embeds overlay images, and inject an initramfs which mounts them and switch-root to it. | 21:19 |
rber|res | vd, something like this? https://github.com/cmhe/meta-readonly-rootfs-overlay | 21:20 |
vd | rber|res something similar yes | 21:23 |
rber|res | vd, I just grepped for do_rootfs[depends] in all the layers I have lying around here and it's only used in .bbclass files. It looks like mainly to bring in -native tools and some keys | 21:26 |
rber|res | vd, seems to be similar with ROOTFS_POSTPROCESS_COMMAND ;) | 21:27 |
vd | rber|res I see. I use both to embed the initrd and overlays inside the rootfs. | 21:28 |
rber|res | vd, check here: https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/rootfs-postcommands.bbclass | 21:29 |
rber|res | vd, there you see e.g. if IMAGE_FEATURES contains debug-tweaks then do this, otherwise that | 21:29 |
vd | rber|res the naming is confusing, is this class implementing ROOTFS_POSTPROCESS_COMMAND or only relying on it? | 21:33 |
vd | I feel like it's the latter, hence image-features.bbclass would've been more appropriate | 21:33 |
rber|res | vd, it just does ROOTFS_PROCESS_COMMANDS based on image features | 21:34 |
vd | In other words, this class is where you implement new upstream image features? | 21:34 |
RP | smurray: that would match the cases we've see as it is usually buildtools which is 3.9 | 21:34 |
vd | you don't need to declare them somewhere else | 21:34 |
rber|res | vd, nope | 21:34 |
smurray | RP: yeah | 21:35 |
RP | JaMa: I think we only had one case of that in core and the same variable. We could add special handling for it | 21:35 |
rber|res | vd, you define an image feature e.g. in a config and now based on if it's set or not you can do different things in classes and recipes | 21:35 |
*** sakoman <sakoman!~steve@rrcs-66-91-142-162.west.biz.rr.com> has joined #yocto | 21:35 | |
vd | rber|res I see so my custom "features" would be a similar bbclass adding support for new custom values of IMAGE_FEATURES (or another variable), via ROOTFS_POSTPROCESS_COMMAND | 21:36 |
rber|res | vd, your custom features could trigger things in your custom classes or recipes | 21:37 |
vd | in fact this code could simply go into the image recipe, if I only use one recipe for now (which is appended here and there via overrides) | 21:37 |
rber|res | vd, here different kernel config fragments are pulled in based in FEATURES: https://gitlab.com/meta-layers/meta-multi-v7-ml-bsp/-/blob/master/classes/custom-kernel-features.bbclass | 21:39 |
rber|res | vd, your features are not a class | 21:40 |
rber|res | vd, let's say you want to add a custom DISTRO_FEATURE. Then in a config file you can add DISTRO_FEATURES_append = " lumpi" | 21:41 |
rber|res | vd, and now in your recipe or class you could see if someone set lumpi in DISTRO_FEATURES and react on it | 21:41 |
rber|res | vd, this line https://gitlab.com/meta-layers/meta-multi-v7-ml-bsp/-/blob/master/classes/custom-kernel-features.bbclass#L17 says, that if someone added soft-watchdog to DISTRO_FEATURES to add some kernel config (the soft watchdog) | 21:43 |
vd | I see in fact features and class are really orthogonal, features are just a list of keywords that some code (an image recipe or class) can react on | 21:43 |
rber|res | vd, yep | 21:43 |
rber|res | vd, and with BACKFILL you can remove features from a list ;) | 21:43 |
vd | ho, I was using DISTRO_FEATURES_remove = "nfs", is it bad? :D | 21:44 |
rber|res | vd, you could have FEATURES which all your customers want except for one, or which don't work on a special hardware | 21:44 |
rber|res | vd, RP will tell you what is the punishment for this ;) | 21:44 |
* vd is scared now | 21:45 | |
rber|res | vd, http://docs.yoctoproject.org/singleindex.html#feature-backfilling | 21:45 |
RP | rber|res: I'm mainly against using remove in oe-core | 21:45 |
vd | rber|res ho damn, I think you just opened a door in my mind, I might now sleep tonight :D | 21:46 |
rber|res | vd, good - normally this only happends after lots of alc with my brain ;) | 21:46 |
vd | rber|res: so let say my product is highly customizable, same base hardware, but some have solar panel, some have a gps, some have a 3g modem, etc. I should define (distro, machine or image?) features for e.g. "product-solarpanel", "product-gps", "product-3g" and include or exclude packages and config accordingly | 21:48 |
rber|res | vd, idealle you clould see MACHINE as something hardware near | 21:49 |
rber|res | vd, ideally | 21:50 |
rber|res | vd, hardware supports bluetooth is in my mind a MACHINE feature | 21:50 |
rber|res | vd, but in order to use bluetooth you also need a few user space apps and daemons | 21:50 |
rber|res | vd, so this would be a DISTRO feature | 21:51 |
rber|res | vd, normally both need to exist e.g. to turn on things on kernel level and to install/configure apps | 21:51 |
rber|res | vd. but you might now want to use a non standard bluetooth stack and so on | 21:52 |
rber|res | vd, it's pretty flexible | 21:52 |
vd | so I would define a bbclass which looks for "bluetooth" in DISTRO/IMAGE_FEATURES and configure my preferred bluetooth stack? | 21:53 |
rber|res | vd, you can actually grep for this, since this should exist ;) | 21:53 |
ant__ | there is indeed a relation between kernel config and machine features but afaik there is not yet a binding | 21:53 |
vd | well an image could only decide which package to install, not set the preferred provider I presume | 21:53 |
ant__ | zeddii, maybe you did explore that thing | 21:54 |
rber|res | vd, you could define MACHINE features in your machine config | 21:54 |
rber|res | vd, qemu.inc:MACHINE_FEATURES = "alsa bluetooth usbgadget screen vfat" | 21:54 |
rber|res | vd, default-distrovars.inc:DISTRO_FEATURES_DEFAULT ?= "acl alsa argp bluetooth | 21:55 |
vd | is it best to integrate existing features in your layer (e.g. "screen") or is it better to define your own features? | 21:56 |
vd | (e.g. "myproduct-screen") | 21:56 |
ant__ | I'd say use features and split these between sibling machines | 21:58 |
ant__ | i.e {@bb.utils.contains('MACHINE_FEATURES', 'v3d-nxpl', 'file://egl/EGLNativeTypeV3D-nxpl.patch', '', d)} \. | 21:59 |
ant__ | patches can also be related | 21:59 |
*** jwillikers <jwillikers!~jwilliker@2604:2800:2:a403:fe91:ac3e:5153:1290> has quit IRC (Remote host closed the connection) | 22:00 | |
vd | Seems like a very powerful mess :D | 22:00 |
vd | hum, with OVERRIDES = "override"; FOO = "A"; FOO_override += "B", FOO with be "B", not "A B", right? | 22:08 |
vd | I must use FOO_append_override if I want to preserve the initial value of FOO if I'm not mistaken | 22:09 |
RP | vd: correct | 22:10 |
vd | in order to create a minimal overlay image, how can I make sure that an image with IMAGE_INSTALL = "foo" (or PACKAGE_INSTALL = "foo"?) contains *ONLY* FILES_foo? (and same for foo dependencies) | 22:14 |
rber|res | vd, I am a bit confused now. You will have an image recipe which defines what it contains. | 22:16 |
vd | rber|res I tried both IMAGE_INSTALL = "foo" or PACKAGE_INSTALL = "foo", but there are always non-foo files in the image | 22:17 |
*** sakoman <sakoman!~steve@rrcs-66-91-142-162.west.biz.rr.com> has quit IRC (Read error: Connection reset by peer) | 22:17 | |
rber|res | vd, maybe dependencies? | 22:18 |
rber|res | vd, I typically use a core-image-minimal and add stuff to it. | 22:18 |
rber|res | vd, if you want something really minimal, like what's in a container this can be done as well. | 22:20 |
*** sakoman <sakoman!~steve@rrcs-66-91-142-162.west.biz.rr.com> has joined #yocto | 22:20 | |
vd | rber|res it'll come with packagegroup-core-boot stuffs and other files (package database files I guess). What I'm trying to have is a squashfs image of a few packages (let's say "foo" and its dependency "bar") | 22:20 |
vd | maybe using a image recipe is wrong because it's not really a rootfs image, but it's the approach I took since it's the way to select packages and the output squashfs format | 22:21 |
vd | RP: thank you btw, it now explains why my image didn't boot anymore, IMAGE_BOOT_IMAGES_override += "somefile" wasn't what I initally thought ;) | 22:24 |
rber|res | vd, so don't use packagegroup-core-boot ;) | 22:26 |
rber|res | vd, for container stuff I use something like this: https://gitlab.com/meta-layers/meta-container-ex-compact/-/blob/master/recipes-core/images/app-container-image.bb | 22:26 |
vd | rber|res I had to use VOLATILE_LOG_DIR = "no" in my distro to workaround the systemd-nspawn calls ;-) | 22:28 |
rber|res | Can we please punish upstream repo maintainers who remove the master branch and rename it to main ;) a right to compensation for personal suffering, etc. | 22:29 |
rber|res | vd if you have systemd-nspawn you already have your overlays ;) | 22:30 |
vd | rber|res thanks for the input. Although I'm trying to create an overlay image, not a minimal rootfs image. For example it could contains a proprietary application (hence only its /usr/bin/foo and /usr/lib/libfoo.so files) | 22:30 |
rber|res | vd, and you are sure you want to do this yourself manually? | 22:30 |
vd | rber|res say no more, this master -> main renaming makes absolutely no sense, because here "master" isn't use in a master-slave context. "master" is still a valid word. What's next, "Karate Mains"? | 22:32 |
rber|res | vd, and BitBake uses by default "master" - I was searching a few hours now why a recipe did not build and was getting frustrated. | 22:33 |
rber|res | vd, I REALLY did not think that someone renamed the master branch to something else and removed it. | 22:33 |
rber|res | vd, we will have much fun with our recipes if this happens all over the place ;) | 22:34 |
vd | makes no sense. I truly understand the master-slave problem and I'm all for the renaming. With have this vocabulary in kernel networking and it's inappropriate. But in a non master-slave context, renaming master makes no sense... | 22:35 |
vd | rber|res anyway, on boot I'm mounting this proprietary overlay containing only the said application over the base rootfs. Isn't an image recipe suitable for this overlay? | 22:35 |
rber|res | vd, one more hint, which might help. I added a container to a package. So this might help in your case as well. Just write a ?image recipe which adds only what you want and install this package. This might do what you want. | 22:35 |
rber|res | vd, multiconfig - one config (in my case) which builds the container, another config which picks this up, makes a pkg out of it and installs it to the rootfs | 22:36 |
rber|res | vd, I guess a pkg which contains only foo and bar is what you might want. | 22:37 |
vd | rber|res I'm already packaging a container with do_rootfs[depends] += "container:do_build" and installing it in /var/lib/machines with ROOTFS_POSTPROCESS_COMMAND. | 22:38 |
vd | But for the overlay image, yes I only want foo and bar inside of it, as if you created the squashfs manually (e.g. only two files /usr/bin/foo and /usr/lib/bar in it) | 22:38 |
*** paulg <paulg!~Paul@104-195-159-20.cpe.teksavvy.com> has quit IRC (Ping timeout: 258 seconds) | 22:39 | |
rber|res | vd, so you don't bundle it as a package, but just copy it over? | 22:39 |
rber|res | vd, I'm doing something along these lines: https://gitlab.com/meta-layers/meta-tig/-/blob/master/dynamic-layers/virtualization-layer/recipes-core/images/app-container-image-telegraf-prebuilt-oci-arm-v7-mc.bb | 22:44 |
rber|res | vd, do_fetch[mcdepends] = "mc:${NATIVE_MACHINE}:${CONTAINER_MACHINE}-${CONTAINER_DISTRO}:${CONTAINER_IMAGE}:do_image_complete" | 22:44 |
rber|res | Here it's getting 1:45 in the morning ;) So I guess I'll give up for tonight. CU | 22:45 |
vd | rber|res currently I have this overlay.bb image doing IMAGE_FSTYPES = "squashfs"; IMAGE_INSTALL = "foo", and for rootfs.bb I'm doing the do_rootfs[depends]/ROOTFS_POSTPROCESS_COMMAND trick to install it. But I could also define a package to handle the install part. | 22:46 |
rber|res | vd, Yep understood | 22:46 |
vd | my worries is the overlay.squashfs containing *only* the files from the foo package | 22:46 |
* vd will read rber|res's code ;) | 22:46 | |
rber|res | vd, the package manager will pull in runtime dependencies as well ;) | 22:47 |
vd | yes this I don't want in the overlay squashfs :/ | 22:48 |
*** florian <florian!~florian@dynamic-093-135-141-182.93.135.pool.telefonica.de> has quit IRC (Ping timeout: 252 seconds) | 22:49 | |
*** florian <florian!~florian@dynamic-093-135-141-182.93.135.pool.telefonica.de> has joined #yocto | 23:04 | |
*** florian <florian!~florian@dynamic-093-135-141-182.93.135.pool.telefonica.de> has quit IRC (Ping timeout: 272 seconds) | 23:17 | |
*** Tokamak <Tokamak!~Tokamak@107.117.203.49> has quit IRC (Ping timeout: 258 seconds) | 23:58 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!