2014년 5월 28일 수요일

망고24R2 buildroot Release 2014-03-26


망고24R2 buildroot Release 2014-03-26

수정 사항
마이크 수정 완료, qt.mk(주소 변경)
LCD Backlight 관련 Patch
소스 다운로드
http://crztech.iptime.org:8080/Release/mango24R2_S3C2450/linux/m2450_kernel3.0.22_mrvl8787_Qt_140326_Rel/

image를 압축을 푼 후 ,
Micro SD card를 PC에 삽입

[icanjji@icanjji-pc image]$ df
Filesystem      1K-blocks       Used Available Use% Mounted on
/dev/sda2      1947374844 1605457296 244455440  87% /
udev              2006136          4   2006132   1% /dev
tmpfs              402988       1368    401620   1% /run
none                 5120          0      5120   0% /run/lock
none              2014924         76   2014848   1% /run/shm
/dev/sda1           96880        124     96756   1% /boot/efi
/dev/sdg1         7753728         32   7753696   1% /media/3839-3261
[icanjji@icanjji-pc image]$ sudo ./sdwriter_sdhc sdg 24
[sudo] password for icanjji:
Mango SD Writer V1.0
 TFLASH_SECTORS: 15523840
START_ROOTFS=13408254

Unmount all : success

Partition Create : success

Write Mango24R2 Signature OFFSET_SIGNATURE_24: 15522814 success
 OFFSET_BL1: 15522798 Write Mango24R2 BL1 : success
 OFFSET_BL2: 15521742 Write Mango24R2 Uboot : success
 OFFSET_KERNEL: 15511502 Write Mango24 Kernel : success

Linux Filesystem Create : success


Unmount all : success

Success

위와 같이 이미지 Write 후 보드에 MMC 카드를 삽입
부팅 모드 SD 모드 : 3번 ON, 나머지 off
부팅하면 됩니다.

컴파일 및 NAND 부팅
# uboot compile
$ ./build_uboot clean;./build_uboot config; ./build_uboot

# kernel compile
[ 7inch 800x480 ]
$ ./build_kernel defconfig mango2450_defconfig
[ 10.4inch 800x 600 ]
$ ./build_kernel defconfig mango24r2_10_4inch_defconfig

$ ./build_kernel

# build root 컴파일

$ ./build_rootFS.sh

MANGO2450 # dnw c0000000
Now, Waiting for DNW to transmit data
Download Done!! Download Address: 0xc0000000, Download Filesize:0x39948
Now, Checksum calculation
Checksum O.K !!!
MANGO2450 # nand erase 0 40000 ; nand write c0000000 0 40000

ubifs 만들기(mtd2 가 루트파일시스템이 올하갈 파티션임)
# flash_erase /dev/mtd2 0 0

다음은 비어있는 UBIFS file system을 만듭니다:
# ubiattach /dev/ubi_ctrl -m 2
# ubimkvol /dev/ubi0 -N rootfs -m

# mkdir /mnt/nand
# mount -t ubifs ubi0:rootfs /mnt/nand
# cd /root
# tar xvf rootfs.tar -C /mnt/nand
# umount /mnt/nand
reboot 하고 u-boot 프롬프트상에서 bootargs 입력합니다.
#setenv bootargs 'noinitrd console=ttySAC1,115200 rw ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs rootwait'
#saveenv
# reset




$ sudo crz-usbdl -f u-boot.bin -a c0000000

nand erase 80000 480000 ; nand write c0000000 80000 480000

0x000000000000-0x000000080000 : "Bootloader"
0x000000080000-0x000000500000 : "Kernel"
0x000000500000-0x000010000000 : "rootfs"

/usr/share/qt/examples/touch/pinchzoom/pinchzoom -qws

마이크 테스트 방법

root@Mango:~# arecord -f cd -d 10 test-mic.wav(녹음)
root@Mango:~# aplay test-mic.wav(재생)

Linux Soft AP softap ssid 이름 변경 방법




Linux Soft AP softap ssid 이름 변경 방법




# uaputl.exe sys_config config/uaputl.conf
# uaputl.exe bss_start
실행 하면 됩니다.
망고310은
버전을 올리면,



#   File : uaputl.conf


ap_config={
   SSID="Marvell Micro AP"         # SSID of Micro AP
   BeaconPeriod=100                # Beacon period in TU
   Channel=6                       # Radio Channel     6
#   Channel=0,1                     # auto channel select (MCS mode)
#   Channel=6,2                     # primary channel 6, secondary channel above.
#   Channel=6,4                     # primary channel 6, secondary channel below
   ChanList=1,6,11                 # Scan channel list
#   AP_MAC=00:34:22:77:46:41        # MAC address of AP
   Band=0                          # 0 for 2.4GHz band
                                   # 1 for 5GHz band
   RxAntenna=0                     # 0 for Antenna A
                                   # 1 for Antenna B
   TxAntenna=0                     # 0 for Antenna A
                                   # 1 for Antenna B
   Rate=0x82,0x84,0x8b,0x96,0x0C,0x12,0x18,0x24,0x30,0x48,0x60,0x6c
                                   # Set of data rate that a station




./uaputl.exe sys_config ../etc/wfd/config/uaputl.conf
# ./uaputl.exe bss_start
실행하시면 됩니다.
ap_config={
   SSID="CRZAP"         # SSID of Micro AP

으로 변경하고


스마트폰에서 AP를 확인 할 수 있다.

oft AP 테스트 방법
#uaputl.exe bss_start


스마트폰에서 “Marvell Micro AP” 보입니다.
IP를 Static으로 설정하는 방법은 아래와 같습니다.
# ifconfig uap0 192.168.100.1 up


마트폰에서 메뉴-> advanced-> ip,gateway,netmask 를 192.168.100.xxx로 설정하고 ,
AP를 연결하면 됩니다.


2014년 5월 19일 월요일

Mango310 buildroot (linuxfs) Release 2014-05-17 (kernel 2.6.35 )

http://www.mangoboard.com/
http://cafe.naver.com/embeddedcrazyboys

수정 부분
1. Audio 테스트 가능하도록 speaker-test , mplayer 추가
2. I2S Channel 0, 1 선택할 수 있도록 수정. 
소스 다운로드 
 http://crztech.iptime.org:8080/Release/mango310/linux/m310_k2635_linux_qt4_140517/ 

### how to compile
# u-boot 
./build_uboot

# kernel
##MANGO310
./build_kernel defconfig mango310_7inch_800_480_mrvl8787_defconfig
./build_kernel

##MANGOCM-V310
./build_kernel defconfig mangoCM-V310_7inch_800_480_mrvl8787_defconfig
./build_kernel

## buildroot

$ cp mango310_defconfig .config 
$ build_rootfs.sh 
src/udev-builtin-input_id.c: In function 'test_key':
src/udev-builtin-input_id.c:165: error: 'BTN_TRIGGER_HAPPY' undeclared (first use in this function)
src/udev-builtin-input_id.c:165: error: (Each undeclared identifier is reported only once
에러 발생 시

$ cp udev-builtin-input_id.c ./output/build/udev-182/src/udev-builtin-input_id.c
후 다시 컴파일

$ build_rootfs.sh 
## filesystem 
cd image


## 이미지 만들기
$ mkdir rootfs
$ tar xf rootfs.tgz -C rootfs
$ sudo ./make_ext4fs -s -l 419430400 rootfs.img rootfs

Creating filesystem with parameters:
    Size: 314572800
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 6400
    Inode size: 256
    Journal blocks: 1200
    Label:
    Blocks: 76800
    Block groups: 3
    Reserved block group size: 23
Created filesystem with 3974/19200 inodes and 36225/76800 blocks


linux pc SD 카드 삽입
[kjycrz@kjycrz-64bit image]$ df
Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/sda1       28835836   5707324  21663732  21% /
udev             1995288         4   1995284   1% /dev
tmpfs             801636      2352    799284   1% /run
none                5120         0      5120   0% /run/lock
none             2004088       148   2003940   1% /run/shm
/dev/sda2      922788748 164029964 711883804  19% /home
/dev/sdb1        7753728        32   7753696   1% /media/8DA8-058F
또는 
# dmesg |tail

[119995.938825] sd 24:0:0:0: [sdb] Write Protect is off
[119995.938830] sd 24:0:0:0: [sdb] Mode Sense: 03 00 00 00
[119995.939574] sd 24:0:0:0: [sdb] No Caching mode page found
[119995.939579] sd 24:0:0:0: [sdb] Assuming drive cache: write through
[119995.942698] sd 24:0:0:0: [sdb] No Caching mode page found
[119995.942702] sd 24:0:0:0: [sdb] Assuming drive cache: write through
[119995.944038]  sdb: sdb1
[119995.946574] sd 24:0:0:0: [sdb] No Caching mode page found
[119995.946579] sd 24:0:0:0: [sdb] Assuming drive cache: write through
[119995.946583] sd 24:0:0:0: [sdb] Attached SCSI removable disk
위에서 sdb를 인식한것을 확인할 수 있습니다.

cd image

$ sudo ./sdwriter sdb 310

###  
보드에 SD카드 삽입


## Mango310 Bootargs Setting 

# setenv bootcmd "movi read kernel 0 40008000;bootm 40008000"
# setenv bootargs 'root=/dev/mmcblk0p2 rw rootfstype=ext4 init=/sbin/init console=ttySAC1,115200 rootdelay=3'
# save




장비를 터미널을 통해서 디버그 포트에서 접속을 하면 아이디와 비번을 입력하게 된다. root/root 
mango310 login :
password : 

2014년 5월 16일 금요일

망고220 Multitouch 를 single touch로 변경 Qt에서 multi touch 미지원 시



망고220 Multitouch 를 single touch로 변경 Qt에서 multi touch 미지원 시|Mango220 Q/A ( Exynos4412 )
전체공개2014.05.16 19:39|수정|삭제
파일 첨부합니다.
수정 내용


static void ft5x0x_report_value(void)
함수에서 
..
//CRZ single touch 
        //input_report_key(data->input_dev, BTN_TOUCH, event->touch_point > 0);
        if (event->touch_point) {
                input_report_abs(data->input_dev, ABS_X, event->au16_x[0]);
                input_report_abs(data->input_dev, ABS_Y, event->au16_y[0]);
    }
수정

ft5x0x_ts_probe(struct i2c_client *client, const struct i2c_device_id *id)
함수에서 

        /* For single touch */// CRZ 
        input_set_abs_params(input_dev, ABS_X, 0, SCREEN_MAX_X, 0, 0);
        input_set_abs_params(input_dev, ABS_Y, 0, SCREEN_MAX_Y, 0, 0);

2014년 5월 15일 목요일

CR-SM9150 MPU-9150 9 Axis(Gyro+Accelerometer+Compass) Motion Tracking Module




CR-SM9150 
망고 9축(자이로+가속도+지자기/컴퍼스) 모션 트랙킹 모듈
http://www.mangoboard.com
http://cafe.naver.com/embeddedcrazyboys

GyroAccelCompass Module The module adopting the MPU-9150 of Invensense Inc.,

It is a module that can be applied racing games, bowling games, and compass, by being attached to the embedded board.

It becomes the I2C interface, porting of the driver is easily possible.

The driver, kernel drivers, and firmware for are supported.

9 axis (gyro + acceleration + geomagnetism / compass) motion tracking module
MPU-9150 chip built of InvenSense, Inc.
2 Gechipu MPU-9150 is, One Package (SiP)
MPU-6050 (3-axis gyro/3-axis accelerometer)
and an AK8975 (3-axis digital compass)
Design of 9-axis motion tracking device the world's first
Interface: I2C
Voltage level: 3.3 V (MIN: 2.4, MAX: 3.34V)
Size: 30 x20 mm
Support of HAL driver on Android
Show less

2014년 5월 12일 월요일

망고220 touch 드라이버 GPIO Soft I2C 드라이버를 Hardware I2C로 동작하기.




망고220 touch 드라이버 GPIO Soft I2C 드라이버를  Hardware I2C로 동작하기.


작성한 글 중에 잘못 된 부분을 지적해 주시면 겸허히 받아 들이고 수정하겠습니다.



터치는 회로상으로 아래와 같다.
현재 회로적으로 I2C 0번 채널이 Touch와 확장 connect CON9와 같이 사용하고 있다.
확장 커넥터에 자이로, 3축 가속도 센서를 연결해서 사용하기 위해서는
터치 드라이버에서 GPIO Soft I2C를 제거하고, Hardware I2C로 변경해야 한다.


“drivers/input/touchscreen/mango_ft5x06_ts.c”
파일에서 MANGO_CAP_TOUCH_I2C_GPIO define 되어 있는 것을 undefine하도록 한다.

그리고, 터치가 동작을 하는지 확인 해 보자.

컴파일 후  Write를 해 보았다.
아래와 같이 인식을 한다. 오호

[    2.807806] input: mango-keys as /devices/platform/mango-keys.0/input/input0
[    2.813976] usbcore: registered new interface driver xpad
[    2.819091] input: mango-ts as /devices/virtual/input/input1
[    2.975193] [FTS] Firmware version = 0x10
[    2.975393] [FTS] report rate is 60Hz.
[    2.977437] [FTS] touch threshold is 100.
[    2.981973] S3C24XX RTC, (c) 2004,2006 Simtec Electronics


터치도 잘 된다.
이제 자이로 센서, 가속도 센서 등 I2C 인터페이스로 동작하는 디바이스를 맘껏 연결 할 수 있다.

CR-SM9150 MPU-9150 9 Axis(Gyro+Accelerometer+Compass) Motion Tracking Module


제품 설명
GyroAccelCompass Module은 Invensense사의 MPU-9150을 채용한 모듈로서,

임베디드 보드에 장착하여 레이싱 게임,볼링 게임, 나침반, 등에 응용 할 수 있는 모듈입니다.

I2C 인터페이스로 되어 있어, 쉽게 드라이버 포팅이 가능합니다.

드라이버는 커널, 펌웨어용 드라이버가 지원됩니다.

  • 9축(자이로+가속도+지자기/컴퍼스) 모션 트랙킹 모듈
  • InvenSense 사의 MPU-9150 칩 내장
  • MPU-9150 은 2개칩이 One Package (SiP)
MPU-6050 ( 3-axis gyro / 3-axis accelerometer )
and an AK8975 ( 3-axis digital compass )  
  • 세계 최초 9-axis motion tracking 디바이스 디자인
  • 인터페이스 : I2C
  • 전압 레벨 : 3.3 V ( MIN : 2.4 , MAX: 3.34V )
  • Size : 30 x 20 mm
  • 안드로이드 HAL 드라이버 지원



Applications
• BlurFree™ technology (for Video/Still Image Stabilization)
• AirSign™ technology (for Security/Authentication)
• TouchAnywhere™ technology (for “no touch” UI Application Control/Navigation)
• MotionCommand™ technology (for Gesture Short-cuts)
• Motion-enabled game and application framework
• InstantGesture™ iG™ gesture recognition
• Location based services, points of interest, and dead reckoning
• Handset and portable gaming
• Motion-based game controllers
• 3D remote controls for Internet connected DTVs and set top boxes, 3D mice
• Wearable sensors for health, fitness and sports
• Toys
• Pedestrian based navigation
• Navigation
• Electronic Compass

C:\Users\tom\Desktop\꾀꼬리\사진 원본\A.jpg



C:\Users\tom\Desktop\꾀꼬리\9axis_모듈_케이블포함_편집본.jpg


구성 품:
CR-SM9150 MPU-9150 9 Axis(Gyro+Accelerometer+Compass)
Motion Tracking Module
( 망고  9(자이로+가속도+지자기/컴퍼스) 모션 트랙킹 모듈 )
+ 8PIN Cable
가격 :  37,500 원 ( VAT 미포함 )


Datasheet




결제 정보

카드 결제 가능 (홈페이지 : http://www.mangoboard.com )

입금 계좌: 317-0000-9066-31 (농협: 씨알지테크놀러지주식회사)

문의: help@crz-tech.com

팩스: 031-701-5024, 연락처: 031-701-5057

SPECIFICATION

C:\Users\tom\Desktop\꾀꼬리\사진 원본\A.jpg

DIMENSION


C:\Users\tom\Desktop\꾀꼬리\9axis_모듈_크기비교_편집본.jpg




Schematic


Download:
Community > Downloads > Sensor Modules[ Gyro, 3Axis, etc ]

Manual




Cortex-M3 망고M32(Mango-M32 STM32F103) 연결 방법

C:\Users\tom\Desktop\꾀꼬리\9axis_모듈_M32연결_편집본.jpg