Skip to content

Flashing the eMMC (AutoNOMOS Model v3.1)

AutoModelCar edited this page May 18, 2018 · 1 revision

Flashing the eMMC card

Download the latest image file: Image File

Make sure the size of the eMMC card is at least 16GB.

You may need to install the Ubuntu package libterm-readkey-perl to run the flash script:

$ sudo apt-get install libterm-readkey-perl

Hint: Latest image provides kernel 4.14, Ubuntu 16.04 and ROS kinetic (compatible with eMMC Revision 0.4)

In order to get started, and after you plugged in the eMMC card using the SD card adapter, open your terminal. First, for the installation, extract the downloaded archive and navigate to linux-image-for-odroid-xu4-16.04-kinetic/

$ cd linux-image-for-odroid-xu4-ubuntu16.04-kinetic

With the command ls /dev/sd* or /dev/mmcblk* you can view all available devices.

$ ls /dev/sd*

You want to make sure you have chosen the right one before starting the installation. If you are not sure, unplug the card and insert it again to un-/show the device. For example, the driver is /dev/sdb. So your command would be './install.pl /dev/sdb'. Notice: if this is not the correct device, you should cancel (with Ctrl+C) and change the device manually ('./install.pl /dev/[X]). For installation use:

$ sudo ./install.pl /dev/[X]

Be careful, during the installation one step is going to format partitions, which may erase unwanted data. Just make sure you are sure of the steps you choose. The countdown showing up later will still give you enough time to cancel, if needed. During the installation you will be asked to specify which configuration will be used. You should go ahead and choose a name from the list. You can go through the default configurations, or choose your own name, password, etc. (make sure to remember them, you will need them later on). Now you are done and you can remove the eMMC card.

Hands-on

Insert the eMMC card in the Odroid. You can find a switch on the Odroid, to choose between SD and eMMC. Make sure it is turned to eMMC. Now it is time to plug in the power and connect the LAN to the Odroid. It may take a while for the first boot. If the blue light next to the power cable is blinking you are fine. Remember that during the first boot of the eMMC card some initialization will be done. This happens automatically but it may take a minute or two.

Connect

You will need to create a connection -- you want to make sure you are choosing a Ethernet. While doing your editing check under 'IPv4Settings' that your Method is DHCP (this should be automatically, but just in case please check). After you have saved your editing, add your network connection and connect yourself to it. It is time to set the ssh, with 'ssh root@192.168.1.199 '(or your choosen Ethernet IP address) you can do so.

 $ ssh root@<your chosen ethernet IP address>
 $ password: elfmeter

Setup

Update the latest modelcar basic packages. See Basic packages Version 3.1 how to do that.

You may need to update you date-settings with ' date –set ''[year]-[month]-[day] [hour]:[minute]:[second]'' '

 $ date --set "yyyy-mm-dd hh:mm:ss"
 $ /sbin/fake-hwclock

Test

For testing the installation use './autostart.sh', some error messages may appear. Don't worry about them -- if it compiles, it will work. You can use the App to test whether everything works or not.

   $ pkill -f ros
   $ ./autostart.sh
Clone this wiki locally