Hi,

I'm trying to port linux into Roger-Board, but i don't know why linux not 
booting on this board.would somebody help me with some hints and tips about 
porting ?.
I'm using linux 2.4.17 kernel with patch 2.4.17-rmk3. The Roger-board have 
following feature:
SA1110 cpu stepping 4
64 MB SDRAM samsung
32 MB StrataFlash memory (2 * 28F128J3A,with 16 bit data width, on modules 
with one flash memory bank)
JTag Interface
LCD Hitachi
3 Serial Ports
....
I have port the bootloader blob-2.0.5-pre2 on the Roger and it works fein!(i 
think), it can download kernel and ramdisk images, than write to flash 
memory. when i give the kommand "boot", i see following messages on the 
console and the system hang up:

Starting kernel ...

Uncompressing Linux........................... done, booting the kernel.


I have copy the file nanoengine.c to roger.c and modified the code as 
follow:

static void __init
fixup_roger(struct machine_desc *desc, struct param_struct *params,
                 char **cmdline, struct meminfo *mi)
{
        SET_BANK( 0, 0xc0000000, 32*1024*1024 );
        SET_BANK( 1, 0xc8000000, 32*1024*1024 );
        mi->nr_banks = 2;

        ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
        setup_ramdisk( 1, 0, 0, 8192 );
        setup_initrd( __phys_to_virt(0xc0800000), 4*1024*1024 );
        //setup_initrd(0xc0800000, 4*1024*1024 );

        /* Get command line parameters passed from the loader (if any) */
        if( *((char*)0xc0000100) )
                *cmdline = ((char *)0xc0000100);
}

static struct map_desc roger_io_desc[] __initdata = {
/* virtual     physical    length      domain     r  w  c  b */
  { 0xe8000000, 0x00000000, 0x02000000, DOMAIN_IO, 1, 1, 0, 0 }, /* Flash 
bank 0 */
  LAST_DESC
};

static void __init roger_map_io(void)
{
        sa1100_map_io();
        iotable_init(roger_io_desc);

        sa1100_register_uart(0, 1);
        sa1100_register_uart(1, 2);
        sa1100_register_uart(2, 3);
        Ser1SDCR0 |= SDCR0_UART;
        /* disable IRDA -- UART2 is used as a normal serial port */
        Ser2UTCR4=0;
        Ser2HSCR0 = 0;
}

MACHINE_START(ROGER, "Roger SD")
        BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000)
        FIXUP(fixup_roger)
        MAPIO(roger_map_io)
        INITIRQ(sa1100_init_irq)
MACHINE_END
Memory map on Roger:

0x0000 0000       static bank select 0
0x0800 0000       module flash bank1
0x1000 0000       static bank select 2
0x8000 0000       peripheral control module registers
0x9000 0000       system control module registers
0xc000 0000       module SDRAM bank


who can i configured true memory map and memory timing ?
any ideas?

Thanks,

Anoulak








_________________________________________________________________
MSN Fotos ist der einfachste Weg, Ihre Fotos auszudrucken und anderen 
Benutzern zur Verf�gung zu stellen: 
http://photos.msn.de/support/worldwide.aspx


_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to