Skip to content

Instantly share code, notes, and snippets.

View zzeroo's full-sized avatar
💤
zzeroo...

zzeroo zzeroo

💤
zzeroo...
View GitHub Profile
@zzeroo
zzeroo / bitbake.output.log
Created September 7, 2017 08:02
ERROR: Nothing PROVIDES ''
➜ easy-build git:(master) docker run -ti --volume=(pwd)/shared:/home/build/shared gmacario/build-yocto:latest 09:51:04
build@c5e5a6bc6c12:~$ source shared/poky/oe-init-build-env shared/build-bananapro/
### Shell environment set up for builds. ###
You can now run 'bitbake <target>'
Common targets are:
core-image-minimal
core-image-sato
@zzeroo
zzeroo / log.do_rootfs
Created September 5, 2017 15:53
log do_rootfs
DEBUG: Executing python function rootfs_process_ignore
DEBUG: Python function rootfs_process_ignore finished
DEBUG: Executing python function rootfs_runtime_mapping
DEBUG: Python function rootfs_runtime_mapping finished
DEBUG: Executing python function do_rootfs
NOTE: ###### Generate rootfs #######
NOTE: Executing '/home/build/shared/build-bananapro/tmp/sysroots/x86_64-linux/usr/bin/opkg-make-index -r /home/build/shared/build-bananapro/tmp/deploy/ipk/cortexa7hf-vfp-vfpv4-neon/Packages -p /home/build/shared/build-bananapro/tmp/deploy/ipk/cortexa7hf-vfp-vfpv4-neon/Packages -m /home/build/shared/build-bananapro/tmp/deploy/ipk/cortexa7hf-vfp-vfpv4-neon' ...
NOTE: Executing '/home/build/shared/build-bananapro/tmp/sysroots/x86_64-linux/usr/bin/opkg-make-index -r /home/build/shared/build-bananapro/tmp/deploy/ipk/all/Packages -p /home/build/shared/build-bananapro/tmp/deploy/ipk/all/Packages -m /home/build/shared/build-bananapro/tmp/deploy/ipk/all' ...
NOTE: Executing '/home/build/shared/build-bananapro/tmp/sysroots/x
@zzeroo
zzeroo / auser.lookup.md
Created August 4, 2017 15:50
doveadm Output
# doveadm user -u auser
userdb: auser
  user      : auser
  mail      : maildir:/srv/vmail/a.user@example.org/Maildir
@zzeroo
zzeroo / dovecot-ldap.conf.ext.md
Last active August 4, 2017 15:48
Example dovecot-ldap.conf.ext
# /etc/dovecot/dovecot-ldap.conf.ext

uris = ldap://localhost:389
dn = cn=dovecot,ou=dsa,dc=example,dc=org
dnpass = ApassWD
tls = yes
tls_ca_cert_file = /etc/ssl/certs/ca-certificates.crt
tls_require_cert = demand
ldap_version = 3
ERROR: sizeof(size_t) doesn't match GLIB_SIZEOF_SIZE_T.
You probably need to set PKG_CONFIG_LIBDIR
to point to the right pkg-config files for your
build target
@zzeroo
zzeroo / linux-yocto-bananapro_4.6.bb
Created May 17, 2017 05:40
kgit-s2q: command not found
inherit kernel
require recipes-kernel/linux/linux-yocto.inc
# Override SRC_URI in a copy of this recipe to point at a different source
# tree if you do not want to build from Linus' tree.
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;name=machine"
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += "file://defconfig"
SRC_URI += "file://0001-lcd.patch"
SRC_URI += "file://0002-led.patch"
@zzeroo
zzeroo / log.do_compile
Created May 16, 2017 20:33
error: could not execute process `rustc -vV` (never executed)
DEBUG: Executing shell function do_compile
NOTE: which rustc:
NOTE: rustc --version
NOTE: which cargo: /var/src/poky/build/tmp/work/armv7ahf-neon-vfpv4-poky-linux-gnueabi/hello-world-rs/1.0+gitAUTOINC+12dae1d3e6-r4/recipe-sysroot-native/usr/bin/cargo
NOTE: cargo --version cargo-0.17.0-nightly (f9e5481 2017-03-03)
NOTE: cargo build --verbose --manifest-path /var/src/poky/build/tmp/work/armv7ahf-neon-vfpv4-poky-linux-gnueabi/hello-world-rs/1.0+gitAUTOINC+12dae1d3e6-r4/git/Cargo.toml --target=armv7-unknown-linux-gnueabihf --release
which: no rustc in (/var/src/poky/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/smueller/src/poky/scripts:/var/src/poky/build/tmp/work/armv7ahf-neon-vfpv4-poky-linux-gnueabi/hello-world-rs/1.0+gitAUTOINC+12dae1d3e6-r4/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:/var/src/poky/build/tmp/work/armv7ahf-neon-vfpv4-poky-linux-gnueabi/hello-world-rs/1.0+gitAUTOINC+12dae1d3e6-r4/recipe-sysroot/usr/bin/crossscripts:/var/src/poky/build/tmp/work/armv7ahf-neon-vfpv4-poky-linux-
/// 256 u16 values
pub const SIMMULATION_STATIC: &[u16] = &[0, 14, 0, 247, 0, 0, 0, 0, 0, 0, 1, 923, 0, 30, 920, 564, 0, 20, 1, 0, 2, 107, 0, 300, 112, 760, 0, 270, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
#[derive(Debug,PartialEq,Eq)]
pub struct ModbusData {
@zzeroo
zzeroo / rust-backtrace-receive-segfault.log
Created May 8, 2017 16:26
rust backtrace libmodbus receive segfault
*** buffer overflow detected ***: target/debug/examples/test-receive-segfault terminated
======= Backtrace: =========
/usr/lib/libc.so.6(+0x722ab)[0x7f8698ef22ab]
/usr/lib/libc.so.6(__fortify_fail+0x37)[0x7f8698f7d407]
/usr/lib/libc.so.6(+0xfb330)[0x7f8698f7b330]
/usr/lib/libc.so.6(+0xfd34a)[0x7f8698f7d34a]
/usr/lib/libmodbus.so.5(_modbus_receive_msg+0x6b)[0x7f8699a691fb]
target/debug/examples/test-receive-segfault(+0xa9ea)[0x5637f3ace9ea]
target/debug/examples/test-receive-segfault(+0x96d7)[0x5637f3acd6d7]
target/debug/examples/test-receive-segfault(+0x2e61b)[0x5637f3af261b]
@zzeroo
zzeroo / gdb.log
Created May 8, 2017 16:15
gdb output segfault
Starting program: /var/src/Rust/libmodbus-rs/target/debug/examples/test-receive-segfault
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Program received signal SIGABRT, Aborted.
0x00007ffff701da10 in raise () from /usr/lib/libc.so.6
#0 0x00007ffff701da10 in raise () from /usr/lib/libc.so.6
#1 0x00007ffff701f13a in abort () from /usr/lib/libc.so.6
#2 0x00007ffff705c2b0 in __libc_message () from /usr/lib/libc.so.6
#3 0x00007ffff70e7407 in __fortify_fail () from /usr/lib/libc.so.6