RobertCNelson / bb-kernel

MIT License
130 stars 102 forks source link

sgx_create_package.sh doesn't create GFX_5.01.01.02.tar.gz #39

Closed LucaVs closed 6 years ago

LucaVs commented 7 years ago

I followed the instruction from: http://elinux.org/BeagleBoardDebian#SGX_BeagleBone.2FBeagleBone_Black . I executed the script on a LUBUNTU 32 bit installed on Virtualbox.

I got the following message:

./sgx_create_package.sh                    
'/home/luca/bb-kernel/system.sh.sample' -> '/home/luca/bb-kernel/system.sh'
Verifying: Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin
md5sum match: 94bcb31ea7eb50df1dfa4037055b638e
Installing: Graphics_SDK_setuplinux_5_01_01_02

This will install Graphics SDK on your computer.  Continue? [n/Y] 
                Texas Instruments Incorporated 
Technology and Software Publicly Available
 Software License Agreement

Important - Please read the following license agreement carefully.  This is a
legally binding agreement.  Do not click "i have read and agree" or use (as
applicable) the Licensed Materials unless: (1) you are authorized to accept and
agree to the terms of this license agreement on behalf of yourself or your
company (as applicable) and (2) you intend to be bound by the terms of this
license agreement on behalf of yourself or your company (as applicable).

This Software License Agreement ("Agreement") is a legal agreement between you
(either an individual or entity) and Texas Instruments Incorporated ("TI"),
12500 TI Boulevard, Dallas, Texas 75243.  The "Licensed Materials" subject to
this Agreement include the software programs (in whole or in part), that
accompany this Agreement and set forth in the applicable software manifest and
which you access "on-line" and/or electronic documentation (in whole or in part)
associated and provided with these software programs.  By installing, copying or
otherwise using the Licensed Materials you agree to abide by the terms of this
Agreement.  If you choose not to accept or agree with these terms, do not
download or install the Licensed Materials.

-- Press space to continue or 'q' to quit --
Type 'y' if you agree to the license agreement [y/N] 

Where do you want to install Graphics SDK?
[/home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02] 
Installing Graphics SDK...
Installing Base Install...                                                    
Installing es3.x...                                                           
Installing es5.x...                                                           
Installing es6.x...                                                           
Installing es8.x...                                                           
Installing sdk...                                                             
Installing es9.x...                                                           
Installation complete.                                                        
Cloning into '/home/luca/bb-kernel/ignore/ti-sdk-pvr'...
remote: Counting objects: 1257, done.
remote: Total 1257 (delta 0), reused 0 (delta 0), pack-reused 1257
Receiving objects: 100% (1257/1257), 1.90 MiB | 1.07 MiB/s, done.
Resolving deltas: 100% (587/587), done.
Checking connectivity... done.
Branch tmp-build set up to track remote branch 5.01.01.02 from origin.
Switched to a new branch 'tmp-build'
Starting: copying files from the SDK
Copying: es8.x to build dir
-----------------------------
make clean
-----------------------------
/home/luca/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK
make GRAPHICS_INSTALL_DIR=/home/luca/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK/ KERNEL_INSTALL_DIR=/home/luca/bb-kernel/KERNEL HOME=/root CSTOOL_PREFIX= CSTOOL_DIR=/usr clean

but at the end I haven't deply folder.

RobertCNelson commented 7 years ago

normally you'd see:

-----------------------------
make clean
-----------------------------
/opt/github/4.4.x/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK
make GRAPHICS_INSTALL_DIR=/opt/github/4.4.x/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK/ KERNEL_INSTALL_DIR=/opt/github/4.4.x/bb-kernel/KERNEL HOME=/home/voodoo CSTOOL_PREFIX= CSTOOL_DIR=/usr clean
-----------------------------
-----------------------------
/opt/github/4.4.x/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK
make BUILD=(debug | release} OMAPES={5.x | 8.x | 9.x} install
make DESTDIR=/opt/github/4.4.x/bb-kernel/deploy/8.x HOME=/opt/github/4.4.x/bb-kernel/ignore/SDK_BIN/ GRAPHICS_INSTALL_DIR=/opt/github/4.4.x/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02 BUILD=release OMAPES=8.x install

exporting necessary variables and installing...
########################################################
Please ensure that PSP Linux kernel is re-built atleast once,
Please refer online guide for further details.
########################################################
creating directories...
copying startup files...
copying user space graphics libraries to target file system...
copying install information to target file system...
'/opt/github/4.4.x/bb-kernel/3rdparty/sgx-startup-sysv.sh' -> '/opt/github/4.4.x/bb-kernel/deploy/8.x/opt/gfxinstall/scripts/sgx-startup-sysv.sh'
'/opt/github/4.4.x/bb-kernel/3rdparty/sgx-install.sh' -> '/opt/github/4.4.x/bb-kernel/deploy/8.x/opt/gfxinstall/sgx-install.sh'
-----------------------------
GFX archive: deploy/GFX_5.01.01.02_es8.x.tar.gz
-----------------------------

Sorry i don't test 32 bit installs anymore, just 64bit, so it's got to be something simple..

first thing to try, add "x" to:

#!/bin/bash -e
#!/bin/bash -ex

then rerun sgx_create_package.sh and we will get some more debugging..

Regards,

LucaVs commented 7 years ago

Thanks. I just tried on a Slackware 14.1 32 bit and all gone as expected. I didn't tried 64 bit because I haven't multilib at the moment. The problem may depends on VirtualBox. This evening I'll post the output on Lubuntu as you wrote.

LucaVs commented 7 years ago

As I said I solved using Slackware 32 bit. But if useful I executed the test you asked me.

I added the 'x' and launched the script again. This is the output when launching from Lubuntu (Virtualbox) :

./sgx_create_package.sh    
+ VERSION=v2015.01-1
+ unset DIR
+ DIR=/home/luca/bb-kernel
+ SDK=5.01.01.02
+ sdk_version=5_01_01_02
+ SDK_DIR=5_01_01_02
+ SGX_SHA=origin/5.01.01.02
+ http_ti=http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/
+ sgx_file=Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin
+ sgx_md5sum=94bcb31ea7eb50df1dfa4037055b638e
+ '[' '!' -f /home/luca/bb-kernel/system.sh ']'
+ cp -v /home/luca/bb-kernel/system.sh.sample /home/luca/bb-kernel/system.sh
'/home/luca/bb-kernel/system.sh.sample' -> '/home/luca/bb-kernel/system.sh'
+ source /home/luca/bb-kernel/system.sh
+++ uname -m
++ ARCH=i686
++ '[' xi686 = xarmv7l ']'
+ source /home/luca/bb-kernel/version.sh
+++ uname -m
++ ARCH=i686
++ config=omap2plus_defconfig
++ build_prefix=-bone
++ branch_prefix=am33x-v
++ branch_postfix=
++ KERNEL_ARCH=arm
++ toolchain=gcc_linaro_gnueabihf_5
++ KERNEL_REL=4.4
++ KERNEL_TAG=4.4.57
++ BUILD=-bone17
++ kernel_rt=.53-rt66
++ BRANCH=am33x-v4.4
++ DISTRO=cross
++ DEBARCH=armhf
+ '[' '!' -d /home/luca/bb-kernel/ignore/ ']'
+ mkdir /home/luca/bb-kernel/ignore/
+ dl_n_verify_sdk
+ '[' -f /home/luca/bb-kernel/dl/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin ']'
+ dl_sdk
+ echo 'md5sum mis-match:  (re-downloading)'
md5sum mis-match:  (re-downloading)
+ wget -c --directory-prefix=/home/luca/bb-kernel/dl http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/5_01_01_02/exports/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin
--2017-03-27 21:51:12--  http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/5_01_01_02/exports/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin
Resolving software-dl.ti.com (software-dl.ti.com)... 2.228.46.107, 2.228.46.122
Connecting to software-dl.ti.com (software-dl.ti.com)|2.228.46.107|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://www.ti.com/general/docs/licreg/anonymousproddownload.tsp?downloadPage=true&location=http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/5_01_01_02/exports/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin [following]
--2017-03-27 21:51:13--  https://www.ti.com/general/docs/licreg/anonymousproddownload.tsp?downloadPage=true&location=http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/5_01_01_02/exports/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin
Resolving www.ti.com (www.ti.com)... 23.33.8.233
Connecting to www.ti.com (www.ti.com)|23.33.8.233|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/5_01_01_02/exports/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin?tracked=1 [following]
--2017-03-27 21:51:14--  http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/5_01_01_02/exports/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin?tracked=1
Connecting to software-dl.ti.com (software-dl.ti.com)|2.228.46.107|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.ti.com/dsps/dsps_public_sw/gfxsdk/5_01_01_02/exports/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin?tracked=1 [following]
--2017-03-27 21:51:14--  http://downloads.ti.com/dsps/dsps_public_sw/gfxsdk/5_01_01_02/exports/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin?tracked=1
Resolving downloads.ti.com (downloads.ti.com)... 23.214.150.14
Connecting to downloads.ti.com (downloads.ti.com)|23.214.150.14|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 148543221 (142M) [application/octet-stream]
Saving to: â/home/luca/bb-kernel/dl/Graphics_SDK_setuplinux_hardfp_5_01_01_02.binâ

Graphics_SDK_setuplinux_h 100%[=====================================>] 141,66M  1,12MB/s    in 2m 11s  

2017-03-27 21:53:25 (1,08 MB/s) - â/home/luca/bb-kernel/dl/Graphics_SDK_setuplinux_hardfp_5_01_01_02.binâ saved [148543221/148543221]

+ '[' '!' -f /home/luca/bb-kernel/dl/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin ']'
+ install_sgx
+ '[' '!' -f /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/verify.94bcb31ea7eb50df1dfa4037055b638e ']'
+ echo 'Installing: Graphics_SDK_setuplinux_5_01_01_02'
Installing: Graphics_SDK_setuplinux_5_01_01_02
+ '[' -d /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02 ']'
+ chmod +x /home/luca/bb-kernel/dl/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin
+ /home/luca/bb-kernel/dl/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin --mode console --prefix /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02

This will install Graphics SDK on your computer.  Continue? [n/Y] 
                Texas Instruments Incorporated 
Technology and Software Publicly Available
 Software License Agreement

Important - Please read the following license agreement carefully.  This is a
legally binding agreement.  Do not click "i have read and agree" or use (as
applicable) the Licensed Materials unless: (1) you are authorized to accept and
agree to the terms of this license agreement on behalf of yourself or your
company (as applicable) and (2) you intend to be bound by the terms of this
license agreement on behalf of yourself or your company (as applicable).

This Software License Agreement ("Agreement") is a legal agreement between you
(either an individual or entity) and Texas Instruments Incorporated ("TI"),
12500 TI Boulevard, Dallas, Texas 75243.  The "Licensed Materials" subject to
this Agreement include the software programs (in whole or in part), that
accompany this Agreement and set forth in the applicable software manifest and
which you access "on-line" and/or electronic documentation (in whole or in part)
associated and provided with these software programs.  By installing, copying or
otherwise using the Licensed Materials you agree to abide by the terms of this
Agreement.  If you choose not to accept or agree with these terms, do not
download or install the Licensed Materials.

-- Press space to continue or 'q' to quit --
Type 'y' if you agree to the license agreement [y/N] 

Where do you want to install Graphics SDK?
[/home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02] 
Installing Graphics SDK...
Installing Base Install...                                                    
Installing es3.x...                                                           
Installing es5.x...                                                           
Installing es6.x...                                                           
Installing es8.x...                                                           
Installing sdk...                                                             
Installing es9.x...                                                           
Installation complete.                                                        
+ touch /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/verify.94bcb31ea7eb50df1dfa4037055b638e
+ set_sgx_make_vars
+ GRAPHICS_PATH=GRAPHICS_INSTALL_DIR=/home/luca/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK/
+ KERNEL_PATH=KERNEL_INSTALL_DIR=/home/luca/bb-kernel/KERNEL
+ USER_VAR=HOME=/home/root
+ CSTOOL_PREFIX=
++ awk -F /bin/ '{print $1}'
++ echo
+ CSTOOL_DIR=
+ '[' x == x ']'
+ CSTOOL_DIR=/usr
+ CROSS='CSTOOL_PREFIX= CSTOOL_DIR=/usr'
+ git_sgx_modules
+ '[' '!' -f /home/luca/bb-kernel/ignore/ti-sdk-pvr/.git/config ']'
+ git clone https://github.com/RobertCNelson/ti-sdk-pvr.git /home/luca/bb-kernel/ignore/ti-sdk-pvr/
Cloning into '/home/luca/bb-kernel/ignore/ti-sdk-pvr'...
remote: Counting objects: 1257, done.
remote: Total 1257 (delta 0), reused 0 (delta 0), pack-reused 1257
Receiving objects: 100% (1257/1257), 1.90 MiB | 549.00 KiB/s, done.
Resolving deltas: 100% (587/587), done.
Checking connectivity... done.
+ cd /home/luca/bb-kernel/ignore/ti-sdk-pvr/
+ git checkout origin/5.01.01.02 -b tmp-build
Branch tmp-build set up to track remote branch 5.01.01.02 from origin.
Switched to a new branch 'tmp-build'
+ cd /home/luca/bb-kernel/
+ copy_sgx_binaries
+ '[' -d /home/luca/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK/armhf ']'
+ echo 'Starting: copying files from the SDK'
Starting: copying files from the SDK
+ '[' -d /home/luca/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK/targetfs ']'
+ mkdir -p /home/luca/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK/targetfs
+ '[' -d /home/luca/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK/tools ']'
+ mkdir -p /home/luca/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK/tools
+ cp -r /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/tools /home/luca/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK/
+ es_version=es8.x
+ copy_sgx_es
+ echo 'Copying: es8.x to build dir'
Copying: es8.x to build dir
+ mkdir -p /home/luca/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK/armhf/gfx_rel_es8.x
+ cp -r /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/bufferclass_ti.ko /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/glsltest1_fragshaderA.txt /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/glsltest1_fragshaderB.txt /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/glsltest1_vertshader.txt /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/install_dri.sh /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/install.sh /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libEGL.dbg /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libEGL_eglimage.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libEGL.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libffgen.a /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libGLES_CM.dbg /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libGLES_CM_eglimage.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libGLES_CM.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libGLESv2.dbg /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libGLESv2_eglimage.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libGLESv2.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libglslcompiler.dbg /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libglslcompiler_eglimage.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libglslcompiler.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libIMGegl.dbg /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libIMGegl_eglimage.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libIMGegl.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libpvr2d.dbg /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libpvr2d.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libpvrPVR2D_BLITWSEGL.dbg /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libpvrPVR2D_BLITWSEGL.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libpvrPVR2D_DRIWSEGL.dbg /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libpvrPVR2D_DRIWSEGL.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libpvrPVR2D_FLIPWSEGL.dbg /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libpvrPVR2D_FLIPWSEGL.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libpvrPVR2D_FRONTWSEGL.dbg /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libpvrPVR2D_FRONTWSEGL.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libpvrPVR2D_LINUXFBWSEGL.dbg /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libpvrPVR2D_LINUXFBWSEGL.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libPVRScopeServices.dbg /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libPVRScopeServices.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libsrv_init.dbg /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libsrv_init.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libsrv_um.dbg /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libsrv_um_dri.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libsrv_um.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libusc.dbg /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libusc.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libuseasm.a /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/libusp.a /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/omaplfb.ko /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/pvr2d_test /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/pvr_drv.dbg /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/pvr_drv.so /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/pvrsrvctl /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/pvrsrvkm.ko /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/rc_dri.pvr /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/rc.pvr /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/services_test /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/sgx_blit_test /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/sgx_clipblit_test /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/sgx_flip_test /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/sgx_init_test /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/sgx_render_flip_test /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/xeglinfo /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/xgles1test1 /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/xgles1_texture_stream /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/xgles2test1 /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/xgles2_texture_stream /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/xmultiegltest /home/luca/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/gfx_rel_es8.x/xorg.conf /home/luca/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK/armhf/gfx_rel_es8.x/
+ sed -i -e 's:all_km all_sdk:all_km:g' /home/luca/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK/Makefile
+ sed -i -e 's:install_km install_sdk:install_km:g' /home/luca/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK/Makefile
+ sed -i -e 's:prepare_km buildkernel builddevmem2:prepare_km buildkernel:g' /home/luca/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK/Makefile.KM
+ clean_sgx_modules
+ echo -----------------------------
-----------------------------
+ echo 'make clean'
make clean
+ echo -----------------------------
-----------------------------
+ cd /home/luca/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK/
+ pwd
/home/luca/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK
+ echo 'make GRAPHICS_INSTALL_DIR=/home/luca/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK/ KERNEL_INSTALL_DIR=/home/luca/bb-kernel/KERNEL HOME=/root CSTOOL_PREFIX= CSTOOL_DIR=/usr clean'
make GRAPHICS_INSTALL_DIR=/home/luca/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK/ KERNEL_INSTALL_DIR=/home/luca/bb-kernel/KERNEL HOME=/root CSTOOL_PREFIX= CSTOOL_DIR=/usr clean
+ make GRAPHICS_INSTALL_DIR=/home/luca/bb-kernel/ignore/ti-sdk-pvr/Graphics_SDK/ KERNEL_INSTALL_DIR=/home/luca/bb-kernel/KERNEL HOME=/root CSTOOL_PREFIX= CSTOOL_DIR=/usr clean
tderensis commented 7 years ago

I am having a similar problem. The script just exits after trying to run the .bin file and never gets to the TI prompt. I have added -x to the script and get the following:

+ VERSION=v2015.01-1
+ unset DIR
+ DIR=/home/steve/bb-kernel
+ SDK=5.01.01.02
+ sdk_version=5_01_01_02
+ SDK_DIR=5_01_01_02
+ SGX_SHA=origin/5.01.01.02
+ http_ti=http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/
+ sgx_file=Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin
+ sgx_md5sum=94bcb31ea7eb50df1dfa4037055b638e
+ '[' '!' -f /home/steve/bb-kernel/system.sh ']'
+ source /home/steve/bb-kernel/system.sh
+++ uname -m
++ ARCH=x86_64
++ '[' xx86_64 = xarmv7l ']'
+ source /home/steve/bb-kernel/version.sh
+++ uname -m
++ ARCH=x86_64
++ config=omap2plus_defconfig
++ build_prefix=-bone
++ branch_prefix=am33x-v
++ branch_postfix=
++ KERNEL_ARCH=arm
++ toolchain=gcc_linaro_gnueabihf_5
++ KERNEL_REL=4.4
++ KERNEL_TAG=4.4.57
++ BUILD=-bone17
++ kernel_rt=.53-rt66
++ BRANCH=am33x-v4.4
++ DISTRO=cross
++ DEBARCH=armhf
+ '[' '!' -d /home/steve/bb-kernel/ignore/ ']'
+ dl_n_verify_sdk
+ '[' -f /home/steve/bb-kernel/dl/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin ']'
+ dl_sdk
+ echo 'md5sum mis-match:  (re-downloading)'
md5sum mis-match:  (re-downloading)
+ wget -c --directory-prefix=/home/steve/bb-kernel/dl http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/5_01_01_02/exports/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin
--2017-03-30 10:34:53--  http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/5_01_01_02/exports/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin
Resolving software-dl.ti.com (software-dl.ti.com)... 98.171.219.11, 98.171.219.19
Connecting to software-dl.ti.com (software-dl.ti.com)|98.171.219.11|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://www.ti.com/general/docs/licreg/anonymousproddownload.tsp?downloadPage=true&location=http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/5_01_01_02/exports/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin [following]
--2017-03-30 10:34:53--  https://www.ti.com/general/docs/licreg/anonymousproddownload.tsp?downloadPage=true&location=http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/5_01_01_02/exports/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin
Resolving www.ti.com (www.ti.com)... 23.32.171.209, 2001:578:2d:fe95::b48, 2001:578:2d:fe85::b48
Connecting to www.ti.com (www.ti.com)|23.32.171.209|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/5_01_01_02/exports/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin?tracked=1 [following]
--2017-03-30 10:34:54--  http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/5_01_01_02/exports/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin?tracked=1
Connecting to software-dl.ti.com (software-dl.ti.com)|98.171.219.11|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.ti.com/dsps/dsps_public_sw/gfxsdk/5_01_01_02/exports/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin?tracked=1 [following]
--2017-03-30 10:34:54--  http://downloads.ti.com/dsps/dsps_public_sw/gfxsdk/5_01_01_02/exports/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin?tracked=1
Resolving downloads.ti.com (downloads.ti.com)... 23.196.100.87
Connecting to downloads.ti.com (downloads.ti.com)|23.196.100.87|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 148543221 (142M) [application/octet-stream]
Saving to: ‘/home/steve/bb-kernel/dl/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin’

Graphics_SDK_setuplinux_hardfp_5_ 100%[==========================================================>] 141.66M  6.17MB/s    in 2m 40s  

2017-03-30 10:37:34 (907 KB/s) - ‘/home/steve/bb-kernel/dl/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin’ saved [148543221/148543221]

+ '[' '!' -f /home/steve/bb-kernel/dl/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin ']'
+ install_sgx
+ '[' '!' -f /home/steve/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02/verify.94bcb31ea7eb50df1dfa4037055b638e ']'
+ echo 'Installing: Graphics_SDK_setuplinux_5_01_01_02'
Installing: Graphics_SDK_setuplinux_5_01_01_02
+ '[' -d /home/steve/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02 ']'
+ chmod +x /home/steve/bb-kernel/dl/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin
+ /home/steve/bb-kernel/dl/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin --mode console --prefix /home/steve/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02
RobertCNelson commented 7 years ago
+ '[' -d /home/steve/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02 ']'
+ chmod +x /home/steve/bb-kernel/dl/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin
+ /home/steve/bb-kernel/dl/Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin --mode console --prefix /home/steve/bb-kernel/ignore/SDK_BIN/Graphics_SDK_setuplinux_5_01_01_02

This just means you don't have the 32bit libraries installed (it's a 32bit binary)

just run: ./build_kernel.sh (it'll tell you what packages are missing)

Regards,

tderensis commented 7 years ago

Thank you, that worked for me.

jfsimon1981 commented 6 years ago

Hello,

I installed missing packages as stated above, it would create a deploy directory which turn out to be empty, do you have an idea what 's happening ?

uname -a Linux jeanfrancois-VirtualBox 4.10.0-28-generic #32~16.04.2-Ubuntu SMP Thu Jul 20 10:19:48 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

./sgx_create_package.sh

jeanfrancois@jeanfrancois-VirtualBox:~/bb/bb-kernel$ ls ./deploy/ jeanfrancois@jeanfrancois-VirtualBox:~/bb/bb-kernel$

Thanks a lot

Jean-François

RobertCNelson commented 6 years ago

@jfsimon1981 take a look at my last post in this thread, you have the same issue.. no 32 bit lib's installed..

Regards,

RobertCNelson commented 6 years ago

Closing: For any SGX support please contact TI...

jfsimon1981 commented 6 years ago

Noted thanks.

jfsimon1981 commented 6 years ago

FWIW libs : ia32-lib or if not available : lib32ncurses5 lib32z1