├── README.md └── Rk3399Pkg ├── AcpiTables ├── AcpiHeader.h ├── AcpiTables.inf ├── Dsdt.asl ├── Fadt.aslc ├── Gtdt.aslc ├── Madt.aslc └── Spcr.aslc ├── Drivers ├── DwEmmcDxe │ ├── DwEmmc.h │ ├── DwEmmcDxe.c │ ├── DwEmmcDxe.dec │ └── DwEmmcDxe.inf ├── MmcDxe │ ├── ComponentName.c │ ├── Diagnostics.c │ ├── Mmc.c │ ├── Mmc.h │ ├── MmcBlockIo.c │ ├── MmcDebug.c │ ├── MmcDxe.inf │ └── MmcIdentification.c ├── OemBoardMiscDxe │ ├── OemBoardMiscDxe.c │ └── OemBoardMiscDxe.inf ├── UsbHcdInitDxe │ ├── UsbHcd.c │ └── UsbHcd.inf └── VopDxe │ ├── VopDxe.c │ ├── VopDxe.inf │ ├── common.h │ ├── display_timing.h │ ├── dw_hdmi.c │ ├── dw_hdmi.h │ ├── edid.c │ ├── edid.h │ ├── errno.h │ ├── rk3399_vop.c │ ├── rk_vop.c │ ├── rk_vop.h │ ├── types.h │ └── vop_rk3288.h ├── Include ├── Library │ ├── ArmPlatformSysConfigLib.h │ ├── CRULib.h │ ├── I2CLib.h │ └── UartLib.h ├── Rk3399 │ ├── Rk3399.h │ ├── Rk3399Cru.h │ ├── Rk3399Grf.h │ └── Rk3399PmuGrf.h └── Rk808.h ├── Library ├── ArmPlatformSysConfigLibNull │ ├── ArmPlatformSysConfigLibNull.c │ └── ArmPlatformSysConfigLibNull.inf ├── CRULib │ ├── CRULib.c │ └── CRULib.inf ├── I2CLib │ ├── I2CLib.c │ ├── I2CLib.inf │ ├── I2CLibCommon.c │ ├── I2CLibRuntime.c │ └── I2CLibRuntime.inf ├── Rk3399Lib │ ├── Rk3399.c │ ├── Rk3399Helper.S │ ├── Rk3399Lib.inf │ ├── Rk3399Mem.c │ └── Rk3399Mem.h ├── Rk808RealTimeClockLib │ ├── Rk808RealTimeClockLib.c │ └── Rk808RealTimeClockLib.inf └── SerialPortLib │ ├── SerialPortLib.c │ ├── SerialPortLib.inf │ ├── UartLib.c │ └── UartLib.inf ├── Rk3399-SDK.dsc ├── Rk3399-SDK.fdf ├── Rk3399Pkg.dec └── Tools ├── Bin ├── RK3399_NO_BL32.ini ├── idbloader.img └── trust.img └── loaderimage /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/README.md -------------------------------------------------------------------------------- /Rk3399Pkg/AcpiTables/AcpiHeader.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/AcpiTables/AcpiHeader.h -------------------------------------------------------------------------------- /Rk3399Pkg/AcpiTables/AcpiTables.inf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/AcpiTables/AcpiTables.inf -------------------------------------------------------------------------------- /Rk3399Pkg/AcpiTables/Dsdt.asl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/AcpiTables/Dsdt.asl -------------------------------------------------------------------------------- /Rk3399Pkg/AcpiTables/Fadt.aslc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/AcpiTables/Fadt.aslc -------------------------------------------------------------------------------- /Rk3399Pkg/AcpiTables/Gtdt.aslc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/AcpiTables/Gtdt.aslc -------------------------------------------------------------------------------- /Rk3399Pkg/AcpiTables/Madt.aslc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/AcpiTables/Madt.aslc -------------------------------------------------------------------------------- /Rk3399Pkg/AcpiTables/Spcr.aslc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/AcpiTables/Spcr.aslc -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/DwEmmcDxe/DwEmmc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/DwEmmcDxe/DwEmmc.h -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/DwEmmcDxe/DwEmmcDxe.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/DwEmmcDxe/DwEmmcDxe.c -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/DwEmmcDxe/DwEmmcDxe.dec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/DwEmmcDxe/DwEmmcDxe.dec -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/DwEmmcDxe/DwEmmcDxe.inf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/DwEmmcDxe/DwEmmcDxe.inf -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/MmcDxe/ComponentName.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/MmcDxe/ComponentName.c -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/MmcDxe/Diagnostics.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/MmcDxe/Diagnostics.c -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/MmcDxe/Mmc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/MmcDxe/Mmc.c -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/MmcDxe/Mmc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/MmcDxe/Mmc.h -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/MmcDxe/MmcBlockIo.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/MmcDxe/MmcBlockIo.c -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/MmcDxe/MmcDebug.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/MmcDxe/MmcDebug.c -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/MmcDxe/MmcDxe.inf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/MmcDxe/MmcDxe.inf -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/MmcDxe/MmcIdentification.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/MmcDxe/MmcIdentification.c -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/OemBoardMiscDxe/OemBoardMiscDxe.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/OemBoardMiscDxe/OemBoardMiscDxe.c -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/OemBoardMiscDxe/OemBoardMiscDxe.inf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/OemBoardMiscDxe/OemBoardMiscDxe.inf -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/UsbHcdInitDxe/UsbHcd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/UsbHcdInitDxe/UsbHcd.c -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/UsbHcdInitDxe/UsbHcd.inf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/UsbHcdInitDxe/UsbHcd.inf -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/VopDxe/VopDxe.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/VopDxe/VopDxe.c -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/VopDxe/VopDxe.inf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/VopDxe/VopDxe.inf -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/VopDxe/common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/VopDxe/common.h -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/VopDxe/display_timing.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/VopDxe/display_timing.h -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/VopDxe/dw_hdmi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/VopDxe/dw_hdmi.c -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/VopDxe/dw_hdmi.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/VopDxe/dw_hdmi.h -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/VopDxe/edid.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/VopDxe/edid.c -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/VopDxe/edid.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/VopDxe/edid.h -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/VopDxe/errno.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/VopDxe/errno.h -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/VopDxe/rk3399_vop.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/VopDxe/rk3399_vop.c -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/VopDxe/rk_vop.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/VopDxe/rk_vop.c -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/VopDxe/rk_vop.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/VopDxe/rk_vop.h -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/VopDxe/types.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/VopDxe/types.h -------------------------------------------------------------------------------- /Rk3399Pkg/Drivers/VopDxe/vop_rk3288.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Drivers/VopDxe/vop_rk3288.h -------------------------------------------------------------------------------- /Rk3399Pkg/Include/Library/ArmPlatformSysConfigLib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Include/Library/ArmPlatformSysConfigLib.h -------------------------------------------------------------------------------- /Rk3399Pkg/Include/Library/CRULib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Include/Library/CRULib.h -------------------------------------------------------------------------------- /Rk3399Pkg/Include/Library/I2CLib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Include/Library/I2CLib.h -------------------------------------------------------------------------------- /Rk3399Pkg/Include/Library/UartLib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Include/Library/UartLib.h -------------------------------------------------------------------------------- /Rk3399Pkg/Include/Rk3399/Rk3399.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Include/Rk3399/Rk3399.h -------------------------------------------------------------------------------- /Rk3399Pkg/Include/Rk3399/Rk3399Cru.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Include/Rk3399/Rk3399Cru.h -------------------------------------------------------------------------------- /Rk3399Pkg/Include/Rk3399/Rk3399Grf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Include/Rk3399/Rk3399Grf.h -------------------------------------------------------------------------------- /Rk3399Pkg/Include/Rk3399/Rk3399PmuGrf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Include/Rk3399/Rk3399PmuGrf.h -------------------------------------------------------------------------------- /Rk3399Pkg/Include/Rk808.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Include/Rk808.h -------------------------------------------------------------------------------- /Rk3399Pkg/Library/ArmPlatformSysConfigLibNull/ArmPlatformSysConfigLibNull.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Library/ArmPlatformSysConfigLibNull/ArmPlatformSysConfigLibNull.c -------------------------------------------------------------------------------- /Rk3399Pkg/Library/ArmPlatformSysConfigLibNull/ArmPlatformSysConfigLibNull.inf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Library/ArmPlatformSysConfigLibNull/ArmPlatformSysConfigLibNull.inf -------------------------------------------------------------------------------- /Rk3399Pkg/Library/CRULib/CRULib.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Library/CRULib/CRULib.c -------------------------------------------------------------------------------- /Rk3399Pkg/Library/CRULib/CRULib.inf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Library/CRULib/CRULib.inf -------------------------------------------------------------------------------- /Rk3399Pkg/Library/I2CLib/I2CLib.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Library/I2CLib/I2CLib.c -------------------------------------------------------------------------------- /Rk3399Pkg/Library/I2CLib/I2CLib.inf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Library/I2CLib/I2CLib.inf -------------------------------------------------------------------------------- /Rk3399Pkg/Library/I2CLib/I2CLibCommon.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Library/I2CLib/I2CLibCommon.c -------------------------------------------------------------------------------- /Rk3399Pkg/Library/I2CLib/I2CLibRuntime.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Library/I2CLib/I2CLibRuntime.c -------------------------------------------------------------------------------- /Rk3399Pkg/Library/I2CLib/I2CLibRuntime.inf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Library/I2CLib/I2CLibRuntime.inf -------------------------------------------------------------------------------- /Rk3399Pkg/Library/Rk3399Lib/Rk3399.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Library/Rk3399Lib/Rk3399.c -------------------------------------------------------------------------------- /Rk3399Pkg/Library/Rk3399Lib/Rk3399Helper.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Library/Rk3399Lib/Rk3399Helper.S -------------------------------------------------------------------------------- /Rk3399Pkg/Library/Rk3399Lib/Rk3399Lib.inf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Library/Rk3399Lib/Rk3399Lib.inf -------------------------------------------------------------------------------- /Rk3399Pkg/Library/Rk3399Lib/Rk3399Mem.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Library/Rk3399Lib/Rk3399Mem.c -------------------------------------------------------------------------------- /Rk3399Pkg/Library/Rk3399Lib/Rk3399Mem.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Library/Rk3399Lib/Rk3399Mem.h -------------------------------------------------------------------------------- /Rk3399Pkg/Library/Rk808RealTimeClockLib/Rk808RealTimeClockLib.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Library/Rk808RealTimeClockLib/Rk808RealTimeClockLib.c -------------------------------------------------------------------------------- /Rk3399Pkg/Library/Rk808RealTimeClockLib/Rk808RealTimeClockLib.inf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Library/Rk808RealTimeClockLib/Rk808RealTimeClockLib.inf -------------------------------------------------------------------------------- /Rk3399Pkg/Library/SerialPortLib/SerialPortLib.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Library/SerialPortLib/SerialPortLib.c -------------------------------------------------------------------------------- /Rk3399Pkg/Library/SerialPortLib/SerialPortLib.inf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Library/SerialPortLib/SerialPortLib.inf -------------------------------------------------------------------------------- /Rk3399Pkg/Library/SerialPortLib/UartLib.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Library/SerialPortLib/UartLib.c -------------------------------------------------------------------------------- /Rk3399Pkg/Library/SerialPortLib/UartLib.inf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Library/SerialPortLib/UartLib.inf -------------------------------------------------------------------------------- /Rk3399Pkg/Rk3399-SDK.dsc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Rk3399-SDK.dsc -------------------------------------------------------------------------------- /Rk3399Pkg/Rk3399-SDK.fdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Rk3399-SDK.fdf -------------------------------------------------------------------------------- /Rk3399Pkg/Rk3399Pkg.dec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Rk3399Pkg.dec -------------------------------------------------------------------------------- /Rk3399Pkg/Tools/Bin/RK3399_NO_BL32.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Tools/Bin/RK3399_NO_BL32.ini -------------------------------------------------------------------------------- /Rk3399Pkg/Tools/Bin/idbloader.img: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Tools/Bin/idbloader.img -------------------------------------------------------------------------------- /Rk3399Pkg/Tools/Bin/trust.img: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Tools/Bin/trust.img -------------------------------------------------------------------------------- /Rk3399Pkg/Tools/loaderimage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreiw/rk3399-edk2/HEAD/Rk3399Pkg/Tools/loaderimage --------------------------------------------------------------------------------