Skip to content

Instantly share code, notes, and snippets.

======= 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
U-Boot 2014.01-v1.2 (Nov 29 2019 - 20:40:59)
Board: IPCAM RTS3903 CPU: 500M :rx5281 prid=0xdc02
force spi nor mode
DRAM: 64 MiB @ 1066 MHz
Skipping flash_init
Flash: 0 Bytes
flash status is 0, 0, 0
#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);
System startup
hello, open console
do_auto_sd_update: detect flash size: 0x1000000, gsdexist=0
#!/bin/sh
set -x
echo "========== It works! ==========="
echo "========== It works! ==========="
echo "========== It works! ==========="
mkdir /tmp/dump
mount /dev/mmcblk0p1 /tmp/dump
dd if=/dev/mtdblock0 of=/tmp/dump/0_boot.bin
U-Boot SPL 2013.07 (Mar 19 2021 - 11:29:15)
Timer init
CLK stop
PLL init
pll_init:366