Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.18 KB | None | 0 0
  1. C:\Users\xiond\Downloads\Work\BootNTR>build-mode0
  2.  
  3. C:\Users\xiond\Downloads\Work\BootNTR>copy template-cia-0.rsf template-cia.rsf
  4. 1 file(s) copied.
  5.  
  6. C:\Users\xiond\Downloads\Work\BootNTR>cd resources
  7.  
  8. C:\Users\xiond\Downloads\Work\BootNTR\resources>copy AppInfo-0 AppInfo
  9. 1 file(s) copied.
  10.  
  11. C:\Users\xiond\Downloads\Work\BootNTR\resources>cd ..
  12.  
  13. C:\Users\xiond\Downloads\Work\BootNTR>make clean
  14. clean ...
  15.  
  16. C:\Users\xiond\Downloads\Work\BootNTR>make
  17. main.c
  18. arm-none-eabi-gcc -MMD -MP -MF /c/Users/xiond/Downloads/Work/BootNTR/build/main.d -g -Wall -Wno-strict-aliasing -O3 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/c/Users/xiond/Downloads/Work/BootNTR/source -I/c/Users/xiond/Downloads/Work/BootNTR/include -I/c/devkitPro/portlibs/armv6k/include -I/c/devkitPro/portlibs/3ds/include -I/c/devkitPro/libctru/include -I./lib/include -I/c/Users/xiond/Downloads/Work/BootNTR/build -DARM11 -D_3DS -std=gnu99 -c /c/Users/xiond/Downloads/Work/BootNTR/source/main.c -o main.o
  19. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c: In function 'bnInitParamsByFirmware':
  20. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:236:66: error: lvalue required as left operand of assignment
  21. if (kernelVersion == SYSTEM_VERSION(2, 51, 2) || kernelVersion = SYSTEM_VERSION(2, 52, 0)) {
  22. ^
  23. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:334:66: error: lvalue required as left operand of assignment
  24. if (kernelVersion == SYSTEM_VERSION(2, 51, 2) || kernelVersion = SYSTEM_VERSION(2, 52, 0)) {
  25. ^
  26. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c: In function 'bnInitParamsByHomeMenu':
  27. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:359:2: warning: implicit declaration of function 'flushDataCache' [-Wimplicit-function-declaration]
  28. flushDataCache();
  29. ^
  30. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c: At top level:
  31. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:648:6: warning: conflicting types for 'flushDataCache'
  32. void flushDataCache() {
  33. ^
  34. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:359:2: note: previous implicit declaration of 'flushDataCache' was here
  35. flushDataCache();
  36. ^
  37. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c: In function 'doFlushCache':
  38. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:660:3: warning: implicit declaration of function 'FlushAllCache' [-Wimplicit-function-declaration]
  39. FlushAllCache();
  40. ^
  41. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:661:3: warning: implicit declaration of function 'InvalidateEntireInstructionCache' [-Wimplicit-function-declaration]
  42. InvalidateEntireInstructionCache();
  43. ^
  44. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:662:3: warning: implicit declaration of function 'InvalidateEntireDataCache' [-Wimplicit-function-declaration]
  45. InvalidateEntireDataCache();
  46. ^
  47. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c: In function 'kernelCallback':
  48. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:812:19: warning: passing argument 1 of 'kFlushDataCache' makes pointer from integer without a cast [-Wint-conversion]
  49. kFlushDataCache(svc_patch_addr, 0x10);//
  50. ^
  51. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:684:6: note: expected 'void *' but argument is of type 'u32 {aka long unsigned int}'
  52. void kFlushDataCache(void*, u32);
  53. ^
  54. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:815:31: warning: passing argument 1 of 'cache->invalidateDataCache' makes pointer from integer without a cast [-Wint-conversion]
  55. cache->invalidateDataCache(svc_patch_addr, 0x10);//
  56. ^
  57. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:815:31: note: expected 'void *' but argument is of type 'u32 {aka long unsigned int}'
  58. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:816:33: warning: passing argument 1 of 'cache->flushInstructionCache' makes pointer from integer without a cast [-Wint-conversion]
  59. cache->flushInstructionCache(svc_patch_addr - 0xDFF80000 + 0xFFF00000, 0x10);//
  60. ^
  61. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:816:33: note: expected 'void *' but argument is of type 'long unsigned int'
  62. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c: In function 'bnLoadAndExecuteNTR':
  63. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:899:2: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
  64. memset((void*) outAddr, 0, totalSize);
  65. ^
  66. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:899:2: warning: incompatible implicit declaration of built-in function 'memset'
  67. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:899:2: note: include '<string.h>' or provide a declaration of 'memset'
  68. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:901:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
  69. memcpy((void*) (outAddr +(ntrConfig->arm11BinSize)), (void*) outAddr, size);
  70. ^
  71. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:901:2: warning: incompatible implicit declaration of built-in function 'memcpy'
  72. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:901:2: note: include '<string.h>' or provide a declaration of 'memcpy'
  73. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:909:18: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
  74. u32* bootArgs = outAddr + 4;
  75. ^
  76. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:912:14: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
  77. bootArgs[2] = ntrConfig;
  78. ^
  79. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:869:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
  80. u32 ret;
  81. ^
  82. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c: In function 'bnBootNTR':
  83. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:954:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  84. tmpBuffer = (u32)linearMemAlign(TMPBUFFER_SIZE, 0x1000);
  85. ^
  86. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:969:25: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
  87. ntrConfig->ShowDbgFunc = (void*) showMsg;
  88. ^
  89. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:1013:67: warning: passing argument 2 of 'rtCheckRemoteMemoryRegionSafeForWrite' makes integer from pointer without a cast [-Wint-conversion]
  90. rtCheckRemoteMemoryRegionSafeForWrite(getCurrentProcessHandle(), tmpBuffer, TMPBUFFER_SIZE);
  91. ^
  92. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:149:5: note: expected 'u32 {aka long unsigned int}' but argument is of type 'u8 * {aka unsigned char *}'
  93. u32 rtCheckRemoteMemoryRegionSafeForWrite(Handle hProcess, u32 addr, u32 size) {
  94. ^
  95. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c: In function 'main':
  96. c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:1039:6: warning: variable 'isSuccess' set but not used [-Wunused-but-set-variable]
  97. int isSuccess = 0;
  98. ^
  99. make[1]: *** [main.o] Error 1
  100. make: *** [build] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement