Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
1 user(s) are online (1 user(s) are browsing Forum)

Members: 0
Guests: 1

more...
   All Posts (origami)


(1) 2 3 4 ... 35 »


Re: Trying a small program in AROS hosted on Raspberry Pi

Joined:
2016/8/16 0:09
Group:
Member
Posts: 341
Offline
Quote:

Quote:

hth313 wrote:

So I switched to using gimmearos-v1.sh, commented away gcc-multilib and after some chewing it concluded that recipe for target 's-automata' failed.

origami wrote:
....
i have no idea what "target 's-automata' failed." means.
...

Now i do know

It is related to memory issues, so try to increase your swap.

On Raspbian that can be done like mentioned here, although it required a reboot for me in order for the new size to take effect. I have it set to 2048, perhaps you could try with something a bit smaller as it slows things down considerably.

For some obscure reason package texinfo was not installed for me so that borked building the compiler, but after that things builded smoothly. The newer gcc is a beast though, and took me 2 hours to compile. Seems to work like a charm when setting the sysroot to correct path for the includes..

After building the compiler, building AROS failed within 10 minuites for me with undefined symbols (memset) when trying to build linuxinput.hidd

That is where i throw in the towel for the time being.

Posted on: 9/9 13:49
Transfer the post to other applications Transfer


Re: Trying a small program in AROS hosted on Raspberry Pi

Joined:
2016/8/16 0:09
Group:
Member
Posts: 341
Offline
Quote:

i dont want to hijack this thread,

No problem at all of having a small sidetrack

Quote:

but i think it might be easier and more future proof and sensible to invest work into building abi v1 on arm/rpi. first of all, contrary to i386, compiling abi v0 would not benefit of any existing ready to go software library. secondly avi v0 has been declared obsolete.

The aim is to let someone who surfs over to the nightly download page for AROS running on pi be able to compile the AROS themselves if wanted to. The gimmearos.sh script should work, and it does with the exception of the outdated presicion library URL and some small improvement on the gimmearos-script (who's changes/fixes also applies for the v1 script).

Because i do not have the same setup as the build-server and having the wrong link to mpc in the makefile, the build fails for me (and for anyone else trying to compile hosted arm).

I would have thought fixing that would appeal to your project of being able to reproduce everything

fwiw: this vs this as i assume that is used for the hosted arm nightly's posted on the ABI-v0 page as well..


Quote:

all efforts beyond sustaining it on already supported platform, which is solely i386, will be wasted, as soon as transition to abi v1 effectively occurs.

I do not disagree with that, other then backports are still being commited. It isn't worth the hassle of forking the project simply for changing one simple URL in a mmakefile.src and updating and/or providing a script that also works on/for the pi.

Quote:

on the contrary: trying to fix and extend obsoleted branch is counter productive since it could negatively impact on what effort should be dedicated to, namely getting aros actually forward. i am mentioning it in particular because just lately, as known, michal started to work on arm/rpi big endian target, which can seriously impact reception of aros among amiga and rpi audience.

I am aware of michal's project(s), but that does not take away the fact that things (as provided to the end-user) should just work. It is what annoys me to hell, to let things rot even further.

Mind that i'm talking about v0-on-trunk (which Icaros is based upon as well), and not talking about the abandonded v0.

Quote:

that said, i dont want to pick on anybody and their personal endeavour, bless them, just to indicate what might be sensible in a general scope.

No problem as your input (and contributions) is (are) appreciated.

fwiw it is not about my personal endeavour, rather to fix things that are presented as something that should work out of the box

Yes, v1 is attempting to build as well, but it isn't going very fast

Posted on: 9/9 6:24
Transfer the post to other applications Transfer


Re: Trying a small program in AROS hosted on Raspberry Pi

Joined:
2016/8/16 0:09
Group:
Member
Posts: 341
Offline
Quote:

All the needed header files as mentioned were already installed on my system when I checked it.

Yes, it is quite possible that you (already) have those files when using either another distribution on your pi or in case you have already fiddled with your setup in the past.

Note that the missing files afaik is only a culprit on/for Raspbian. Also note that i was using Jessie. Most people would be using Raspbian i guess ?

Next step for me could be to try something like Tiny Core or something like that, and the milage may very well vary in that case (only one way to find out )

I look at it from another perspective in that someone could start from scratch. In which case this link should be read first. Then the gimmearos script (together with the additions/fixes i've mentioned in this thread) should get things going.


Quote:

I fixed the configure script to include the missing directory, probably an good fix (I think). There is already some additional directories for Ubuntu 11.10 and Debian, so I simply added the missing one for Raspbian on another line in a similar way. I dumped all variables it had and it was not possible to generate the needed directory from them. I query gcc for the machine (which is that arm-linux-gnueabihf) and put it together in a similar way as that Debain thing.

After this it could find that sys/cdefs.h.

Do note that simply putting the 'missing' files at the correct location isn't going to get you a compiler able to compile Aros compatible executables. GCC and binutils require patching.


Quote:

However, it failed a bit later on with a mismatch on that an object files uses VFP regisers but libautoinit.a(startupvars.o) does not.

Ah yes, i seem to remember having ran into something similar to that as well but that was when i mistakenly build aros-raspi, which failed somewhere along the line but did produced a compiler for me (AROS build itself failed there). In my recollection the wrong linker was invoked from that compiler and i did not know how to fix that (on short notice and without borking my setup).

Quote:

I assume it means the library is built with soft floats. I configured it with hard floats as suggested. I have no clue.

As stated above, i believe (so take that with a grain of salt) it's due that the wrong linker is being invoked (ld of your system, instead of collect-aros).

Quote:

So I switched to using gimmearos-v1.sh, commented away gcc-multilib and after some chewing it concluded that recipe for target 's-automata' failed.

Again note that removing multilib was only required for me on Raspbian. I did not try the v1 script yet as pi-hosted is based on v0-on-trunk, but i assume it should not be a problem to compile with ABI-v1 sources.

i have no idea what "target 's-automata' failed." means. Try to invoke your gimmearos script (or better yet your own modified version or shortscript) with piping output and error channels with tee into a file and post the results (well the interresting bits that is, otherwise you will use up the storage of the forums ).

Quote:

Now I will go in another direction, as I do not really think I need to build it at this point. I will take a look at how gcc is patched. I managed to use the built-in native gcc using the thin AROS shim on top and compiled AROS binaries with it. I am curious to see if it is really needed to use these cross compilers, or if the native one actually can do.

I am by no means proficient with patching gcc, let alone doing it manually (that is why i use the gimme aros script (my modified one) and let the AROS build-system figure things out for me).

I'm also not proficient enough with the build options other then it is custom to build (AROS) outside the source-tree (which is what gimmearos script does as well).

In case you would want to attempt by doing things out of the box then i would probably suggest to take it up with the developers mailinglist. As you've probably noticed i'm already out of my comfort-zone..

In case things are not working for you with the gimmearos script then feel free to post some output so that it is possible to address the culprit(s). Do note that mixing the v0 and v1 scripts (or actually the produced files) is not convenient as they are incompatible, so make sure to clean up things when attemptng a new run.

fwiw: I'm assuming that you've modifed your gimmearos-script to include the modifications i've mentioned in one of my previous posts.

Quote:

Then I can try hostlib, which could help me do what I wanted to do in the first place.

You could also compile from within Aros itself if wanted.There should be a unix shell and gcc compiler present. I realize that the benefit of running hosted is that you are able to use your host's software, but in case all else fails


Posted on: 9/9 3:55
Transfer the post to other applications Transfer


Re: Trying a small program in AROS hosted on Raspberry Pi

Joined:
2016/8/16 0:09
Group:
Member
Posts: 341
Offline
Quote:

I am in the process of setting up a build environment, trying to make it build on the RPi. I also took out an x86 netbook that have Linux installed from the closet, in case the RPi proves too weak for this.

See my previous post on how to setup an AROS build environment. There are some issues here and there that i've hopefully managed to address for you.

With regards to weakness, it depends how patience you are. a full build on my pi3b (no overclocking) took about 3 hours. It depends a little on your internet-speed as well.

I still have to try and build it from a external usb HD to see if that makes things considerably faster. For the occasional build its good enough for me. I even cross-compile to mingw for my Windows rig as that is a PITA to do on Windows itself.


Quote:

hth313 wrote:
Cool! This is probably what I am looking for, and definitely I should be using that lock mechanism. The documentation does not mention which file to include, which is a pity. I can always grep for it and it came up with some suggestions and none really felt like like the clear winner as the "main one".

An example on how to use hostlib.resource can be found inside the aros source-tree here.

Quote:

There is no agenda here really, other than trying to learn things and run it hosted. I kind of think I could have icons to start Emacs for example, then the Emacs could appear (kind of) in the same screen as the rest of AROS and I can develop inside Emacs, accessing the AROS file system, editing and building. Hopefully giving the feel of having a real Emacs for AROS, more or less.

In theory anything like that is possible. The question is more or less do you wish to spent the time on it. For example Janus (amiga 68k emulator) can runs seemless within Aros and if you would ask the developer who implemented that, it is a PITA do be able to do it right.

Quote:

My end goal is basically understanding the architecture and how it tames the tools. This is because I am interested in such matters. I also have some hope running something like an Amiga, perhaps to try and program with the Amiga APIs while still having a Linux/OpenLook machine around it at the same time. Having the best of both worlds.

Hosted will be able to do that for you indeed, if you are into that.

The whole Aros project is interesting for me personally because indeed it has the same API and the OS itself has the same look and feel as classic AmigaOS did.

Things are clear and simple for me (even for noobs), especially the shell. The workbench can be a tad intimidating (especially when using a workbench replacement like dopus) but you can get used to it pretty quick.

Quote:

While I think it may be a good idea to run AROS on top of Linux in a more integrated way, I am quite happy learning what is there at the moment. I have enough other projects that I cannot possibly see how I can find time to go deep into this long term. As everyone else, I need to put food on the table.

Yes, the latter is something we all have to deal with. In the end it is just a hobby and for me pure fun. The lack of drivers (and developers spending time on those) is a drawback so that is one of the reasons why hybriding Aros with Linux seems a good idea to some. The longer the Aros project lingers the more i'm inclined to agree with that point of view, even though things haven't matured in full for Anubis and Arix.

Quote:

...
The only minor hope I have at the moment is that there can be a bit more focus on the RPi, as I think having a small number of reference platforms could help getting things into an even better shape, making it easier to set up a working system, thereby increasing the chance that people get interested and use it.

I totally agree to that.

Posted on: 9/6 15:20
Transfer the post to other applications Transfer


Re: aros-exec comes and goes

Joined:
2016/8/16 0:09
Group:
Member
Posts: 341
Offline
this white-page thing is getting ridiculous. It is unworkable with attempting to post something, everythings seems to work up till pressing the reply button where there is that white page again. From that point on aros-exec stays white for about ten minutes whatever the page i refer to.

Any reason https://aros-exec.org (note the s in there) redirects me to amiga-news.de ? something seems really messed-up there.

Posted on: 9/6 7:15
Transfer the post to other applications Transfer


Re: Trying a small program in AROS hosted on Raspberry Pi

Joined:
2016/8/16 0:09
Group:
Member
Posts: 341
Offline
Hi hth313,

sorry for the delay as things are kind of hectic around here. I was in the process of verifying some things in order to be able to build AROS hosted for the pi on the pi.

First, i assume that you know your way around bash script so that you are able to read/understand the gimmearos script that is supplied in the scripts directory inside the sources.

I take that script as a base and you would have to use my instructions to make sense out of it (i did not have time to correct the gimmearos script)

Let start with some education. In order to figure out what particular file resides in what packages you can make use apt-find. But afaik that is not installed by default.

to install the apt-file command: sudo apt-get install apt-file
to update it's database: sudo apt-file update

The latter should also be possible as to invoke with user rights (so without sudo)

then we can find for files: apt-file find cdefs.h
and while you are at it, also do a: apt-file find Xcursor.h

remember the names of the relevant packages.

then: sudo apt install libxcursor-dev
and: sudo apt-get -reinstall install libc6-dev

Alas the latter has a quirk in that it install things inside /usr/include/arm-linux-gnueabihf where you can find the includes. Note the sys directory.

As i did not wanted to mess with the include paths i simply copied the contents of the ....gnueabihf directory to usr/include in order to satisfy the compiler.

Perhaps the above is not the smartest idea but if someone got a better solution then please come forward and express those solution(s).

Another problem that occurs along the way when building aros is that the url to multiprecision library is pointing to the wrong url (the package moved). balaton committted a fix for that in trunk but was not backported to ABI-v0 on trunk.

If a developer reads did then would someone please be so kind as to backport that commit so that on trunk is compilabe for us mortals ?

we need to do it manually for now, so assuming that you had downloaded the source-code from the aros.org website and extracted the archive do a grep:
> grep -rn 'path/to/directory/where/your/sources/are/located/' -e 'multiprecision'

now, i do not remember the name of the file from mind bu check those files and modify the mmakefile.src where the url points to www.multiprecision.org (or something like that and make it point to the gnu ftp url where multiprecision library is now located. put the new url in front of the others that are listed and save your file.


Ok, so now that we did some preparations, let's take a closer look at the gimmearos script as linux-arm target is not avaiable in there.

1) install the required packages that are listed under option 1. Do note however that gcc-multilib is not present in the package manager apt, so we need to exclude that package from installing.

2) step two is the source-code but you already had that downloaded and extracted. note that i refer to that directory name as being $srcdir (as compliant with the gimmearos script). Do note that one directory up from your directory where your sources are is your current dir ($curdir)

3) configure
> cd "$curdir"
> mkdir -p "$portsdir"
> mkdir -p "aros-linux-armhf-v0"
> cd "aros-linux-armhf-v0"
> "..$srcdir/configure" --target=linux-armhf --with-portsources="$portsdir"
The with-portsources option prevents from downlloading those files again and again with each config/build

4) then the build:
> cd "$curdir"
> cd aros-linux-armhf-v0
> make $makeopts
> make $makeopts contrib
> make $makeopts ports

that should be able to finish the complete aros hosted arm build for you on a pi

Now, you can find the (cross) compiler inside aros-linux-armhf-v0/bin/linux/arm/tools/crosstools/ such as arm-aros-gcc and friends. you would need to supply the complete path to the compile though or make use of scripts/links if you want to use a less tiresome path.

hope that helps you out (a bit)

Posted on: 9/6 7:11
Transfer the post to other applications Transfer


Re: Trying a small program in AROS hosted on Raspberry Pi

Joined:
2016/8/16 0:09
Group:
Member
Posts: 341
Offline
k, thank you hth313.

fwiw i think i see my error (checking out wrong branch). Build is slooow though

Quote:

I was interested in how it worked for developer that wanted to build for AROS, not fiddling with AROS itself.

You still would need a compiler that is able to target Aros, so would need to have to setup a proper build environment. the compiler and binutils needs proper patching (patches are available in AROS source tree).


Quote:

I plan to experiment using calls to POSIX to see if that can be done.

I'm almost certain (judging by the rest of your answer that follows) that this is not what you had in mind but such thing can already be done on hosted by using hostlib. It allows you to make calls to Host OS.

Quote:

Actually, I have already started a bit, but have not got much out of it yet. Sort of trying to make a hybrid AROS/Linux binary for AROS.

Looks like you had something similar in mind as amithlon perhaps ?. If that's the case then have a look at old Arix sources (ezrec's github (or gitorious) is the only place i was able to find them.

Or better yet, have a look at michaels patreon, where another atempt at Arix is made (but that is Arix with a twist/different flavour)

Quote:

My overall goal it to get a better understanding of the architecture.

Nothing wrong with that. Just don't waste time on things already attempted (in which case you could do a search for Anubis as well .

Quote:

I have downloaded the AROS Git archive, but have not done much with that yet.

IF you're new to Aros then the best thing is to get yourself familiar with the Aros build-system. I'm still struggling myself with that though (c, config and make-files are not really my cup of tea)

Posted on: 9/3 17:33
Transfer the post to other applications Transfer


Re: Trying a small program in AROS hosted on Raspberry Pi

Joined:
2016/8/16 0:09
Group:
Member
Posts: 341
Offline
@hth313:
Out of curiosity, which AROS sources did you checkout (vo/v1/on trunk) ?

I'm trying to improve some things with regards to the gimmearos script but compiling AROS itself fails miserably for me and fwiw the sdk script was written with i386 in mind (so that isn't going to work ootb either).

note to self: in their infinite wisdom raspbian does not have gcc-multilib listed in packages because "there is only 32 bit raspbian that is supported").

Posted on: 9/2 5:46
Transfer the post to other applications Transfer


Re: aros-exec comes and goes

Joined:
2016/8/16 0:09
Group:
Member
Posts: 341
Offline
I'm still experiencing the same "white page" problems, and in my experience it seems to be getting worse. Just now it happened while logging in

btw see attachment.

Attach file:



jpg  arixfoundation-marketplace.jpg (49.17 KB)
6268_5b8bdad0e862d.jpg 360X785 px

Posted on: 9/2 5:43
Transfer the post to other applications Transfer


Re: Trying a small program in AROS hosted on Raspberry Pi

Joined:
2016/8/16 0:09
Group:
Member
Posts: 341
Offline
Quote:

hth313 wrote:
To get more familiar with my AROS installation on the RPi I decided to install the SDK and build a hello world. Is there some documentation on how to do this?

if you surf over to www.aros.org there is a list of topics listed at your left side under documentation/developers. Click (and read) all the links (and the links listed therein etc) to get yourself more educated.

Alternatively use the wikibook link here on this site (look to the left of your screen when reading this post and click on "AROS dev Docs", then select your topic of choice).


Quote:

So I fixed the script (two simple changes). How can I contribute this back in the best way? Can I open a pull request using git somewhere?

svn account, ask on developers mailinglist for details if unclear.

Quote:

With a fresh SDK I typed in a hello world program and tried to build it, which resulted in:

..
Where can I find or how do I build the missing libraries?


Either you compile inside aros (hosted on linux if you prefer) or you do it on the host (or any other system for that matter).

In case _inside_ AROS you can setup development by adding files from contribute archive and make sure everything is in place (paths etc)

In case cross-compiling (which effectively your output is showing) you can use the gimmearos script (after you've installed the minimal build requirements manually on your linux box).


At least you're trying instead of bickering so :thumbsup:


Posted on: 8/29 17:30
Transfer the post to other applications Transfer



 Top
(1) 2 3 4 ... 35 »




Search
Top Posters
1 paolone
paolone
4452
2 nikolaos
nikolaos
4169
3 magorium
magorium
4095
4 phoenixkonsole
phoenixkonsole
3942
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2809
7 mazze
mazze
2222
8 clusteruk
clusteruk
2113
9 damocles
damocles
1789
10 BSzili
BSzili
1529
© 2004-2018 AROS Exec