Lines Matching full:dtbo
18 """Tool for packing multiple DTB/DTBO files into a single image"""
29 """Provides individual DT image file arguments to be added to a DTBO.
122 """int: offset in DTBO file for this DT image."""
160 class Dtbo(object):
163 Overlay (DTBO) images.
169 _DT_ENTRY_HEADER_SIZE: Size of Device tree entry header within a DTBO.
180 """Converts header entries into binary data for DTBO header.
192 """Converts each DT entry header entry into binary data for DTBO file.
201 be found in the resulting DTBO image.
209 """Updates the DTBO metadata.
212 Tree table entries and update the DTBO header.
223 """Reads DTBO file header into metadata buffer.
225 Unpack and read the DTBO table header from given buffer. The
238 raise ValueError('Invalid magic number 0x%x in DTBO file' %
242 raise ValueError('Invalid header size (%d) in DTBO file' %
246 raise ValueError('Invalid DT entry header size (%d) in DTBO file' %
252 Unpack and read the DTBO DT entry headers from the internal buffer.
259 raise ValueError('DTBO DT entries can be added only once')
280 raise ValueError('Invalid DTBO file')
289 raise ValueError('Invalid or truncated DTBO file of size %d expected %d' %
321 """Constructor for Dtbo Object
324 file_handle: The Dtbo File handle corresponding to this object.
335 # create a DTBO file
370 """Returns a list of DtEntry objects found in DTBO file."""
374 """Adds DT image files to the DTBO object.
376 Adds a list of Dtentry Objects to the DTBO image. The changes are not
387 raise ValueError('DTBO DT entries can be added only once')
395 raise ValueError('Adding invalid DT entry object to DTBO')
409 """Extract DT Image files embedded in the DTBO file.
414 idx: Index of the DT entry in the DTBO file.
427 """Write out staged changes to the DTBO object to create a DTBO file.
429 Writes a fully instantiated Dtbo Object into the output file using the
438 raise ValueError('No DT image files to embed into DTBO image given.')
452 creating a Device tree blob overlay (DTBO).
455 global_args: Dtbo object containing global default values
496 DTBO creation have been parsed.
560 """Parses the configuration file for creating DTBO image.
703 raise ValueError('List of dtimages to add to DTBO not provided')
705 dtbo = Dtbo(fout, global_args.page_size, global_args.version)
706 dtbo.add_dt_entries(dt_entries)
707 dtbo.commit()
711 """Dump DTBO file.
714 tree image files embedded in the DTBO image into file(s) provided
718 fin: Input DTBO image files.
721 dtbo = Dtbo(fin)
724 num_entries = len(dtbo.dt_entries)
727 dtbo.extract_dt_file(idx, fout)
728 args.outfile.write(str(dtbo) + '\n')
732 """Create DTBO file from a configuration file.
761 # Create and write DTBO file
762 dtbo = Dtbo(fout, global_args['page_size'], global_args['version'])
763 dtbo.add_dt_entries(dt_entries)
764 dtbo.commit()
791 sb.append(' -b, --dtb <filename> Dump dtb/dtbo files from image.')
805 sb.append(' --version <number> DTBO version. Default: 0')