Openmoko Bug #2135: write kernel crash message somewhere where it can be retrieved after reboot?

Openmoko Public Trac bugs at docs.openmoko.org
Thu Jan 22 01:23:56 CET 2009


#2135: write kernel crash message somewhere where it can be retrieved after
reboot?
-----------------------------+----------------------------------------------
 Reporter:  lindi            |          Owner:  openmoko-kernel
     Type:  enhancement      |         Status:  new            
 Priority:  normal           |      Milestone:                 
Component:  System Software  |        Version:  unspecified    
 Severity:  normal           |       Keywords:                 
 Haspatch:  0                |      Blockedby:                 
Estimated:                   |    Patchreview:                 
 Blocking:                   |   Reproducible:                 
-----------------------------+----------------------------------------------

Comment(by lindi):

 I tried booting with mem=127M and incrementing a byte in memory on every
 boot

 {{{
 diff --git a/init/main.c b/init/main.c
 index 7e117a2..fb2b531 100644
 --- a/init/main.c
 +++ b/init/main.c
 @@ -693,6 +693,17 @@ asmlinkage void __init start_kernel(void)

         ftrace_init();

 +        {
 +            char *buf;
 +            buf = ioremap(127<<20, 4096);
 +            if (buf) {
 +                printk("ioremap returned %08x\n", buf);
 +                printk("%02x %02x %02x\n", buf[0], buf[1], buf[2]);
 +                buf[0]++;
 +                iounmap(buf);
 +            }
 +        }
 +
         /* Do the rest non-__init'ed, we're now alive */
         rest_init();
  }
 }}}

 but every time I see zeroes. Any idea what is zeroing the memory?

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/2135#comment:11>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac


More information about the openmoko-kernel mailing list