summaryrefslogtreecommitdiff
path: root/docs/nnfw/howto/device/xu3_tizen.md
blob: 6473ab9a83c13b8f86ec67fb465a2011682c9740 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# About

This will describe how to flash microSD with Tizen-5.5 for ODroid XU3.

Host environment is Ubuntu 18.04

This document will explain the only on eMMC + XU3.

# Download files

## Images

Boot
- https://download.tizen.org/snapshots/tizen/unified/latest/images/standard/tv-boot-armv7l-odroidxu3/
- download the biggest file

Root FS
- https://download.tizen.org/snapshots/tizen/unified/latest/images/standard/tv-wayland-armv7l-odroidu3/
- download the biggest file

U-Boot images
```
wget https://github.com/hardkernel/u-boot/raw/odroidxu3-v2012.07/sd_fuse/hardkernel_1mb_uboot/bl1.bin.hardkernel
wget https://github.com/hardkernel/u-boot/raw/odroidxu3-v2012.07/sd_fuse/hardkernel_1mb_uboot/bl2.bin.hardkernel.1mb_uboot
wget https://github.com/hardkernel/u-boot/raw/odroidxu3-v2012.07/sd_fuse/hardkernel_1mb_uboot/tzsw.bin.hardkernel
```

You also need `u-boot-mmc.bin` that is inside `tizen-unified_20180425.2_tv-boot-armv7l-odroidxu3.tar.gz` file.
```
tar xvf tizen-unified_20180425.2_tv-boot-armv7l-odroidxu3.tar.gz u-boot-mmc.bin
```


## Flashing script

Download [sd_fusing_xu4.sh](https://git.tizen.org/cgit/platform/kernel/u-boot/plain/scripts/tizen/sd_fusing_xu4.sh?h=tizen)

This file name has `xu4` but it works on also xu3.


## Files

```
dragon@loki:~/Works/tizen/odroid-xu3/flashing$ ls -l
total 1316
-rw-rw-r-- 1 dragon dragon   15616  9월  5 14:41 bl1.bin.hardkernel
-rw-rw-r-- 1 dragon dragon   14592  9월  5 14:41 bl2.bin.hardkernel.1mb_uboot
-rw-rw-r-- 1 dragon dragon  262144  9월  5 14:41 tzsw.bin.hardkernel
-rwxr-xr-x 1 dragon dragon 1048576  9월  4 15:17 u-boot-mmc.bin
```

# Flash

Host environment
- Ubuntu 18.04
- eMMC connected through microUSB from xu3 to host

## Flash boot files

on target
```
...

CPU: Exynos5422 @ 800 MHz

Model: Odroid XU3 based on EXYNOS5422
Board: Odroid XU3 based on EXYNOS5422
Type: xu3
DRAM: 2 GiB
MMC: EXYNOS DWMMC: 0, EXYNOS DWMMC: 1
In: serial
Out: serial
Err: serial
Net: No ethernet found.
Hit any key to stop autoboot: 0
ODROID-XU3 #

ODROID-XU3 # mmc list
EXYNOS DWMMC: 0 (eMMC)
EXYNOS DWMMC: 1

ODROID-XU3 # ums 0 mmc 0

UMS: LUN 0, dev 0, hwpart 0, sector 0x0, count 0x1d5a000

/
```

then on host
```
$ sudo fdisk -l 
..........

Partition table entries are not in disk order

Disk /dev/sdh: 32.0 GB, 32010928128 bytes

64 heads, 32 sectors/track, 30528 cylinders, total 62521344 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: 0x00000000


Device Boot Start End Blocks Id System

/dev/sdh1 * 8192 139263 65536 e W95 FAT16 (LBA) ..........
```

```
$ sudo ../sd_fusing_xu4.sh -d /dev/sdh --format \
    -b bl1.bin.hardkernel bl2.bin.hardkernel.1mb_uboot tzsw.bin.hardkernel u-boot-mmc.bin
...
```

`--format` option will, 1) delete current partition 2) create new partition table, 3) format each partitions.

- If you meet `./sd_fusing_xu4-u1604.sh: line 147: pv: command not found` message and want to remove this message, install pv package by `sudo apt-get install pv`

## Flash image files
```
$ sudo ../sd_fusing_xu4.sh -d /dev/sdh \
    -b tizen-unified_20190905.1_tv-boot-armv7l-odroidxu3.tar.gz \
       tizen-unified_20190905.1_tv-wayland-armv7l-odroidxu3.tar.gz
```

# After boot

Follow [xu4_tizen](xu4_tizen.md)

# References

- http://suprem.sec.samsung.net/confluence/display/KS/Odroid+XU3
- http://suprem.sec.samsung.net/confluence/pages/viewpage.action?pageId=104635990
- http://suprem.sec.samsung.net/confluence/pages/viewpage.action?spaceKey=TPLAB&title=XU3+Image+Flashing
- http://download.tizen.org/snapshots/tizen/unified/latest/images/standard/