| 24 May 2021 |
samueldr | on x86_64 it's kind of expected as cross-compilation is not necessarily all pre-built | 23:44:51 |
ratsclub | I'm currently running a x86_64 host, is this setup the only possible way of building my image? I'm afraid I can't run an aarch64 image on Github Actions | 23:46:02 |
novmar | samueldr: ok, i am fetching mnixpkgs ... | 23:47:23 |
samueldr | oh, interesting, the orange pi zero2 apparently has an SPI Flash | 23:50:26 |
samueldr | (I wasn't familiar with it) | 23:50:36 |
novmar | samueldr: yea it has :-) | 23:51:01 |
samueldr | so in theory U-Boot could be written on there, and then it acts more "like a normal BIOS" | 23:51:04 |
novmar | samueldr: but at first, i have to write it there ... | 23:52:12 |
novmar | and create it | 23:52:20 |
samueldr | yeah :) | 23:52:45 |
novmar | ok, i have last 10 minutes till go to sleep ... | 23:52:58 |
novmar | ok editet all-packages ... | 23:57:50 |
novmar | pkgs/misc/uboot/default.nixnow | 23:58:01 |
novmar | * now edit: pkgs/misc/uboot/default.nixnow | 23:58:09 |
| 25 May 2021 |
novmar | and what else i need to prepare ? | 00:04:11 |
samueldr | with these two files edited, assuming they were edited right, you should be able to nix-build [...] it | 00:04:39 |
novmar | nix-build -A pkgsCross.aarch64-multiplatform.uBootOrangePiZero2
error: attribute 'uBootOrangePiZero2' in selection path 'pkgsCross.aarch64-multiplatform.uBootOrangePiZero2' not found | 00:04:55 |
samueldr | $ nix-build -A pkgsCross.aarch64-multiplatform.ubootOrange[...]
| 00:05:01 |
samueldr | it was added as uBootOrangePiZero2 in all-packages.nix too, right? | 00:05:27 |
novmar | i'll check ... some typo may be :-) | 00:05:40 |
samueldr | and you are running this command at the root of the nixpkgs checkout, right? | 00:06:13 |
novmar | of course not :-) | 00:06:17 |
novmar | yeah right place, | 00:06:26 |
novmar | uBootOrangePiZero2i added orangepi_zero2_defconfig instead of | 00:06:48 |
novmar | * added orangepi_zero2_defconfig instead of uBootOrangePiZero2 | 00:07:02 |
novmar | now it is compiling :-) | 00:08:14 |
novmar | how long can that take on 8 cores some I7 old machine ? | 00:09:27 |
novmar | minutes or hours ? | 00:09:31 |
samueldr | depends on what it has to build | 00:09:56 |
samueldr | if it had to only build U-Boot and everything else was found in caches, maybe 2 minutes | 00:10:10 |