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 Previous  1, 2  
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: Wed May 23, 2012 5:33 am    Post subject: Reply with quote

Add in kernel:
Code:

[*] Enable the block layer  --->
    --- Enable the block layer                                               
    [*]   Support for large (2TB+) block devices and files                   
    -*-   Block layer SG support v4                                           
    [*]   Block layer SG support v4 helper lib                               
    [*]   Block layer data integrity support                                 
          IO Schedulers  --->
             <*> Deadline I/O scheduler                                               
             <*> CFQ I/O scheduler                                                     
                 Default I/O scheduler (CFQ)
File systems  --->
  <*> Second extended fs support                                           
  [*]   Ext2 extended attributes                                           
  [*]     Ext2 POSIX Access Control Lists                                   
  [*]     Ext2 Security Labels                                             
  [*]   Ext2 execute in place support                                       
  <*> Ext3 journalling file system support                                 
  [*]   Default to 'data=ordered' in ext3                                   
  [*]   Ext3 extended attributes                                           
  [*]     Ext3 POSIX Access Control Lists                                   
  [*]     Ext3 Security Labels                                             
  <*> The Extended 4 (ext4) filesystem                                     
  [*]   Ext4 extended attributes                                           
  [*]     Ext4 POSIX Access Control Lists                                   
  [*]     Ext4 Security Labels                                             
  [*]   EXT4 debugging support                                             
  [*] Enable POSIX file locking API                                         
  [*] Dnotify support                                                       
  [*] Inotify support for userspace                                         
  <*> FUSE (Filesystem in Userspace) support                               
      DOS/FAT/NT Filesystems  --->                                         
      <*> MSDOS fs support                                                     
      <*> VFAT (Windows-95) fs support                                         
      (866) Default codepage for FAT                                           
      (utf8) Default iocharset for FAT                                         
      < > NTFS file system support
  [*] Miscellaneous filesystems  --->                                       
      Partition Types  --->
      [*] Advanced partition selection                                         
      [*]   Acorn partition support                                             
      [*]     Cumana partition support                                         
      [*]     EESOX partition support                                           
      [*]     ICS partition support                                             
      [*]     Native filecore partition support                                 
      [*]     PowerTec partition support                                       
      [*]     RISCiX partition support                                         
      [*]   Alpha OSF partition support                                         
      [*]   Amiga partition table support                                       
      [*]   Atari partition table support                                       
      [*]   Macintosh partition map support                                     
      [*]   PC BIOS (MSDOS partition tables) support                           
      [*]     BSD disklabel (FreeBSD partition tables) support                 
      [*]     Minix subpartition support                                       
      [*]     Solaris (x86) partition table support                             
      [*]     Unixware slices support                                           
      [*]   Windows Logical Disk Manager (Dynamic Disk) support                 
      [*]     Windows LDM extra logging                                         
      [*]   SGI partition support                                               
      [*]   Ultrix partition table support                                     
      [*]   Sun partition tables support                                       
      [*]   Karma Partition support                                             
      [*]   EFI GUID Partition support                                         
      [*]   SYSV68 partition table support

Does not work. Output:
Code:

sda: unknown partition table

It is not clear: the old kernel detects the partition table, but the new kernel does not.
Back to top
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 520

PostPosted: Wed May 23, 2012 4:51 pm    Post subject: Reply with quote

Something else is wrong: pcmciautils says the card has 16GB, but with pata_pcmcia it says 8MB.
Please post full dmesg outputs of the working and non-working kernels, maybe we can find
some clues in there.
Back to top
View user's profile Send private message
kav1979
n00b
n00b


Joined: 15 May 2012
Posts: 16

PostPosted: Thu May 24, 2012 5:05 am    Post subject: Reply with quote

Full dmesg output of the working kernel:http://pastebin.com/download.php?i=pJ5CNKQ8
But dmesg output of the new kernel is missing, because can not mount root. The output of the new kernel written in my above comments I wrote from the screen hx4700.
In real card has 16GB.
Back to top
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 520

PostPosted: Thu May 24, 2012 10:49 am    Post subject: Reply with quote

the old kernel for the hx4700, is that a "vanilla" source or has machine support been patched in?
I get the distinct impression that the pcmcia bridge is missing some customization for the hx4700 in 3.3
Either that or a sublte bug has sneaked into pxa2xx pcmcia support in the meantime. I suspect that
hx4700 pcmcia is missing since the magician_defconfig in 3.3 doesn't enable pcmcia at all
Back to top
View user's profile Send private message
kav1979
n00b
n00b


Joined: 15 May 2012
Posts: 16

PostPosted: Fri May 25, 2012 5:04 am    Post subject: Reply with quote

About old kernel are only known binary and config :(
It is a pity that so many in the kernel code for the hx4700, but it can not be used because of this error.

PS On hx4700 now portage offers kernel 3.1.10-gentoo-r1.
Back to top
View user's profile Send private message
lost-distance
n00b
n00b


Joined: 10 Apr 2003
Posts: 73

PostPosted: Wed Jun 27, 2012 11:11 am    Post subject: Reply with quote

hx4700 PCMCIA support was added to linux-3.5-rc1.

I have uploaded a working hx4700 kernel config for linux 3.5.0-rc2 here:

http://pastebin.com/qcCHkjYL

Note that I use UBIFS instead of JFFS2 for the internal flash (MTD) file systems, so you may need to disable CONFIG_UBIFS_FS and enable CONFIG_JFFS2_FS instead.
Back to top
View user's profile Send private message
kav1979
n00b
n00b


Joined: 15 May 2012
Posts: 16

PostPosted: Mon Jul 02, 2012 5:21 am    Post subject: Reply with quote

I tried to Kernel-3.5.0-r2 - kernel not started.
On the Kernel-3.5.0-r4 with the proposed kernel config is also not started, but I used magician_defconfig, adding support pcmcia and ata. And the kernel booted, CF-card is determined.
Thank you.
Back to top
View user's profile Send private message
lost-distance
n00b
n00b


Joined: 10 Apr 2003
Posts: 73

PostPosted: Mon Jul 02, 2012 10:37 am    Post subject: Reply with quote

It is possible that my 3.5.0-rc2 kernel config did not start because of the combination of bootloader and kernel command line.

If you use the SDG bootloader and store Linux file systems in the internal flash (MTD) partitions, then you might need to modify the kernel command line to provide the correct MTD partition information.

For example, I use a modified SDG bootloader to provide the following kernel command line:

Code:
mtdparts=physmap-flash:0x00040000@0x00000000(bootldr)ro,0x00040000@0x00040000(sdg),0x00240000@0x00080000(kernel),0x07D00000@0x002C0000(ubi),0x00040000@0x07FC0000(asset) ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs ro


The MTD partition information is documented in drivers/mtd/cmdlinepart.c:

Code:
 * The format for the command line is as follows:
 *
 * mtdparts=<mtddef>[;<mtddef]
 * <mtddef>  := <mtd-id>:<partdef>[,<partdef>]
 *              where <mtd-id> is the name from the "cat /proc/mtd" command
 * <partdef> := <size>[@offset][<name>][ro][lk]
 * <mtd-id>  := unique name used in mapping driver/device (mtd->name)
 * <size>    := standard linux memsize OR "-" to denote all remaining space
 * <name>    := '(' NAME ')'


The mtd-id provided by the default SDG bootloader is "ipaq", whereas the mtd-id expected by the Linux kernel is "physmap-flash". Therefore if the default SDG bootloader is being used, the kernel will not correctly parse the MTD partition information on the command line, and consequently it will not find the MTD partitions (including the root file system). This can be verified by enabling CONFIG_VT_CONSOLE in the kernel config to display console output on the screen at boot time.

An alternative to modifying the SDG bootloader is to override the kernel command line by setting CONFIG_CMDLINE in the kernel config.

If you use the HaRET bootloader and do not store Linux file systems in the MTD partitions, then perhaps the above problem is irrelevant.

Anyway, it is good to hear that you have CF working!
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 Previous  1, 2
Page 2 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