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
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: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
@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
ARMboot 1.1.0 (Sep 13 2007 - 14:41:53)
Star maintain version 0.15.100000000
ARMboot code: 00000000 -> 0001b684
STR9100 CPU Clock: 250 Mhz
1.8V Regulator Regulated vdd Output : b101
2.5V Regulator Regulated vdd Output : b100
===> geom/geom_label (all)
cc -O -pipe -Werror -D_KERNEL -DKLD_MODULE -nostdinc -DHAVE_KERNEL_OPTION_HE
ADERS -include /usr/home/hiroki/ZRouter/obj/usr/home/hiroki/ZRouter2/zrouter/tmp
/arm.arm/usr/home/hiroki/data/git/freebsd/sys/Planex_MZK-W04G/opt_global.h -I. -
I/usr/home/hiroki/data/git/freebsd/sys -fno-common -funwind-tables -I/usr/home/
hiroki/ZRouter/obj/usr/home/hiroki/ZRouter2/zrouter/tmp/arm.arm/usr/home/hiroki/
data/git/freebsd/sys/Planex_MZK-W04G -march=armv4 -MD -MF.depend.g_label.o -MTg
_label.o -ffreestanding -fwrapv -Wall -Wredundant-decls -Wnested-externs -Wstric
t-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef
-Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-sho