<aforemny>
Hi, I am following https://mobile.nixos.org/devices/pine64-pinephone.html , flashing mobile-nixos-boot.img to /dev/mmcblk0p1 fails with 'no space left on device'. Indeed that image is 55M big, but /dev/mmcblk0p1 is only 16M big. Am I doing something wrong?
<artturin>
why did you make it only 16M
<aforemny>
artturin: Its the build.disk-image that makes it only 16M. The partition layout comes from that derivation, and I don't know where to change that.
zupo has joined #nixos-aarch64
nicooo has quit [Ping timeout: 268 seconds]
<aforemny>
artturin: I think I found it in modules/system-types/u-boot/default.nix. There, persistPartition is set to 16 MiB. I'll try to increase it.
zupo_ has joined #nixos-aarch64
<artturin>
i didnt use that since my pi was being slow
<artturin>
i created the partitions myself and flashed the boot partition and the bootloader and the generic demo image
<artturin>
i'll check how much space is used in my boot
zupo has quit [Ping timeout: 240 seconds]
<artturin>
84M used out of 122M
<artturin>
68.6%
<aforemny>
Woops, turns out the guide writes to /dev/mmcblk0p1 anyways, which is a 1 MB reserved partition.. I guess I'll change that too.
<aforemny>
artturin: Thanks for checking!
nicooo has joined #nixos-aarch64
<aforemny>
OK, turns out the boot partition is already 128M. It's just that the guide should mention /dev/mmcblk0p3 IMO.
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adamzivcak has joined #nixos-aarch64
adamzivcak1 has joined #nixos-aarch64
adamzivcak has quit [Ping timeout: 260 seconds]
adamzivcak has joined #nixos-aarch64
adamzivcak has left #nixos-aarch64 [#nixos-aarch64]
dev_mohe has joined #nixos-aarch64
adamzivcak1 has quit [Ping timeout: 265 seconds]
dev_mohe has quit [Quit: dev_mohe]
orivej has quit [Quit: orivej]
orivej has joined #nixos-aarch64
cole-h has joined #nixos-aarch64
orivej has quit [Ping timeout: 276 seconds]
orivej has joined #nixos-aarch64
awmv has joined #nixos-aarch64
FRidh has quit [Ping timeout: 276 seconds]
FRidh has joined #nixos-aarch64
apache801 has joined #nixos-aarch64
evils has quit [Ping timeout: 240 seconds]
rajivr has quit [Quit: Connection closed for inactivity]
<samueldr>
aforemny: yes, sorry, it's now p3
<samueldr>
(it once was p1)
<aforemny>
samueldr: No worries! :-) Will you update it or should I open a PR?
<samueldr>
aforemny: if you don't open a PR, I'll update it some day, but a PR definitely is welcome!
<samueldr>
if you're curious about the two partitions, it's to mimic / mirror android-based devices which also have a persist and misc partition
<samueldr>
I wanted to future-proof the default layout of the pinephone image for Mobile NixOS, some parts may use those partition in the future
<samueldr>
mainly, I was thinking that "stage-0", which is not _managed_ by the NixOS system, might need a place to save its settings (which is actually what persist is kind of designed for on Android-based devices)
<samueldr>
and misc is used (on android) to pass messages to the bootloader and recovery; in the same vein I was thinking that at some point a helper could be made to reboot into a specific generation, or force reboot into a specific mode
<aforemny>
Makes sense. :-) I'll open a PR just as a reminder.
<samueldr>
e.g. android based devices already can "reboot recovery", the pinephone cannot
<samueldr>
thank you
<samueldr>
something that I'm thinking about saving in the `persist` partition will be the timezone from the stage-2 system, so the time can be right in stage-1
<samueldr>
(and keep stage-1 builds universal enough that not everyone needs to build them)
<samueldr>
and at worst, they're not going to be used
<samueldr>
32MIB lost in total isn't that much
<aforemny>
I agree. Messing with the partition layout later on is much less desirable than saving a few MiBs
<aforemny>
*than wasting a few MiBs now
<samueldr>
both make sense :)
<gchristensen>
is it possible to run an aarch64 qemu VM where the host does not have KVM?
<gchristensen>
it seems like the host having KVM is a hardcoded requirement
<samueldr>
it should be possible
<gchristensen>
possible given the current nixpkgs*
<samueldr>
but you might need to specify a machine type
<gchristensen>
the context here is I want to build an nixos/release.nix -A amazonImage for aarch64 on an aarch64 builder which doesn't have kvm
<gchristensen>
(the builder is an AWS aarch64 machine, of course)
<samueldr>
I *think* if on your x86_64 computer the QEMU invocation works, it should work too without KVM on aarch64
<samueldr>
I mean, you can run `qemu-system-aarch64` to see if it boots
<gchristensen>
cool, lets' see
<samueldr>
gchristensen: what is the exact error message when it fails without KVM?
<gchristensen>
Could not access KVM kernel module: No such file or directory
<gchristensen>
qemu-system-aarch64: failed to initialize kvm: No such file or directory
<samueldr>
I *believe* it's part of the "machine" description
<samueldr>
-accel=off might do it too
<samueldr>
something like ${ if ! test -e /dev/kvm; then echo '-accel=off'; fi } might help
zupo has joined #nixos-aarch64
zupo has quit [Client Quit]
orivej has quit [Ping timeout: 264 seconds]
<gchristensen>
looks like I need to do a bit of research and answer qemu's questions about the CPU type and the GIC, which I'll research in a few minutes
<gchristensen>
a lot easier when you can just ask qemu to figure it out :P
<samueldr>
yeah, you might want to e.g. start with -M virt too to have a pre-configured machine type
<samueldr>
and _then_ disable kvm on it
dev_mohe has joined #nixos-aarch64
zupo has joined #nixos-aarch64
alpernebbi has quit [Quit: alpernebbi]
<gchristensen>
I should have predicted this: it is so very slow
<samueldr>
yes
dev_mohe has quit [Quit: dev_mohe]
<gchristensen>
I guess I will make a terraform network to get a .metal instance
<gchristensen>
a bit exhausting
<gchristensen>
" Graviton 2 uses the ARMv8.2 architecture, which does not have native support for nested virtualization, which is added in ARMv8.3."
FRidh has quit [Quit: Konversation terminated!]
superherointj_ has joined #nixos-aarch64
superherointj has quit [Remote host closed the connection]
adamzivcak1 has joined #nixos-aarch64
adamzivcak1 has left #nixos-aarch64 [#nixos-aarch64]