View previous topic :: View next topic |
Author |
Message |
kav1979 n00b
Joined: 15 May 2012 Posts: 16
|
Posted: Wed May 23, 2012 5:33 am Post subject: |
|
|
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 |
|
|
roarinelk Guru
Joined: 04 Mar 2004 Posts: 520
|
Posted: Wed May 23, 2012 4:51 pm Post subject: |
|
|
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 |
|
|
kav1979 n00b
Joined: 15 May 2012 Posts: 16
|
Posted: Thu May 24, 2012 5:05 am Post subject: |
|
|
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 |
|
|
roarinelk Guru
Joined: 04 Mar 2004 Posts: 520
|
Posted: Thu May 24, 2012 10:49 am Post subject: |
|
|
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 |
|
|
kav1979 n00b
Joined: 15 May 2012 Posts: 16
|
Posted: Fri May 25, 2012 5:04 am Post subject: |
|
|
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 |
|
|
lost-distance n00b
Joined: 10 Apr 2003 Posts: 73
|
Posted: Wed Jun 27, 2012 11:11 am Post subject: |
|
|
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 |
|
|
kav1979 n00b
Joined: 15 May 2012 Posts: 16
|
Posted: Mon Jul 02, 2012 5:21 am Post subject: |
|
|
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 |
|
|
lost-distance n00b
Joined: 10 Apr 2003 Posts: 73
|
Posted: Mon Jul 02, 2012 10:37 am Post subject: |
|
|
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 |
|
|
|