Skip to content

Instantly share code, notes, and snippets.

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/ibbm3329sir6cmq99nkirszicdrx13fq-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
add_subdirectory(${VALHALLA_SOURCE_DIR}/third_party/pybind11 ${CMAKE_BINARY_DIR}/third_party/pybind11)
pybind11_add_module(python_valhalla python.cc)
target_link_libraries(python_valhalla PUBLIC valhalla)
❯ nix-build -A plan-nix
unpacking 'https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz'...
trace: WARNING: 8.10.2 is out of date, consider using 8.10.4.
unpacking 'https://github.com/input-output-hk/hackage.nix/archive/7b688871604371947dc851a3e0227a52b0af2444.tar.gz'...
warning: dumping very large path (> 256 MiB); this may run out of memory
trace: No index state specified for haskell-nix-project, using the latest index state that we know about (2021-02-18T00:00:00Z)!
trace: WARNING: 8.10.2 is out of date, consider using 8.10.4.
trace: WARNING: 8.8.2 is out of date, consider using 8.8.4.
trace: Checking materialization in /nix/store/bpcws5l5cvkqja43na50ky3akms0nqng-source/materialized/bootstrap/ghc882/happy-1.19.11
trace: WARNING: 8.8.2 is out of date, consider using 8.8.4.
U-Boot SPL 2020.10-rc3 (Jan 01 1980 - 00:00:00 +0000)
DRAM: 3072 MiB
Trying to boot from MMC1
NOTICE: BL31: v2.3():
NOTICE: BL31: Built : 00:00:00, Jan 1 1980
NOTICE: BL31: Detected Allwinner A64/H64/R18 SoC (1689)
NOTICE: BL31: Found U-Boot DTB at 0x408a6f8, model: Pine64 PinePhone (1.2)
NOTICE: PSCI: System suspend is unavailable
> fdtoverlay -o out.dtb -i /nix/store/lggx7m375irlkwdzh34d3fwyqrwx0jj0-linux-5.6.11/dtbs/allwinner/sun50i-h5-orangepi-zero-plus2.dtb /nix/store/0ggd8in1h38wsb5rrfrjs8bavjxpis9x-sun50i-h5-dt-overlays-0.0/allwinner/sun50i-h5-spi-spidev.dtbo
Failed to apply '/nix/store/0ggd8in1h38wsb5rrfrjs8bavjxpis9x-sun50i-h5-dt-overlays-0.0/allwinner/sun50i-h5-spi-spidev.dtbo': FDT_ERR_NOTFOUND
> fdtdump /nix/store/lggx7m375irlkwdzh34d3fwyqrwx0jj0-linux-5.6.11/dtbs/allwinner/sun50i-h5-orangepi-zero-plus2.dtb
**** fdtdump is a low-level debugging tool, not meant for general use.
**** If you want to decompile a dtb, you probably want
**** dtc -I dtb -O dts <filename>
/dts-v1/;
{ config, pkgs, ... }:
{
networking.macvlans.mv-wlan0-host = {
interface = "wlan0";
mode = "bridge";
};
networking.interfaces.wlan0.ipv4.addresses = pkgs.lib.mkForce [];
networking.interfaces.mv-wlan0 = {
ipv4.addresses = [ { address = "192.168.1.1"; prefixLength = 24; } ];
};
@Thra11
Thra11 / uboot
Created November 19, 2019 17:41
U-Boot TPL 2020.01-rc2 (Jan 01 1970 - 00:00:01)
Trying to boot from BOOTROM
Returning to boot ROM...
port is : /dev/ttyUSB0
flowcontrol : none
baudrate is : 1500000
parity is : none
databits are : 8
stopbits are : 1
escape is : C-a
local echo is : no
noinit is : no
noreset is : no
{
"/nix/store/829d0pxr550ijfzh6v0kccw86qf4jp66-linux-5.3.0-rc4-modules.drv": {
"outputs": {
"out": {
"path": "/nix/store/zs7fc0k0wpp798am5hxgd8znziiz0igp-linux-5.3.0-rc4-modules"
}
},
"inputSrcs": [
"/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh"
],
[ 21.603427] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[ 21.612495] usbcore: registered new interface driver brcmfmac
[ 21.647318] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.xunlong,orangepi-zero-plus2.txt failed with error -2
Script started on 2019-08-03 18:36:30+01:00 [TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="130" LINES="36"]
% ]2;thrall@nixos: ~]1;~]2;thrall@nixos: ~]1;~ [thrall@nixos ~ ]% [?1h=[?2004hpicocom /dev/ttyUSB0 -b 115200picocom /dev/ttyUSB0 -b 115200[?1l>[?2004l
]2;picocom /dev/ttyUSB0 -b 115200]1;picocom]2;picocom /dev/ttyUSB0 -b 115200]1;picocompicocom v3.1
port is : /dev/ttyUSB0
flowcontrol : none
baudrate is : 115200
parity is : none
databits are : 8
stopbits are : 1