The Mer Wiki now uses your Mer user account and password (create account on https://bugs.merproject.org/)


Adaptations/PinePhone64

From Mer Wiki
< Adaptations(Difference between revisions)
Jump to: navigation, search
(Created page with "=Hardware Support= =Instalation= ==Preparate SD card== ==U-Boot== ==Kernel== ==Nemo Mobile== ==Sailfish OS==")
 
(U-Boot)
Line 4: Line 4:
 
==Preparate SD card==
 
==Preparate SD card==
 
==U-Boot==
 
==U-Boot==
 +
 +
=== Clone u-boot (master branch): ===
 +
git clone github.com/u-boot/u-boot
 +
 +
=== Compile u-boot ===
 +
 +
export CROSS_COMPILE=aarch64-linux-gnu-
 +
ARCH=arm64 make clean
 +
ARCH=arm64 make sopine_baseboard_defconfig
 +
ARCH=arm64 make
 +
 +
=== Prepare you sd-card ===
 +
 +
Copy to first sector on SD card:
 +
 +
sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=8k seek=1
 +
 +
You can create a boot partition on the SD card with the first MB empty (used by U-boot), GParted -> EXT4 formatting, leave the defaults. I created 2 partitions: a small one for the U-boot stuff and other for maybe later the data.
 +
 +
=== Manual load kernel ===
 +
 +
Serial TTY Baudrate UART = 115200 for screen, example: screen /dev/ttyUSB0 115200
 +
You have to start screen first, before turning on the dev kit.
 +
Interrupt the U-boot autoboot process when you see the message in the U-boot prompt. We need to access the U-boot prompt to load the Kernel image and boot it!
 +
Kernel loading
 +
 +
ext4load mmc 0:1 ${kernel_addr_r} <IMAGE NAME> should be /Image
 +
ext4load mmc 0:1 ${fdt_addr_r} /sun50i-a64-sopine-baseboard.dtb
 +
 +
Boot kernel
 +
 +
booti ${kernel_addr_r} - ${fdt_addr_r}
 +
 
==Kernel==
 
==Kernel==
 
==Nemo Mobile==
 
==Nemo Mobile==
 
==Sailfish OS==
 
==Sailfish OS==

Revision as of 11:15, 7 May 2019

Contents

Hardware Support

Instalation

Preparate SD card

U-Boot

Clone u-boot (master branch):

git clone github.com/u-boot/u-boot

Compile u-boot

export CROSS_COMPILE=aarch64-linux-gnu-
ARCH=arm64 make clean
ARCH=arm64 make sopine_baseboard_defconfig
ARCH=arm64 make

Prepare you sd-card

Copy to first sector on SD card:

sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=8k seek=1

You can create a boot partition on the SD card with the first MB empty (used by U-boot), GParted -> EXT4 formatting, leave the defaults. I created 2 partitions: a small one for the U-boot stuff and other for maybe later the data.

Manual load kernel

Serial TTY Baudrate UART = 115200 for screen, example: screen /dev/ttyUSB0 115200 You have to start screen first, before turning on the dev kit. Interrupt the U-boot autoboot process when you see the message in the U-boot prompt. We need to access the U-boot prompt to load the Kernel image and boot it! Kernel loading

ext4load mmc 0:1 ${kernel_addr_r} <IMAGE NAME> should be /Image
ext4load mmc 0:1 ${fdt_addr_r} /sun50i-a64-sopine-baseboard.dtb

Boot kernel

booti ${kernel_addr_r} - ${fdt_addr_r}

Kernel

Nemo Mobile

Sailfish OS

Personal tools