Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Upgrading the kernel for hx4700
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
kav1979
n00b
n00b


Joined: 15 May 2012
Posts: 16

PostPosted: Tue May 15, 2012 7:54 am    Post subject: [Solved] Upgrading the kernel for hx4700 Reply with quote

Hi!
I'm trying to upgrade the kernel on the hx4700 with version 2.6.21-hh19 on the current version of the gentoo-sources (3.1.10-r1).
The kernel compiles, but does not see the boot CF-card type of error: Kernel panic - not syncing: VFS: Unable to mount root fs ...

I'm add config from 2.6.21-hh19 in new kernel - did not help.
Generates a default configuration for the new kernel command:
Code:
# make magician_defconfig
- did not help.

I tried to change the configuration of the 2.6.21-hh19 in new kernel, using only the ATA / ATAPI / MFM / RLL support (DEPRECATED),
and, vice versa, using Serial ATA and Parallel ATA drivers, - the result is zero.

Please help me what setting in the kernel I forget?
.config-2.6.21-hh19 http://narod.ru/disk/49284624001.144beb3be2a2100cb2fa57ba88be0a64/.config-2.6.21-hh19.html
.config-magician_defconfig http://narod.ru/disk/49285224001.2e5e9ae631e96229fa699da2ac1a5991/.config-magician_defconfig.html
Code:

hx4700 ~ # emerge --info
Portage 2.1.6.13 (default/linux/arm/10.0/armv5te, gcc-4.2.2, glibc-2.6.1-r1, 2.6.21-hh19 armv5tel)
=================================================================
System uname: Linux-2.6.21-hh19-armv5tel-XScale-PXA270_rev_7_-v5l-with-glibc2.4
Timestamp of tree: Mon, 14 May 2012 00:45:01 +0000
distcc 2.18.3 armv5te-softfloat-linux-gnueabi (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.5.1-r3
dev-util/pkgconfig:  0.22
sys-apps/baselayout: 2.0.0_rc4
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.21.1-r1
sys-devel/gcc:       4.2.2
sys-devel/gcc-config: 1.5-r2
sys-devel/libtool:   1.5.24
sys-devel/make:      3.81
sys-kernel/linux-headers: 2.6.30-r1
sys-libs/glibc:      2.6.1-r1
virtual/os-headers:  0
ACCEPT_KEYWORDS="arm ~arm"
CBUILD="armv5te-softfloat-linux-gnueabi"
CFLAGS="-O2 -march=armv5te -mtune=iwmmxt -pipe"
CHOST="armv5te-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=armv5te -mtune=iwmmxt -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ru"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa apm arm bash-completion berkdb bzip2 cli cracklib crypt cxx fbcon gdbm gif glibc-omitfp gpm gtk hal iconv ipv6 jpeg modules ncurses nfs nls no-old-linux nptl openmp pam pcre pda pdf png pppd readline session slang ssl symlink tcpd tiff unicode wifi xattr xcb xkb xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev evtouch dummy" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev w100 pxafb" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY, USE_PYTHON


Last edited by kav1979 on Mon Jul 02, 2012 5:23 am; edited 2 times in total
Back to top
View user's profile Send private message
LordVan
Developer
Developer


Joined: 28 Nov 2002
Posts: 67
Location: Austria

PostPosted: Tue May 15, 2012 7:54 am    Post subject: Reply with quote

you might want to attach your kernel .config file ;)
_________________
I don't suffer from insanity. I enjoy every minute of it.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5941

PostPosted: Tue May 15, 2012 8:01 am    Post subject: Re: Upgrading the kernel for hx4700 Reply with quote

kav1979 wrote:
Hi!
I'm trying to upgrade the kernel on the hx4700 with version 2.6.21-hh19 on the current version of the gentoo-sources (3.1.10-r1).
The kernel compiles, but does not see the boot CF-card type of error: Kernel panic - not syncing: VFS: Unable to mount root fs ...

I'm add config from 2.6.21-hh19 in new kernel - did not help.
Generates a default configuration for the new kernel command:
Code:
# make magician_defconfig
- did not help.

I tried to change the configuration of the 2.6.21-hh19 in new kernel, using only the ATA / ATAPI / MFM / RLL support (DEPRECATED),
and, vice versa, using Serial ATA and Parallel ATA drivers, - the result is zero.

Please help me what setting in the kernel I forget?
Code:

hx4700 ~ # emerge --info
Portage 2.1.6.13 (default/linux/arm/10.0/armv5te, gcc-4.2.2, glibc-2.6.1-r1, 2.6.21-hh19 armv5tel)
=================================================================
System uname: Linux-2.6.21-hh19-armv5tel-XScale-PXA270_rev_7_-v5l-with-glibc2.4
Timestamp of tree: Mon, 14 May 2012 00:45:01 +0000
distcc 2.18.3 armv5te-softfloat-linux-gnueabi (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.5.1-r3
dev-util/pkgconfig:  0.22
sys-apps/baselayout: 2.0.0_rc4
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.21.1-r1
sys-devel/gcc:       4.2.2
sys-devel/gcc-config: 1.5-r2
sys-devel/libtool:   1.5.24
sys-devel/make:      3.81
sys-kernel/linux-headers: 2.6.30-r1
sys-libs/glibc:      2.6.1-r1
virtual/os-headers:  0
ACCEPT_KEYWORDS="arm ~arm"
CBUILD="armv5te-softfloat-linux-gnueabi"
CFLAGS="-O2 -march=armv5te -mtune=iwmmxt -pipe"
CHOST="armv5te-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=armv5te -mtune=iwmmxt -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ru"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa apm arm bash-completion berkdb bzip2 cli cracklib crypt cxx fbcon gdbm gif glibc-omitfp gpm gtk hal iconv ipv6 jpeg modules ncurses nfs nls no-old-linux nptl openmp pam pcre pda pdf png pppd readline session slang ssl symlink tcpd tiff unicode wifi xattr xcb xkb xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev evtouch dummy" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev w100 pxafb" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY, USE_PYTHON


whats magician_defconfig?
I'd recommend you'll start from a scratch .config and modify it as there way too much changes between these kernel versions.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Tue May 15, 2012 8:05 am    Post subject: Re: Upgrading the kernel for hx4700 Reply with quote

kav1979 wrote:
using only the ATA / ATAPI / MFM / RLL support (DEPRECATED),


these will absolutely not work. In fact you must have this option completely unticked if you want things to work. Newer udev will not even make device nodes for hardware using this driver.

I would highly suggest building your kernel based on one of Pappy's seeds (see sig).
Using a config from 2.6.21 on a newer kernel will likely not work, as others have suggested.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
kav1979
n00b
n00b


Joined: 15 May 2012
Posts: 16

PostPosted: Tue May 15, 2012 8:22 am    Post subject: Reply with quote

Quote:
whats magician_defconfig?

It is default configuration for hx4700

Quote:
In fact you must have this option completely unticked if you want things to work

Made entirely with disabled ATA / ATAPI / MFM / RLL support (DEPRECATED) - did not work.
Using only Serial ATA and Parallel ATA drivers - - did not work.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5941

PostPosted: Tue May 15, 2012 8:57 am    Post subject: Reply with quote

kav1979 wrote:
Quote:
whats magician_defconfig?

It is default configuration for hx4700

on what kernel? gentoo-sources? vanila?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
kav1979
n00b
n00b


Joined: 15 May 2012
Posts: 16

PostPosted: Tue May 15, 2012 9:26 am    Post subject: Reply with quote

gentoo-sources
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5941

PostPosted: Tue May 15, 2012 10:28 am    Post subject: Reply with quote

kav1979 wrote:
gentoo-sources

never heard of such option, I'm assuming that hx4700 is arm platform?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
kav1979
n00b
n00b


Joined: 15 May 2012
Posts: 16

PostPosted: Tue May 15, 2012 12:15 pm    Post subject: Reply with quote

Quote:
I'm assuming that hx4700 is arm platform?

Yes
Code:

hx4700 ~ # cat /proc/cpuinfo
Processor       : XScale-PXA270 rev 7 (v5l)
BogoMIPS        : 622.59
Features        : swp half thumb fastmult edsp iwmmxt
CPU implementer : 0x69
CPU architecture: 5TE
CPU variant     : 0x0
CPU part        : 0x411
CPU revision    : 7
Cache type      : undefined 5
Cache clean     : undefined 5
Cache lockdown  : undefined 5
Cache format    : Harvard
I size          : 32768
I assoc         : 32
I line length   : 32
I sets          : 32
D size          : 32768
D assoc         : 32
D line length   : 32
D sets          : 32

Hardware        : HP iPAQ HX4700
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5941

PostPosted: Tue May 15, 2012 12:55 pm    Post subject: Reply with quote

did magician_defconfig even generated a config?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
kav1979
n00b
n00b


Joined: 15 May 2012
Posts: 16

PostPosted: Wed May 16, 2012 8:45 am    Post subject: Reply with quote

yes,
after
Code:
# make magician_defconfig

generated a config: http://narod.ru/disk/49285224001.2e5e9ae631e96229fa699da2ac1a5991/.config-magician_defconfig.html
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5941

PostPosted: Wed May 16, 2012 9:20 am    Post subject: Reply with quote

most of us do not speak nor read russian, please pastebin it.

you can do the following:
Code:
emerge app-text/wgetpaste; wgetpaste /usr/src/linux..../.config

and post the link here.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
kav1979
n00b
n00b


Joined: 15 May 2012
Posts: 16

PostPosted: Wed May 16, 2012 10:12 am    Post subject: Reply with quote

http://pastebin.com/download.php?i=nLTZZGRH
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5941

PostPosted: Wed May 16, 2012 10:21 am    Post subject: Reply with quote

please pastebin the original config too
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
kav1979
n00b
n00b


Joined: 15 May 2012
Posts: 16

PostPosted: Wed May 16, 2012 10:43 am    Post subject: Reply with quote

http://pastebin.com/download.php?i=1Bbavrxp
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5941

PostPosted: Wed May 16, 2012 11:38 am    Post subject: Reply with quote

from what I can see you need to enable
Code:
CONFIG_ATA
in the new kernel and select the right driver.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
kav1979
n00b
n00b


Joined: 15 May 2012
Posts: 16

PostPosted: Thu May 17, 2012 5:12 am    Post subject: Reply with quote

Add to kernel:
Code:

 <*> Serial ATA and Parallel ATA drivers  --->
 --- Serial ATA and Parallel ATA drivers                                   
    [*]   Verbose ATA error reporting                                         
    [*]   SATA Port Multiplier support                                       
          *** Controllers with non-SFF native interface ***           
    <*>   Platform AHCI SATA support                                     
    [*]   ATA SFF support                                                     
            *** SFF controllers with custom DMA interface ***   
    [*]     ATA BMDMA support                                             
              *** SATA SFF controllers with BMDMA ***             
    <*>       Marvell SATA support                                       
              *** PATA SFF controllers with BMDMA ***             
    <*>       PXA DMA-capable PATA support                         
            *** PIO-only SFF controllers ***                             
    <*>     Generic platform device PATA support

did not help
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Thu May 17, 2012 5:49 am    Post subject: Reply with quote

can you paste the output of lspci -n ?
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
kav1979
n00b
n00b


Joined: 15 May 2012
Posts: 16

PostPosted: Thu May 17, 2012 6:10 am    Post subject: Reply with quote

Code:

hx4700 ~ # lspci -n
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.


In the hx4700 is not the PCI bus
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5941

PostPosted: Thu May 17, 2012 8:18 am    Post subject: Reply with quote

kav1979 wrote:
Code:

hx4700 ~ # lspci -n
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.


In the hx4700 is not the PCI bus


that is not good, all comps should have a PCI bus afaik
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 520

PostPosted: Thu May 17, 2012 9:33 am    Post subject: Reply with quote

pxa doesn't have PCI, so forget all marvell/etc PCI ata controllers.
you need CONFIG_PATA_PCMCIA=y (or the old CONFIG_BLK_DEV_IDECS if you prefer to use
the old deprecated IDE support).

show me 'lspcmcia -v' output if you have it.

EDIT: also you need the SCSI stack (at least SCSI disk support) if you're going to use PATA_PCMCIA.
Back to top
View user's profile Send private message
kav1979
n00b
n00b


Joined: 15 May 2012
Posts: 16

PostPosted: Fri May 18, 2012 6:46 am    Post subject: Reply with quote

Add in kernel:
Code:

Bus support  --->
 <*> PCCard (PCMCIA/CardBus) support  --->
 --- PCCard (PCMCIA/CardBus) support
     <*>   16-bit PCMCIA support (NEW)                                       
     [*]     Load CIS updates from userspace (EXPERIMENTAL) (NEW)

Device Drivers  --->
 <*> Serial ATA and Parallel ATA drivers  --->
  <*>     PCMCIA PATA support

Device Drivers  --->
 SCSI device support  --->
  < > RAID Transport Class                                                 
  -*- SCSI device support                                                   
  <*> SCSI target support                                                   
  [*] legacy /proc/scsi/ support                                           
      *** SCSI support type (disk, tape, CD-ROM) ***                       
  <*> SCSI disk support                                                     
  < > SCSI tape support                                                     
  < > SCSI OnStream SC-x0 tape support                                     
  < > SCSI CDROM support                                                   
  <*> SCSI generic support                                                 
  < > SCSI media changer support                                           
  [ ] Probe all LUNs on each SCSI device                                   
  [ ] Verbose SCSI error reporting (kernel size +=12K)                     
  [ ] SCSI logging facility                                                 
  [ ] Asynchronous SCSI scanning                                           
      SCSI Transports  --->                                                 
  [*] SCSI low-level drivers  --->                                         
      --- SCSI low-level drivers                                               
      <*>   iSCSI Initiator over TCP/IP                                         
      <*>   iSCSI Boot Sysfs Interface                                         
      <*>   LibFC module                                                       
      <*>   LibFCoE module                                                     
      <*>   SCSI debugging host simulator
  [*] PCMCIA SCSI adapter support  --->
  <*> SCSI Device Handlers  --->                                           
      --- SCSI Device Handlers                                                 
      <*>   LSI RDAC Device Handler                                       
      <*>   HP/COMPAQ MSA Device Handler                             
      <*>   EMC CLARiiON Device Handler                                 
      <*>   SPC-3 ALUA Device Handler (EXPERIMENTAL)
  < > OSD-Initiator library


Began to appear:
Code:

sda: unknown partition table

Partition in kernel:
Code:

 [*] Advanced partition selection                                         
    [*]   PC BIOS (MSDOS partition tables) support                 
    [*]     Minix subpartition support                                       
    [*]     Unixware slices support                                         
    [*]   Windows Logical Disk Manager (Dynamic Disk) support

Install pcmciautils:
Code:

hx4700 ~ # lspcmcia -v
Socket 0 Bridge:        [pxa2xx-pcmcia]         (bus ID: pxa2xx-pcmcia.0)
        Configuration:  state: on       ready: yes
                        Voltage: 3.3V Vcc: 3.3V Vpp: 0.0V
Socket 0 Device 0:      [ide-cs]                (bus ID: 0.0)
        Configuration:  state: on
        Product Name:   KINGSTON ULTIMATE CF CARD 16GB
        Identification: manf_id: 0x000a card_id: 0x0000
                        function: 4 (fixed disk)
                        prod_id(1): "KINGSTON" (0x2e6d1829)
                        prod_id(2): "ULTIMATE CF CARD 16GB" (0x06872d88)
                        prod_id(3): --- (---)
                        prod_id(4): --- (---)
Back to top
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 520

PostPosted: Sat May 19, 2012 2:29 pm    Post subject: Reply with quote

kav1979 wrote:
Code:

Socket 0 Device 0:      [ide-cs]                (bus ID: 0.0)


remove either BLK_DEV_IDECS or PATA_PCMCIA. You can't have both.
IDECS will create /dev/hdX nodes, PATA_PCMCIA /dev/sdX nodes.

Also I believe you have to add "rootwait" to the kernel commandline.
At least on my boards, the kernel tries to mount the rootfs on the CF card
long before the SCSI stack has finished scanning them for usable
partitions; with "rootwait" it waits for the appropriate devicenode to appear.
Back to top
View user's profile Send private message
kav1979
n00b
n00b


Joined: 15 May 2012
Posts: 16

PostPosted: Mon May 21, 2012 11:51 am    Post subject: Reply with quote

First, i'm add "rootwait" to the kernel commandline.
--------------------
If set the options:
Code:

<*> ATA/ATAPI/MFM/RLL support (DEPRECATED)  --->
    --- ATA/ATAPI/MFM/RLL support (DEPRECATED)
            *** Please see Documentation/ide/ide.txt for help/info on IDE drives
      [ ]   Support for SATA (deprecated; conflicts with libata SATA driver)
      <*>   generic ATA/ATAPI disk support
      [*]     ATA disk support
      [ ]     ATAPI floppy support
      <*>   PCMCIA IDE support
      < >   Include IDE/ATAPI CDROM support
      < >   Include IDE/ATAPI TAPE support
      [ ]   IDE Taskfile Access
      [*]   legacy /proc/ide/ support
            *** IDE chipset support/bugfixes ***
      <*>   Platform driver for IDE interfaces

SCSI device support  --->
    < > RAID Transport Class
    < > SCSI device support

< > Serial ATA and Parallel ATA drivers  --->

Does not work. Output:
Code:

Uniform Multi-platform E-IDE driver
ide-gd driver 1.18
Waiting for root device /dev/hda2

and stops
--------------------
If set the options:
Code:

<*> ATA/ATAPI/MFM/RLL support (DEPRECATED)  --->
    --- ATA/ATAPI/MFM/RLL support (DEPRECATED)
            *** Please see Documentation/ide/ide.txt for help/info on IDE drives
      [ ]   Support for SATA (deprecated; conflicts with libata SATA driver)
      <*>   generic ATA/ATAPI disk support
      [*]     ATA disk support
      [ ]     ATAPI floppy support
      <*>   PCMCIA IDE support
      < >   Include IDE/ATAPI CDROM support
      < >   Include IDE/ATAPI TAPE support
      [ ]   IDE Taskfile Access
      [*]   legacy /proc/ide/ support
            *** IDE chipset support/bugfixes ***
      <*>   Platform driver for IDE interfaces

SCSI device support  --->
    < > RAID Transport Class
    <*> SCSI device support
    <*> SCSI target support
    [*] legacy /proc/scsi/ support
        *** SCSI support type (disk, tape, CD-ROM) ***
    <*> SCSI disk support
    < > SCSI tape support
    < > SCSI OnStream SC-x0 tape support
    < > SCSI CDROM support
    <*> SCSI generic support
    <*> SCSI media changer support
    [*] Probe all LUNs on each SCSI device
    [ ] Verbose SCSI error reporting (kernel size +=12K)
    [ ] SCSI logging facility
    [*] Asynchronous SCSI scanning
        SCSI Transports  --->
    [*] SCSI low-level drivers  --->
    [*] PCMCIA SCSI adapter support  --->
    <*> SCSI Device Handlers  --->
        --- SCSI Device Handlers
        <*>   HP/COMPAQ MSA Device Handler
    < > OSD-Initiator library

< > Serial ATA and Parallel ATA drivers  --->

sda seems to see:
Code:

sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] 16384 512-byte logical blocks: (8.38 MB/8.00 MiB)
sda: unknown partition table
sd 0:0:0:0: [sda] Attached SCSI disk

but not work.

With kernel parameter "root=/dev/hda2" output:
Code:

Waiting for root device /dev/hda2

With kernel parameter "root=/dev/sda2" output:
Code:

VFS: Cannot open root device "sda2" or unknown-block(8,2)

--------------------
If set the options:
Code:

< > ATA/ATAPI/MFM/RLL support (DEPRECATED)  --->

    SCSI device support  --->
         -*- SCSI device support
         <*> SCSI target support
         [*] legacy /proc/scsi/ support
          *** SCSI support type (disk, tape, CD-ROM) ***
         <*> SCSI disk support
         < > SCSI tape support
         < > SCSI OnStream SC-x0 tape support
         < > SCSI CDROM support
         <*> SCSI generic support
         <*> SCSI media changer support
         [*] Probe all LUNs on each SCSI device
         [ ] Verbose SCSI error reporting (kernel size +=12K)
         [ ] SCSI logging facility
         [*] Asynchronous SCSI scanning
             SCSI Transports  --->
         [*] SCSI low-level drivers  --->
             --- SCSI low-level drivers
             <*>   iSCSI Initiator over TCP/IP
             <*>   iSCSI Boot Sysfs Interface
             -*-   LibFC module
             <*>   LibFCoE module
             <*>   SCSI debugging host simulator
         [*] PCMCIA SCSI adapter support  --->
         <*> SCSI Device Handlers  --->
             --- SCSI Device Handlers
             <*>   LSI RDAC Device Handler
             <*>   HP/COMPAQ MSA Device Handler
             <*>   EMC CLARiiON Device Handler
             <*>   SPC-3 ALUA Device Handler (EXPERIMENTAL)
         < > OSD-Initiator library

<*> Serial ATA and Parallel ATA drivers  --->
    --- Serial ATA and Parallel ATA drivers
    [*]   Verbose ATA error reporting
    [*]   SATA Port Multiplier support
          *** Controllers with non-SFF native interface ***
    <*>   Platform AHCI SATA support
    [*]   ATA SFF support
          *** SFF controllers with custom DMA interface ***
    [*]     ATA BMDMA support
          *** SATA SFF controllers with BMDMA ***
    <*>       Marvell SATA support
          *** PATA SFF controllers with BMDMA ***
    <*>       PXA DMA-capable PATA support
          *** PIO-only SFF controllers ***
    <*>     PCMCIA PATA support
    <*>     Generic platform device PATA support

not work.
Kernel parameter "root=/dev/sda2".
Output:
Code:

sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] 16384 512-byte logical blocks: (8.38 MB/8.00 MiB)
sda: unknown partition table
sd 0:0:0:0: [sda] Attached SCSI disk
VFS: Cannot open root device "sda2" or unknown-block(8,2)
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon May 21, 2012 12:01 pm    Post subject: Reply with quote

Perhaps you turned off partition table support.
Code:
PC BIOS (MSDOS partition tables) support (MSDOS_PARTITION)

CONFIG_MSDOS_PARTITION:

Say Y here.

Symbol: MSDOS_PARTITION [=y]
Type : boolean
Prompt: PC BIOS (MSDOS partition tables) support
Defined at block/partitions/Kconfig:107
Depends on: BLOCK [=y] && PARTITION_ADVANCED [=y]
Location:
-> Enable the block layer (BLOCK [=y])
-> Partition Types
-> Advanced partition selection (PARTITION_ADVANCED [=y])

_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum