Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Oct 2020 20:30:10 +0900
From:      KIRIYAMA Kazuhiko <kiri@truefc.org>
To:        freebsd-arm <freebsd-arm@freebsd.org>
Cc:        kiri@truefc.org
Subject:   Where is the rk3399-pinebook-pro.dtb ?
Message-ID:  <202010071130.097BUA5b008538@kx.truefc.org>

next in thread | raw e-mail | index | archive | help
Hi, all

I want to make bootable installer image of PINEBOOK Pro, so
I installed sysutils/u-boot-pinebookpro and worked as follows:

# truncate -s 1g FreeBSD-13.0-CURRENT-arm64-aarch64-PINEBOOKPRO-20201001-e18fc94e525-memstick.img
# mdconfig -d -u md0
# mdconfig -a -t vnode -f FreeBSD-13.0-CURRENT-arm64-aarch64-PINEBOOKPRO-20201001-e18fc94e525-memstick.img 
md0
# gpart create -s mbr md0
md0 created
# gpart add -b 32768 -t fat32lba -s 54m md0
md0s1 added
# mdconfig -a -t vnode -f FreeBSD-13.0-CURRENT-arm64-aarch64-PINEBOOK-20201001-e18fc94e525.img 
md1
# gpart show md1
=>     63  6291393  md1  MBR  (3.0G)
       63     2016       - free -  (1.0M)
     2079   110502    1  fat32lba  [active]  (54M)
   112581  6178851    2  freebsd  (2.9G)
  6291432       24       - free -  (12K)

# gpart show md0
=>     63  2097089  md0  MBR  (1.0G)
       63    32705       - free -  (16M)
    32768   110592    1  fat32lba  (54M)
   143360  1953792       - free -  (954M)

# dd if=/dev/md1s1 of=/dev/md0s1 bs=10240 conv=sync                         
5526+0 records in
5526+0 records out
56586240 bytes transferred in 50.280273 secs (1125416 bytes/sec)
# mdconfig -d -u md1
# mdconfig -a -t vnode -f FreeBSD-13.0-CURRENT-arm64-aarch64-20201001-e18fc94e525-memstick.img
md1
# gpart show md1
=>      3  1655448  md1  GPT  (808M)
        3    66584    1  efi  (33M)
    66587  1588864    2  freebsd  (776M)

# gpart add -t freebsd md0
md0s2 added
# dd if=/dev/md1s2 of=/dev/md0s2 bs=10240 conv=sync
79444+0 records in
79444+0 records out
813506560 bytes transferred in 736.789089 secs (1104124 bytes/sec)
# dd if=/usr/local/share/u-boot/u-boot-pinebookpro/idbloader.img of=/dev/md0 seek=64 bs=512 conv=sync
322+0 records in
322+0 records out
164864 bytes transferred in 1.578397 secs (104450 bytes/sec)
# dd if=/usr/local/share/u-boot/u-boot-pinebookpro/u-boot.itb of=/dev/md0 seek=16384 bs=512 conv=sync
1800+0 records in
1800+0 records out
921600 bytes transferred in 11.001794 secs (83768 bytes/sec)
# 
# gpart show md0
=>     63  2097089  md0  MBR  (1.0G)
       63    32705       - free -  (16M)
    32768   110592    1  fat32lba  (54M)
   143360  1953792    2  freebsd  (954M)

# gpart set -a active -i 1 md0
active set on md0s1
# gpart show md0
=>     63  2097089  md0  MBR  (1.0G)
       63    32705       - free -  (16M)
    32768   110592    1  fat32lba  [active]  (54M)
   143360  1953792    2  freebsd  (954M)

# mount -t msdos /dev/md0s1 /mnt
# ll /mnt/
total 8
drwxr-xr-x  1 root  wheel  4096 10月  1 19:40 dtb/
drwxr-xr-x  1 root  wheel  4096 10月  1 19:40 EFI/
# ll /mnt/dtb/rockchip/
total 432
-rwxr-xr-x  1 root  wheel  50515 10月  1 19:40 rk3328-rock64.dtb*
-rwxr-xr-x  1 root  wheel  75766 10月  1 19:40 rk3399-firefly.dtb*
-rwxr-xr-x  1 root  wheel  75037 10月  1 19:40 rk3399-khadas-edge-captain.dtb*
-rwxr-xr-x  1 root  wheel  75029 10月  1 19:40 rk3399-khadas-edge-v.dtb*
-rwxr-xr-x  1 root  wheel  74974 10月  1 19:40 rk3399-khadas-edge.dtb*
-rwxr-xr-x  1 root  wheel  75967 10月  1 19:40 rk3399-rockpro64.dtb*
#

I found that there is not rk3399-pinebook-pro.dtb. I
searched rk3399-pinebook-pro.dts [1] but it's binary could
not found. Where is the rk3399-pinebook-pro.dtb?

Regards.

[1] http://sbexr.rabexc.org/latest/sources/16/9e72f1727556c6.html
---
Kazuhiko Kiriyama <kiri@truefc.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010071130.097BUA5b008538>