Building OP-TEE OS for pine64-LTS
I am attempting to add a mk to OP-TEE/build for the pine64-lts.  I'm pretty far along but have some fairly sticky faults.  The first was the transition from ARM-TF to optee_os failed.  So I sent some emails off and focused on something I thought would be easier, booting Linux.  

What I've done is copied and modified the build script from qemu with concepts from other boards (poplar, rpi3) and brought in mainline u-boot.  U-boot is made aware of ARM-TF and the board readily boots the resulting .bin.  Next I wrote and compiled a boot.cmd:

setenv bootargs earlyprintk console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10
load mmc 0:1 0x44000000 /sun50i-a64-pine64-lts.dtb
load mmc 0:1 0x42000000 /uImage
bootm 0x42000000 - 0x44000000

The dtb is from the kernel source.  It seems to be okay with all of this except when it boots the following is printed.

switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
272 bytes read in 3 ms (87.9 KiB/s)
## Executing script at 4fc00000
22300 bytes read in 6 ms (3.5 MiB/s)
20294208 bytes read in 879 ms (22 MiB/s)
## Booting kernel from Legacy Image at 42000000 ...
  Image Name:   Linux kernel
  Image Type:   AArch64 Linux Kernel Image (uncompressed)
  Data Size:    20294144 Bytes = 19.4 MiB
  Load Address: 80008000
  Entry Point:  80008000
  Verifying Checksum ... OK
## Flattened Device Tree blob at 44000000
  Booting using the fdt blob at 0x44000000
EHCI failed to shut down host controller.
  Loading Kernel Image
  Loading Device Tree to 0000000049ff7000, end 0000000049fff71b ... OK

Starting kernel ...

It sits here forever.  I have attempted to change log levels and earlyprintk but nothing helps.   Any assistance would be greatly appreciated.
As it always happens as soon as one asks, they find their way.

Changed kernel version and now it works save some issues with getty trying to start on ttyAMA0 rather than ttyS0. Which I can fix by hand, working on how to make it work out of the box.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Armbian for Pine64 LTS Mark88 0 322 05-04-2024, 11:18 AM
Last Post: Mark88
  Kernel rebuild resources and process for pine64-LTS Atreyo tech 2 3,562 07-02-2021, 12:23 AM
Last Post: Atreyo tech
  SoPine/Pine64 LTS: Ubuntu Mate is not booting jaganteki 0 2,945 11-20-2018, 10:49 PM
Last Post: jaganteki
  Problem setting Pine64 as a USB device martin357 2 4,673 07-02-2018, 02:08 AM
Last Post: martin357

Forum Jump:

Users browsing this thread: 1 Guest(s)