Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@yamori813
yamori813 / gist:1bddd29263a76cedc0b943e0cbc87188
Created April 20, 2016 09:36
log4cxx problem at FreeBSD 10
jubatus/server/cmd/jubaconv.cpp.1.o: In function `disable_log4cxx()':
/usr/home/hiroki/jubatus/jubatus/build/../jubatus/server/cmd/jubaconv.cpp:125: u
ndefined reference to `log4cxx::PatternLayout::PatternLayout(std::string const&)
'
/usr/home/hiroki/jubatus/jubatus/build/../jubatus/server/cmd/jubaconv.cpp:127: u
ndefined reference to `log4cxx::FileAppender::FileAppender(log4cxx::helpers::Obj
ectPtrT<log4cxx::Layout> const&, std::string const&)'
jubatus/server/common/logger/libjubaserv_common_logger.so: undefined reference t
o `log4cxx::MDC::put(std::string const&, std::string const&)'
jubatus/server/common/logger/libjubaserv_common_logger.so: undefined reference t
@yamori813
yamori813 / gist:c50428445ec6a1ff39defc125362adcf
Last active June 26, 2017 08:43
Jubatus build on FreeBSD 10.3R/amd64
必要なパッケージをインストールします
% sudo pkg install gcc48
gcc49にしなかったのは特に理由はないです。
% sudo pkg install pkgconf
% sudo pkg install python27
siba_cc0: <ChipCommon core> at mem 0x18000000-0x18000fff irq 0 on siba0
rman_reserve_resource_bound: <SiBa I/O memory addresses> request: [0x18000000, 0
x18000fff], length 0x1000, flags 6, device siba_cc0
rman_reserve_resource_bound: trying 0x18006fff <0x18000000,0xfff>
considering [0x18000000, 0x18006fff]
truncated region: [0x18000000, 0x18000fff]; size 0x1000 (requested 0x1000)
candidate region: [0x18000000, 0x18000fff], size 0x1000
rman_reserve_resource_bound: <SiBa I/O memory addresses> request: [0x18000300, 0
x18000307], length 0x8, flags 2, device uart0
ar7240> tftpboot 0x80800000 kernel.WZR-300HP.bin.oldlzma.uboot
Using eth1 device
TFTP from server 10.10.10.3; our IP address is 10.10.10.99
Filename 'kernel.WZR-300HP.bin.oldlzma.uboot'.
Load address: 0x80800000
Loading: #################################################################
#################################################################
############################################################
done
Bytes transferred = 971066 (ed13a hex)
ar7240> tftpboot 80050000 kernel.WZR-300HP
Using eth1 device
TFTP from server 10.10.10.3; our IP address is 10.10.10.99
Filename 'kernel.WZR-300HP'.
Load address: 0x80050000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
RedBoot(tm) bootstrap and debug environment [ROMRAM]
OpenWrt certified release, version 1.1 - built 22:32:28, May 7 2007
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Board: FON 2201
RAM: 0x80000000-0x81000000, [0x80040290-0x80fe1000] available
FLASH: 0xa8000000 - 0xa87f0000, 128 blocks of 0x00010000 bytes each.
== Executing boot script in 2.000 seconds - enter ^C to abort
^C
@yamori813
yamori813 / gist:bad1ad54431711f9da41d0e87e91f0cb
Created May 7, 2016 22:34
readelf -a Buffalo_WHR-HP-G300N_kernel
This file has been truncated, but you can view the full file.
ELF Header:
Magic: 7f 45 4c 46 01 02 01 09 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, big endian
Version: 1 (current)
OS/ABI: UNIX - FreeBSD
ABI Version: 0
Type: EXEC (Executable file)
Machine: MIPS R3000
Version: 0x1
bash-3.2$ ./lpc21isp ~/Documents/SoundCortex_PSG_SCC.hex /dev/cu.usbserial-00101
4FDA 115200 12000
lpc21isp version 1.97
File /Users/hiroki/Documents/SoundCortex_PSG_SCC.hex:
loaded...
Start Address = 0x000000ED
converted to binary format...
image size : 2392
Image size : 2392
Synchronizing (ESC to abort).......................................... OK
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: .......... 3223208 bytes read
Entry at 0x80001100
Closing network.
Starting program at 0x80001100
entry: mips_init()
Cache info:
picache_stride = 4096
picache_loopcount = 4
pdcache_stride = 4096
CFE version 1.0.37-1.18 for BCM947XX (32bit,SP,LE)
Build Date: 2007年 2月 21日 水曜日 19:53:30 JST (root@Satoh-linux2)
Build Type: CFG_MINIMAL_SIZE
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.
Modified by Buffalo inc.
Initializing Arena
Initializing Devices.
Boot partition size = 131072(0x20000)
* cmdset: AMD Standard