device tree passing feature

Thiago Jung Bauermann bauerman at linux.vnet.ibm.com
Fri Jul 1 00:27:25 AEST 2016


Hello,

I have a question about the petitboot feature which allows the user to 
specify a device tree blob to pass to the target OS being loaded. What is 
the use case for it? Is it a debugging and development aid, or do you expect 
it be useful in a production environment?

I ask this because I'm implementing the kexec_file_load system call for 
powerpc, and given its prototype:

long kexec_file_load(int kernel_fd, int initrd_fd, unsigned long 
cmdline_len, const char *cmdline_ptr, unsigned long flags)

It wouldn't be very straightforward to allow the caller to specify a device 
tree blob, so I have to ask how necessary such a feature is.


[]'s
Thiago Jung Bauermann
IBM Linux Technology Center



More information about the Petitboot mailing list