LicheePi Nano を起動してみる。

# 概要

LicheePi Nano 16M Flash
http://akizukidenshi.com/catalog/g/gM-14787/

※写真右側

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/187531/831b9e55-16cc-1f7e-56a5-148101654e00.png)


|項目||
|:-:|:--|
|CPU|F1C100s、ARM926EJS, 900MHz|
|MEM|32MB|

# 資料

## 本家

http://nano.lichee.pro/

## 回路図

https://whycan.cn/files/members/3/Lichee_nano.pdf

## GPIO関係

PB3以外全部出ている!!

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/187531/7930b194-1f8c-e301-4a56-f03af9f410ad.png)

# 起動する

## UART

E0, E1 のピンです。
Baudrate = 115200 bps

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/187531/5650e504-c720-6a2b-e1f7-3514a3a27ca0.png)

## 電源On!

内蔵SPIにLinuxが書き込み済みですので、電源入れれば起動します。

user: root
pass: licheepi


## 消費電流変化

アイドリングで 45mA くらいですかね。
実は Cortex A35x4 の [RockPiS](https://qiita.com/blue-7/items/c2467f4aab149e861d17) の方が少ない。

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/187531/fe7da54d-f2b6-d07b-e01f-03a8b3f44f03.png)

# ログとか

## u-boot

```console
U-Boot SPL 2018.01-05677-gd1f02066e3-dirty (Aug 25 2018 - 10:40:35)
DRAM: 32 MiB
Trying to boot from MMC1
Card did not respond to voltage select!
mmc_init: -95, time 22
spl: mmc init failed with error: -95
Trying to boot from sunxi SPI


U-Boot 2018.01-05677-gd1f02066e3-dirty (Aug 25 2018 - 10:40:35 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

Setting up a 800x480 lcd console (overscan 0x0)
In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x4000
SF: 16384 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 80e05000, end 80e0a326 ... OK

Starting kernel ...
```

## cat /proc/cpuinfo

```console
processor       : 0
model name      : ARM926EJ-S rev 5 (v5l)
BogoMIPS        : 203.16
Features        : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant     : 0x0
CPU part        : 0x926
CPU revision    : 5

Hardware        : Allwinner suniv Family
Revision        : 0000
Serial          : 0000000000000000
```

## cat /proc/meminfo

```console
MemTotal:          24776 kB
MemFree:           16556 kB
MemAvailable:      16468 kB
Buffers:               0 kB
Cached:             1120 kB
SwapCached:            0 kB
Active:             1316 kB
Inactive:             76 kB
Active(anon):        292 kB
Inactive(anon):        8 kB
Active(file):       1024 kB
Inactive(file):       68 kB
Unevictable:           0 kB
Mlocked:               0 kB
HighTotal:             0 kB
HighFree:              0 kB
LowTotal:          24776 kB
LowFree:           16556 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:           296 kB
Mapped:              984 kB
Shmem:                28 kB
Slab:               4136 kB
SReclaimable:        568 kB
SUnreclaim:         3568 kB
KernelStack:         208 kB
PageTables:           72 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:       12388 kB
Committed_AS:       1448 kB
VmallocTotal:     999424 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
```

## df

```console
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                11200     10904       296  97% /
devtmpfs                 11876         0     11876   0% /dev
tmpfs                    12388         0     12388   0% /dev/shm
tmpfs                    12388        16     12372   0% /tmp
tmpfs                    12388        12     12376   0% /run
```

# LCDを繋ぐ

ＴＦＴ液晶モジュールＡＴＭ０４３０Ｄ２５
http://akizukidenshi.com/catalog/g/gP-09250/

特に何もしていないが、何かが表示された。
なお、上記LCDはタッチパネルは無いです。

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/187531/3387b951-8cd5-1040-d9f6-f18998c6dbb6.png)

# その他

- alsa関係は入っていない。