Skip to content

Instantly share code, notes, and snippets.

インターネットからダウンロードした文字列です
みそ
かつ
たべ
/**
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
// !!! patched to majocairis lcd !!!!
#include <stdio.h>
#include <math.h>
#include "pico/stdlib.h"
#!/bin/sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp
insmod /system/driver/tx-isp-t31.ko isp_clk=100000000
insmod /system/driver/exfat.ko
insmod /system/driver/audio.ko spk_gpio=-1 alc_mode=0 mic_gain=0
insmod /system/driver/avpu.ko
insmod /system/driver/sinfo.ko
insmod /system/driver/sample_pwm_core.ko
insmod /system/driver/sample_pwm_hal.ko
insmod /system/driver/mmc_detect_test.ko
[04000D0A][04000D0C]
DDR Calibration DQS reg = 00008A89
U-Boot 1.1.3 (Apr 30 2019 - 14:20:59)
Board: Ralink APSoC DRAM: 128 MB
relocate_code Pointer at: 87fa0000
flash manufacture id: c2, device id 20 19
find flash: MX25L25635E
======= Whole Chip Reset =======
[Melody] BD_MST096B_10ARU_15384
[Melody] SPI BOOT
[v] Console Initial OK
[Melody] DDR2 64M
[12345678][123456789][123456789][12345678]
4554
BIST_0 PASS.
U-Boot 1.1.3 (May 8 2013 - 21:16:08)
Board: Ralink APSoC DRAM: 32 MB
relocate_code Pointer at: 81fb4000
spi_wait_nsec: 42
spi device id: 1c 30 16 1c 30 (30161c30)
find flash: EN25Q32B
raspi_read: from:30000 len:1000
.*** Warning - bad CRC, using default environment
U-Boot SPL 2013.07 (Dec 21 2017 - 18:44:33)
pll_init:365
l2cache_clk = 375000000
pll_cfg.pdiv = 8, pll_cfg.h2div = 4, pll_cfg.h0div = 4, pll_cfg.cdiv = 1, pll_cfg.l2div = 3
nf=36 nr = 1 od0 = 1 od1 = 1
cppcr is 02404900
CPM_CPAPCR 0470890d
nf=42 nr = 1 od0 = 1 od1 = 1
cppcr is 02a04900
CPM_CPMPCR 07d0c90d
#!/bin/sh
set -x
export LD_LIBRARY_PATH=/tmp/newroot/lib/:/tmp/newroot/usr/lib
export HOOKURL=https://maker.ifttt.com/trigger/called/with/key/[your_ifttt_key]
DATETIME=`date "+%H:%M:%S"`
#どこか自分で設置した転送用のftpサーバに画像をアップロードする
/tmp/busybox ftpput -u atomcam -p atomcam ftp.example.com alarm.jpg /tmp/alarm.jpg
#define _GNU_SOURCE
#include <dlfcn.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdint.h>
#include <fcntl.h>
#include <linux/videodev2.h>
static uint32_t (*real_local_sdk_video_set_encode_frame_callback)(uint32_t param1,uint32_t param2)=NULL;
typedef uint32_t (* framecb)(uint32_t);
void *pfunccb=NULL;
int cnt=0;
char fname[255];
static uint32_t test_capture(void *param){
// param is malloc'd pointer
if( cnt < 1000) {
fprintf(stderr,"callback!!!!!![%p]\n",param);