This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
barebox@TQ-Systems i.MX8MPlus TQMa8MPxL on MBa8MPxL:/ mw 0 0 | |
NULL pointer dereference: DABT (current EL) exception (ESR 0x9600004b) at 0x0000000000000000 | |
elr: 00000000bfda34ec lr : 00000000bfda35c0 | |
x0 : 0000000000000000 x1 : 00000000bfff7b8c | |
x2 : 0000000000000004 x3 : 0000000000000004 | |
x4 : 0000000000000000 x5 : 0000000000000004 | |
x6 : 000000007ff06c10 x7 : 0000000000000001 | |
x8 : 0000000000000048 x9 : 000000007ff5af90 | |
x10: 00000000bfff7b28 x11: 00000000bfff7b8c | |
x12: 00000000bfff7620 x13: 00000000ffffffc8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
RUSTFLAGS='-C link-arg=-s -Clinker=arm-linux-gnueabihf-ld' cargo build --profile=minimal --target armv7-unknown-linux-musleabihf | |
outdir=$PWD | |
tmpdir=$(mktemp -d) | |
cp target/armv7-unknown-linux-musleabihf/minimal/init $tmpdir/ | |
cd $tmpdir |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat /env/nv/bootchooser.system1.boot | |
mmc0.root-a | |
# cat /env/nv/bootchooser.system2.boot | |
mmc0.root-b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
if [ "$#" -lt 1 ] || [ "$#" -gt 2 ]; then | |
echo "USAGE: $0 kernel-recipe [defconfig path]" | |
exit 1 | |
fi | |
recipe=$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _GNU_SOURCE | |
#include <sound/asound.h> | |
#include <linux/ioctl.h> | |
#include <stdio.h> | |
#include <dlfcn.h> | |
#define report(...) fprintf(stderr, __VA_ARGS__) | |
static void decode_pcm_state(snd_pcm_state_t state) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[API] | |
access_token=ADD_YOUR_TOKEN_HERE | |
access_token_secret=ADD_YOUR_TOKEN_HERE | |
api_key=ADD_YOUR_KEY_HERE | |
api_secret=ADD_YOUR_KEY_HERE | |
[SEARCH] | |
lastid= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PREFIX=/opt/cross/gcc-mips | |
export PATH=${PREFIX}/bin:${PATH} | |
../binutils-2.28/configure --target=mipsel-elf --prefix=$PREFIX | |
../gcc-7.1.0/configure --target=mipsel-elf --prefix=$PREFIX --without-headers --with-gnu-as --with-gnu-ld --disable-shared --enable-languages=c --disable-libssp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
long fslurp(char **buf, long *len, FILE *fp) | |
{ | |
size_t new_len; | |
long size, start = ftell(fp); | |
if (start == -1 || fseek(fp, 0, SEEK_END) == -1) | |
return -1; | |
if ((size = ftell(fp)) == -1) | |
return -1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
for i in `seq 100000`; do ./a.out $i ; done && echo ' All is well!' | |
*/ | |
#include <assert.h> | |
#include <unistd.h> | |
#include <stdio.h> | |
#include <pthread.h> | |
void *interp(void *param) { | |
(void)param; |
NewerOlder