SGX driver code not present

Hi Robert
Sorry to post this here but the Xchange forum has broken my login.

I used the eewiki recipe to build a kernel and to load a sd card. It all works well but when I tried to run the SGX driver installation I dont get the predicted result
Kernel_version = 4.4.3-bone-rt-r5

I ran
./sgx_build_modules.sh
You then instruct:-
Copy ./deploy/GFX_5.01.01.02.tar.gz to BeagleBone/BeagleBone Black and install

I do not have that in any directory. Is there anything special that I am missing?

Regards
Marius

then "./sgx_build_modules.sh" failed...

Initial guess:

missing 32bit lib's, since the switch to gcc-5, i've opted to not
always install the 32bit lib's by default *

sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 zlib1g:i386

./sgx_build_modules.sh

*: https://github.com/RobertCNelson/bb-kernel/blob/am33x-v4.4/tools/host_det.sh#L495-L505

Regards,

I am on Ubuntu 14.04 64bit. Does that matter?

probally...

When you ran:

./sgx_build_modules.sh

What did it say.. ???

btw, according to my directions:

http://elinux.org/BeagleBoardDebian#SGX_BeagleBone.2FBeagleBone_Black

it's "./sgx_create_package.sh"

the sgx "modules" are pre-built and in the apt repo..

Regards,

Ok that seem to have doe the trick. Thanks Robert.

Hi Robert
Sorry to post this here but the Xchange forum has broken my login.

I used the eewiki recipe to build a kernel and to load a sd card. It all
works well but when I tried to run the SGX driver installation I dont
get
the predicted result
Kernel_version = 4.4.3-bone-rt-r5

I ran
./sgx_build_modules.sh
You then instruct:-
Copy ./deploy/GFX_5.01.01.02.tar.gz to BeagleBone/BeagleBone Black and
install

I do not have that in any directory. Is there anything special that I am
missing?

then “./sgx_build_modules.sh” failed…

Initial guess:

missing 32bit lib’s, since the switch to gcc-5, i’ve opted to not
always install the 32bit lib’s by default *

sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
zlib1g:i386

./sgx_build_modules.sh

*:
https://github.com/RobertCNelson/bb-kernel/blob/am33x-v4.4/tools/host_det.sh#L495-L505

Regards,


Robert Nelson
https://rcn-ee.com/

I am on Ubuntu 14.04 64bit. Does that matter?

probally…

When you ran:

./sgx_build_modules.sh

What did it say… ???

btw, according to my directions:

http://elinux.org/BeagleBoardDebian#SGX_BeagleBone.2FBeagleBone_Black

it’s “./sgx_create_package.sh”

the sgx “modules” are pre-built and in the apt repo…

Regards,


Robert Nelson
https://rcn-ee.com/

I worked from this one https://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-SGX
It says ./sgx_build_modules.sh
I did try ./sgx_create_package.sh as well before I posted. It did not work either.

I installed the 32bit libs now and recompiled. Will the 32bit libs cause trouble on the 64bit Ubuntu?

I worked from this one
https://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-SGX
It says ./sgx_build_modules.sh
I did try ./sgx_create_package.sh as well before I posted. It did not work
either.

both scripts require the 32bit lib's, it's just the way the *.bin was
packaged....

From the eewiki.net site, we assume you build the kernel, thus you
need to build the modules via 'sgx_build_modules.sh'..

Whereas, from the elinux site you are using everything pre-built, so
you can the modules in the apt repo and thus only use
'sgx_create_package.sh'...

I installed the 32bit libs now and recompiled. Will the 32bit libs cause
trouble on the 64bit Ubuntu?

No, just wasted space :wink:

pre-gcc5 the kernel script would have installed them anyways, as the
linaro 4.9 gcc was built for 32bit users too...

Regards,

I worked from this one
https://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-SGX
It says ./sgx_build_modules.sh
I did try ./sgx_create_package.sh as well before I posted. It did not work
either.

both scripts require the 32bit lib’s, it’s just the way the *.bin was
packaged…

From the eewiki.net site, we assume you build the kernel, thus you
need to build the modules via ‘sgx_build_modules.sh’…

Whereas, from the elinux site you are using everything pre-built, so
you can the modules in the apt repo and thus only use
‘sgx_create_package.sh’…

I installed the 32bit libs now and recompiled. Will the 32bit libs cause
trouble on the 64bit Ubuntu?

No, just wasted space ;)

pre-gcc5 the kernel script would have installed them anyways, as the
linaro 4.9 gcc was built for 32bit users too…

Regards,


Robert Nelson
https://rcn-ee.com/

Yes I built everything from source so that explains then why it is different.