[Gta04-owner] Building X-Loader

Josua Mayer josua.mayer97 at googlemail.com
Sat Jul 7 01:54:01 CEST 2012


Am 05.07.2012 16:31, schrieb Dr. H. Nikolaus Schaller:
>
> Am 05.07.2012 um 16:00 schrieb Josua Mayer:
>
>> Am 05.07.2012 14:48, schrieb Dr. H. Nikolaus Schaller:
>>> Hi Josua,
>>>
>>> Am 05.07.2012 um 13:29 schrieb Josua Mayer:
>>>
>>>> Hello
>>>>
>>>> I have been trying to build the latest x-loader for the GTA04 as an 
>>>> rpm using the opensuse buildservice. But it fails to compile. 
>>>> Apparently it is missing a file called x-load.lds. There buildlog 
>>>> can be found here:
>>>> https://build.opensuse.org/package/live_build_log?arch=armv7l&package=x-loader-omap3gta04&project=home%3Amayerjosua%3AGTA04&repository=openSUSE_Factory_standard 
>>>> <https://build.opensuse.org/package/live_build_log?arch=armv7l&package=x-loader-omap3gta04&project=home:mayerjosua:GTA04&repository=openSUSE_Factory_standard>
>>>
>>> the file was indeed missing in the public git because there was a 
>>> global pattern for x-load.* in .gitignore. So a "git status" did not 
>>> show the file as being untracked and therefore it was never committed.
>>>
>>> Here it is:
>>>
>>> http://git.goldelico.com/?p=gta04-xloader.git;a=blob;f=board/omap3530gta04/x-load.lds;h=9402f74f1df710495fa1b1ec9fbd27e8f565340a;hb=e7eba37b4574b0ae57cb21a16061a251ae831159
>>>
>>> Please let us know if it works now.
>>>
>>> BR,
>>> Nikolaus Schaller
>>>
>>>
>>>
>>> _______________________________________________
>>> Gta04-owner mailing list
>>> Gta04-owner at goldelico.com  <mailto:Gta04-owner at goldelico.com>
>>> http://lists.goldelico.com/mailman/listinfo/gta04-owner
>>
>> Thanks Nikolaus, that did indeed fix it.
>> It is building now, just rpmlint is beeing sensitive again and 
>> complains "|E: x-loader-omap3gta04 no-return-in-nonvoid-function 
>> fat.c:515".|
>
> Yes, the x-loader code is quite buggy. It is based on a very old 
> u-boot stripped down to just handle NAND and MMC/SD and a single 
> built-in load command.
>
> And I think this line 515 is just missing a return NULL;
> But it may not have an influence since x-loader uses the root of the 
> FAT partition only.
>
> One thing you should consider. Please check if the CONFIGS are 
> properly defined for MLO and/or x-loader. So you may consider building 
> two different rpm packages. One for SD cards (creating a "MLO" 
> configured for loading from MMC plus "x-loader" for loading from 
> NAND). I am using a shell script that uses sed to modify the CONFIG 
> and compiles twice (and renames the resulting file).
>
> BR,
> Nikolaus
>
>
It finally finished building. I made a patch to fix the warnings rpmlint 
was barking about because I was not able to have them ignored for some 
reason. Also I am doing exactly as you say, doing basically 3 compiles 
and editing the defines with sed inbeetween.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20120707/aed446bc/attachment.html>


More information about the Gta04-owner mailing list