From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, NICE_REPLY_A autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 4451 invoked from network); 2 Mar 2023 16:14:05 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 2 Mar 2023 16:14:05 -0000 Received: from mail.posixcafe.org ([45.76.19.58]) by 9front; Thu Mar 2 11:08:36 -0500 2023 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posixcafe.org; s=20200506; t=1677773632; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bCLKgMt4A0HoH+7xaQObXp8/4MbRpqbkz1sxuIJVJY4=; b=Mb+HcIaLPCav3wHF28m2+k3PUzJhJQ0DU8CHhbZXgkgj8ZvNy4ZzwFygzhTrC9vtGA1fN7 OwAl+sFr9OhUQyl0RVDtB+aHylNFJwOoMZj0oARGu9vOvm01JgbaSQ5IDQ+73YRvK/s/9A oRyFN5rONgrAlh9rzR4npb8D5qXS25A= Received: from [192.168.168.200] (161-097-205-025.v4.mynextlight.net [161.97.205.25]) by mail.posixcafe.org (OpenSMTPD) with ESMTPSA id e766ac80 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <9front@9front.org>; Thu, 2 Mar 2023 10:13:52 -0600 (CST) Message-ID: <1440d7fc-4dfa-273c-874d-cd77f5b84a27@posixcafe.org> Date: Thu, 2 Mar 2023 09:08:06 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Content-Language: en-US To: 9front@9front.org References: From: Jacob Moody In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: database firewall-based SVG over SVG DOM software scripting GPU controller Subject: Re: [9front] Re: [PATCH] game boy advance header target for 5l Reply-To: 9front@9front.org Precedence: bulk On 3/2/23 04:15, Anthony Martin wrote: > Jacob Moody once said: >> This makes 5l capable of spitting out valid .gba files. >> With this I was able to get a basic rom working. >> >> To give this a try: >> ; hget http://okturing.com/src/15122/body > sprite.c >> ; 5c sprite.c >> ; 5l -H8 -Emain sprite.5 >> ; games/gba 5.out > > This should be a command that takes a 5.out and produces > a gba image. See > > - aux/aout2uimage for the u-boot image format, > - aux/ms2 for the motorola s-record format, > - and xenbin for xen binary images > So you end up needing to pass -T to the linker anyway? I did it this way because -H8 is a bit more descriptive then just -T 0x08000000. Perhaps I am missing something and there is a way of making aout2gba work with any 5.out binary, without the need for specific linker flags. Or is the expectation that for those tools you do end up needing an explicit -T as well? I dont know; those tools dont have manuals. But it seems odd to me to have this as an external tool if it has assumptions about specific linker flags. > as examples. Putting the nintendo logo in the loader is > a bit much for my taste. Not to mention the prospect of > provoking ptyalism in the swamp creatures colloquially > referred to as intellectual property lawyers. > I know "look they're doing it too" is about as far as you can get from sound legal advice, but this has seemingly not been an issue for devkitpro which also ships with the hex code as part of their 'gbafix' program. Surely getting the only open source gba development kit taken off the web would have happened by now if the logo was all it took. Without the logo you can not build a rom that the bios will load. If it can't be anywhere in the tree then we can do nothing and are wasting our time. - moody