Skip to contentSkip to conversation

FDT without FIT?

U-Boot Simon Schwarz 2 participants 4 messages Aug 23, 2011 – Aug 24, 2011

lore
Share & tools
lore
#0 lore raw

Hi list,

I'am a bit stuck here.

How can FDT be used without a FIT image?

I can't really get this from the code - if someone can point me in the right direction this would be great!

Thanks!
Simon

#1 lore raw

Dear Simon Schwarz,

Quoted 2 lines · In message <[email protected]> you wrote:

How can FDT be used without a FIT image?

I don't understand this question - using the FDT and the image format are orthogonal to each other.

Quoted 2 lines

I can't really get this from the code - if someone can point me in the right direction this would be great!

Try:
help bootm

For example:

	tftp 600000 uImage
	tftp 900000 board.dtb
	bootm 600000 - 900000

What exactly is your problem?

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Unix is simple, but it takes a genius to understand the simplicity."
					             - Dennis Ritchie
#2 lore raw

Dear Wolfgang Denk,

Quoted 6 lines · Wolfgang Denk

Dear Simon Schwarz,

Quoted 2 lines · In message<[email protected]> you wrote:

How can FDT be used without a FIT image?

Quoted 9 lines

I don't understand this question - using the FDT and the image format are orthogonal to each other.

Quoted 2 lines

I can't really get this from the code - if someone can point me in the right direction this would be great!

Try:
help bootm

This prints:

  # help bootm
bootm - boot application image from memory

Usage:
bootm [addr [arg ...]]
- boot application image stored in memory
passing arguments 'arg ...'; when booting a Linux kernel, 'arg' can be the address of an initrd image

Sub-commands to do part of the bootm sequence. The sub-commands must be issued in the order below (it's ok to not issue all sub-commands):
start [addr [arg ...]]
loados - load OS image
cmdline - OS specific command line processing/setup
bdt - OS specific bd_t processing
prep - OS specific prep before relocation or go
go - start OS

(Yes, #define CONFIG_OF_LIBFDT 1 is in my board config)

Quoted 7 lines

For example:

	tftp 600000 uImage
	tftp 900000 board.dtb
	bootm 600000 - 900000

What exactly is your problem?

Thanks - john already pointed me to this. This works. It was/is just a problem with the help text - duno why..

Quoted 5 lines

Best regards,

Wolfgang Denk

Regards
Simon

#3 lore raw

Dear Simon Schwarz,

Quoted 10 lines · In message <[email protected]> you wrote:

This prints:

  # help bootm
bootm - boot application image from memory

Usage:
bootm [addr [arg ...]]
- boot application image stored in memory
passing arguments 'arg ...'; when booting a Linux kernel, 'arg' can be the address of an initrd image

You must either have a very old version of U-Bot, or one without FDT support built in.

Quoted 3 lines
Quoted 1 line

What exactly is your problem?

Thanks - john already pointed me to this. This works. It was/is just a problem with the help text - duno why..

Hm... I get this:

=> help bootm
bootm - boot application image from memory

Usage:
bootm [addr [arg ...]]
- boot application image stored in memory
passing arguments 'arg ...'; when booting a Linux kernel, 'arg' can be the address of an initrd image
===> When booting a Linux kernel which requires a flat device-tree
===> a third argument is required which is the address of the
===> device-tree blob. To boot that kernel without an initrd image,
===> use a '-' for the second argument. If you do not pass a third
===> a bd_info struct will be passed instead

Sub-commands to do part of the bootm sequence. The sub-commands must be issued in the order below (it's ok to not issue all sub-commands):
start [addr [arg ...]]
loados - load OS image
ramdisk - relocate initrd, set env initrd_start/initrd_end
===> fdt - relocate flat device tree
cmdline - OS specific command line processing/setup
bdt - OS specific bd_t processing
prep - OS specific prep before relocation or go
go - start OS

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
... bacteriological warfare ... hard to believe we were once foolish
enough to play around with that.
	-- McCoy, "The Omega Glory", stardate unknown