Difference between revisions of "User:Ctag/CCS"

From ArchWiki
Jump to navigation Jump to search
(created page)
 
(Working instructions added)
Line 1: Line 1:
 +
Notes on installing Ti's Code Composer Studio V6.2
  
Notes on Code composer studio
+
== Why ==
  
 +
CCS is released for Linux, but since ~January 2017 it is broken on Archlinux because glibc has been updated. Rather than roll back my entire system, I'm running CCS in a chroot jail, which is something I've never done before and am learning about as I go.
  
create chroot:
+
== How ==
  
<pre>
+
Download CCS, good luck with Ti's POS website: http://processors.wiki.ti.com/index.php/Download_CCS#Code_Composer_Studio_Version_6_Downloads
#mkdir /var/ccs-root
+
 
#pacstrap -d /var/ccs-root base
+
Create a chroot:
#arch-chroot /car/ccs-root
+
{{bc|
 +
#mkdir /var/ccs-root # create an empty folder
 +
#pacstrap -d /var/ccs-root base # Install a base archlinux filesystem to the chroot
 +
#arch-chroot /car/ccs-root # enter the chroot
 
##pacman -S vim # run this in the chroot
 
##pacman -S vim # run this in the chroot
</pre>
+
}}
  
In the chroot, edit /etc/pacman.d/mirrorlist:
+
In the chroot, edit /etc/pacman.d/mirrorlist to use [https://wiki.archlinux.org/index.php/Arch_Linux_Archive Archlinux Archive]:
 
+
{{hc|1=/etc/pacman.d/mirrorlist|2=
<pre>
 
 
################################################################################
 
################################################################################
 
################# Arch Linux mirrorlist generated by Reflector #################
 
################# Arch Linux mirrorlist generated by Reflector #################
Line 26: Line 30:
  
 
Server = https://archive.archlinux.org/repos/2016/12/05/$repo/os/$arch
 
Server = https://archive.archlinux.org/repos/2016/12/05/$repo/os/$arch
</pre>
+
}}
 +
Here I've set my chroot's system to be 'stuck' in December 2016. You can try different year/month/day values in that url.
  
 
Still in the chroot:
 
Still in the chroot:
 
+
{{bc|
<pre>
 
 
##pacman -Syyuu # force downgrade entire chroot jail
 
##pacman -Syyuu # force downgrade entire chroot jail
 
##pacman -U /var/cache/pacman/pkg/ca-certificates-utils-20170307-1-any.pkg.tar.xz # Retain newer certs in order to keep pacman working
 
##pacman -U /var/cache/pacman/pkg/ca-certificates-utils-20170307-1-any.pkg.tar.xz # Retain newer certs in order to keep pacman working
##pacman -S xterm base-devel libstdc++5 glibc
+
##pacman -S xterm base-devel libstdc++5 glibc unzip libcanberra python2 dbus-glib chromium libusb-compat libxss lib32-glibc
</pre>
+
##cd /lib
 +
##ln -s libncursesw.so.6.0 libncurses.so.5
 +
##useradd -m ctag
 +
}}
 +
 
 +
Copy the CCS tarball (web or standalone) into the new user's home directory. Chown it to the user, and then unpack it as the user.
 +
 
 +
On the host system:
 +
{{bc|
 +
$xhost +local: # run as _not_ root
 +
}}
 +
 
 +
Now you should be able to open a window as the jailed user:
 +
{{bc|
 +
#$cd CCS6.2.0.00050_linux-x64/
 +
#$./ccs_setup_linux64_6.2.0.00050.bin
 +
}}
  
Copy in CCS tar
+
From there you should be free to run the IDE from the chroot. It's not a perfect solution, but it should be a little lighter on system resources than running a VM.

Revision as of 17:04, 10 April 2017

Notes on installing Ti's Code Composer Studio V6.2

Why

CCS is released for Linux, but since ~January 2017 it is broken on Archlinux because glibc has been updated. Rather than roll back my entire system, I'm running CCS in a chroot jail, which is something I've never done before and am learning about as I go.

How

Download CCS, good luck with Ti's POS website: http://processors.wiki.ti.com/index.php/Download_CCS#Code_Composer_Studio_Version_6_Downloads

Create a chroot:

#mkdir /var/ccs-root # create an empty folder
#pacstrap -d /var/ccs-root base # Install a base archlinux filesystem to the chroot
#arch-chroot /car/ccs-root # enter the chroot
##pacman -S vim # run this in the chroot

In the chroot, edit /etc/pacman.d/mirrorlist to use Archlinux Archive:

/etc/pacman.d/mirrorlist
################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################

# With:       reflector --verbose --latest 40 --number 10 --sort rate --protocol http --save /etc/pacman.d/mirrorlist
# When:       2017-03-16 21:58:20 UTC
# From:       https://www.archlinux.org/mirrors/status/json/
# Retrieved:  2017-03-16 21:57:43 UTC
# Last Check: 2017-03-16 21:17:08 UTC

Server = https://archive.archlinux.org/repos/2016/12/05/$repo/os/$arch

Here I've set my chroot's system to be 'stuck' in December 2016. You can try different year/month/day values in that url.

Still in the chroot:

##pacman -Syyuu # force downgrade entire chroot jail
##pacman -U /var/cache/pacman/pkg/ca-certificates-utils-20170307-1-any.pkg.tar.xz # Retain newer certs in order to keep pacman working
##pacman -S xterm base-devel libstdc++5 glibc unzip libcanberra python2 dbus-glib chromium libusb-compat libxss lib32-glibc
##cd /lib
##ln -s libncursesw.so.6.0 libncurses.so.5
##useradd -m ctag

Copy the CCS tarball (web or standalone) into the new user's home directory. Chown it to the user, and then unpack it as the user.

On the host system:

$xhost +local: # run as _not_ root

Now you should be able to open a window as the jailed user:

#$cd CCS6.2.0.00050_linux-x64/
#$./ccs_setup_linux64_6.2.0.00050.bin

From there you should be free to run the IDE from the chroot. It's not a perfect solution, but it should be a little lighter on system resources than running a VM.