Map Updating

From Unofficial Tesla Tech
Jump to navigation Jump to search

Now that we have a good firewall and are completely safe from Tesla making any unwelcomed modifications to our systems, it's time to make sure we have updated maps. Naturally we already have root.

Maps in MCU1 are stored on the smaller SD card on the back of the MCU mainboard, at least on revs before 2017. Newer MCU1 revs have an on-board eMMC for this, but in any case is known as /dev/mmcblk1.

So first I'm going to assume that your mmcblk1 gor muffed somehow and we are going to fix it.

# ls -al /dev/mmcblk1*
brw-rw---- 1 root disk 179, 8 1969-12-31 16:00 /dev/mmcblk1
brw-rw---- 1 root disk 179, 9 1969-12-31 16:00 /dev/mmcblk1p1
brw-rw---- 1 root disk 179, 10 1969-12-31 16:00 /dev/mmcblk1p2
brw-rw---- 1 root disk 179, 11 1969-12-31 16:00 /dev/mmcblk1p3
brw-rw---- 1 root disk 179, 12 1969-12-31 16:00 /dev/mmcblk1p4

Uh oh, that's way too many partitions for maps storage. And none of them can even be mounted. We have to start fresh.

# nav-sdcard-format.sh -f /dev/mmcblk1
(This is one of many handy utilities in /usr/local/bin which you can use to really fsck up your system;  don't do as I do... do as I say)

It will go through all its handwaving, but you'll know it succeeded when at the end:
...
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 39 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.

Just to be sure check:
# ls -al /dev/mmcblk1*
brw-rw---- 1 root disk 179, 8 2020-04-01 13:03 /dev/mmcblk1
brw-rw---- 1 root disk 179, 9 2020-04-01 13:04 /dev/mmcblk1p1
brw-rw---- 1 root disk 179, 10 2020-04-01 13:06 /dev/mmcblk1p2

Ahh, that's much better. Two partitions not four, and both are properly formatted to ext3.

Now let's see, do we have the map update image files in hand? No we do not, so we can't use nav-new-sdcard.sh . So let's turn to the Mothership then. Remember she can't reach us coming in, but we can reach her going out.


... In progress

Carl A. Cook