IRC channel logs
2022-04-13.log
back to list of logs
<fossy>normally, when something won't boot with an older kernel, its often missing device drivers, particularly on laptops <fossy>although sometimes it is't too <stikonas>hmm, something is messed up with qemu mode with my local changes to live-bootstrpa <stikonas>but if I start the same qemu command line manually, it seems to work <fossy>that's odd... is -append console=ttyS0 and -nographic there? <stikonas>I'll probably have to debug it at some point later <stikonas>today still testing bzip2 packages to see if that saves enough space <stikonas>although at some point new tarballs in /sources will become too big... <stikonas>possibly need to move sysc /sources to preformatted disk <stikonas>(and possibly one can replace patch kaem build script with makefile but that's not part of this PR) <fossy>stikonas: yeah, that looks fine <fossy>stikonas: what refactoring have you done since that last PR? <stikonas>fossy: basically just having /sysa and /sysc from repo directly copied into initramfs <stikonas>and no /sources copying into /sysa/pkg-ver/src/ <stikonas>instead each build script grabs required packages from /sources in initramfs and this is all done with kaem scripts or helpers.sh function <stikonas>fossy: I can push my WIP commit if you want to take a look <fossy>stikonas: that would be good <fossy>I have separately done merging /sources but I don't really mind which impl we use, it was not much work at all <stikonas>well, take a look at my implementation while I'm away <stikonas>ok, qemu is still broken even with bzip'ed packages... <fossy>looks alright, but i'm not really a fan of having to put SRCS= for every package <fossy>i was considering extracting ${pkg}.tar* by default and then extra_srcs= for anything extra <stikonas>default ${pkg}.tar* can be added to helpers.sh extract function <stikonas>and that takes care of most of the packages <stikonas>and bziping /usr/src/repo packages can save about 10% <fossy>well, the added space usage is from copying in all tarballs <stikonas>I thought I extract most of them on the spot from /sources <stikonas>and those can be removed once we build coreutils and rm <fossy>won't this copy in the sysc tarballs into sysa as well? <stikonas>if we want to have easy way to run everything without rootfs.py <fossy>neither, cause we need those tarballs for sysc regardless... <fossy>i'll have a look at where we can shave off a bit more space <oriansj>dongcarl: No worries. Internet trolls are just part of internet life. <stikonas>well, for chroot mode that doesn't matter <fossy>where does it fail at the moment <stikonas>but adding more and more tarballs to sysa is not scalable anyway <stikonas>for chroot everything can be in /sources <stikonas>for qemu we create sda disk formatted with ext4 (which we already do) and have /sources filled in with sysc tarballs <fossy>that sounds reasonable, given that we already copy in the sysc scripts <fossy>they could, but if we have to copy sources in, makes sense to copy them in too (as we currently do) <fossy>ultimately, we can network download tarballs, but that is still a way to go (need proper net support) <fossy>gio's way of doing it in asmc is pretty nice, he uses ipxe to get early tarballs, but i think that still relies on having the appropriate kernel opts enabled <stikonas>I think kernel is configured with networking <fossy>i don't remember if i disabled networking or not <stikonas>so I think we are only missing net-tools <fossy>can't curl be built without ssl support? <fossy>at least until we have openssl <stikonas>it can but most of the stuff is not server via https <oriansj>wouldn't downloading allow cheating in the bootstrap? <oriansj>curl $url:/binary_blob -o my_totally_legit_build <stikonas>but so is puting binary blob into /sources <fossy>sure... but you could just inject binaries anyway right now <stikonas>I mean if you want to cheat, why even bother with bootstrapping <stikonas>and this is only an issue with 32-bit kernels <stikonas>(which is the only bootstrap path we support right now) <fossy>ideally we would keep the ram usage under 4G for older coreboot/MEless machines but if that's not possible oh well <fossy>yeah, kernel is unsolved for now <stikonas>well, it's probably possible if we keep tarballs in /sysc <stikonas>so maybe split /sources into /sysa/sources and /sysc/sources <stikonas>then copying /sysc onto qemu hard drive will automatically copy sources <oriansj>well x86-pae would up the limit to 64 GB of RAM but would eliminate anything older than a Pentium Pro from 1995 <stikonas>that might be kernel build option rather than qemu option <stikonas>qemu with kvm will just pass though your host CPU <stikonas>and in most cases that would be a modern CPU <oriansj>and qemu does seem to support the pae cpu extensions if you do: qemu-system-x86_64 -cpu ? <oriansj>and yes the kernel would need to be 64bit or built to support pae <stikonas>4GB limit only means that you can't automate the whole chain in 1 go and need more manual steps <stikonas>it's not really a fundamental blocker for bootsrapping <oriansj>also expecting a kernel to be able to write to disk isn't a bad thing either <oriansj>muurkha: stares at 16TB drive on desk <muurkha>oriansj: that disk is the Loch Ard of storage devices <mid-kid><stikonas> but in any case we don't have many options, it's either backporting hw support to older kernel, switching to different hardware or try to upgrade early toolchain in live-bootstrap <- or have the option to never replace the kernel ;) <mid-kid>I figured the chroot option already kinda does that but eh <oriansj>littlebobeep: completely fair but having the latest and great shouldn't be a requirement to being able to bootstrap. <fossy>never replace the kernel is not going to be a long term option <fossy>appart from deving in chroot mode <littlebobeep>oriansj: lol I don't think you need 100TB to bootstrap I am just saying to pay that much and get sub-SATAIII speeds on AHCI sounds lame you are just paying for the rediculous capacity <stikonas[m]>fossy: i sorted out some qemu problems while on the train <stikonas[m]>Removing almost all stuff from /sources before unpacking linux helps