Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 16 of 16
ok, I went ahead and upgraded to 3.5.4-r1 and because I had 'symlink' enabled in make.conf, kernel got automatically set. Code: ~ # eselect kernel list Available kernel symlink targets: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Just Joined!
    Join Date
    Oct 2012
    Posts
    15

    ok, I went ahead and upgraded to 3.5.4-r1 and because I had 'symlink' enabled in make.conf, kernel got automatically set.

    Code:
    ~ # eselect kernel list
    Available kernel symlink targets:
    [1] linux-2.6.28-hardened-r7
    [2] linux-2.6.28-hardened-r9
    [3] linux-3.5.4-hardened-r1 *
    
    ~ # ls -al /usr/src/linux
    lrwxrwxrwx 1 root root 23 Oct 11 15:50 /usr/src/linux -> linux-3.5.4-hardened-r1
    after the update it asked me to emerge gradm.
    more information:
    pastebin.com/3HcYZ9uv

    please could you advice further? I have a back up of my .config from r9.
    Last edited by midway; 10-11-2012 at 03:01 PM. Reason: more info

  2. #12
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Quote Originally Posted by midway View Post
    ok, I went ahead and upgraded to 3.5.4-r1 and because I had 'symlink' enabled in make.conf, kernel got automatically set.

    Code:
    ~ # eselect kernel list
    Available kernel symlink targets:
    [1] linux-2.6.28-hardened-r7
    [2] linux-2.6.28-hardened-r9
    [3] linux-3.5.4-hardened-r1 *
    
    ~ # ls -al /usr/src/linux
    lrwxrwxrwx 1 root root 23 Oct 11 15:50 /usr/src/linux -> linux-3.5.4-hardened-r1
    after the update it asked me to emerge gradm.
    more information:
    pastebin.com/3HcYZ9uv

    please could you advice further? I have a back up of my .config from r9.
    Now you need to build/compile your kernel, modules and do not forget to update your boot loader.
    Gentoo Linux Documentation -- Gentoo Linux Kernel Upgrade Guide
    I do not think that you can use the .config file from 2.6 kernel to 3.5 kernel. You might be able to parse the config file by hand and see what is there that you need, but there has been way too many changes between those kernels to expect success. I promise you the kernel build will fail. Read the link I posted and see if it works for you.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  3. #13
    Just Joined!
    Join Date
    Oct 2012
    Posts
    15
    on code listing 5.4
    make && make modules_install
    Code:
    Setup is 12848 bytes (padded to 13312 bytes).
    System is 5123 kB
    CRC d228183
    Kernel: arch/x86/boot/bzImage is ready  (#1)
      Building modules, stage 2.
      MODPOST 7 modules
    WARNING: modpost: Found 13 section mismatch(es).
    To see full details build your kernel with:
    'make CONFIG_DEBUG_SECTION_MISMATCH=y'
      CC      arch/x86/kernel/test_nx.mod.o
      LD [M]  arch/x86/kernel/test_nx.ko
      CC      drivers/char/kcopy/kcopy.mod.o
      LD [M]  drivers/char/kcopy/kcopy.ko
      CC      drivers/hid/hid-logitech-dj.mod.o
      LD [M]  drivers/hid/hid-logitech-dj.ko
      CC      drivers/net/ethernet/amd/pcnet32.mod.o
      LD [M]  drivers/net/ethernet/amd/pcnet32.ko
      CC      drivers/scsi/scsi_wait_scan.mod.o
      LD [M]  drivers/scsi/scsi_wait_scan.ko
      CC      net/netfilter/xt_LOG.mod.o
      LD [M]  net/netfilter/xt_LOG.ko
      CC      net/netfilter/xt_mark.mod.o
      LD [M]  net/netfilter/xt_mark.ko
      INSTALL arch/x86/kernel/test_nx.ko
      INSTALL drivers/char/kcopy/kcopy.ko
      INSTALL drivers/hid/hid-logitech-dj.ko
      INSTALL drivers/net/ethernet/amd/pcnet32.ko
      INSTALL drivers/scsi/scsi_wait_scan.ko
      INSTALL net/netfilter/xt_LOG.ko
      INSTALL net/netfilter/xt_mark.ko
      DEPMOD  3.5.4-hardened-r1
    However, I can not mount /boot
    Code:
    # mount /boot
    mount: special device /dev/sda1 does not exist
    I have enabled support for PIIX4 and other drivers:
    Code:
    ~ # lspci -nn
    00:00.0 Host bridge [0600]: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge [8086:7190] (rev 01)
    00:01.0 PCI bridge [0604]: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge [8086:7191] (rev 01)
    00:07.0 ISA bridge [0601]: Intel Corporation 82371AB/EB/MB PIIX4 ISA [8086:7110] (rev 08)
    00:07.1 IDE interface [0101]: Intel Corporation 82371AB/EB/MB PIIX4 IDE [8086:7111] (rev 01)
    00:07.3 Bridge [0680]: Intel Corporation 82371AB/EB/MB PIIX4 ACPI [8086:7113] (rev 08)
    00:0f.0 VGA compatible controller [0300]: VMware SVGA II Adapter [15ad:0405]
    00:10.0 SCSI storage controller [0100]: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI [1000:0030] (rev 01)
    00:11.0 Ethernet controller [0200]: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] [1022:2000] (rev 10)

  4. #14
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Are you sure you need to mount /boot? Is /boot a separate partition? Use the fdisk command to see how your disk is partititoned.
    Code:
    fdisk -l
    Also show us your /etc/fstab
    Code:
    cat /etc/fstab
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  5. #15
    Just Joined!
    Join Date
    Oct 2012
    Posts
    15
    strangely it doesn't show anything
    Code:
    # fdisk -l
    #
    # cat /etc/fstab
    /dev/sda1 /boot xfs defaults,noatime 1 2
    /dev/sda2 swap swap sw 0 0
    /dev/sda3 / xfs noatime 0 1
    /dev/cdrom /mnt/cdrom auto defaults,noauto 0 0
    none /proc proc defaults 0 0
    none /dev/shm tmpfs nodev,nosuid,noexec,rw 0 0
    on make menuconfig, after searching for ATA_PIIX I see this is already selected (do i need to switch from PATA to ATA_PIIX?):
    Code:
     --- Serial ATA and Parallel ATA drivers                                                          
      │ │[*]   Verbose ATA error reporting                                                                
      │ │[*]   ATA ACPI Support                                                                          
      │ │[*]   SATA Port Multiplier support                                                              
      │ │                                *** Controllers with non-SFF native interface ***                                        
      │ │                          <*>   AHCI SATA support                                                                        
      │ │                          < >   Platform AHCI SATA support                                                                
      │ │                          < >   Initio 162x SATA support                                                                  
      │ │                          < >   ACard AHCI variant (ATP 8620)                                                              
      │ │                          < >   Silicon Image 3124/3132 SATA support                                                      
      │ │[*]   ATA SFF support                                                                            
      │ │                                  *** SFF controllers with custom DMA interface ***                                        
      │ │                          < >     Pacific Digital ADMA support                                                            
      │ │                          < >     Pacific Digital SATA QStor support                                                      
      │ │                          < >     Promise SATA SX4 support (Experimental)                                                  
      │ │[*]     ATA BMDMA support                                                                        
      │ │                                    *** SATA SFF controllers with BMDMA ***                                                
      │ │                          <*>       Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support                                        
      │ │                          < >       Marvell SATA support                                                                  
      │ │                          < >       NVIDIA SATA support                                                                    
      │ │                          < >       Promise SATA TX2/TX4 support                                                          
      │ │                          < >       Silicon Image SATA support                                                            
      │ │                          < >       SiS 964/965/966/180 SATA support                                                        
      │ │                          < >       ServerWorks Frodo / Apple K2 SATA support                                              
      │ │                          < >       ULi Electronics SATA support                                                          
      │ │                          < >       VIA SATA support                                                                      
      │ │                          < >       VITESSE VSC-7174 / INTEL 31244 SATA support                                            
      │ │                                    *** PATA SFF controllers with BMDMA ***                                                
      │ │                          < >       ALi PATA support                                                                      
      │ │                          <*>       AMD/NVidia PATA support                                                                
      │ │                          < >       ARASAN CompactFlash PATA Controller Support                                            
      │ │                          < >       ARTOP 6210/6260 PATA support                                                          
      │ │                          < >       ATI PATA support                                                                      
      │ │                          < >       ARTOP/Acard ATP867X PATA support
    and I have just enabled the devtmpfs:
    CONFIG_DEVTMPFS=y
    CONFIG_TMPFS=y AND

    menuconfig search showed:
    Code:
    Symbol: DEVTMPFS [=y] 
    │ Type : boolean 
    │ Prompt: Maintain a devtmpfs filesystem to mount at /dev 
    │ Defined at drivers/base/Kconfig:24 
    │ Depends on: HOTPLUG [=y] 
    │ Location: 
    │ -> Device Drivers 
    │ -> Generic Driver Options 
    │ 
    │ 
    │ Symbol: DEVTMPFS_MOUNT [=n] 
    │ Type : boolean 
    │ Prompt: Automount devtmpfs at /dev, after the kernel mounted the rootfs 
    │ Defined at drivers/base/Kconfig:44 
    │ Depends on: DEVTMPFS [=y] 
    │ Location: 
    │ -> Device Drivers 
    │ -> Generic Driver Options 
    │ -> Maintain a devtmpfs filesystem to mount at /dev (DEVTMPFS [=y])
    so, I have now enabled automount too:
    Code:
    (/sbin/hotplug) path to uevent helper 
    │ │[*] Maintain a devtmpfs filesystem to mount at /dev 
    │ │[*] Automount devtmpfs at /dev, after the kernel mounted the rootfs │ │ 
    │ │[*] Select only drivers that don't need compile-time external firmware │ │ 
    │ │[*] Prevent firmware from being built │ │ 
    │ │ -*- Userspace firmware loading support │ │ 
    │ │[*] Include in-kernel firmware blobs in kernel binary │ │ 
    │ │ () External firmware blobs to build into the kernel binary │ │ 
    │ │ [ ] Driver Core verbose debug messages │ │ 
    │ │[*] Managed device resources verbose debug messages │ │ 
    │ │ [ ] Contiguous Memory Allocator (EXPERIMENTAL)
    more info on drivers:
    Code:
     # lspci -k
    00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01)
            Subsystem: VMware Virtual Machine Chipset
            Kernel driver in use: agpgart-intel
            Kernel modules: intel-agp
    00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 01)
            Kernel modules: shpchp
    00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 08)
            Subsystem: VMware Virtual Machine Chipset
    00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
            Subsystem: VMware Virtual Machine Chipset
            Kernel driver in use: PIIX_IDE
            Kernel modules: ata_piix
    00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
            Subsystem: VMware Virtual Machine Chipset
            Kernel modules: i2c-piix4
    00:0f.0 VGA compatible controller: VMware SVGA II Adapter
            Subsystem: VMware SVGA II Adapter
    00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)
            Kernel driver in use: mptspi
            Kernel modules: mptspi
    00:11.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
            Subsystem: Advanced Micro Devices [AMD] PCnet - Fast 79C971
            Kernel driver in use: pcnet32
            Kernel modules: pcnet32, vmxnet
    I think this is where the whole problem lies (kernel can not see the disk):
    Code:
    00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01) (prog-if 8a [Master SecP PriP])
            Subsystem: VMware Virtual Machine Chipset
            Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
            Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
            Latency: 64
            Region 0: [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
            Region 1: [virtual] Memory at 000003f0 (type 3, non-prefetchable)
            Region 2: [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
            Region 3: [virtual] Memory at 00000370 (type 3, non-prefetchable)
            Region 4: I/O ports at 1050 [size=16]
            Kernel driver in use: PIIX_IDE
            Kernel modules: ata_piix
    I have the new kernel 3.5.4-r1 (hardened) installed, set and compiled but I am afraid of rebootin the system at this point. as there is nothing inside boot (like grub etc) or i can not mount sda1/2/3 (from within my current kernel 2.6.28-r9) - so i can not even update my grub bootloader. please could anyone advice a resolution? - I am out of my depth here
    Last edited by midway; 10-12-2012 at 12:42 PM. Reason: more info

  6. #16
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Quote Originally Posted by midway View Post
    strangely it doesn't show anything
    Code:
    # fdisk -l
    #
    # cat /etc/fstab
    /dev/sda1 /boot xfs defaults,noatime 1 2
    /dev/sda2 swap swap sw 0 0
    /dev/sda3 / xfs noatime 0 1
    /dev/cdrom /mnt/cdrom auto defaults,noauto 0 0
    none /proc proc defaults 0 0
    none /dev/shm tmpfs nodev,nosuid,noexec,rw 0 0
    on make menuconfig, after searching for ATA_PIIX I see this is already selected (do i need to switch from PATA to ATA_PIIX?):
    Code:
     --- Serial ATA and Parallel ATA drivers                                                          
      │ │[*]   Verbose ATA error reporting                                                                
      │ │[*]   ATA ACPI Support                                                                          
      │ │[*]   SATA Port Multiplier support                                                              
      │ │                                *** Controllers with non-SFF native interface ***                                        
      │ │                          <*>   AHCI SATA support                                                                        
      │ │                          < >   Platform AHCI SATA support                                                                
      │ │                          < >   Initio 162x SATA support                                                                  
      │ │                          < >   ACard AHCI variant (ATP 8620)                                                              
      │ │                          < >   Silicon Image 3124/3132 SATA support                                                      
      │ │[*]   ATA SFF support                                                                            
      │ │                                  *** SFF controllers with custom DMA interface ***                                        
      │ │                          < >     Pacific Digital ADMA support                                                            
      │ │                          < >     Pacific Digital SATA QStor support                                                      
      │ │                          < >     Promise SATA SX4 support (Experimental)                                                  
      │ │[*]     ATA BMDMA support                                                                        
      │ │                                    *** SATA SFF controllers with BMDMA ***                                                
      │ │                          <*>       Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support                                        
      │ │                          < >       Marvell SATA support                                                                  
      │ │                          < >       NVIDIA SATA support                                                                    
      │ │                          < >       Promise SATA TX2/TX4 support                                                          
      │ │                          < >       Silicon Image SATA support                                                            
      │ │                          < >       SiS 964/965/966/180 SATA support                                                        
      │ │                          < >       ServerWorks Frodo / Apple K2 SATA support                                              
      │ │                          < >       ULi Electronics SATA support                                                          
      │ │                          < >       VIA SATA support                                                                      
      │ │                          < >       VITESSE VSC-7174 / INTEL 31244 SATA support                                            
      │ │                                    *** PATA SFF controllers with BMDMA ***                                                
      │ │                          < >       ALi PATA support                                                                      
      │ │                          <*>       AMD/NVidia PATA support                                                                
      │ │                          < >       ARASAN CompactFlash PATA Controller Support                                            
      │ │                          < >       ARTOP 6210/6260 PATA support                                                          
      │ │                          < >       ATI PATA support                                                                      
      │ │                          < >       ARTOP/Acard ATP867X PATA support
    and I have just enabled the devtmpfs:
    CONFIG_DEVTMPFS=y
    CONFIG_TMPFS=y AND

    menuconfig search showed:
    Code:
    Symbol: DEVTMPFS [=y] 
    │ Type : boolean 
    │ Prompt: Maintain a devtmpfs filesystem to mount at /dev 
    │ Defined at drivers/base/Kconfig:24 
    │ Depends on: HOTPLUG [=y] 
    │ Location: 
    │ -> Device Drivers 
    │ -> Generic Driver Options 
    │ 
    │ 
    │ Symbol: DEVTMPFS_MOUNT [=n] 
    │ Type : boolean 
    │ Prompt: Automount devtmpfs at /dev, after the kernel mounted the rootfs 
    │ Defined at drivers/base/Kconfig:44 
    │ Depends on: DEVTMPFS [=y] 
    │ Location: 
    │ -> Device Drivers 
    │ -> Generic Driver Options 
    │ -> Maintain a devtmpfs filesystem to mount at /dev (DEVTMPFS [=y])
    so, I have now enabled automount too:
    Code:
    (/sbin/hotplug) path to uevent helper 
    │ │[*] Maintain a devtmpfs filesystem to mount at /dev 
    │ │[*] Automount devtmpfs at /dev, after the kernel mounted the rootfs │ │ 
    │ │[*] Select only drivers that don't need compile-time external firmware │ │ 
    │ │[*] Prevent firmware from being built │ │ 
    │ │ -*- Userspace firmware loading support │ │ 
    │ │[*] Include in-kernel firmware blobs in kernel binary │ │ 
    │ │ () External firmware blobs to build into the kernel binary │ │ 
    │ │ [ ] Driver Core verbose debug messages │ │ 
    │ │[*] Managed device resources verbose debug messages │ │ 
    │ │ [ ] Contiguous Memory Allocator (EXPERIMENTAL)
    more info on drivers:
    Code:
     # lspci -k
    00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01)
            Subsystem: VMware Virtual Machine Chipset
            Kernel driver in use: agpgart-intel
            Kernel modules: intel-agp
    00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 01)
            Kernel modules: shpchp
    00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 08)
            Subsystem: VMware Virtual Machine Chipset
    00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
            Subsystem: VMware Virtual Machine Chipset
            Kernel driver in use: PIIX_IDE
            Kernel modules: ata_piix
    00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
            Subsystem: VMware Virtual Machine Chipset
            Kernel modules: i2c-piix4
    00:0f.0 VGA compatible controller: VMware SVGA II Adapter
            Subsystem: VMware SVGA II Adapter
    00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)
            Kernel driver in use: mptspi
            Kernel modules: mptspi
    00:11.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
            Subsystem: Advanced Micro Devices [AMD] PCnet - Fast 79C971
            Kernel driver in use: pcnet32
            Kernel modules: pcnet32, vmxnet
    I think this is where the whole problem lies (kernel can not see the disk):
    Code:
    00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01) (prog-if 8a [Master SecP PriP])
            Subsystem: VMware Virtual Machine Chipset
            Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
            Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
            Latency: 64
            Region 0: [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
            Region 1: [virtual] Memory at 000003f0 (type 3, non-prefetchable)
            Region 2: [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
            Region 3: [virtual] Memory at 00000370 (type 3, non-prefetchable)
            Region 4: I/O ports at 1050 [size=16]
            Kernel driver in use: PIIX_IDE
            Kernel modules: ata_piix
    I have the new kernel 3.5.4-r1 (hardened) installed, set and compiled but I am afraid of rebootin the system at this point. as there is nothing inside boot (like grub etc) or i can not mount sda1/2/3 (from within my current kernel 2.6.28-r9) - so i can not even update my grub bootloader. please could anyone advice a resolution? - I am out of my depth here
    This is just a guess here but what file system is on that disk? It looks like xfs? Is xfs compiled into your kernel? What about the new one you just compiled?
    How did you get the machine to boot without a boot loader?
    Last edited by MikeTbob; 10-12-2012 at 01:38 PM. Reason: typo
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •