Skip to content

Instantly share code, notes, and snippets.

@tetsu-koba
tetsu-koba / 00_uio_ko
Last active November 25, 2024 22:27
kernel module to register UIO
kernel module to register UIO
@tetsu-koba
tetsu-koba / .00_gdb_cross_debug
Created January 10, 2018 06:57
How to setup gdb for cross debugging
How to setup gdb for cross debugging
@tetsu-koba
tetsu-koba / 00_install_kernel_modules
Last active January 10, 2018 02:43
Linuxカーネルモジュールのインストールに使うスクリプト ref: https://qiita.com/tetsu_koba/items/92f22fc6a302f0f66fe7
A script for installing kernel modules
@tetsu-koba
tetsu-koba / 00_sqrtf_cortex-m4
Last active January 9, 2018 05:32
How to generate FPU instruction of sqrtf in cortex-m4
How to generate FPU instruction of sqrtf in cortex-m4
@tetsu-koba
tetsu-koba / bootlog_raspbian_jessie.txt
Created October 10, 2015 23:31
Bootlog of raspbian jessie
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0xf00
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.1.7-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #817 SMP PREEMPT Sat Sep 19 15:32:00 BST 2015
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: Raspberry Pi 2 Model B Rev 1.1
[ 0.000000] cma: Reserved 8 MiB at 0x3a800000
@tetsu-koba
tetsu-koba / mix.c
Created October 4, 2015 06:42
Various operation for PCM data
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
int mix(char *inbuf1, char *inbuf2, char *outbuf, int len, float vol1, float vol2)
{
int16_t *inp1, *inp2;
int16_t *outp;
int cnt = len / sizeof(int16_t);
@tetsu-koba
tetsu-koba / bootlog_1st_cdebootstrap.txt
Last active September 26, 2015 13:15
Bootlog of the first boot with cdebootstraped root file system
Uncompressing Linux... done, booting the kernel.
?
Welcome to the rescue system
recovery login: Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0xf00
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.1.7-v7+ (koba@f0a4f48bb49b) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #2 SMP PREEMPT Wed Sep 23 11:39:37 JST 2015
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
@tetsu-koba
tetsu-koba / bootlog_armhf_jessie.txt
Created September 23, 2015 12:29
Bootlog of Debian jessie armhf on Raspberry Pi 2
Uncompressing Linux... done, booting the kernel.
?
Welcome to the rescue system
recovery login: Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0xf00
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.1.7-v7+ (koba@f0a4f48bb49b) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #2 SMP PREEMPT Wed Sep 23 11:39:37 JST 2015
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
@tetsu-koba
tetsu-koba / bootlog_pi2_nfsroot.txt
Created September 23, 2015 07:11
Bootlog of nfsroot
Uncompressing Linux... done, booting the kernel.
?
Welcome to the rescue system
recovery login: Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0xf00
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.1.7-v7+ (koba@f0a4f48bb49b) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #2 SMP PREEMPT Wed Sep 23 11:39:37 JST 2015
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
@tetsu-koba
tetsu-koba / bootlog_pi2_v417.txt
Created September 23, 2015 05:17
Boot log of Raspberry Pi 2 kernel v4.1.7
Uncompressing Linux... done, booting the kernel.
?
Welcome to the rescue system
recovery login: Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0xf00
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.1.7-v7+ (koba@f0a4f48bb49b) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #2 SMP PREEMPT Wed Sep 23 11:39:37 JST 2015
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d