tueidj, you seems to have a lot of knowledge about the ios. Actually, i'm trying to reverse the ios kernel (only IOSP actually) in order to create a full cios (not a patched one). I've done some stuff reversing the code with IDA but i'm sure that some people has already reverse it before me (TT, you or other devs). So do you have any idb to share? It will help me to don't waby arasium - Software
Tueidj, your answers are always very helpfull. Thank you very much.by arasium - Software
Hi, i'm actually trying to understand how the ios kernel works. I've notice that the EI_OSABI of the elf header checked in PPC_boot syscall is compared to the value 61. What is this value? I've tried to find it in specific elf for PPC specification, but indicated values doesn't match to 61. Edit: To add, the e_machine is set to ARM???!!!! This should be PPC no? Thaby arasium - Software
Hello, int he boot2 arm header (the elf launcher), there are a piece of code wich write/read to/from 0xD8B4074. Do you know what is this register?by arasium - Software
Indeed, i was aware of that. But i didn't write anything about that because it wasn't the problem here :) But thank you for this precision, if someone read this, it can help him.by arasium - Software
I will answer to my question :) My first exemple then ue BX. The second one use BL. BX isn't a position relative branch (ie the target is specified by the instruction), whereas BL is. I mean, when BL is called, the target is calculated with the current PC value and the BL argument. It'sjust an offset to the current position: The offset for branch instructions is calculated by tby arasium - Software
Hi, i'm trying to understand how the elf loader at the beginning of the app file (the ES, FFS, IOSP one) works. Referring to wiibrew and the code, it seems to be position independent. For example, i've this: LDR R12, =(sub_8C+1 - 0x448) ADD R12, R12, PC And sub_8C = 0x8C The ADD instruction is at the 0x440 (so the PC is at the 0x448 offset) and R12 is the position indeby arasium - Software
I haven't test the latest one because of all the bugs i had with 1.8.4 and 5. I will test. Thank you for this infoby arasium - Coding
Quotegiantpuneyou brought up libwiigui - have you looked into how it works? there is 1 thread which is constantly looping which does all the GX commands and draws on the screen. you can reload IOS as much as you want in your other threads. there is even a libwiigui based syscheck type tool on wiibrew. I think this shows you that the GX and LWP APis both work fine and can be called during tby arasium - Coding
Hi, some time ago, i've started to develop an "event oriented ui framework". I mean that this framework will work like some framework used in Java or .NET (so, no real time like yyou can found in libwiigui). So, i've a UI thread that manage the ui message queue and the ui is thread safe (if the command doesn't comes from the ui thread, we put a message to the queue and then iby arasium - Coding
Because i wan't to create a audio player that support tracklists. I know that i can pull the player to in order to know if the song has terminated, but this is an horrible way to do ( because this means that i need to create another thread than the one the player use).... The better solution is that the player throw an event or call a callback when the song is terminated. That way, i justby arasium - Coding
I'm trying to code an MP3/OGG player wich will support tracklists. The problem, is that the MP3Player in the libogc doesn't have a callback called when the song is ended (use to play the next song). I still haven't read the OGG code. Do you know if someone has already coded something like that?by arasium - Coding
Sorry, i can't because the code is too big (it's a full framework). But, i've noticed that in fact the bug only happen with the latest libogc (i've threaded the task and updated the libogc at the same time). I will search in that direction.by arasium - Coding
Hi, i'm currently coding a ui framework. This framework is event oriented (not like libwiigui wich is a "real time" framework). So, i've the main thread wich is the UI thread. If we need to execute tasks, the best practice is to create a subthread (in order to don't freeze the ui) with events to report task progression (ie for increment progression bar, display logs etc...).by arasium - Coding
Mmmmh, i think you should try to learn c/c++. I see a lack of knowledge in your questions. You should use google sometime to understand how network is working before understand what the code does.by arasium - Coding
I've read you code and there is something like that: if (!isAHBPROT) { printf("%sIOS: %u%s\n", (selection == 0 ? AnsiSelection : ""), *menuIOS, AnsiNormal); printf("%sInstall IOS36 (v%d) w/FakeSign%s\n", (selection == 1 ? AnsiSelection : ""), IOS36Version, AnsiNormal); } else { printf("%sUse IOS%d + AHBPROT%s\n", (selection == 0 ? AnsiSelection : ""), IOS_GetVersion(), Ansiby arasium - Coding
@SifJar: Yes you're right. You need AHBPROT to downgrade IOSes. But, if you reload the ios, you will lost the AHBPROT and (i think) you won't be able to downgrade anything. Doesn't it? @sorg: When i said title, it was about the ios tmd :) IOS is a title, channel is also a tittle etc... It's like DVDX, the IOS254 was a title with the AHBPROT flag setted.... You just need toby arasium - Coding
Ok, this answer my question. Thank you.by arasium - Software
The AHBPROT is setted by some datas in the TMD. So if you do an IOS_Reload on a title with a normal tmd, the AHBPROT will be reset.... Dop-Mii Wiibrew Edition doesn't patch the ioses. So it doesn't need any special things to install the Wads/Ioses. It will works like the wii usually do.by arasium - Coding
Oh yeah, this is right. Thank you tueidj. Your contribution is always helpfull. So my problem is solved, and i will return to my source code to find where is my memory leak :Dby arasium - Coding
Indeed. My problem occured only with high length values like the one in m'y sample. I'm using the last devkitpro release.by arasium - Coding
I hope it won't. Here is the results: Memory used: 1 405 872 Allocated: 289 179 224 Diff: 287 773 352 Memory used: 263 971 488 So the diff show us that there is too much allocated memory..... And to add, after the "free", the freed memory correspond to the requested one (ie 23 801 856) and not the one really allocated.by arasium - Coding
In fact we can see that the malloc will reserved much more space that needed. To add, this memory won't be freed when we free the pointer.by arasium - Coding
I'm trying to find a memory leak in my program. During these research, i'v found something strange: VPAD_Init(); struct mallinfo nfo = mallinfo(); struct mallinfo nfo2; u32 length = 23801856; cout << endl << endl << endl << "Memory used: " << nfo.uordblks << endl; void* ptr = malloc(length); nfo2 = mallinfo(); cout <<by arasium - Coding
In the case of DOP-MII, you install legal signed ioses, and you don't need any special thing to do that. This will work without the AHBPROT setted by the HBC (this is working with older versions of the HBC). But i think it's the HBC wich set the AHBPROT with the good value, and IOS_Reloading should remove that. The pb is that i need a full DVD access and i need the AHBPROT to do thatby arasium - Coding
No, i want to avoid this. If I reload under the IOS58, i will loast the full hardware access (AHBPROT setted by the HBC). I know that i can put the tag in the meta.xml, but i won't use it in the dubegging phase with wiiload..... Is it possible to do the same as with c/c++ code?by arasium - Coding
Since HBC 1.07, it is possible to avoid the IOS reloading with a tag in the meta xml. I want to use that in order to take the advantage of the AHBPROT. But, i'm debugging my soft using Wiiload (so no meta.xml). Is there an other method to keep the AHBPROT? Thxby arasium - Coding
Yes you're right. I already do like this. But my goal is to create a Managed Make project, ie it will be Eclipse that will generate the Makefile (and some options will be available in the project property window).by arasium - Ideas, requests
Hi all, i've found this: I think this can help to create Wii project template in Eclipse IDE. I've not enough time to search now, but i will take a look at this.by arasium - Ideas, requests