Skip to content

Instantly share code, notes, and snippets.

@attie
Last active July 23, 2023 23:34
Show Gist options
  • Save attie/6a02c8727f5d085d877e01191272e497 to your computer and use it in GitHub Desktop.
Save attie/6a02c8727f5d085d877e01191272e497 to your computer and use it in GitHub Desktop.
$ docker run --rm -it --entrypoint '' docker.agsys.io/attie/glasgow:latest bash
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
user@e4bc8c24cd72:~$ glasgow -vv build --rev C1 selftest
D: g.applet.internal.selftest: claimed pipe P
D: g.applet.internal.selftest: adding reset register at address 0x06
D: g.applet.internal.selftest: claimed pipe Q
D: g.applet.internal.selftest: adding reset register at address 0x07
D: g.target.toolchain: using toolchain 'system' (yosys 0.30.48.gb5b0b7e83, nextpnr-ice40 (unavailable), icepack 0)
T: g.target.toolchain: tool 'yosys' is invoked as '/opt/oss-cad-suite/bin/yosys'
T: g.target.toolchain: tool 'nextpnr-ice40' is invoked as '/opt/oss-cad-suite/bin/nextpnr-ice40'
T: g.target.toolchain: tool 'icepack' is invoked as '/opt/oss-cad-suite/bin/icepack'
T: g.target.toolchain: toolchain ID is d5bca79671a65344adf60da453e7055f
T: g.target.toolchain: tool ID of 'yosys' is 2a3d8deaffefc9a970cdb63175aa775d
T: g.target.toolchain: tool ID of 'nextpnr-ice40' is d1bd7bbb90d7736712ae8ed609411a81
T: g.target.toolchain: tool ID of 'icepack' is 4fa2392354d63af1a5b3f3d6c1823dc3
I: g.cli: generating bitstream for applet 'selftest'
D: g.target.hardware: bitstream ID 37ca2b55b375f8b856b855e819409a8b is not cached, executing build
mkdir: cannot create directory '/.config': Permission denied
mkdir: cannot create directory '/.cache': Permission denied
mkdir: cannot create directory '/.local': Permission denied
/opt/oss-cad-suite/bin/nextpnr-ice40: line 23: /.config/yosyshq/fonts.conf: No such file or directory
[...]
user@c4d986e127d4:~$ echo "${HOME}"
/home/user
user@c4d986e127d4:~$ export XDG_CONFIG_HOME="${HOME}"
user@c4d986e127d4:~$ glasgow -vv build --rev C1 selftest
D: g.applet.internal.selftest: claimed pipe P
D: g.applet.internal.selftest: adding reset register at address 0x06
D: g.applet.internal.selftest: claimed pipe Q
D: g.applet.internal.selftest: adding reset register at address 0x07
D: g.target.toolchain: using toolchain 'system' (yosys 0.30.48.gb5b0b7e83, nextpnr-ice40 0.6.29.g54b20457, icepack 0)
T: g.target.toolchain: tool 'yosys' is invoked as '/opt/oss-cad-suite/bin/yosys'
T: g.target.toolchain: tool 'nextpnr-ice40' is invoked as '/opt/oss-cad-suite/bin/nextpnr-ice40'
T: g.target.toolchain: tool 'icepack' is invoked as '/opt/oss-cad-suite/bin/icepack'
T: g.target.toolchain: toolchain ID is d5bca79671a65344adf60da453e7055f
T: g.target.toolchain: tool ID of 'yosys' is 2a3d8deaffefc9a970cdb63175aa775d
T: g.target.toolchain: tool ID of 'nextpnr-ice40' is d1bd7bbb90d7736712ae8ed609411a81
T: g.target.toolchain: tool ID of 'icepack' is 4fa2392354d63af1a5b3f3d6c1823dc3
I: g.cli: generating bitstream for applet 'selftest'
D: g.target.hardware: bitstream ID 37ca2b55b375f8b856b855e819409a8b is not cached, executing build
mkdir: cannot create directory '/.config': Permission denied
mkdir: cannot create directory '/.cache': Permission denied
mkdir: cannot create directory '/.local': Permission denied
/opt/oss-cad-suite/bin/nextpnr-ice40: line 23: /.config/yosyshq/fonts.conf: No such file or directory
T: g.target.hardware: bitstream was written to '/home/user/.cache/GlasgowEmbedded/bitstreams/37ca2b55b375f8b856b855e819409a8b'
user@aab4e5e6ea36:~$ export HOME
user@aab4e5e6ea36:~$ glasgow -vv build --rev C3 selftest
D: g.applet.internal.selftest: claimed pipe P
D: g.applet.internal.selftest: adding reset register at address 0x06
D: g.applet.internal.selftest: claimed pipe Q
D: g.applet.internal.selftest: adding reset register at address 0x07
D: g.target.toolchain: using toolchain 'system' (yosys 0.30.48.gb5b0b7e83, nextpnr-ice40 0.6.29.g54b20457, icepack 0)
T: g.target.toolchain: tool 'yosys' is invoked as '/opt/oss-cad-suite/bin/yosys'
T: g.target.toolchain: tool 'nextpnr-ice40' is invoked as '/opt/oss-cad-suite/bin/nextpnr-ice40'
T: g.target.toolchain: tool 'icepack' is invoked as '/opt/oss-cad-suite/bin/icepack'
T: g.target.toolchain: toolchain ID is d5bca79671a65344adf60da453e7055f
T: g.target.toolchain: tool ID of 'yosys' is 2a3d8deaffefc9a970cdb63175aa775d
T: g.target.toolchain: tool ID of 'nextpnr-ice40' is d1bd7bbb90d7736712ae8ed609411a81
T: g.target.toolchain: tool ID of 'icepack' is 4fa2392354d63af1a5b3f3d6c1823dc3
I: g.cli: generating bitstream for applet 'selftest'
D: g.target.hardware: bitstream ID 37ca2b55b375f8b856b855e819409a8b is cached
T: g.target.hardware: bitstream was read from '/home/user/.cache/GlasgowEmbedded/bitstreams/37ca2b55b375f8b856b855e819409a8b'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment