Initial commit for tinkering
This commit is contained in:
+15425
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,6 @@
|
||||
https://fahrplan.events.ccc.de/congress/2014/Fahrplan/system/attachments/2503/original/ccc-final.pdf
|
||||
|
||||
https://media.ccc.de/v/31c3_-_6103_-_en_-_saal_2_-_201412272145_-_amd_x86_smu_firmware_analysis_-_rudolf_marek
|
||||
|
||||
SMU blob is defined at
|
||||
coreboot/src/vendorcode/amd/agesa/f15tn/Proc/GNB/Modules/GnbInitTN/GnbSmuFirmwareTN.h
|
||||
Binary file not shown.
@@ -0,0 +1,34 @@
|
||||
|
||||
/* #include <stdio.h> */
|
||||
/* #include <stdint.h> */
|
||||
/* #include <stdlib.h> */
|
||||
/* #define UINT32 uint32_t */
|
||||
#define UINT32 unsigned int
|
||||
|
||||
#include "GnbSmuFirmwareTN.h"
|
||||
|
||||
int main(int argc, char **argv){
|
||||
|
||||
unsigned int u = 12;
|
||||
/* uint32_t u = 12; */
|
||||
/* uint32_t bytes; */
|
||||
/* size_t res; */
|
||||
/* FILE * fptr; */
|
||||
/* uint8_t byte1; */
|
||||
/* uint8_t byte2; */
|
||||
|
||||
/* fptr = fopen("firmware.bin", "w"); */
|
||||
/* */
|
||||
/* if (fptr == NULL ) return -1; */
|
||||
/* */
|
||||
/* res = fwrite(FirmwareTN, sizeof(FirmwareTN), 1, fptr); */
|
||||
/* */
|
||||
/* if (!(res > 0)) { */
|
||||
/* printf("Did not work\n"); */
|
||||
/* return -1; */
|
||||
/* } */
|
||||
/* printf("Wrote %u bytes\n", res); */
|
||||
/* u = fclose(fptr); */
|
||||
|
||||
return u;
|
||||
}
|
||||
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user