Jump to content
funtoo forums

znavko

Members
  • Content count

    121
  • Joined

  • Last visited

About znavko

  • Rank
    Advanced Member

Recent Profile Visitors

363 profile views
  1. Several questions about kernel

    ok. thank you. think I'll try to do it without genkernel just running one by one lines from here https://wiki.gentoo.org/wiki/Kernel/Configuration#Configuration_tools But I think it will be much longer than first funtoo installation. i have no sense about devices and their kernel configurations.
  2. Several questions about kernel

    Hello! I am trying to install gentoo-sources again, cause the problem of my Laptop Lenovo G 50-30 rests, it suddenly freezes sometimes. I emerged and compiled gentoo-sources and it successfully booted but I am watching 3 problems: 1. Sound does not work 2. Debian sources was deleted from boot, so I have only one kernel that works not fine. I did only that: # cd /usr/src # rm linux # ln -s linux-4.15.12-gentoo linux # genkernel --menuconfig all ''' then I loaded .config from debian-sources folder ''' and switched on some Atheros Wireless drivers, ''' switched off all other wifi drivers, wimax, switched off bluetooth ''' also switched off one single line of ipv6 support ''' switched off several lines in firmware: Dell bios ''' and saved my config to /usr/src/linux/.config # boot-update # reboot Now I have only gentoo kernel compiled and placed into /boot . Where is debian-sources? I have no sound. What to do for sound? Gentoo-sources config, devices, modules, dmesg: # cat /usr/src/linux/.config | nc termbin.com 9999 http://termbin.com/a5kz # lspci | nc termbin.com 9999 http://termbin.com/l19gb # lsmod | nc termbin.com 9999 http://termbin.com/t2du # cat dmesg | nc termbin.com 9999 http://termbin.com/3ubf PS: and more then that, genkernel says during compilation process : >> Not installing firmware as requested by configuration FIRMWARE_INSTALL=no... but I have installed linux-firmware: # equery l linux-firmware * Searching for linux-firmware ... [I-O] [ ] sys-kernel/linux-firmware-20180314:0 I need some actual manual about kernel compilation for local architecture and tasks. I want to remove all unnecessary stuff. Can I unmark all lines in Device drivers ? And how to determine necessary lines for my pc looking lsmod?? Can I unmark all from Network support and what shuold I enable for connect to router via wifi atheros qualcom, using only ipv4 without ipv6? Do you recommend localmodconfig?
  3. How to get new kernel ?

    I think the problem was I untar without 'p' flag.. Also can share this: When I boot intoo gentoo-sources it booted into console without xdm, wlan drivers. But booted. After I recompiled gentoo-sources it did not booted - just first screen of boot log and then black screen (when usually log becomes in a smaller font). The same with debian-sources - before recompile it booted in console, but after recompile it gives black screen.
  4. How to get new kernel ?

    but `emerge -e @system` caused error installing lzo ... checking for suffix of executables... checking whether we are cross compiling... configure: error: in `/var/tmp/portage/dev-libs/lzo-2.10/work/lzo-2.10-abi_x86_32.x86': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details !!! Please attach the following file when seeking support: !!! /var/tmp/portage/dev-libs/lzo-2.10/work/lzo-2.10-abi_x86_32.x86/config.log * ERROR: dev-libs/lzo-2.10::dev-kit failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 121: Called src_configure * environment, line 1387: Called multilib-minimal_src_configure * environment, line 883: Called multilib_foreach_abi 'multilib-minimal_abi_src_configure' * environment, line 1097: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 813: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 811: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure' * environment, line 211: Called multilib-minimal_abi_src_configure * environment, line 877: Called multilib_src_configure * environment, line 1309: Called econf '--enable-shared' '--disable-static' * phase-helpers.sh, line 666: Called __helpers_die 'econf failed' * isolated-functions.sh, line 117: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=dev-libs/lzo-2.10::dev-kit'`, what i need install for wlan atheros/qualcom drivers to boot into my system and reemerge everything? maybe can portage download packages for emerge @system that i run them in my system?
  5. Hi! While install or recover system I see fonts are not readable in Russian sites. some letters are showing, some are squares with utf numbers. even linux .org.ru/forum has this problem 1. how install russian fonts temporary when boted from systemrescuecd? 2. is tere any bash script for capture screen if systemrescuecd has nothing root@sysresccd /root % whereis imagemagick imagemagick: % eix fonts cannot open database file /var/cache/eix/portage.eix for reading Did you forget to create it with "eix-update"? root@sysresccd /root % eix-update Reading Portage settings... Building database (/var/cache/eix/portage.eix)... [0] "gentoo" /usr/portage/ (cache: metadata-md5-or-flat) Reading category 164|164 (100) EMPTY! Applying masks... Calculating hash tables... Writing database file /var/cache/eix/portage.eix... cannot open database file /var/cache/eix/portage.eix for writing (mode = 'wb')
  6. How to get new kernel ?

    do I need this or maybe slightly thiner other? # emerge -e @system # emerge -e @world
  7. How to get new kernel ?

    yes. I installed grub and my system booted again. But trouble is that it does not start services: xdm, wpa_supplicant. lsmod is showing too few modules, without wifi. I even cannot mount usb, cause `fdisk -l` doesnot see flash and `mount /dev/sdb1 /mnt/usb` not gives effect So I recompiled my kernel twice but no effect. what can I do ? root@sysresccd /root % mkdir /mnt/funtoo root@sysresccd /root % mount /dev/sda3 /mnt/funtoo root@sysresccd /root % ls /mnt/funtoo bin boot.tar etc lib lib64 mnt proc run srv tmp var boot dev fun.tar lib32 lost+found opt root sbin sys usr is it possible recover absent stuff and how?
  8. How to get new kernel ?

    No result achieved. Laptop does not boot from ssd after all. What I did? I booted with systemrescuecd, deleted partitions, created partitions as it was, created filesystems as they were, mounted and untar with ownership and permissions my funtoo files and /boot files. unmount and reboot. Laptop says: PXE: no bootable device. So i booted iin systemrescuecd again and can paste what I have: root@sysresccd /root % fdisk -l /dev/sda Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x8d9a6437 Device Boot Start End Sectors Size Id Type /dev/sda1 2048 134217728 134215681 64G 83 Linux /dev/sda2 134219776 138414079 4194304 2G 82 Linux swap / Solaris /dev/sda3 138414080 234441647 96027568 45.8G 83 Linux root@sysresccd /root % mkdir /mnt/funtoo/boot -p root@sysresccd /root % mount /dev/sda3 /mnt/funtoo root@sysresccd /root % mount /dev/sda1 /mnt/funtoo/boot root@sysresccd /root % ls /mnt/funtoo bin boot.tar funtoo-arch lib32 lost+found root sbin usr boot etc funtoo.tar lib64 opt run srv var root@sysresccd /root % ls /mnt/funtoo/boot -la total 46200 drwxr-xr-x 4 root root 4096 Mar 8 19:09 . drwxr-xr-x 16 root root 4096 Mar 10 13:06 .. drwxr-xr-x 6 root root 4096 Mar 9 21:54 grub -rw-r--r-- 1 root root 9287700 Feb 17 03:03 initramfs-debian-sources-x86_64-4.14.12-2 -rw-r--r-- 1 root root 8003644 Dec 28 2016 initramfs-debian-sources-x86_64-4.8.15-1 -rw-r--r-- 1 root root 3796608 Mar 9 02:51 initramfs-genkernel-x86_64-4.15.7-gentoo-r1 -rw-r--r-- 1 root root 0 Feb 17 11:18 .keep_sys-apps_baselayout-0 -rw-r--r-- 1 root root 5236496 Feb 17 01:14 kernel-debian-sources-x86_64-4.14.12-2 -rw-r--r-- 1 root root 4322880 Dec 28 2016 kernel-debian-sources-x86_64-4.8.15-1 -rw-r--r-- 1 root root 6640080 Mar 9 02:21 kernel-genkernel-x86_64-4.15.7-gentoo-r1 drwx------ 2 root root 4096 Feb 16 16:53 lost+found -rw-r--r-- 1 root root 150024 Feb 17 07:01 memtest86.bin -rw-r--r-- 1 root root 3285399 Feb 17 01:14 System.map-debian-sources-x86_64-4.14.12-2 -rw-r--r-- 1 root root 3368872 Dec 28 2016 System.map-debian-sources-x86_64-4.8.15-1 -rw-r--r-- 1 root root 3090051 Mar 9 02:21 System.map-genkernel-x86_64-4.15.7-gentoo-r1 What is wrong?
  9. How to get new kernel ?

    while I have my history and by the way workable system I paste what I did ''' delete all tmp data, like this large /var/tmp/portage/distfiles # rm -rf /var/tmp ''' tar all my folder # tar -cvpf funtoo-10-03-2018.tar.gz bin etc lib32 lib64 opt root run sbin srv usr var ''' archive is without compression, so gz is just automatic input by my hands ''' archive was 11 GB and did could not be copied with error by usb flsh Adata ch94) ''' i splitted (process was very long about 25 minutes) # split -n 11 funtoo-10-03-2018.tar.gz funtoo-splitted-tar.gz. ''' i got splitted files and copied to usb flash ''' after that i rebooted into workable kernel and tar and copied /boot # mount /dev/sda1 /boot # tar -cvpf /root/boot.tar /boot # cp /root/boot.tar /run/media/user/MYTOM so now i go to fdisk all my disk, clearing what i have. see you later
  10. How to get new kernel ?

    ok, you're right
  11. How to get new kernel ?

    # LC_ALL="en" fdisk /dev/sda Welcome to fdisk (util-linux 2.29.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): p Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x462af8c6 Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 264191 262144 128M 83 Linux /dev/sda2 264192 4458495 4194304 2G 82 Linux swap / Solaris /dev/sda3 4458496 234442751 229984256 109.7G 83 Linux Command (m for help): v Total allocated sectors 234442752 greater than the maximum 234441648. Command (m for help): ^Z
  12. How to get new kernel ?

    the joke is that I got idea my laptop freezes suddenly exactly because of this partition error.
  13. How to get new kernel ?

    # LC_ALL="en" fdisk /dev/sda1 Welcome to fdisk (util-linux 2.29.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device /dev/sda1 already contains a ext2 signature. The signature will be removed by a write command. Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0xba86f0bc. Command (m for help): p Disk /dev/sda1: 128 MiB, 134217728 bytes, 262144 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xba86f0bc Command (m for help): v Remaining 262143 unallocated 512-byte sectors. Command (m for help): q I hope I have a possibility to write necessary partitions not crashing entire system. Please, can I prepare disk using https://www.funtoo.org/Install#Prepare_Hard_Disk with that difference that I will not empty partition table with 'o' choice in fdisk tool? I will only create ext2: from 0 to 128M and swap to 2G. Will my sda3 rest after making this stuff?
  14. How to get new kernel ?

    in a qna site i read about raid and dolvm in grub.cfg. I rebooted to debian-sources to get access to /dev/sda1. if it is useful here my grub.cfg that I did not touch: # cat /boot/grub/grub.cfg set timeout=3 insmod part_msdos insmod ext2 set root=(hostdisk//dev/sda,msdos1) search --no-floppy --fs-uuid --set 47173c48-55db-4ef0-9803-91bf2303baf6 if loadfont /grub/unifont.pf2; then set gfxmode=text insmod all_video terminal_output gfxterm fi set menu_color_normal=cyan/blue set menu_color_highlight=blue/cyan menuentry "Funtoo Linux genkernel - kernel-genkernel-x86_64-4.15.7-gentoo-r1" { insmod part_msdos insmod ext2 set root=(hostdisk//dev/sda,msdos1) search --no-floppy --fs-uuid --set 47173c48-55db-4ef0-9803-91bf2303baf6 linux /kernel-genkernel-x86_64-4.15.7-gentoo-r1 rootfstype=auto real_root=/dev/sda3 rootfstype=ext4 initrd /initramfs-genkernel-x86_64-4.15.7-gentoo-r1 set gfxpayload=keep } menuentry "Funtoo Linux genkernel - kernel-debian-sources-x86_64-4.8.15-1" { insmod part_msdos insmod ext2 set root=(hostdisk//dev/sda,msdos1) search --no-floppy --fs-uuid --set 47173c48-55db-4ef0-9803-91bf2303baf6 linux /kernel-debian-sources-x86_64-4.8.15-1 rootfstype=auto real_root=/dev/sda3 rootfstype=ext4 initrd /initramfs-debian-sources-x86_64-4.8.15-1 set gfxpayload=keep } menuentry "Funtoo Linux genkernel - kernel-debian-sources-x86_64-4.14.12-2" { insmod part_msdos insmod ext2 set root=(hostdisk//dev/sda,msdos1) search --no-floppy --fs-uuid --set 47173c48-55db-4ef0-9803-91bf2303baf6 linux /kernel-debian-sources-x86_64-4.14.12-2 rootfstype=auto real_root=/dev/sda3 rootfstype=ext4 initrd /initramfs-debian-sources-x86_64-4.14.12-2 set gfxpayload=keep } menuentry "memtest86+" { linux16 /memtest86.bin } set default=0
  15. How to get new kernel ?

    no, i am not creating partition. but I used tool from systemrescuecd to restore partitions cause in last installation I needed to save data on disk and clicked accidentally to mkfs... cannot remember details, but that tool helped to restore partitions and now I am using that partition I had before reinstall. so may be this is causing the problem? # dmesg ''' all the white and read lines (and near sda): [ 1.494327] ACPI Warning: GPE type mismatch (level/edge) (20170831/evxface-826) [ 4.530030] pci 0000:00:1d.0: EHCI: BIOS handoff failed (BIOS bug?) 01010001 [ 5.165215] OCFS2 User DLM kernel interface loaded [ 5.190611] hpet: number irqs doesn't agree with number of timers [ 5.472965] libata version 3.00 loaded. [ 5.729604] ahci 0000:00:13.0: version 3.0 [ 5.729768] ahci 0000:00:13.0: controller can't do DEVSLP, turning off [ 5.739907] ahci 0000:00:13.0: AHCI 0001.0300 32 slots 2 ports 3 Gbps 0x1 impl SATA mode [ 5.739910] ahci 0000:00:13.0: flags: 64bit ncq pm led clo pio slum part deso [ 5.740566] scsi host0: ahci [ 5.740741] scsi host1: ahci [ 5.740803] ata1: SATA max UDMA/133 abar m2048@0x90804000 port 0x90804100 irq 87 [ 5.740805] ata2: DUMMY [ 6.071833] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300) [ 6.078814] ata1.00: ATA-9: SanDisk SDSSDA120G, Z32080RL, max UDMA/133 [ 6.078816] ata1.00: 234441648 sectors, multi 1: LBA48 NCQ (depth 31/32), AA [ 6.095564] ata1.00: configured for UDMA/133 [ 6.095784] scsi 0:0:0:0: Direct-Access ATA SanDisk SDSSDA12 80RL PQ: 0 ANSI: 5 [ 6.096186] sd 0:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/112 GiB) [ 6.096206] sd 0:0:0:0: [sda] Write Protect is off [ 6.096209] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 6.096240] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 6.097244] sda: sda1 sda2 sda3 [ 6.097344] sda: p3 size 229984256 extends beyond EOD, enabling native capacity [ 6.098164] sda: sda1 sda2 sda3 [ 6.098250] sda: p3 size 229984256 extends beyond EOD, truncated [ 6.098614] sd 0:0:0:0: [sda] Attached SCSI disk [ 6.148834] psmouse serio1: synaptics: queried max coordinates: x [..5670], y [..4794] [ 6.158227] EXT4-fs (sda3): INFO: recovery required on readonly filesystem ... [ 7.490392] EXT4-fs (sda3): orphan cleanup on readonly fs [ 7.490536] EXT4-fs (sda3): 4 orphan inodes deleted [ 7.490538] EXT4-fs (sda3): recovery complete [ 7.494308] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null) [ 9.081225] udevd[2267]: starting version 3.2.2 [ 9.127775] udevd[2268]: starting eudev-3.2.2 [ 9.182601] ACPI: Power Button [PWRF] [ 9.185816] ACPI: Deprecated procfs I/F for AC is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared [ 9.185872] ACPI: AC Adapter [ADP0] (on-line) [ 9.211123] ACPI: Deprecated procfs I/F for battery is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared [ 9.211129] ACPI: Battery Slot [BAT0] (battery present) [ 9.223005] r8169 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control [ 9.251009] r8169 0000:03:00.0 eth0: RTL8168g/8111g at 0x000000004478d41e, 28:d2:44:a4:73:82, XID 10900800 IRQ 88 [ 9.323449] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 9.326613] udevd[2294]: inotify_add_watch(7, /dev/sda1, 10) failed: No such file or directory [ 9.327055] udevd[2285]: inotify_add_watch(7, /dev/sda2, 10) failed: No such file or directory [ 9.332921] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 9.336635] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 [ 9.336639] cfg80211: failed to load regulatory.db [ 5343.086258] udevd[8043]: inotify_add_watch(7, /dev/sda1, 10) failed: No such file or directory [ 5343.087318] udevd[8045]: inotify_add_watch(7, /dev/sda2, 10) failed: No such file or directory [ 5353.038552] udevd[8047]: inotify_add_watch(7, /dev/sda1, 10) failed: No such file or directory [ 5353.039418] udevd[8049]: inotify_add_watch(7, /dev/sda2, 10) failed: No such file or directory thank you for your attention. is it partition table gap? # LC_ALL=en partprobe -s Error: Can't have a partition outside the disk!
×