[Macchiato] macchiatobin problem
Baruch Siach
baruch at tkos.co.il
Fri Nov 2 05:34:36 GMT 2018
Hi Marcin,
Marcin Wojtas writes:
> czw., 1 lis 2018 o 15:38 Steve McIntyre <steve at einval.com> napisał(a):
>> On Thu, Nov 01, 2018 at 12:53:35PM +0200, Baruch Siach wrote:
>> >Adding Marcin to Cc.
>> >
>> >Steve McIntyre writes:
>> >> On Wed, Oct 31, 2018 at 08:07:50AM +0200, Baruch Siach wrote:
>> >>>> >
>> >>>> >More details at: http://macchiatobin.net/forums/topic/kernel-vanilla/
>> >>>>
>> >>>> I've seen similar to that with vanilla 4.19. So I dropped back to 4.18
>> >>>> and that works great.
>> >>>
>> >>>What is you kernel .config? Are you using U-Boot? I can try to reproduce it
>> >>>here.
>> >>
>> >> Nope, I'm using a recently-built (~1w ago) UEFI from the instructions
>> >> on the wiki. .config attached.
>> >
>> >I can't build UEFI using the current instructions on the wiki:
>> >
>> > http://wiki.macchiatobin.net/tiki-index.php?page=Build+from+source+-+UEFI+EDK+II
>> >
>> >The 'build' command insists on using my host gcc, even though I set
>> >GCC5_AARCH64_PREFIX correctly. The Python based build system is debug
>> >resistant to me.
>
> Do you mean building the BaseTools? For that you need native x86_64 (I
> assume you do cross-compile): make, gcc, g++.
> I added this info to the 'Information' box in the wiki:
> http://wiki.macchiatobin.net/tiki-index.php?page=Build+from+source+-+UEFI+EDK+II
> GCC5_AARCH64_PREFIX is used for building the edk2 output binary only.
The native part builds nicely. Only cross build fails:
gcc: error: unrecognized argument in option ‘-mcmodel=tiny’
gcc: note: valid arguments to ‘-mcmodel=’ are: 32 kernel large medium small
gcc: error: unrecognized command line option ‘-mlittle-endian’; did you mean ‘-fconvert=little-endian’?
gcc: error: unrecognized command line option ‘-mstrict-align’; did you mean ‘-Wstrict-aliasing’?
Which is because for some reason the build system defaults to the host
toolchain. Where should I look in the code to trace the toolchain
selection?
By the way, I'm using the ARM (Ltd) released toolchain (version 8.2.1),
not the Linaro one that the wiki mentions. But I don't think that should
matter for the toolchain selection.
>> Ah, Marcin did say he's just updated the wiki. :-/
>
> Well, I don't actually think the bothered face emoji is needed here:)
> It was verified by another engineer and after your emails I took it to
> a fresh ubuntu-16.04 environment -
> with copy-pasting the commands I reached successful build. Please try
> again and let know a specific problem if any.
>
> If you don't want to build MacchiatoBin binary, I recently uploaded
> the newest version from 18.09 release:
> https://github.com/MarvellEmbeddedProcessors/edk2-open-platform/wiki/files/flash-image-18.09.4.bin
> So you can simply burn it and play.
I'll try that next week if image build doesn't work for me. But I really
prefer to be able to build this image.
Thanks,
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
More information about the Macchiato
mailing list