[PATCH v2] kirkwood: add dir-665 support

Hirundo Cam camhirundo at gmail.com
Wed May 4 20:20:27 EDT 2011


Hi Saeed and Nicolas,

2011/5/4 saeed bishara <saeed.bishara at gmail.com>:
> On Wed, May 4, 2011 at 11:16 AM, Simon Guinot <simon at sequanux.org> wrote:
>> Hi Hirundo,
>>
>> On Wed, May 04, 2011 at 04:05:46PM +0800, Hirundo Cam wrote:
>>> This patch is a hack to dir-665 by referencing mv88f6281gtw_ge board.
>>> LEDs, GPIO, Buttons remains unknown.
> Hirundo,

>   if this board is very similar to mv88f6281gtw_ge, you should use
> the same board setup file. it will be great if you specify the
> differences between the two boards.

I have no mv88f6281gtw_ge board on hand.
However, After I've looked into the setup file of mv88f6281gtw_ge.
I've found that the NOR flash, ddr2 DRAM, switch chip, ethernet port define
are differ from mv88f6281gtw_ge.

I have no idea if we could use #if define to distinguish the different
boards use
the same SoC. While I want also made this adaptable in OpenWrt.

>   please have a look at sheevaplug-setup.c to see how multiple boards
> supported in same setup file.
> saeed
>

Hum, I think Kernel will rely on the mach-type ID in u-boot to check
which board is in booting. If the original u-boot has changed
mach-type ID, I don't think us the same configuration file with
mv88f6281gtw_ge is good. At least I've tried kernel image compiled
with mv88f6281gtw_ge option but it seems kernel cannot be booted and
hanged in very early stage. Just like the mach-type ID doesn't match.

Regards,
Hirundo Cam



More information about the linux-arm-kernel mailing list