RSCEUtil

package
v0.0.0-...-7aa3ebb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2024 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package RSCEUtil aka Rockchip resources image. It's a binary file which contains device tree blob and additional resources (like vendor splash screen) and appears as boot.img-second on unpacking.

Index

Constants

View Source
const (
	HeaderMagic = "RSCE"
	EntryMagic  = "ENTR"
)

Variables

This section is empty.

Functions

func GenerateRSCE

func GenerateRSCE(contentFilePaths []string, outputFile string)

func UnPackRSCE

func UnPackRSCE(filepath string)

Types

type FileEntry

type FileEntry struct {
	Magic         [4]byte //"ENTR"
	FileName      [256]byte
	FileBlkOffset uint32
	FileSize      uint32
}
type Header struct {
	Magic             [4]byte //"RSCE"
	RSCEver           uint16  //0x0000
	RSCEfileTblVer    uint16  //0x0000
	HdrBlkSize        byte    //0x01
	FileTblBlkOffset  byte    //0x01
	FileTblRecBlkSize byte    //0x01
	Unknown           byte    //0x00
	FileCount         uint32
}

func (*Header) ToBytes

func (h *Header) ToBytes() [512]byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL