richliu's blog

Linux, 工作, 生活.

richliu's blog header image 4

Entries Tagged as 'Linux'

如何確認 uclibc 是有 VFP 最佳化的?

九月 1st, 2010 · No Comments

這標題隨便下的, 只是一個筆記的 Note.

Tags: arm, eabi, GCC, uclibc, VFP

[Read more →]

Tags: ARM · Linux

[Linux] 使用 hinet IPv6 的服務

七月 30th, 2010 · 1 Comment

這邊使用的是 Hinet Tunnel Broker 的服務.
不過 Hinet 只有提供 Windows 的範例, 那 Linux 呢?

Tags: hinet, IPv6, Linux, tunnel broker, ubuntu

[Read more →]

Tags: IPv6 · Linux

U-boot 下如何計算傳輸檔案的 crc32

七月 30th, 2010 · No Comments

常常會在 u-boot 下使用 TFTP 傳檔案, 但是怎麼知道傳檔的 crc32 是正確的?

Tags: crc32, u-boot, ubuntu

[Read more →]

Tags: Linux

Windows 7 存取 Linux Samba 網芳的小問題.

七月 21st, 2010 · 1 Comment

改用 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, 網路芳鄰

[Read more →]

Tags: Linux

mrtg 正確取得 gigabit interface 的數據

七月 20th, 2010 · No Comments

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, [...]

[Read more →]

Tags: Linux

Patch RVDS 4.0 at Linux

六月 30th, 2010 · No Comments

在 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

[Read more →]

Tags: ARM · Linux

Linux Kernel 不支援 Floating Pointer

四月 8th, 2010 · No Comments

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 [...]

[Read more →]

Tags: Linux

Linux kernel printk 參數.

三月 9th, 2010 · No Comments

Kernek printk 參數預設如下

Tags: linux kernel, printk

[Read more →]

Tags: Linux

Debugfs

一月 20th, 2010 · No Comments

以前都習慣用 printk 和 /proc 做輸入輸出的動作, 不過 debugfs 看起來是 User space 和 kernel space 交流更好的選擇.

Tags: debugfs, kernel, linux kernel

[Read more →]

Tags: Linux

Raid 5/Raid 6 Mdadm 指令

一月 20th, 2010 · No Comments

最近在測 mdadm raid 5, raid 6, 順手記錄一下相關指令
Kernel 設定部份及 Application 太簡單, 不再贊述.

Tags: mdadm, raid 5, raid 6

[Read more →]

Tags: Linux