[U-Boot-Users] bootm support for netbsd question

Kumar Gala galak at kernel.crashing.org
Thu Aug 7 17:44:45 CEST 2008


Anyone know why we pass the image_header_t * to the netbsd loader?

         /*
          * Booting a (NetBSD) kernel image
          *
          * This process is pretty similar to a standalone application:
          * The (first part of an multi-) image must be a stage-2  
loader,
          * which in turn is responsible for loading & invoking the  
actual
          * kernel.  The only differences are the parameters being  
passed:
          * besides the board info strucure, the loader expects a  
command
          * line, the name of the console device, and (optionally) the
          * address of the original image header.
          */
...

         /*
          * NetBSD Stage-2 Loader Parameters:
          *   r3: ptr to board info data
          *   r4: image address
          *   r5: console device
          *   r6: boot args string
          */
         (*loader) (gd->bd, os_hdr, consdev, cmdline);

this is some pretty tight coupling with u-boot.  Is the stage-2 loader  
part of u-boot?

- k




More information about the U-Boot mailing list