public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] outline of bootm script
@ 2008-08-05 14:35 Kumar Gala
  2008-08-06  2:33 ` Jerry Van Baren
  0 siblings, 1 reply; 18+ messages in thread
From: Kumar Gala @ 2008-08-05 14:35 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2008-08-06 22:09 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-05 14:35 [U-Boot-Users] outline of bootm script Kumar Gala
2008-08-06  2:33 ` Jerry Van Baren
2008-08-06 19:15   ` Kumar Gala
2008-08-06 19:41     ` Wolfgang Denk
2008-08-06 20:05       ` Kumar Gala
2008-08-06 20:26         ` Wolfgang Denk
2008-08-06 20:33           ` Kumar Gala
2008-08-06 19:55     ` Jerry Van Baren
2008-08-06 20:19       ` Kumar Gala
2008-08-06 20:36         ` Wolfgang Denk
2008-08-06 20:45           ` Kumar Gala
2008-08-06 21:15             ` Wolfgang Denk
2008-08-06 21:37               ` Kumar Gala
2008-08-06 22:00                 ` Wolfgang Denk
2008-08-06 22:09                 ` [U-Boot-Users] bootm -- load_os inputs/outputs Kumar Gala
2008-08-06 20:39         ` [U-Boot-Users] outline of bootm script Jerry Van Baren
2008-08-06 20:21       ` Wolfgang Denk
2008-08-06 20:29         ` Jerry Van Baren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox