Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # LeEco X4-43pro (Super4 x43 Pro) packer configuration file
- # The TV is based on mst6a928 cpu
- #
- [Main]
- # Output file name
- FirmwareFileName=LetvUpgrade938.bin
- # Folder which contains images to pack
- ProjectFolder=./pack
- # Use hex values in "mmc write.p" directive.
- # Check your unpacked ~header_script file for the "mmc write.p" paramers.
- # Set it to True, if the paramers have "0x" prefix.
- # All newest Mstar firwares uses hex values
- useHexValuesPrefix=true
- # Firmware file name to use in "filepartload" directive.
- # All newest Mstar firwares uses $(UpgradeImage) Otherwise it should be equal FirmwareFileName value.
- SCRIPT_FIRMWARE_FILE_NAME=${FirmwareFileName}
- # DRAM_BUF_ADDR value
- DRAM_BUF_ADDR=20200000
- # Magic footer value. It's reserved for future use, usually it's "12345678" string
- MAGIC_FOOTER=12345678
- # Header size is always 16KB
- HEADER_SIZE=16KB
- [HeaderScript]
- # Custom header script directives at the beginning of the script
- Prefix:
- mmc slc 0 1
- mmc rmgpt
- factory_init factory 0x02000000
- # Custom directives at the end of the script
- Suffix:
- cleanallenv
- setenv LOAD_KERNEL mmc read.p 0x25000000 boot 0x02000000\; authenticateAN 0x25000000
- setenv BOOT_KERNEL bootm 0x25000000
- setenv recoverycmd mmc read.p 0x23000000 dtb 0x00100000\; mmc read.p 0x25000000 recovery 0x02000000\; authenticateAN 0x25000000\; bootm 0x25000000
- setenv LOAD_NUTTX mmc read.p 0x5EC70000 tee 0x600000
- setenv BOOT_NUTTX bootNuttx 0x1EC70000
- setenv bootargs console=ttyS0,115200 androidboot.console=ttyS0 root=/dev/ram rw rootwait init=/init CORE_DUMP_PATH=/data/Logs/Log.0/core_dump.%%p.gz KDebug=1 delaylogo=true security=selinux androidboot.selinux=permissive platform=sn SD_CONFIG=2
- setenv bootlogo_gopidx 3
- setenv bootlogo_buffer E_MMAP_ID_BOOTLOGO_BUFFER
- setenv OSD_BufferAddr E_MMAP_ID_RECOVERY_BUFFER_ADR
- setenv str_crc 2
- setenv db_table 0
- setenv verify n
- setenv sync_mmap 1
- setenv factory_poweron_mode secondary
- setenv ForcePowerOn 1
- saveenv
- setenv factory_mode 0
- setenv LetvUpgrade_complete 1
- setenv sync_mmap 1
- setenv db_table 0
- saveenv
- printenv
- # List of partitions to pack
- # [partition_name] - Name of partition. Shold begin with "part/"
- # create - flag to generate "mmc create" directive. It requires "size" parameter
- # size - Required parameter, if create flag sets to True. Partition size to create [hex]
- # erase - flag to generate "mmc erase.p" directive.
- # imageFile - Path to image file to pack
- # type - partition type:
- # partitionImage - Plain partition image. It generates "filepartload" and "mmc write.p" directives
- # secureInfo - signature file. Uses "store_secure_info" directive
- # nuttxConfig - Nuttx config file. Uses "store_nuttx_config" directive
- # lzo - pack partition/chunk to lzo. Uses "mmc unlzo" directive
- # chunkSize - chunk size to split partition. A single chunk uses, if chunkSize is not set. Units: B, KB, MB, GB
- [part/MPOOL]
- # Signatures (secureInfo) stored in that partition, so it should be erased before writing secure info.
- # We erase it very first
- erase=True
- [part/recovery]
- erase=True
- imageFile=${Main:ProjectFolder}/recovery.img
- type=partitionImage
- [part/recoverySign]
- imageFile=${Main:ProjectFolder}/recoverySign
- type=secureInfo
- [part/boot]
- erase=True
- imageFile=${Main:ProjectFolder}/boot.img
- type=partitionImage
- [part/bootSign]
- imageFile=${Main:ProjectFolder}/bootSign
- type=secureInfo
- [part/tee]
- erase=True
- imageFile=${Main:ProjectFolder}/tee.img
- type=partitionImage
- [part/teeSign]
- imageFile=${Main:ProjectFolder}/teeSign
- type=secureInfo
- [part/NuttxConfig]
- imageFile=${Main:ProjectFolder}/NuttxConfig
- type=nuttxConfig
- [part/RTPM]
- erase=True
- imageFile=pack/RTPM.img
- type=partitionImage
- [part/system]
- erase=True
- imageFile=${Main:ProjectFolder}/system.img
- type=partitionImage
- lzo=True
- chunkSize=150MB
- [part/cache]
- erase=True
- imageFile=${Main:ProjectFolder}/cache.img
- type=partitionImage
- lzo=True
- [part/tvservice]
- erase=True
- imageFile=${Main:ProjectFolder}/tvservice.img
- type=partitionImage
- [part/tvconfig]
- erase=True
- imageFile=${Main:ProjectFolder}/tvconfig.img
- type=partitionImage
- [part/tvdatabase]
- erase=True
- imageFile=${Main:ProjectFolder}/tvdatabase.img
- type=partitionImage
- [part/tvcustomer]
- erase=True
- imageFile=${Main:ProjectFolder}/tvcustomer.img
- type=partitionImage
- [part/sboot]
- imageFile=${Main:ProjectFolder}/sboot.img
- type=sboot
- [part/MBOOT]
- imageFile=${Main:ProjectFolder}/MBOOT.img
- type=partitionImage
- [part/MBOOTBAK]
- imageFile=${Main:ProjectFolder}/MBOOTBAK.img
- type=partitionImage
- [part/dtb]
- imageFile=${Main:ProjectFolder}/dtb.img
- type=partitionImage
- [part/frc]
- imageFile=${Main:ProjectFolder}/frc.img
- type=partitionImage
Add Comment
Please, Sign In to add comment