embeded/odroid2016. 10. 7. 22:45

eMMC로 부팅을 해보니 14.04 LTS가 반겨준다.

걍 쓸까....


Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.8.13.23 armv7l 


일단 업데이트 하려는데 용량 부족해서 파티션 리사이즈 부터 하고

$ df -h

Filesystem      Size  Used Avail Use% Mounted on

/dev/mmcblk0p2  3.3G  3.1G   78M  98% /

none            4.0K     0  4.0K   0% /sys/fs/cgroup

udev            883M  4.0K  883M   1% /dev

tmpfs          1012M  4.0K 1012M   1% /tmp

tmpfs           203M  2.8M  200M   2% /run

none            5.0M     0  5.0M   0% /run/lock

none           1012M   72K 1012M   1% /run/shm

none            100M   20K  100M   1% /run/user

/dev/mmcblk0p1  129M  8.8M  120M   7% /boot

$ df -h

Filesystem      Size  Used Avail Use% Mounted on

/dev/mmcblk0p2  7.0G  3.1G  3.7G  46% /

none            4.0K     0  4.0K   0% /sys/fs/cgroup

udev            883M  4.0K  883M   1% /dev

tmpfs          1012M  8.0K 1012M   1% /tmp

tmpfs           203M  2.8M  200M   2% /run

none            5.0M     0  5.0M   0% /run/lock

none           1012M   72K 1012M   1% /run/shm

none            100M   20K  100M   1% /run/user

/dev/mmcblk0p1  129M  8.8M  120M   7% /boot


mmc로 검색한 내용

$ dmesg | grep -i mmc

[    0.000000] Kernel command line: console=tty1 console=ttySAC1,115200 mem=2047M console=tty1 console=ttySAC1,115200n8 root=/dev/mmcblk0p2 rootwait ro mem=2047M

[    0.220744] LDO4 VDDQ_MMC2_2V8: 2800 mV

[    0.222148] LDO5 VDDQ_MMC1_1V8: 1800 mV

[    0.240231] vddq_emmc_1V8: 1800 <--> 3000 mV at 1800 mV

[    0.243019] vddf_emmc_2V85: 2850 mV

[    2.642800] s3c-sdhci exynos4-sdhci.2: clock source 2: mmc_busclk.2 (440000000 Hz)

[    2.642861] mmc0: no vqmmc regulator found

[    2.642869] mmc0: no vmmc regulator found

[    2.779913] mmc0: SDHCI controller on samsung-hsmmc [exynos4-sdhci.2] using ADMA

[    2.790993] dw_mmc dw_mmc: Using internal DMA controller.

[    2.829916] DWMMC: Div 2 = 130

[    2.829942] dw_mmc dw_mmc: Version ID is 240a

[    2.829949] dw_mmc dw_mmc: DW MMC controller at irq 109, 32 bit host data width, 128 deep fifo

[    2.887456] mmc_host mmc1: Bus speed (slot 0) = 104000000Hz (slot req 400000Hz, actual 400000HZ div = 130)

[    2.951776] mmc1: BKOPS_EN bit is not set

[    2.952915] DWMMC: Div 2 = 1

[    2.952924] mmc_host mmc1: Bus speed (slot 0) = 104000000Hz (slot req 52000000Hz, actual 52000000HZ div = 1)

[    2.953324] mmc1: new high speed DDR MMC card at address 0001

[    2.953647] mmcblk0: mmc1:0001 008G92 7.28 GiB

[    2.953815] mmcblk0boot0: mmc1:0001 008G92 partition 1 4.00 MiB

[    2.953986] mmcblk0boot1: mmc1:0001 008G92 partition 2 4.00 MiB

[    2.954144] mmcblk0rpmb: mmc1:0001 008G92 partition 3 512 KiB

[    2.954998]  mmcblk0: p1 p2

[    2.956512]  mmcblk0boot1: unknown partition table

[    2.957560]  mmcblk0boot0: unknown partition table

[    3.340926] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)

[    3.901693] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro 


심심해서 부팅 이후에 sd 메모리 삽입

$ dmesg

[  476.879128] mmc0: new high speed SDHC card at address aaaa

[  476.879463] mmcblk1: mmc0:aaaa SU16G 14.8 GiB

[  476.889687]  mmcblk1: p1 p2 


$ ll /dev/mmcblk*

brw-rw---- 1 root disk 179,  0 Oct  8 00:34 /dev/mmcblk0

brw-rw---- 1 root disk 179,  8 Oct  8 00:34 /dev/mmcblk0boot0

brw-rw---- 1 root disk 179, 16 Oct  8 00:34 /dev/mmcblk0boot1

brw-rw---- 1 root disk 179,  1 Oct  8 00:34 /dev/mmcblk0p1

brw-rw---- 1 root disk 179,  2 Oct  8 00:34 /dev/mmcblk0p2

brw-rw---- 1 root disk 179, 24 Oct  8 00:34 /dev/mmcblk0rpmb

brw-rw---- 1 root disk 179, 32 Oct  8 00:42 /dev/mmcblk1

brw-rw---- 1 root disk 179, 33 Oct  8 00:42 /dev/mmcblk1p1

brw-rw---- 1 root disk 179, 34 Oct  8 00:42 /dev/mmcblk1p2 


$ sudo fdisk /dev/mmcblk1

Command (m for help): p


Disk /dev/mmcblk1: 15.9 GB, 15931539456 bytes

4 heads, 16 sectors/track, 486192 cylinders, total 31116288 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x000c4046


        Device Boot      Start         End      Blocks   Id  System

/dev/mmcblk1p1            3072      266239      131584    6  FAT16

/dev/mmcblk1p2          266240    31115264    15424512+  83  Linux 


sysbench

$ sysbench --test=fileio --file-total-size=1G --file-test-mode=rndrw --init-rng=on --max-time=3 00 --max-requests=0 run

sysbench 0.4.12:  multi-threaded system evaluation benchmark


Running the test with following options:

Number of threads: 1

Initializing random number generator from timer.



Extra file open flags: 0

128 files, 8Mb each

1Gb total file size

Block size 16Kb

Number of random requests for random IO: 0

Read/Write ratio for combined random IO test: 1.50

Periodic FSYNC enabled, calling fsync() each 100 requests.

Calling fsync() at the end of test, Enabled.

Using synchronous I/O mode

Doing random r/w test

Threads started!

Time limit exceeded, exiting...

Done.


Operations performed:  124560 Read, 83040 Write, 265687 Other = 473287 Total

Read 1.9006Gb  Written 1.2671Gb  Total transferred 3.1677Gb  (10.812Mb/sec)

  691.96 Requests/sec executed


Test execution summary:

    total time:                          300.0160s

    total number of events:              207600

    total time taken by event execution: 5.6715

    per-request statistics:

         min:                                  0.01ms

         avg:                                  0.03ms

         max:                                  5.62ms

         approx.  95 percentile:               0.04ms


Threads fairness:

    events (avg/stddev):           207600.0000/0.00

    execution time (avg/stddev):   5.6715/0.00 


와... SD에 비하면 비교가 안되네

Read 6.5625Mb  Written 4.375Mb  Total transferred 10.938Mb  (37.305Kb/sec)

         max:                               2365.06ms 

2016/09/05 - [embeded/odroid] - odroid sysbench fileio


'embeded > odroid' 카테고리의 다른 글

odroid U3 8GB eMMC datasheet  (0) 2016.10.08
odroid emmc / sd 우선권  (0) 2016.10.07
eMMC 부트 파티션 구조(micron)  (0) 2016.10.07
odroid eMMC 8GB 지름  (0) 2016.10.07
커널에서 로고 띄우는 갯수가...  (0) 2016.10.06
Posted by 구차니