[U-Boot-Users] outline of bootm script
    Kumar Gala 
    galak at kernel.crashing.org
       
    Tue Aug  5 16:35:00 CEST 2008
    
    
  
here's a rough start at an outline for the bootm script based on the  
code (I've only outlined the Linux/PPC boot case its seems the most  
complicated).  One of the first things we clearly need is a imload  
command.  Thoughts on the various disable_{interrupts, usb, caches} ?
- k
bootm script:
	disable_interrupts		/* sets an env with the state of interrupts  
before disabling */
#ifdef CONFIG_CMD_USB
	disable_usb
#endif
#ifdef CONFIG_AMIGAONEG3SE
	disable_caches
#endif
	imload <kernel_image>
	
	switch(on OS type from imload)
		LINUX:
			if (fdt)
				fdt relocate to after kernel_image + padding
				fdt fixups (board setup, etc)
			if (ramdisk)
				imload ramdisk
				if (fdt)
					fixup initrd info in fdt
			bootm_linux
		...
- k
    
    
More information about the U-Boot
mailing list