[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-arm
Subject:    Downporting from 2.6.14 to 2.6.9
From:       Bahadir Balban <bahadir.balban () gmail ! com>
Date:       2005-11-25 17:28:56
Message-ID: 7ac1e90c0511250928g4c953bd8k7dfcdc6a3bb1d6cb () mail ! gmail ! com
[Download RAW message or body]

Hi,

I attempted to downport a working RealviewEB 2.6.14 kernel to 2.6.9. I
need it for various reasons. This platform is very similar to
Versatile PB, it has an ARM926EJS and most peripherals are the same.

My 2.6.9 port boots fine down to init/main.c where /dev/console fails
to open with -ENODEV. I have the UART enabled as a console device in
my .config. After this point, obviously I see no printk output on the
UART, and a do_prefetch_abort() -> do_translation_fault() repeatedly
occurs for address 0xC01EAF88. This address doesn't seem to be in
vmlinux. I'm not sure if this is normal or unusual.

I am suspicious on the point that there was no definition of
VMALLOC_START in vmalloc.h in 2.6.9 and I did the following

--- linux-2.6.9-devel-base0/include/asm-arm/arch-realview/vmalloc.h
2005-11-22 11:35:44.000000000 +0000
+++ linux-2.6.9-devel/include/asm-arm/arch-realview/vmalloc.h
2005-11-22 18:33:31.000000000 +0000
@@ -18,4 +18,8 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
+#define VMALLOC_OFFSET  (8*1024*1024)
+#define VMALLOC_START  (((unsigned long)high_memory + VMALLOC_OFFSET)
& ~(VMALLOC_OFFSET-1))
+#define VMALLOC_VMADDR(x) ((unsigned long)(x))
 #define VMALLOC_END  (PAGE_OFFSET + 0x18000000)
+

copying the defines from pgtable.h of 2.6.14. Was this a bad step?
This was the only tweak I did with the memory setup.

also here's my .arch.info structure:

MACHINE_START(REALVIEW_EB, "ARM-RealView EB")
 /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */
 .phys_ram = 0x00000000,
 .phys_io = REALVIEW_UART0_BASE,
 .io_pg_offst = (IO_ADDRESS(REALVIEW_UART0_BASE) >> 18) & 0xfffc,
 .param_offset = 0x00000100,
 .map_io  = realview_eb_map_io,
 .init_irq = gic_init_irq,
 .init_time = realview_timer_init,
 .init_machine = realview_eb_init,
MACHINE_END


Any ideas what might have gone wrong? Any other info I should post?

Thanks,
Bahadir

-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic