| 24 May 2021 |
samueldr | all u-boots pre-built by Hydra here:
https://hydra.nixos.org/jobset/nixpkgs/trunk/jobs-tab?filter=uboot | 23:27:12 |
samueldr | latest build for zero plus 2 (h5)
https://hydra.nixos.org/job/nixpkgs/trunk/ubootOrangePiZeroPlus2H5.aarch64-linux/latest | 23:27:52 |
samueldr | which isn't getting you a binary | 23:28:05 |
andi- | That page looks odd. Is it missing something or did I just never see that view of hydra? | 23:28:12 |
samueldr | andi-: xhr from this page https://hydra.nixos.org/jobset/nixpkgs/trunk#tabs-jobs | 23:28:26 |
andi- | ahh! | 23:28:34 |
samueldr | there's no way to pre-seed it with a search term | 23:28:34 |
samueldr | but it's probably the one page we should have easily linkable! | 23:28:47 |
novmar | ah, i got answer on other channel ... | 23:28:52 |
samueldr | indeed | 23:29:08 |
samueldr | I was going to say you can nix-store --realise it | 23:29:13 |
samueldr | though there's another option, especially if you want to build it for another board | 23:29:28 |
novmar | i am going to check that for orange pi zero 2 ... | 23:30:24 |
samueldr | $ nix-build -A pkgsCross.aarch64-multiplatform.ubootOrangePiZeroPlus2H5
From a Nixpkgs checkout
| 23:30:30 |
novmar | samueldr: can u do that ? | 23:30:40 |
samueldr | though using the wrong U-Boot on Allwinner might work... it's probably not going to be working right | 23:31:07 |
samueldr | it will basically be telling the system you're using another board, which may have things configured differently | 23:31:26 |
novmar | how hard is to create uboot for nixos for orange pi zero 2 ? | 23:31:44 |
samueldr | with Allwinner designs it's probably not much of an issue for U-Boot, but for Linux it probably will be | 23:31:46 |
samueldr | for an Allwinner board, it looks like this:
https://github.com/NixOS/nixpkgs/blob/7cb8324a9124b0ee38c97d690e90d1ac571d8c69/pkgs/misc/uboot/default.nix#L267-L272 | 23:32:12 |
novmar | http://www.orangepi.org/Orange%20Pi%20Zero2/ | 23:32:14 |
samueldr | you have to know how U-Boot calls it for the defconfig | 23:32:36 |
samueldr | AFAICT it'd be https://source.denx.de/u-boot/u-boot/-/blob/master/configs/orangepi_zero2_defconfig | 23:33:02 |
samueldr | well, orangepi_zero2_defconfig | 23:33:08 |
samueldr | (what a bad attempt at highlighting :)) | 23:33:20 |
samueldr | once added to this file, I can't link to it because GitHub has issues with the size of the file, but you need to add it to pkgs/top-level/all-packages.nix near where all the other U-Boot attributes are present | 23:34:22 |
novmar | ok, at 1. i am not familiar with what u-boot is :-) | 23:34:28 |
samueldr | briefly explained, U-Boot is like a BIOS for many ARM platforms, in addition to knowing how to boot Linux | 23:34:59 |
novmar | ok, but it is store on sd ... | 23:35:17 |
novmar | so like mbr | 23:35:23 |