From Unofficial Tesla Tech
Jump to navigation Jump to search

Some brief tips that you might like to have in your explorations.

Hardware Details

For exquisite details on just about all aspects of Tesla hardware and functions, click over to TeslaTap Undocumented.

Kernel Configuration

Tesla likes to compile all modules into the kernel rather than have them load as modules, which makes sense to save space. (So hint, hint get rid of /lib/modules/,, etc)

But inquiring minds want to know, how do we find out what settings our current kernel is compiled with?

# zcat /proc/config.gz
# zcat /proc/config.gz |grep LOG


On the CID or IC if you do a simple 'reboot', You're Doing It Wrong™. Tesla was forced into the silly 'emits' system of Upstart. This tries to coordinate actions with subsystems like udev, etc.

  • Reboot IC - # emit-reboot-cluster
  • Reboot CID - # emit-reboot-cid
  • Reboot the gateway, CID, IC, and every ECM in the car - # emit-reboot-gateway

Please use these rather than having the temptation to issue a simple 'reboot'.

Ubuntu Release - Which Am I?

Wondering which zany Ubongo release you are at? That's easy.

Get your kernel version with the (very intuitive) command:
# uname -r

... and look it up in this handy table:

20.04   Focal Fossa       5.4		12.04   Precise Pangolin  3.2
19.10   Eoan Ermine       5.3		11.10   Oneiric Ocelot    3.0
19.04   Disco Dingo       5.0		11.04   Natty Narwhal     2.6.38
18.10   Cosmic Cuttlefish 4.18		10.10   Maverick Meerkat  2.6.35
18.04   Bionic Beaver     4.15		10.04   Lucid Lynx        2.6.32
17.10   Artful Aardvark   4.13		09.10   Karmic Koala      2.6.31
17.04   Zesty Zapus       4.10		09.04   Jaunty Jackalope  2.6.28
16.10   Yakkety Yak       4.8		08.10   Intrepid Ibex     2.6.27
16.04   Xenial Xerus      4.4		08.04   Hardy Heron       2.6.24
15.10   Wily Werewolf     4.2		07.10   Gutsy Gibbon      2.6.22
15.04   Vivid Vervet      3.19		07.04   Feisty Fawn       2.6.20
14.10   Utopic Unicorn    3.16		06.10   Edgy Eft          2.6.17
14.04   Trusty Tahr       3.13		06.06   Dapper Drake      2.6.16
13.10   Saucy Salamander  3.11		05.10   Breezy Badger     2.6.12
13.04   Raring Ringtail   3.8		05.04   Hoary Hedgehog    2.6.10
12.10   Quantal Quetzal   3.5		04.10   Warty Warthog     2.6.8

At the monent I'm on kernel 4.4.35-release-03mar2017-g352318b-dirty (firware 18.36.2), so that is "'Xenial Xerus'". How embarrassing...

This is useful for example, when you want to graft in an executable from somewhere in Ubongo's ARM ecosystem;  you want to graft in one from your epoch. Chances are though it'll need a library, so if it fails run an
# strace {whatevertheexeis}.

Carl A. Cook