Showing posts with label everex. Show all posts
Showing posts with label everex. Show all posts

Thursday, January 29, 2009

ubuntu intrepid upgrade on everex gpc3

seems that you need to enable the ubuntu official repositories and after the upgrade is made from hardy to intrepid you need to change the /boot/grub/menu.lst so that root=/dev/sda1
seems that you will have some issues with uuid if is not in the /etc/fstab
so is better to be added in grub too


Update:
I got an server cd from boston loco meeting so the os is reinstalled
I didn't needed the home partition to be so big reformated the drive anyway

After all finished i have removed the apparmour and other useless stuff that comes with server
also usually i like that server install is more clean (the list of processes)
The weird stuff : on the case there is an sticker with VIA C7
and that is an mistake , inside is an athlon64 core (sempron)
http://www.everexstore.com/everex/products/gpc3/gpc3.php

Saturday, November 01, 2008

Enabling frequency scaling on my everex cloudbook
after the upgrade to ubuntu intrepid ibex (kernel 2.6.27.x) i have good sound and the syste is moving faster
maybe is because of the new io sheduler 
but the frequency scaling is not enabled (default cpu speed is 600mhz)
so i have compile it 
download the latest stable kernel from kernel.org

in my case  
$wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.4.tar.bz2
$tar -jxvf linux-2.6.27.4.tar.bz2
$cd /usr/src/linux-2.6.27.3/arch/x86/kernel/cpu/
$sudo mv cpufreq /opt/build/
$ cd /opt/build/cpufreq

$vi Makefile
default:
$(MAKE) -C /lib/modules/`uname -r`/build M=`pwd` modules
clean:
rm -rf *.o .*.cmd *.ko *.mod.c .tmp_versions Module.symvers
obj-m += e_powersaver.o

Now you need to make it 
$make
$cp e_powersaver.ko /lib/modules/2.6.27-7-generic/kernel/drivers/cpufreq/
$ sudo depmod -ae
$ sudo modprobe e_powersaver
$ cpufreq-set -g performance

now my cpu is idling at 1200 mhz 
cat /proc/cpuinfo
processor : 0
vendor_id : CentaurHauls
cpu family : 6
model : 13
model name : VIA C7-M Processor 1200MHz
stepping : 0
cpu MHz : 1199.952
cache size : 128 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge cmov pat clflush acpi mmx fxsr sse sse2 tm nx up pni est tm2 xtpr rng rng_en ace ace_en ace2 ace2_en phe phe_en pmm pmm_en
bogomips : 2399.92
clflush size : 64
power management:

a good idea is to put the module at startup too 
in 
/etc/modules
add 
e_powersaver

another good command line 
cpufreq-info

analyzing CPU 0:
  driver: e_powersaver
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 400 MHz - 1.20 GHz
  available frequency steps: 400 MHz, 500 MHz, 600 MHz, 700 MHz, 800 MHz, 900 MHz, 1000 MHz, 1.10 GHz, 1.20 GHz
  available cpufreq governors: ondemand, userspace, conservative, powersave, performance
  current policy: frequency should be within 400 MHz and 1.20 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 1.20 GHz.

or if you need an low noise system 
$ cpufreq-set -g ondemand

Thursday, October 02, 2008

HowTo boot linux in 5 seconds ,

I will add some optimizations to my everex cloudbook so it can boot faster http://lwn.net/Articles/299088/

This is my QOD:

"We hate splash screens. By the time you see it, we want to be done." The development time that distributions spend on splash screens is much more than the Intel team spent on booting fast enough not to need one.


Monday, September 22, 2008

using everex cloudbook as an wireless router for nokia i810

add an new wireless network from Network Manager and it must be Ad-Hoc and call it foobar
and put the ip 10.0.0.1 to the wlan0 network
with gateway 10.0.0.1
dns 10.0.0.1
and netmask 255.255.255.0

it should look something like this

ip ro show dev wlan0
10.0.0.0/24 proto kernel scope link src 10.0.0.1
ip addr show wlan0

3: wlan0: mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:15:af:54:2a:af brd ff:ff:ff:ff:ff:ff
inet 10.0.0.1/24 brd 10.0.0.255 scope global wlan0
inet6 fe80::215:afff:fe54:2aaf/64 scope link
valid_lft forever preferred_lft forever


install dhcpd server
sudo apt-get install dhcp3-server
sudo vi /etc/default/dhcp3-server
INTERFACES="wlan0"
sudo vi /etc/dhcp3/dhcpd.conf
ddns-update-style ad-hoc;
default-lease-time 3600;
max-lease-time 9000;
authoritative;
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.2 10.0.0.30;
option routers 10.0.0.1;
option domain-name-servers 10.0.0.1;
}
sudo /etc/init.d/dhcp3-server stop
sudo /etc/init.d/dhcp3-server start

install bind server for dns requests

sudo apt-get install bind9

add in etc/bind/named.conf.options
recursion yes;


allow-recursion {
127.0.0.1;
10.0.0.0/24;
};

allow-query {
127.0.0.1;
10.0.0.0/24;
};

and test it
dig debian.org @10.0.0.1

do the snat

sudo su
echo "1" > /proc/sys/net/ipv4/ip_forward
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

check the traffic with tcpdump
sudo tcpdump -i wlan0

DISABLE SCROLLKEEPER on ubuntu - is good for updates at least on systems with slow hard drives like everex

ScrollKeeper is a cataloging system for documentation on open systems. Hardly anyone ever uses it and it takes ages every time you install anything. Disable it and your installs will fly! Finally add a diversion to stop dpkg from overwriting your changes.

sudo mv /usr/bin/scrollkeeper-update /usr/bin/scrollkeeper-update.real
sudo ln -s /bin/true /usr/bin/scrollkeeper-update
sudo find /var/lib/scrollkeeper/ -name \*.xml -type f -exec rm -f '{}' \;
sudo dpkg-divert --local --divert /usr/bin/scrollkeeper-update.real --add /usr/bin/scrollkeeper-update