#9405 HIGH 1.5-F11: call to getprop (was: Talking to OFW not working on XO-1.5)

Zarro Boogs per Child bugtracker at laptop.org
Fri Jul 10 12:18:21 EDT 2009


#9405: call to getprop
--------------------------------+-------------------------------------------
           Reporter:  dsaxena   |       Owner:  dsaxena      
               Type:  defect    |      Status:  new          
           Priority:  high      |   Milestone:  1.5-F11      
          Component:  kernel    |     Version:  not specified
         Resolution:            |    Keywords:               
        Next_action:  diagnose  |    Verified:  0            
Deployment_affected:            |   Blockedby:               
           Blocking:            |  
--------------------------------+-------------------------------------------

Comment(by dsaxena):

 Hmm, it looks like calling into OFW is working as I can mount the promfs
 file system and I see the device tree. It is specifically this call at
 board init time that is failing:


 {{{
 static void __init platform_detect(void)
 {
         size_t propsize;
         __be32 rev;

         if (ofw("getprop", 4, 1, NULL, "board-revision-int", &rev, 4,
                         &propsize) || propsize != 4) {
                 printk(KERN_ERR "ofw: getprop call failed!\n");
                 rev = cpu_to_be32(0);
         }
         olpc_platform_info.boardrev = be32_to_cpu(rev);
 }
 #else

 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/9405#comment:1>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list