Add this to make.conf:
QEMU_SOFTMMU_TARGETS="arm"
QEMU_USER_TARGETS="arm"
Add this to package.use:
#!/bin/bash | |
version=1.65.1 | |
echo "Building boost $version..." | |
set -eu | |
toolchain=$PWD/toolchain | |
if [ ! -d "$toolchain" ]; then | |
echo "Building toolchain..." |
make ARCH=arm CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- bcm2709_defconfig | |
make ARCH=arm CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- menuconfig | |
make ARCH=arm CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- -j9 zImage modules dtbs | |
cp arch/arm/boot/zImage /mnt/raspberrypiroot/boot/ ; cp arch/arm/boot/dts/*.dtb /mnt/raspberrypiroot/boot/ ; cp arch/arm/boot/dts/overlays/*.dtb* /mnt/raspberrypiroot/boot/overlays/ ; | |
sudo make ARCH=arm CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- INSTALL_MOD_PATH=/mnt/raspberrypiroot modules_install |
try { | |
BufferedReader input = new BufferedReader(new FileReader("/sys/block/mmcblk1/device/cid")); | |
String sd_cid = input.readLine(); | |
Log.i(TAG, "cid:"); | |
Log.i(TAG, sd_cid); | |
} catch (Exception e) { | |
Log.e(TAG, "Can not read SD-card cid"); | |
} |
/* | |
* Example 1: exits on SIGINT | |
*/ | |
#include <iostream> | |
#include <signal.h> | |
#include <unistd.h> | |
bool continueRunning = true; | |
void sighandler(int signum) { |
Sistema per salvare lo stato dell'applicazione al momento del crash, per poter debuggare anche dopo il crash.
Possiamo anche usare gdb da x86 per debuggare un'applicazione che girava su arm.
Per mettere al massimo il limite della dimensione disponibile per i core dump:
ulimit -c unlimited
From 10328d6d369a2218832315162741bd04d35fe85d Mon Sep 17 00:00:00 2001 | |
From: Alessandro Pezzato <[email protected]> | |
Date: Wed, 31 May 2017 09:06:03 +0200 | |
Subject: [PATCH] fix missing boost::array | |
--- | |
include/crow/websocket.h | 1 + | |
1 file changed, 1 insertion(+) | |
diff --git a/include/crow/websocket.h b/include/crow/websocket.h |
#include <AL/alut.h> // OpenAl | |
#include <cmath> | |
#include <iostream> | |
#include <thread> | |
using namespace std; | |
void init_al() { | |
const char* defname = alcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER); | |
ALCdevice* dev = alcOpenDevice(defname); |
#include <cmath> | |
#include <iostream> | |
#include <thread> | |
using namespace std; | |
#include <AL/alut.h> // OpenAl | |
void init_al() | |
{ |