Hello list,
I'm currently attempting to get Linux running on a custom board and have gotten to the point of trying to get our IDE FlashCard working. I have ported u-boot and have the flash card working as expected (as in being able to read and write sectors) so it looks like it is possible to get it working in Linux with the parameters I have setup (this is using CONFIG_IDE_8XX_DIRECT and the various CFG_PCMCIA_* parameters). I have built the kernel with IDE Block Device support and have selected the MPC8xx IDE support as well, using 8xx_DIRECT as the interface. I have ensured that my parameters for PCMCIA match those of u-boot. I get the following on bootup with regards to the IDE subsystem (having defined DEBUG and added some additional debugging into in drivers/ide/ppc/mpc8xx.c): ... Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx win->br: 0xfe100000, PCMCIA_MEM_SIZE: 0x80, pcmcia_phy_end: 0xfe100080 win->br: 0xfe100080, PCMCIA_MEM_SIZE: 0x80, pcmcia_phy_end: 0xfe100100 win->br: 0xfe100100, PCMCIA_MEM_SIZE: 0x80, pcmcia_phy_end: 0xfe100180 win->br: 0xfe100c00, PCMCIA_MEM_SIZE: 0x80, pcmcia_phy_end: 0xfe100c80 win->br: 0xfe100c80, PCMCIA_MEM_SIZE: 0x80, pcmcia_phy_end: 0xfe100d00 win->br: 0xfe100d00, PCMCIA_MEM_SIZE: 0x80, pcmcia_phy_end: 0xfe100d80 PCMCIA slot A: phys mem fe100000...fe100d80 (size 00000d80) PCMCIA virt base: c1000000 base: c1000000 + 00000000 = c1000000 port[0]: c1000000 + 00000000 = c1000000 port[1]: c1000000 + 00000081 = c1000081 port[2]: c1000000 + 00000082 = c1000082 port[3]: c1000000 + 00000083 = c1000083 port[4]: c1000000 + 00000084 = c1000084 port[5]: c1000000 + 00000085 = c1000085 port[6]: c1000000 + 00000086 = c1000086 port[7]: c1000000 + 00000087 = c1000087 port[8]: c1000000 + 00000106 = c1000106 port[9]: c1000000 + 0000000a = c100000a ... The IDE driver is calling m8xx_ide_init_hwif_ports successfully (not so if I define 8xx_PCCARD) and from the source it just seems to be getting the PCMCIA parameters that are setup by u-boot. Everything seems fine up to this point. Now, I'm wondering, why is it not enumerating the drives on the found hwif ports? Would I need to specify the drives on the command line, or some other step that I might be missing? Can anyone see anything drastically wrong with the PCMCIA parameters (even though they seem to work fine with u-boot). We are using a rather old kernel (2.6.12 I think, with customizations for our hardware), but this is a rather old custom board with very limited ram so we are attempting to get the older kernel working first before looking into upgrading. Any help appreciated. -- Burton Samograd
_______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev