User Tools

Site Tools


linux:acer-install-gentoo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux:acer-install-gentoo [2011/05/06 23:05]
percy
linux:acer-install-gentoo [2016/05/05 13:07]
Line 1: Line 1:
-====== Issues when install Gentoo on Acer 4820G ====== 
- 
-I don't have so much money to buy a Mac of Thinkpad.So I buy a powerful but cheaper laptop Acer 4820G.Sometimes I have a thought of anti-Mac,I don't have so much money to burning. 
- 
-I think the suitable is the best,so I choose it. 
- 
-Of course,I need to install Gentoo on it.Previously,​I think I will have a lot of issues to resolve, as your wish I have it indeed.But all the procedure seems ok,​don'​t have very serious issue.The mostly I think is the wireless driver. 
- 
-So I make a note of the issues I have meet here,when I need to install Gentoo again,it will be a greatly helper. 
- 
-My kernel config:​http://​paste.pocoo.org/​show/​384046/​ 
- 
-===== The wireless driver ===== 
-Refer to http://​www.lxg.de/​2011/​04 
- 
-localhost ~ # lspci -v|grep -i net 
-02:00.0 Ethernet controller: Attansic Technology Corp. Device 1073 (rev c0) 
-03:00.0 Network controller: Broadcom Corporation Device 4357 (rev 01) 
- 
-Step1: 
-  mkdir ~/kernelgit 
-  cd ~/kernelgit 
-  git clone git://​git.kernel.org/​pub/​scm/​linux/​kernel/​git/​dwmw2/​linux-firmware.git 
- 
-Step2: 
-<​code>​ 
-Device Drivers ​ ---> 
- Generic Driver Options ​ ---> 
- External firmware blobs to build into the kernel binary 
-</​code>​ 
-I fill it with bcm43xx-0.fw,​ 
- 
-Step3: 
- 
-Also I need to copy  
-  cp brcm/​bcm43xx* /​lib/​firmware/​brcm/​ 
-  cp brcm/​bcm43xx* /​usr/​src/​linux/​firmware/​ 
- 
-Then compile the kernel as usual: 
-  make 
-  make modules_install 
-  cp /​arch/​x86/​boot/​bzImage /​boot/​kernel-2.6.38-r2 
-  ​ 
-Then reboot,I can start net.wlan0 
- 
-==== How to enable net.wlan0 tips ==== 
- 
-1.Config /​etc/​conf.d/​net 
-<​code>​ 
-localhost linux # cat /​etc/​conf.d/​net|grep -v ^#|grep -v ^$ 
-config_eth0=("​dhcp"​) 
-modules=("​wpa_supplicant"​) 
-wpa_supplicant_wlan0="​-Dwext"​ 
-config_wlan0=("​192.168.1.20/​24"​) 
-routes_wlan0=("​default via 192.168.1.1"​) 
-</​code>​ 
- 
-2.Make a soft link of net.lo 
-  ln -s /​etc/​init.d/​net.lo /​etc/​init.d/​net.wlan0 
-3.Use rc-update add net.wlan0 
-  rc-update add net.wlan0 default 
-==== Use ndiswrapper ==== 
-I also use indiswrapper to install the driver which is used for Windows.Of course it works ok: 
- 
-Install 
-  ndiswrapper -i oem1.inf 
-  ​ 
-Uninstall (ls /​etc/​ndiswrapper) 
-  ndiswrapper -i oem1 
- 
-===== Chinese input method Fcitx ===== 
-I always use fcitx as my input method.First I have the tips by fcitx,but I can't invoke it,though it has the config icon on the panel. 
- 
-I remember it is related with the locale,​because I use the en_US.UTF-8 as the locale. 
- 
-So need to modify the locale: 
-  vim /​etc/​profile.env 
-Change LC_CTYPE 
-  export LC_CTYPE='​zh_CN.UTF-8'​ 
- 
-Then edit the locale.gen 
-  vim /​etc/​locale.gen 
-Add these: 
-  en_US ISO-8859-1 
-  en_US.UTF-8 UTF-8 
-  zh_CN.UTF-8 UTF-8 
-  zh_CN.GBK GBK 
-  zh_CN GB2312 
-  zh_CN.GB18030 GB18030 
- 
- 
-The update env 
-   ​env-update 
-   ​locale-gen 
-Also need add these to .bashrc 
-  export XMODIFIERS="​@im=fcitx"​ 
-  export GTK_IM_MODULE=xim 
-  export XIM=fcitx 
-  export XIM_PROGRAM=fcitx 
- 
-My locale 
-<​code>​ 
-localhost linux # locale 
-LANG=en_US.UTF-8 
-LC_CTYPE=zh_CN.UTF-8 
-LC_NUMERIC=en_US.UTF-8 
-LC_TIME=en_US.UTF-8 
-LC_COLLATE=en_US.UTF-8 
-LC_MONETARY=en_US.UTF-8 
-LC_MESSAGES=en_US.UTF-8 
-LC_PAPER=en_US.UTF-8 
-LC_NAME=en_US.UTF-8 
-LC_ADDRESS=en_US.UTF-8 
-LC_TELEPHONE=en_US.UTF-8 
-LC_MEASUREMENT=en_US.UTF-8 
-LC_IDENTIFICATION=en_US.UTF-8 
-LC_ALL= 
-localhost linux # locale -a 
-C 
-en_US 
-en_US.iso88591 
-en_US.utf8 
-POSIX 
-zh_CN 
-zh_CN.gb18030 
-zh_CN.gb2312 
-zh_CN.gbk 
-zh_CN.utf8 
- 
-</​code>  ​ 
- 
- 
-===== rc-update del net.eth0 is useless ===== 
-Though I have deled net.eth0 from default,but I still will see the net.eth0 starting and timeout without wirledlines 
- 
-Edit /​etc/​conf.d/​rc 
-  vim /​etc/​conf.d/​rc 
-Change RC_PLUG_SERVICES like this: 
-  RC_PLUG_SERVICES="​net.wlan0 !net.*"​ 
-  ​ 
-  ​ 
- 
- 
- 
- 
- 
-===== Sound alsamixer ===== 
-First it doesn'​t have sound,​though I have used Fn+Volumn up to adjust the sound level,but it useless. 
- 
-So need to use alsamixer to adjust it 
-  alsamixer 
-But after reboot laptop,it still no sound,it seems it can't store/​restore the pre-settings. 
- 
-So add this to /​etc/​conf.d/​local.start 
-  alsactl restore 
- 
-add this to /​etc/​conf.d/​local.stop 
-  alsactl store 
- 
- 
- 
-    
- 
-    
- 
-  ​ 
-  ​ 
- 
- 
- 
- 
- 
  
/var/www/dokuwiki/wiki/data/pages/linux/acer-install-gentoo.txt · Last modified: 2016/05/05 13:07 (external edit)