Skip to content

Instantly share code, notes, and snippets.

arm_memo:Marvell>> tftpboot 400100 Buffalo_WZR-AMPG300NH_kernel.kbin
arm_memo:Marvell>> go 400100
arm_memo:Marvell>> tftpboot 0x400000 Buffalo_WZR-AMPG300NH.zimage
arm_memo:Marvell>> erase 0xff800000 0xffdfffff
arm_memo:Marvell>> cp.b 0x400000 0xff800000 $(filesize)
arm_memo:Marvell>> fsload 400100 kernel.kbin
arm_memo:Marvell>> go 400100
17302
44676
47231
15212
17302
Starting program at 0x80001000
entry: mips_init()
Cache info:
picache_stride = 4096
picache_loopcount = 8
pdcache_stride = 4096
pdcache_loopcount = 8
max line size = 32
cpu0: MIPS Technologies processor v73.151
MMU: Standard TLB, 32 entries (4K 16K 64K 256K 1M 16M 64M 256M pg sizes)
microserver % ./libdep.rb TPLink_TL-WR1043ND-v1_rootfs_clean mips.mips
libc.so.7=>["ps", "link", "uuidgen", "sh", "cat", "unlink", "df", "sleep", "chmo
d", "mv", "expr", "date", "stty", "kenv", "cp", "realpath", "dd", "hostname", "r
m", "ln", "mkdir", "sync", "kill", "ls", "route", "ping", "mount_cd9660", "md5",
"mount_nullfs", "kldstat", "skein1024", "sha384", "kldload", "halt", "skein512"
, "reboot", "mount_unionfs", "skein256", "etherswitchcfg", "ifconfig", "mdconfig
", "sha512t256", "fastboot", "mount_mfs", "sha256", "sha512", "kldunload", "rcor
der", "mount", "umount", "sysctl", "fasthalt", "ldconfig", "sha1", "newfs", "dme
sg", "mdmfs", "rmd160", "uptime", "fgrep", "xargs", "lzfgrep", "killall", "passw
d", "zgrep", "logger", "minigzip", "xzfgrep", "zfgrep", "whoami", "basename", "c
Starting program at 0x80001000
entry: mips_init()
Cache info:
picache_stride = 4096
picache_loopcount = 8
pdcache_stride = 4096
pdcache_loopcount = 8
max line size = 32
cpu0: MIPS Technologies processor v73.151
MMU: Standard TLB, 32 entries (4K 16K 64K 256K 1M 16M 64M 256M pg sizes)
Starting kernel @40000100...
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2018 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-CURRENT #18 b8cfc17(arm_debug): Tue Feb 6 14:55:56 JST 2018
hiroki@microserver:/storage/home/hiroki/zorg/obj/storage/home/hiroki/zorg/ZR
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2018 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-CURRENT #2 b8cfc17(arm_debug)-dirty: Mon Feb 5 09:46:16 JST 2018
hiroki@microserver:/storage/home/hiroki/zorg/obj/storage/home/hiroki/zorg/ZR
outer/tmp/storage/home/hiroki/freebsd/mips.mips/sys/IOData_WN-G300R mips
gcc version 4.2.1 20070831 patched [FreeBSD]
Starting kernel @40000100...
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2018 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-CURRENT #0 b8cfc17(arm_debug)-dirty: Sun Feb 4 13:53:03 JST 2018
hiroki@microserver:/storage/home/hiroki/zorg/obj/storage/home/hiroki/zorg/ZR
Starting kernel @40000100...
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2018 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-CURRENT #8 b8cfc17(arm_debug)-dirty: Sun Feb 4 09:17:53 JST 2018
hiroki@microserver:/storage/home/hiroki/zorg/obj/storage/home/hiroki/zorg/ZR
*mrubyの良いところ
rubyの文法が使える
データなどの文字列操作はCでは面倒だしawk/sedじゃちょっと不便だしperlやpythonは大きい
バイナリが小さい
バージョンアップしても極端に大きくなるような事がない
ビルド環境の依存が少ない
gcc4でビルドできて、古い環境でも使える
バージョンが上がってもgemがちゃんと使える
安定して動作する事