Install tools

$ sudo apt-get install sox

$ sudo apt-get install libsox-fmt-mp3


Exchange

$ sox -V 035_girlsday.mp3 -b 16 -r 44100 -c 1 -s 035.wav

Channels       : 1 (mono)

Sample Rate    : 44100 Hz

Precision      : 16-bit



Options

-V : Set verbosity

-b : The number of bits  in each encoded sample.

-r : sample rate

-c :  The number of audio channels in the audio file

-s : the encoding types ( signed-integer )



Reference

http://sox.sourceforge.net/

http://blog.naver.com/untilok?Redirect=Log&logNo=25791730


'[C-11] Hi3716C' 카테고리의 다른 글

[Hi3716C] adb command  (0) 2013.12.19
[Hi3716C] Kernel module build  (0) 2013.12.16
[Hi3716C] sample_e2prom  (0) 2013.12.06
[Hi3716C-Kernel] tags, cscope  (0) 2013.11.28
[Hi3716C-Kernel] Kernel Build command  (0) 2013.11.26
Posted by eoseontaek

# adb kill-server

# adb start-server

# adb connect [target's ip address]:[target's port]

# adb shell

# adb push [local 파일] [target의 저장 위치]

# adb pull [target의 파일] [local 파일명]:


참 조 : 

http://eaglos.tistory.com/8




'[C-11] Hi3716C' 카테고리의 다른 글

[Hi3716C] mp3 파일을 wav 파일로 변경  (0) 2013.12.20
[Hi3716C] Kernel module build  (0) 2013.12.16
[Hi3716C] sample_e2prom  (0) 2013.12.06
[Hi3716C-Kernel] tags, cscope  (0) 2013.11.28
[Hi3716C-Kernel] Kernel Build command  (0) 2013.11.26
Posted by eoseontaek

$ cd ./device/hisilicon/godbox/driver/sdk

$ make -f mpi.mk

'[C-11] Hi3716C' 카테고리의 다른 글

[Hi3716C] mp3 파일을 wav 파일로 변경  (0) 2013.12.20
[Hi3716C] adb command  (0) 2013.12.19
[Hi3716C] sample_e2prom  (0) 2013.12.06
[Hi3716C-Kernel] tags, cscope  (0) 2013.11.28
[Hi3716C-Kernel] Kernel Build command  (0) 2013.11.26
Posted by eoseontaek

Modify

host$ vi ./device/hisilicon/godbox/driver/sdk/sample/ecs/sample_hmc_e2prom.c


host $ vi ./device/hisilicon/godbox/driver/sdk/sample/ecs/Android.mk

include $(CLEAR_VARS)

LOCAL_MODULE:= sample_hmc_e2prom

LOCAL_CFLAGS := $(CFG_CFLAGS)

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../msp_base/common/include

LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../msp_base/mpi/include

LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../msp_base/ha_codec/include

LOCAL_C_INCLUDES += $(LOCAL_PATH)/../common

LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../msp_base/ecs/include

LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../../../../packages/apps/SettingTV/jni

LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../msp/ha_codec/include

LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../msp/component/hiflash/include

LOCAL_SHARED_LIBRARIES :=libsample_common libhi_flash libhi_common libhi_mpi libc libhi_ecs libdl libtde libhi_jpegfmw

LOCAL_SRC_FILES := sample_hmc_e2prom.c

LOCAL_MODULE_TAGS := eng

include $(BUILD_EXECUTABLE)



Build

host$ cd ./device/hisilicon/godbox

host$ mm


Install to Android board

host$  cd ./out/target/product/godbox/system/bin/

host$ adb connect 111.111.111.77

host$ adb push sample_hmc_e2prom /mnt/sda/sda1/


Run executable

target$ insmod /system/lib/modules/hi_e2prom.ko

target$ cd /mnt/sda/sda1

target$ ./sample_hmc_e2prom







'[C-11] Hi3716C' 카테고리의 다른 글

[Hi3716C] adb command  (0) 2013.12.19
[Hi3716C] Kernel module build  (0) 2013.12.16
[Hi3716C-Kernel] tags, cscope  (0) 2013.11.28
[Hi3716C-Kernel] Kernel Build command  (0) 2013.11.26
[Hi3716C-fastboot] Build commands for fastboot  (0) 2013.11.26
Posted by eoseontaek


$ make tags ARCH=arm

$ make cscope ARCH=arm



Posted by eoseontaek

Step 1 Switch to the kernel source code directory.

$ cd ./kernel


Step 2 Configure the kernel configuration file.

$ make hi3716c-android_defconfig


Step 3 Compile the kernel.

$ make uImage


Step 4 Copy the generated file to the out directory.

cp -avf arch/arm/boot/uImage ../out/target/product/godbox/kernel


Clear the kernel compilation result by running the following command:

$ make distclean



Posted by eoseontaek

Step 1. Switch to the fastboot source code directory.

$ cd bootable/bootloader/fastboot3.0/


Step 2. Obtain the configuration file corresponding to the board.

$ cp ./lowlevel_reg_info/hi3716cdmoverb_hi3716cv100_ddr3_1gbyte_8bitx4_4layers.reg ../.reg


Step 3. Compile the fastboot

$ make ARCH=arm CROSS_COMPILE=arm-hisiv200-linux- godbox_config

$ make ARCH=arm CROSS_COMPILE=arm-hisiv200-linux- 


Delete the fastboot compilation result

$ make ARCH=arm CROSS_COMPILE=arm-hisiv200-linux- distclean


Step 4. Burn into SPI Flash

fastboot# tftp 0x81000000 fastboot-burn.bin

fastboot# sf probe 0

fastboot# sf erase 0 0x00070000

fastboot# sf write 0x81000000 0 0x00070000


'[C-11] Hi3716C' 카테고리의 다른 글

[Hi3716C] Kernel module build  (0) 2013.12.16
[Hi3716C] sample_e2prom  (0) 2013.12.06
[Hi3716C-Kernel] tags, cscope  (0) 2013.11.28
[Hi3716C-Kernel] Kernel Build command  (0) 2013.11.26
[Hi3716C] Setting Up a Local Development Environment  (0) 2013.10.31
Posted by eoseontaek

Requirements on Android Development Environment

OS : Ubuntu 10.04 64 bits

JDK version: 1.6

Cross compilation tool chain: arm-hisiv200-linux-


Installing the JDK

To install the JDK, perform the following steps:


Step 1. Download the JAVA SE Development kit

http://www.oracle.com에 접속

JAVA SE Development Kit 6u26을 다운로드한다.


# wget http://download.oracle.com/otn/java/jdk/6u26-b03/jdk-6u26-linux-x64.bin


Step 2. Extarct the JDK archive

# sudo ./jdk-6u26-linux-x64.bin


Step 3. Install the JDK 1.6

# sudo mv jdk1.6.0_26 /usr/lib/jvm/

sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_26/bin/java 1

sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_26/bin/javac 1

sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_26/bin/javaws 1


If there are several JDK versions, switch to the specified version by running the following command : 

# sudo update-alternatives --config java  ====> select jdk1.6.0_26

# sudo update-alternatives --config javac ====> select jdk1.6.0_26

# sudo update-alternatives --config javaws ====> select jdk1.6.0_26


Step 4. Verify the JDK versioin

# java -version


Installing Required Packages


on 64-bits server

# sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos


Installing Python

Run the following command to install the python tool:

# sudo apt-get install python


Installing mkimage

The mkimage command is required to compile the kernel.

# sudo apt-get install uboot-mkimage


Installing the Cross Compilation Tool Chain

Step 1 Install the cross compilation tool chain again.

The following is the directory of the cross compilation tool:

# cd ./HiSTBAndroidV400R001C00SPC050/software/share2/mirror_fileserver/Hi3716CV100R002/toolchains/arm-hisiv200-linux


Step 2 After switching to the root user, run the following command in the installation package of the cross compilation tool:

# ./cross.install


Set-up the environment variables

# vi setup.sh

#!/bin/sh


echo "HiSTB configuration ..."


export JAVA_HOME=/usr/lib/jvm/jdk1.6.0_26

export PATH=/usr/lib/jvm/jdk1.6.0_26/bin:$PATH


export PATH=/home/root/bin/x86-arm/arm-hisiv200-linux/target/bin:$PATH




# source setup.sh











'[C-11] Hi3716C' 카테고리의 다른 글

[Hi3716C] Kernel module build  (0) 2013.12.16
[Hi3716C] sample_e2prom  (0) 2013.12.06
[Hi3716C-Kernel] tags, cscope  (0) 2013.11.28
[Hi3716C-Kernel] Kernel Build command  (0) 2013.11.26
[Hi3716C-fastboot] Build commands for fastboot  (0) 2013.11.26
Posted by eoseontaek
이전버튼 1 이전버튼