Установка Gentoo на Lenovo G570 c minimal

Свободные Операционные системы

Установка Gentoo на Lenovo G570 c minimal

Сообщение Ant » Чт янв 26, 2012 10:15 am

Исходные данные

Lenovo G570

Код: Выделить всё
# lspci -k
00:00.0 Host bridge: Intel Corporation Device 0104 (rev 09)
   Subsystem: Lenovo Device 3975
   Kernel driver in use: agpgart-intel
   Kernel modules: intel-agp
00:02.0 VGA compatible controller: Intel Corporation Sandy Bridge Integrated Graphics Controller (rev 09)
   Subsystem: Lenovo Device 3975
   Kernel driver in use: i915
   Kernel modules: i915
00:1a.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #2 (rev 05)
   Subsystem: Lenovo Device 3975
   Kernel driver in use: ehci_hcd
00:1b.0 Audio device: Intel Corporation Cougar Point High Definition Audio Controller (rev 05)
   Subsystem: Lenovo Device 3975
   Kernel driver in use: snd_hda_intel
   Kernel modules: snd-hda-intel
00:1c.0 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 1 (rev b5)
   Kernel driver in use: pcieport
   Kernel modules: shpchp
00:1c.1 PCI bridge: Intel Corporation Cougar Point PCI Express Root Port 2 (rev b5)
   Kernel driver in use: pcieport
   Kernel modules: shpchp
00:1d.0 USB Controller: Intel Corporation Cougar Point USB Enhanced Host Controller #1 (rev 05)
   Subsystem: Lenovo Device 3975
   Kernel driver in use: ehci_hcd
00:1f.0 ISA bridge: Intel Corporation Device 1c49 (rev 05)
   Subsystem: Lenovo Device 3975
   Kernel modules: iTCO_wdt
00:1f.2 SATA controller: Intel Corporation Cougar Point 6 port SATA AHCI Controller (rev 05)
   Subsystem: Lenovo Device 3975
   Kernel driver in use: ahci
00:1f.3 SMBus: Intel Corporation Cougar Point SMBus Controller (rev 05)
   Subsystem: Lenovo Device 3975
   Kernel driver in use: i801_smbus
   Kernel modules: i2c-i801
01:00.0 Ethernet controller: Attansic Technology Corp. Device 2062 (rev c1)
   Subsystem: Lenovo Device 3979
   Kernel driver in use: atl1c
   Kernel modules: atl1c
02:00.0 Network controller: Broadcom Corporation Device 4727 (rev 01)
   Subsystem: Broadcom Corporation Device 051b
   Kernel driver in use: wl
   Kernel modules: wl

Код: Выделить всё
# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 0bda:0139 Realtek Semiconductor Corp.
Bus 002 Device 003: ID 5986:0292 Acer, Inc
Bus 002 Device 004: ID 090c:6200 Feiya Technology Corp.

Код: Выделить всё
# lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    1
Core(s) per socket:    2
CPU socket(s):         1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 42
Stepping:              7
CPU MHz:               800.000
BogoMIPS:              4189.95
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              2048K

Код: Выделить всё
# cat /proc/cpuinfo
processor: 0
vendor_id: GenuineIntel
cpu family: 6
model: 42
model name: Intel(R) Pentium(R) CPU B950 @ 2.10GHz
stepping: 7
cpu MHz: 800.000
cache size: 2048 KB
physical id: 0
siblings: 2
core id: 0
cpu cores: 2
apicid: 0
initial apicid: 0
fpu: yes
fpu_exception: yes
cpuid level: 13
wp: yes
flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 x2apic popcnt xsave lahf_lm arat epb xsaveopt pln pts dts
bogomips: 4190.36
clflush size: 64
cache_alignment: 64
address sizes: 36 bits physical, 48 bits virtual
power management:

processor: 1
vendor_id: GenuineIntel
cpu family: 6
model: 42
model name: Intel(R) Pentium(R) CPU B950 @ 2.10GHz
stepping: 7
cpu MHz: 800.000
cache size: 2048 KB
physical id: 0
siblings: 2
core id: 1
cpu cores: 2
apicid: 2
initial apicid: 2
fpu: yes
fpu_exception: yes
cpuid level: 13
wp: yes
flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 x2apic popcnt xsave lahf_lm arat epb xsaveopt pln pts dts
bogomips: 4189.95
clflush size: 64
cache_alignment: 64
address sizes: 36 bits physical, 48 bits virtual
power management:
Последний раз редактировалось Ant Чт янв 26, 2012 4:45 pm, всего редактировалось 1 раз.
Linux, Motorola A1200, Samsung Desknote G25, LBook eReader v3 ext
---
FreeOS.RU - "Мы бы изменили мир, осталось только добыть исходники" (с)
Ant
 
Сообщения: 41
Зарегистрирован: Ср фев 13, 2008 10:32 pm
Откуда: Россия

Re: Установка Gentoo на Lenovo G570 c minimal

Сообщение Ant » Чт янв 26, 2012 4:35 pm

Скачиваем образ загрузочного диска, stage3 и свежий portage
Код: Выделить всё
wget http://mirrors.kernel.org/gentoo/releases/amd64/current-iso/install-amd64-minimal-20120119.iso


теперь создаЕм загрузочный диск дополненный загрузочный диск

загружаемся

поднимаем проводную сеть
# net-setup eth0

проверяем
# ping ya.ru

посмотрим раздел диска
# fdisk -l /dev/sda

в моЕм случае
/dev/sda1 - boot
/dev/sda7 - root
/dev/sda9 - swap

создаем и подключаем свап-раздел:
# mkswap /dev/sda9 && swapon /dev/sda9

монтируем разделы
livecd ~ # mount /dev/sda7 /mnt/gentoo
livecd ~ # mkdir /mnt/gentoo/boot
livecd ~ # mount /dev/sda1 /mnt/gentoo/boot
livecd ~ # cd /mnt/gentoo

скачиваем наисвежайший stage3 и последние portage
Код: Выделить всё
wget http://mirrors.kernel.org/gentoo/releases/amd64/current-iso/stage3-amd64-20120119.tar.bz2
wget http://mirrors.kernel.org/gentoo/releases/snapshots/current/portage-latest.tar.bz2

распаковываем архивы
livecd gentoo # time tar xjpf stage3-i686-20110809.tar.bz2

livecd gentoo # cd /mnt/gentoo/usr
livecd usr # time tar xjf portage-latest.tar.bz2

переходим в систему
livecd usr # cd /

livecd / # mount -t proc none /mnt/gentoo/proc
livecd / # mount --rbind /dev /mnt/gentoo/dev

livecd / # cp -L /etc/resolv.conf /mnt/gentoo/etc/
livecd / # chroot /mnt/gentoo /bin/bash
livecd / # env-update && source /etc/profile
>>> Regenerating /etc/ld.so.cache...

--- немного удобства в работе ;) ---
# emerge -av app-misc/mc

--- настроим make.conf ---
добавляем
Код: Выделить всё
LINGUAS="ru en"

USE="-ipv6"
USE="${USE} smp sse sse2 ssse3"
USE="${USE} gtk gnome gstreamer cairo xcb"
USE="${USE} unicode utf8"
USE="${USE} X opengl alsa pulseaudio mmx vim-syntax"
USE="${USE} trayicon dbus fam arts"
USE="${USE} automount dbus hal nautilus policykit"
USE="${USE} jpeg2k jpeg png tiff"
USE="${USE} lame flac ogg wma mp3 esd wavpack aalib xinerama jack"
USE="${USE} win32codecs aac dvd dvb mpeg xvid ffmpeg v4l2 v4l" 
USE="${USE} djvu pdf"

MAKEOPTS="-j3"

CHOST="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CXXFLAGS="${CFLAGS}"

WANT_MP="true"

ACCEPT_LICENSE="*"
VIDEO_CARDS="nvidia"
ALSA_CARDS="hda-intel"
INPUT_DEVICES="evdev synaptics"


--- шоб легче было бороться с девасам ;) ---
# emerge -av sys-apps/pciutils
# emerge -av sys-apps/usbutils

Локализация системы (русский язык)
Код: Выделить всё
#/bin/bash
sed -i -e 's/UNICODE=.*/UNICODE="yes"/' /etc/rc.conf
sed -i -e 's/CONSOLEFONT=.*/CONSOLEFONT="Cyr_a8x16"/' /etc/conf.d/consolefont
sed -i -e 's/.*CONSOLETRANSLATION=.*/CONSOLETRANSLATION="cp866_to_uni"/' /etc/conf.d/consolefont
sed -i -e 's/KEYMAP=.*/KEYMAP="ru4"/' /etc/conf.d/keymaps
echo 'LANG="ru_RU.UTF-8"' >> /etc/env.d/02locale
echo 'LC_ALL=""' >> /etc/env.d/02locale
env-update && source /etc/profile
/etc/init.d/consolefont restart && /etc/init.d/keymaps restart
cat /usr/share/i18n/SUPPORTED | grep -E 'ru_RU|en_US' >> /etc/locale.gen && locale-gen


если при старте системе consolefont не подгружается (см. # rc-update -s) = добавляем в загрузку
# rc-update add consolefont boot
# rc-update add keymaps boot

настройка ядра
# emerge -av gentoo-sources
# emerge -av module-rebuild

для гладкой установки gentoolkit пришлось пересобрать dev-lang/python:2.7 с ключем xml
# emerge -av gentoolkit

...
выход из системы и перезагрузка
# exit
livecd / # umount -l /mnt/gentoo/dev{/shm,/pts,}
livecd / # umount -l /mnt/gentoo{/proc,/boot,}
livecd / # reboot
Linux, Motorola A1200, Samsung Desknote G25, LBook eReader v3 ext
---
FreeOS.RU - "Мы бы изменили мир, осталось только добыть исходники" (с)
Ant
 
Сообщения: 41
Зарегистрирован: Ср фев 13, 2008 10:32 pm
Откуда: Россия

Настройка сети

Сообщение Ant » Вс янв 29, 2012 8:01 pm

Ethernet controller: Attansic Technology Corp. Device 2062 (rev c1)

в ядре установить atl1c

WiFi
+ sys-kernel/linux-firmware
http://www.gentoo.ru/node/24556
Linux, Motorola A1200, Samsung Desknote G25, LBook eReader v3 ext
---
FreeOS.RU - "Мы бы изменили мир, осталось только добыть исходники" (с)
Ant
 
Сообщения: 41
Зарегистрирован: Ср фев 13, 2008 10:32 pm
Откуда: Россия


Вернуться в OSвоение (Свободные Операционные системы)

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 1

cron