這邊使用的是 Hinet Tunnel Broker 的服務.
不過 Hinet 只有提供 Windows 的範例, 那 Linux 呢?
Tags: hinet, IPv6, Linux, tunnel broker, ubuntu
這邊使用的是 Hinet Tunnel Broker 的服務.
不過 Hinet 只有提供 Windows 的範例, 那 Linux 呢?
Tags: hinet, IPv6, Linux, tunnel broker, ubuntu
改用 Windows 7 之後, 使用網芳直接用 netbios name 去存取 Server 會有問題.
雖然在網路上看的到名稱, 但是卻無法直接存取, 會出現錯誤訊息
例如
\\SERVER : Fail
\\10.1.1.254 : OK
這個時候就要直接去改 /etc/samba/smb.conf
加上一行 netbios name 就可以,
workgroup = WORKGROUP
netbios name = SERVER
順便寫一下我的版本
Windows 7 64bit
Samba 3.5.4
好小的問題 -_-!
Tags: Linux, netbios name, samba, Windows 7, workgroup, 網路芳鄰
Tags: Linux
mrtg 在掃 interface 時, 預設的 interface 都是取到 Linux 下的 32bit 的 counter.
而 32bit counter 的流量, 很容易在 5 分鐘取樣一次的 mrtg 中失真.
如果要準確反映 interface 流量, 就要取用 64bits. 的數據.
如何取用 64bits 的數據呢?
以下是 mrtg 的部份設定檔
Target[localhost_eth0]: \eth0:public@localhost:
SetEnv[localhost_eth0]: MRTG_INT_IP=』60.125.111.222″ MRTG_INT_DESCR=』eth0″
MaxBytes[localhost_eth0]: 12500000
Title[localhost_eth0]: 60.125.111.222 — ms1
在Target[localhost_eth0]: \eth0:public@localhost: 後面加上 ::::2
以下就是一個 Gigabit interface.
Target[localhost_eth1]: \eth1:public@localhost:::::2
SetEnv[localhost_eth1]: MRTG_INT_IP=』192.168.1.254″ MRTG_INT_DESCR=』eth1″
MaxBytes[localhost_eth1]: 125000000
Title[localhost_eth1]: 192.168.1.254 — ms1
Ref.
MRTG - MRTG 2.16.2 configuration reference
Tags: 32bit, 64bit, gigabit, [...]
Tags: Linux
在 Linux 上上 RVDS 4.0 的 Patch Command 如下
# ~/ARM/bin/linux-pentium/setuplinux.bin patch –source RVDS_4_0_dist_to_4-all-all_stnd.armpatch –target ~/ARM
Tags: arm, Linux, patch, RVDS
http://lkml.indiana.edu/hypermail/linux/kernel/0405.3/1608.html
Floating point is forbidden in kernel code since the floating point
registers (and other floating point context) is not saved/restored
during system calls, for efficiency. I’m speculating here, but it
might be possible to manually save the floating point context while
doing some floating point operations. The problem arises if this code
is interrupted midway. Using a preemptive 2.6 kernel [...]
Tags: Linux
Linux kernel 支援不同 domain 的 PCI, 看起來是 ACPI 的功能之一.
其他平台看起來也有支援, 像是 sparc or mips 都有.
但是在 ARM 上並沒有這樣的支援
我的平台有 2 個 PCIe Host Controller , 而且都要設定在 PCIe bus 0 上面.
這時就拿 PCI domain 的 code 來用最快,
以下就是 Sample Code 和 ARM 部份的 Patch Code (不含我目前使用平台的 Patch)
Tags: arm, kernel, Linux, PCI
Tags: 隨手札記
最近在弄 ARM11 的 Oprofile, 結果發現執行 opcontrol 的動作之後, 沒有 log 的動作.
大致上的訊息是這樣的
# opcontrol –shutdown
Stopping profiling.
Killing daemon.
# Stopping profiling.
Killing daemon.
opreport image:/vmlinux -l -w -g > oprofile.txt
error: no sample files found: profile specification too strict ?
這時請改用 timer interrupt
在 load oprofile modules 加上 timer=1
若是 static link 時, 就要在 boot_cmd 加上 oprofile.timer=1
似乎目前的 kernel oprofile 不支援 ARM11MPCore.
http://oprofile.sourceforge.net/doc/detailed-parameters.html#timer
Tags: arm, ARM11, kernel, Linux, oprofile
Tags: Embedded
如果啟動了 Jumbo Frame 加上執行 Samba , 有可能會出現類似的訊息(系統抓下來似乎有點不全)
Tags: Jumbo Frame, Linux, linux kernel, memory, samba
用 RVDS 的時候, 如果只是要拿來 Load kernel, 可以用以下這個簡單的 script. 自動 connect 到 Realview ICE, load kernel , run, 再 disconnect.
connect 『@MPCore_0@RVI』
stop
readfile,raw,nowarn 『<path to >/bootpImage』=0×100000
WAIT=OFF
go
disconnect,nodebug 『@MPCore_0@RVI』
用
bglobal, disable 『data abort』
bglobal, disable 『prefetch abort』
這二個指令在 Trace32 時, 就可以讓 Linux booting 起來, 但是這一招在 RealView ICE 似乎沒有用. 要 disconnect 之後, 進到 kernel 再 connect.
當有了 shell script 之後, 就可以不用進 RVDS 的 GUI mode [...]
Tags: 隨手札記
前二天,突然之間電腦就上不了網路。重開機之後發現,開機時沒有辦法 Mount Root Disk.
我的 Root Disk 是用 Raid1 + XFS 做的, 硬碟的規劃是
md1 : 100M etx3 booting 用
md2: 40G xfs Root File System 用
md3: 4G swap
md4: /home
用 kubuntu 7.04 開機之後, 檢查了一下, 看起來像是 xfs 系統亂掉, 所以就做一次 xfs_repair /dev/md2, 不過要清掉一些 LOG, 所以下的是 xfs_repair -L /dev/md2
第一次重開機是成功的, 但是跑一小時時間會 I/O Error,
所以我又開起來, mount 起來看系統有沒有問題?
檢查的結果是 xfs_repair 之後,所有的程式都沒有問題,看起來就不是 glibc 死掉,感覺像是 xfs 掛了。不過這時候我並沒有證據是 xfs 死掉造成的.
就這樣重覆修修開開, [...]
Tags: Linux