View Single Post
Old 05-13-2016, 11:29 AM   #152
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by knc1 View Post
By attempting access to the ARMv5 floating point registers.
The xScale does not have any and the access will trap.

There are common runtime program initialization objects, provided by the compiler, not the system library, that may be making those accesses.

Perhaps: To set the fp control register to a known state or to save/restore it across the execution of the program, or to . . . .

This is why I gave you a list of options with which to build your static HelloWorld application -
So that if it did not run on the K1 it could be disassembled and read by a human to find the exact instruction that is causing your problems.
Yeah, some of those options did not work in the tool I was using at the time. I am setting up an aboriginal linux toolchain now, using the K1 1.2 rootfs provided in the update*.bin file downloaded from amazon. My plan is to try your options again using that, and to explore the assembler output, and the ELF file headers, and such.

Part of my detour last night was to learn how app loading works on linux, and how apps can talk directly to the kernel via system calls (essentially what a fully static app SHOULD do, when all libs it uses are linked into it).

And yes, I am aware that a full arm5te has floating point hardware, but the xcale variant lacks floating point -- no doubt the main source of problems I have stumbled into so far.

It is easy to become overwhelmed when there is so much to learn all at once and all the online tutorials and links I could find with google fail for one reason or another (and most of them have missing links to downloads and even other related content on their own website).

Aging is not kind to internet content -- bit rot, corporate buyouts breaking links (like codesourcery, arm UK, etc.), and recent problems with http pages redirecting to https while old autodownloaders use old wget that does not support https. I suppose it is like getting old for humans -- many of the old structural landmarks you navigated by for a lifetime are not there anymore (and memories are like landscapes if you used the ancient "memory palace" method to store vast quantities of knowledge in your head -- getting forgetful is because mental landmarks have been consolidated or pruned when you spent awhile not using related information).

Anyway, each time I try something new, I have my hopes up. I hope aboriginal linux with a K1 rootfs will work for me. We shall see. I am trying a different approach today -- instead of coffee for breakfast, I am drinking beer.
geekmaster is offline   Reply With Quote