Go to previous topic
Go to next topic
Last Post 11 Oct 2006 12:13 PM by  ashwinb@logicpd.com
Kernel 2.6.19-rc1 for PXA270
 2 Replies
Author Messages
clibux
New Member
New Member
Posts:


--
09 Oct 2006 07:04 PM
    I am working to compile the 2.6.19-rc1 kernel for a PXA270 development board. The sample kernel and file system from Logic successfully run on the board. With that in mind, I am using the sample image config file in combination with the lpd270_defconfig included with the source to configure the kernel. The intent is to use the file system installed on the flash from the sample system with the newly compiled kernel. There are some differences between the config files, and some problems. The first is apparently in the machine id, the board does not match the 2.6.19-rc1 kernel config id when the CONFIG_MACH_LOGICPD_PXA270 option is selected. I appear to have that temporarily resolved, at least enough to have the system start to boot. The problem I am running into now is in configuring the MTD on board flash. The config file with the sample image refers to a CONFIG_MTD_LPD270 option, which is nowhere to be found in the 2.6.19-rc1 config. There is instead a CONFIG_MTD_PHYSMAP option for setting up address mapping. I have had no success in setting this up. Here is my best guess as to what the settings for the PXA270 board should be:

    CONFIG_MTD_PHYSMAP=y
    CONFIG_MTD_PHYSMAP_START=0x00000000
    CONFIG_MTD_PHYSMAP_LEN=0x02000000
    CONFIG_MTD_PHYSMAP_BANKWIDTH=4

    I suspect there may be more to this than I am seeing. Perhaps a mapping file or something of that nature is missing? Has anyone had success with this version of the kernel on this board and/or have any suggestions on how to configure the on-board flash for the system? I can provide more information as necessary.

    Thanks,
    Lewis
    clibux
    New Member
    New Member
    Posts:


    --
    10 Oct 2006 08:43 PM
    I found this topic on the forum:

    http://www.logicpd.com/support/tdg/viewtopic.php?t=642

    which gives a listing for a kernel patch. The patch is against the 2.6.17-rc5 kernel, but it appears to contain information for some of the problems I am trying to solve right now, such as the machine id not matching and the mapping for the on-board flash. I will give this a try as soon as I have a chance.

    Thanks,
    Lewis
    ashwinb@logicpd.com
    New Member
    New Member
    Posts:


    --
    11 Oct 2006 12:13 PM
    Lewis,

    You will need the MTD map file (lpd270_flash.c) defined in the other thread you dug up to be able to access the filesystem. You should be able to just create the file, make the necessary Kconfig and Makefile changes and be "good to go" (TM)..

    Regards


    ---