<qschulz>
khem: i cannot use systemd-repart, the USB stick needs to be ready and full size of the 16GB without running on the target nor on any Linux system (manufacturing floor are very often running Windows still...)
goliath has joined #yocto
<mcfrisk>
systemd-repart is handy when building generic images and then real target devices have different size mmc/sdcards. I've used repart from initrd (systemd based) to create a TPM backed encrypted rootfs (/usr read-only dmverity). trying to publish an example to meta-security/meta-tpm...
vthor has quit [Read error: Connection reset by peer]
vthor has joined #yocto
vthor has quit [Changing host]
vthor has joined #yocto
<qschulz>
tlwoerner: though this is a code dump repo and you only get stuff published once we merge stuff in our local git repos, so you don't see "development" in the open sadly
alessio has quit [Quit: alessio]
alessio has joined #yocto
jero_ has joined #yocto
jero has quit [Ping timeout: 276 seconds]
goliath has quit [Quit: SIGSEGV]
dvergatal has joined #yocto
jpuhlman has joined #yocto
jpuhlman- has quit [Read error: Connection reset by peer]
rber|res has quit [Quit: Leaving]
chrissi^|lxa has quit [Read error: Connection reset by peer]
chrissi^|lxa has joined #yocto
jpuhlman has quit [Ping timeout: 276 seconds]
jpuhlman has joined #yocto
alessio has quit [Quit: alessio]
alessio has joined #yocto
Kubu_work has quit [Remote host closed the connection]
Kubu_work has joined #yocto
Kubu_work has quit [Quit: Leaving.]
Kubu_work has joined #yocto
cyxae has joined #yocto
zeemate has quit [Ping timeout: 248 seconds]
Kubu_work has quit [Quit: Leaving.]
<vmeson>
berton: I don't recall anyone objecting to the change but there are lots of patches. If you re-send the patch to get the ball rolling again I'll let you know on Monday after a patch review meeting.
<tlwoerner>
berton: sorry for not getting back to you on that one, i think i said i would respond
<tlwoerner>
berton: the question i had was: we already have half a dozen (a dozen?) variables throughout the code that influence the size of an image, do we really need yet another?
<tlwoerner>
berton: i can't help wonder if maybe the variable you need already exists? or maybe one of the existing ones isn't working correctly?
<tlwoerner>
berton: for example we already have IMAGE_ROOTFS_SIZE, your patch wants to add IMAGE_ROOTFS_EXACT_SIZE, that already seems confusing
<sunkist>
Using `bitbake' to build some non-openembedded recipes has been eye-opening.
<sunkist>
For instance, I see that bitabake provides fetching capability. But patching came from oe-core.
<sunkist>
With oe-core, no `devtool' either!
<sunkist>
This exercise has certainly boosted my understanding of the yocto architecture
zenstoic has joined #yocto
MarcWeDLM has quit [Quit: Client closed]
b1gchicken has quit [Remote host closed the connection]
b1gchicken has joined #yocto
bhstalel has joined #yocto
florian__ has quit [Ping timeout: 244 seconds]
jmd has joined #yocto
<jmd>
When I try to set BB_NO_NETWORK I get an error: "bb.parse.ParseError: ParseError at /work/build/conf/local.conf:35: unparsed line: 'BB_NO_NETWORK'" is BB_NO_NETWORK no longer supported?
<jmd>
Oh it needs ""
b1gchicken has quit [Remote host closed the connection]
olani- has quit [Remote host closed the connection]
<berton>
@tlwoerner The existing variables do not work, because the problem occurs when creating a small filesystem, say 20MB, with 1KB block size, and the content in the rootfs is 16MB. The way Yocto creates the image using the du command, the final rootfs will always be larger than 20MB. Maybe IMAGE_ROOTFS_EXACT_SIZE is not a good name, but setting IMAGE_ROOTFS_SIZE to 20MB and the final image being 24MB is also confusing and not obvious. We
<berton>
can add IMAGE_ROOTFS_MAXSIZE, but in the case I described, the rootfs will always be larger than 20MB.
<berton>
I could not find a way to solve this problem, and the solutions suggested above do not fit my case. I remember that it was proposed to use genimage, but I only need an ext4 file and I need to migrate all projects to use genimage.
<tlwoerner>
qschulz: thanks for the layer! i'm always interested in gathering the layers people are using
<tlwoerner>
qschulz: i finally have my rockchip things building again (they were broken because of the gcs thing) so *now* i can take a look at your latest patches :-)
<qschulz>
tlwoerner: yay!
<qschulz>
tlwoerner: meta-cherry-es/meta-bsp should not have anything weird or odd or breaking other boards/layers in it
goliath has joined #yocto
<qschulz>
meta-extended, I'm more relaxed about it, it's essentially just to build some demo image tailored to our products, no one sane would use that as a base for their products (i hope!)
<berton>
@tlwoerner Yes, it seems related. The problem is that it depends on the ext4 options enabled. Some options like block size can be changed based on the size of the rootfs and can also be modified using EXTRA_IMAGECMD. I don't know how to check all the options without creating the rootfs and using tools to check what options the .ext4 file is using. And there are other filesystems. I'll try to find another way to solve this issue.
<tlwoerner>
berton: your patch clearly highlights a real problem with the code, i would like to take the time to try to fix this issue
<tlwoerner>
berton: and it might be, at the end of the day, that your patch is the fix
<tlwoerner>
berton: but i would like to come to that conclusion after looking at the code, rather than starting with adding a new variable :-)
<berton>
@tlwoerner Ok, that makes sense. What I don't know is what corner cases should be addressed, whether it's just the block size or if there are other options that could impact the rootfs size calculation.
<tlwoerner>
understood
<tlwoerner>
thanks for raising the issue
<tlwoerner>
and it *sounds* like the only real way to know is to first create it, then measure it