週末趁著有高速電腦可以用趕快編kernel,
加了下列幾項
== System type
==== Timer and clock configuration --->
Tickless System (Dynamic Ticks)
==== CPU Frequency scaling --->
======Default CPUFreq governor
defautl scaling governor: conservative
'conservative' cpufreq governor
STMicroelectronics CPU Frequency driver
==Power management options
==== Power Management support
Power Management support
Suspend to RAM and standby (NEW)
Run-time PM core functionality (NEW)
CPU idle PM support自動調整CPU頻率生效了,
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
56250
不過我比較想要用 Ondemand governor,
有工作就馬上用全力處理完再來休息。
另外一個就是要測試載入UFW 防火牆程式的IPv6
==Networking support
==== The IPv6 protocol --->
<M> IPv6: IPsec transport mode (NEW)
<M> IPv6: IPsec tunnel mode (NEW)
<M> IPv6: IPsec BEET mode (NEW)
<M> IPv6: IPv6-in-IPv4 tunnel (SIT driver) (NEW)
====Network packet filtering framework (Netfilter) --->
Advanced netfilter configuration
====== IP: Netfilter Configuration
<*> IP tables support (required for filtering/masq/NAT)
<M> "addrtype" address type match support
<M> "ecn" match support
<M> "ttl" match support
<M> Packet filtering
<M> REJECT target support
<M> LOG target support
<M> ULOG target support
<M> Packet mangling
<M> ECN target support
<M> "TTL" target support
<M> raw table support (required for NOTRACK/TRACE)
====== IPv6: Netfilter Configuration --->
<M> IP6 tables support (required for filtering)
項目內filter選項全部設定成Modules
結果還是出現錯誤
# ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
ERROR: problem running ufw-init
modprobe: module nf_conntrack_ftp not found in modules.dep
modprobe: module nf_nat_ftp not found in modules.dep
modprobe: module nf_conntrack_netbios_ns not found in modules.dep
iptables-restore: line 4 failed
iptables-restore: line 69 failed
iptables-restore: line 36 failed
ip6tables-restore: line 4 failed
ip6tables-restore: line 65 failed
ip6tables-restore: line 33 failed之後可能先找找能不能在編ufw時取消對IPv6支援,
雖然說現在很多骨幹都已經切換到IPv6了。
另外上加減測了掛ISO檔案,
顯示無 loop device,
就多加了下面這些
== Device Drivers
==== Block devices --->
<M> Loopback device support
== File systems
CD-ROM/DVD Filesystems --->
<*> ISO 9660 CDROM file system support
[*] Microsoft Joliet CDROM extensions
一開始在 /dev 下沒看到 loop 裝置,原來是我編成modules 還沒載入,
# insmod /lib/modules/[kernel version]/kernel/drivers/block/loop.ko
之後就可以正常使用
# mount -t iso9660 -o loop [iso file] [mount dir]
最後是最主要的SPI flash
== Device Drivers
==== Memory Technology Device (MTD) support
====== Self-contained MTD device drivers --->
Support most SPI Flash chips (AT26DF, M25P, W25X, ...) (NEW)
ST Microelectronics SPI-FSM Serial Flash Controller
====SPI support
STMicroelectronics SPI SSC-based driver (NEW)
User mode SPI device driver support (NEW)結果只看到
/sys/bus/spi/drivers/m25p80
表示有driver,
可是 /sys/bus/spi/devices 內是空的,
也就是沒有抓到裝置,
當然也沒有 /dev/mtd 了。
可能要參考下面的 patch 方式增加platform-devicehttp://arago-project.org/git/projects/?p=linux-davinci.git;a=shortlog;h=refs/heads/davinci-spi-rewrite
platform-device 我想先增加的是reset按鈕和LED。
現在用的kernel 2.6.32.59都要感謝 網樂通改機俱樂部Chia-Cheng Huang 釋出。
沒有留言:
張貼留言