|
|
(7 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | {{TOC right}}
| + | This page is out dated.<br> |
− | | + | please jump to below.<br> |
− | == Included contents info ==
| + | https://elinux.org/R-Car/Emotion_Recognition_Engine_SDK_Image_preparation_guide |
− | | |
− | *Target board:R-Car Starter Kit Premior/Pro (aka. h3ulcb/m3ulcb)<br>
| |
− | **http://elinux.org/R-Car/Boards/H3SK<br>
| |
− | **https://elinux.org/R-Car/Boards/M3SK<br>
| |
− | *AGL version : EE-5.0.3(Electric eel v5.0.3)<br>
| |
− | *Chromium version : m 67.0.3375.0<br>
| |
− | | |
− | == References ==
| |
− | | |
− | *Download and Build AGL Source Code<br>
| |
− | **https://wiki.automotivelinux.org/agl-distro/source-code<br>
| |
− | *Building AGL & Chromium<br>
| |
− | **https://github.com/Igalia/meta-browser/wiki<br>
| |
− | *elinux page for h3ulcb/m3ulcb<br>
| |
− | **http://elinux.org/R-Car/Boards/H3SK<br>
| |
− | **http://elinux.org/R-Car/Boards/M3SK<br>
| |
− | | |
− | == Create a partition on a micro SD-card ==
| |
− | For example, if the micro SD-card is /dev/sdg:<br>
| |
− | Type the commands where you got “Command(m for help):” as below.
| |
− | | |
− | $ sudo fdisk /dev/sdg
| |
− | Welcome to fdisk (util-linux 2.27.1).
| |
− | Changes will remain in memory only, until you decide to write them.
| |
− | Be careful before using the write command.
| |
− | '''Command (m for help): o'''
| |
− | Created a new DOS disklabel with disk identifier 0x96e5850d.
| |
− | '''Command (m for help): n'''
| |
− | Partition type
| |
− | p primary (0 primary, 0 extended, 4 free)
| |
− | e extended (container for logical partitions)
| |
− | Select (default p):
| |
− | Using default response p.
| |
− | Partition number (1-4, default 1):
| |
− | First sector (2048-31291391, default 2048):
| |
− | Last sector, +sectors or +size{K,M,G,T,P} (2048-31291391, default 31291391):
| |
− | Created a new partition 1 of type 'Linux' and of size 14,9 GiB.
| |
− | '''Command (m for help): w'''
| |
− | The partition table has been altered.
| |
− | Calling ioctl() to
| |
− | | |
− | == Format the micro SD-card ==
| |
− | | |
− | Initialize the ext4 partition using “mke2fs”; for example, if the micro SD-card is associated with /dev/sdg1:<br>
| |
− | Confirm whether the command is success or not. If you get “done” like following, the command is successful.
| |
− | | |
− | $ sudo mke2fs -t ext4 /dev/sdg1
| |
− | --snip--
| |
− | Allocating group tables: done
| |
− | Writing inode tables: done
| |
− | Creating journal (32768 blocks): done
| |
− | Writing superblocks and filesystem accounting information: done
| |
− | | |
− | == Extract Emotion Engine SDK ==
| |
− | | |
− | export directory path of micro SD-card
| |
− | | |
− | $ SDCARD=<define your sd card directory>
| |
− | | |
− | mount your SD to your rootfs
| |
− | | |
− | $ mount /dev/sdg1 $SDCARD
| |
− | | |
− | remove all data in SDCARD
| |
− | | |
− | $ sudo rm -rf ${SDCARD:-bad_dir}/*
| |
− | | |
− | Extract the file to $SDCARD<br>
| |
− | * For h3ulcb
| |
− | $ sudo tar xf emotion-sdk-'''h3ulcb'''-agl-5.0.3-chromium-m67.tar.xz -C $SDCARD;sync
| |
− | * For m3ulcb
| |
− | $ sudo tar xf emotion-sdk-'''m3ulcb'''-agl-5.0.3-chromium-m67.tar.xz -C $SDCARD;sync
| |
− | | |
− | == Write IPL to Target ==
| |
− | | |
− | See below to write IPL.<br>
| |
− | https://elinux.org/R-Car/Boards/H3SK#Flashing_firmware<br>
| |
− | https://elinux.org/R-Car/Boards/M3SK#Flashing_firmware | |
− | | |
− | == Setting U-boot parameters ==
| |
− | # Insert the micro SD-card to the target board. And Boot up.<br>
| |
− | # Stop auto boot hitting any key.<br>
| |
− | # set u-boot environment variable.
| |
− | | |
− | *For h3ulcb
| |
− | => setenv bootargs console=ttySC0,115200 root=/dev/mmcblk1p1 rootwait rw
| |
− | => setenv load_dtb ext4load mmc 0:1 0x48000000 /boot/Image-'''r8a7795-h3ulcb'''.dtb
| |
− | => setenv load_ker ext4load mmc 0:1 0x48080000 /boot/Image
| |
− | => setenv rootfstype ext4
| |
− | => setenv bootcmd run load_ker\; run load_dtb\; booti 0x48080000 - 0x48000000
| |
− | => saveenv
| |
− | => run bootcmd
| |
− | *For m3ulcb
| |
− | => setenv bootargs console=ttySC0,115200 root=/dev/mmcblk1p1 rootwait rw
| |
− | => setenv load_dtb ext4load mmc 0:1 0x48000000 /boot/Image-'''r8a7796-m3ulcb'''.dtb
| |
− | => setenv load_ker ext4load mmc 0:1 0x48080000 /boot/Image
| |
− | => setenv rootfstype ext4
| |
− | => setenv bootcmd run load_ker\; run load_dtb\; booti 0x48080000 - 0x48000000
| |
− | => saveenv
| |
− | => run bootcmd
| |
− | | |
− | == Control emotion.service ==
| |
− | Looking at the service status
| |
− | # systemctl status emotion
| |
− | Stopping the service
| |
− | # systemctl stop emotion
| |
− | Starting the service
| |
− | # systemctl start emotion
| |
− | Restarting the service
| |
− | # systemctl restart emotion
| |
− | Disabling the service(service would not run automatically)
| |
− | # systemctl disable emotion
| |
− | Enabling the service
| |
− | # systemctl enable emotion
| |
− | Looking at the latest service log
| |
− | # journalctl -xe
| |
− | | |
− | == Audio volume control ==
| |
− | ex.)In case of setting DVC Out 10%.
| |
− | # amixer set -Dhw:0 "DVC Out" 10%
| |
− | # alsactl store
| |
− | | |
− | [[R-Car|<R-Car]]
| |