arm-linux toolchain

Hi to all,
sorry If this post do not correspond to this forum (please move it to the correct forum).
I need to install an arm-linux toolchain in TW and in yast2 I see cross-arm-gcc8, cross-arm-none-gcc8 and cross-arm-gcc8-bootstrap. Do I need those 3 ?(cross-arm-binutils is selected by default). I need to work with an arm7 processor. Someone has experience working with arm in opensuse? I got this link https://software.opensuse.org/package/cross-arm-linux-gnueabi-gcc, but I cannot see it on yast. What precautions do I need to take care off before start working with cross-arm toolchain (environment variables)?
Thanks
Gastón

I will request that your post be moved to the Programming/Scripting Development Forum.

https://forums.opensuse.org/forumdisplay.php/678-Programming-Scripting

There you should also find some previous threads about cross-compiling.
IMO what you chose may depend in large part with what you are trying to do, and if there is existing code that can kickstart what you’re trying to build (eg search Github gists). If you find code you can use, it’ll usually come with suggestions for a setup.

You may also want to consider a build environment, not just a tool-chain.
Recently on another project I was looking at, I was reminded of Meson.

Personally,
I try to avoid cross-compiling if possible.
Usually “real hardware” is required anyway for testing, so I’ll try to build on the target platform.

TSU

Hi
What about creating a KVM/qemu (qemu-arm) machine to work in, there is also OBS. I use a Tumbleweed aarch64 (RPi3) along with OBS for my builds. You can use qemu with OBS so can build locally.

A lot depends on what is being built.
QEMU can emulate at least the CPU, but all the other I/O devices in a target would be problematic.
In the end, would be better to either use an emulator specific to the RPi model or on a real, physical device.

IMO,
tSU

Did someone work with the Allwinner chips? (V3s in particular). There is no ISe to work with this chip, that is way I was asking about cross-arm toolcchain in opensuse TW. What about Linaro? Did someone worked with this chip on Opensuse TW?
Thanks

Hi
I would suggest heading over to IRC Freenode #opensuse-arm to see which ones have, there are a number of images available;
http://download.opensuse.org/ports/armv7hl/tumbleweed/images/

thanks for the link. I was thinking about build u-boot-the kernel and be able to create the SD card to boot linux on this chip. To do that I need a toolchain in opensuse but I found a few link (1 year ago) with problems installing cross-arm on opensuse. The other way around is use Linaro on opensuse, and Im really new in opensuse.
Thanks

Hi
It’s probably a bad time of the year as well, many people will be heading off on Holidays… :frowning: I saw your questions on IRC, if you can try again and stay active in the channel you might get some help :wink:

thanks, have a nice and peaceful holidays.
Gaston

Hi, its been a long time since this question. I have retake this project, and in the middle (lost any info I have found) lots of things. Im still wondering If using the cross-arm-gcc9 of opensuse I will be able to compile and run linux on V3s. Im on IRC opensuse-arm.

It may be possible,
But my experience has been very poor…
Because mobile (non-x86) systemboards generally have a lot of proprietary I/O devices built in, which means they’re not going to be distributed in the kernel and might not be that easy to find and compile.

QEMU generally works fine if you can find yourself a fully built image of a system because it’ll likely contain all the drivers and configuration needed, then you only need to find the right combination of hardware emulation(which isn’t always possible), but developing… Usually systemboard OEMs will provide their own development environments and then expect you to build to the real physical hardware.

IMO,
TSU

hi to all,
I retake this project and I lost every information I could gathered. Now Im still wondering I could perform this

“make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf”

in opensuse Tumbleweed.

Looking in yast I can only see cross-arm-gcc9 (along qith cross-arm-gcc7 and gcc8). Its possible to perfomr this on Tumbleweed? I need to cross-compile linux for arm7 chip from allwinner.
Regards

I’m not clear what you’re trying to do.
When you cross-compile something, it means that you’re building something that’s not compatible with your running environment…
eg
You’re building something on Linux to run on Windows.
Or
If you’re building on an x64 TW to run on an ARM.

So,
Am wondering why this is posted to the Virtualization forum, how do you intend to use virtualization?
If you intend to build something in x64 TW to run on an ARM, then this does not involve virtualization although you would need either a real device or a virtual machine to test your results.
If you instead deployed a virtual machine that emulates the ARM device, you could install build tools in your virtual machine and build natively… with reasonable chance for success (A real physical device is more certain than any emulator).

As for your question about whether that make statement would work, to that point it could but of course your statement is not complete so who knows whether the full statement might work.

TSU

Tsu, thansk for reply. I didn’t see your post (it was in the other page :shame:).
I have an allwinner V3s arm7 processor. I made my own custom board and now I try to compile linux kernel to boot from this arm7 processor. So I need to cross-compile (im using Tumbleweed machine 64). I finally didi it using Linaro, but a few question remains regarding making my own dts file for this board. I need to find a tutorial about his, Im really new to this embedded world. Im on IRC opensuse-arm. Thanks for your help.

Regards
Gastón

OK,
As I posted earlier in this thread,
I can’t see anything here that has anything to do with virtualization, so I’m, going to again request that this thread be moved to the Programming and Scripting sub-forum of Development.

TSU

At the application level it is actually pretty easy to cross build for a known/generic linux system, and even do dev testing with qemu in a chroot with arm native binaries from that platform, but if you are building a complete system, kernel on up, yes, that is going to be a special challenge.