12-13-2019, 02:00 PM
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:
The dtb is from the kernel source. It seems to be okay with all of this except when it boots the following is printed.
It sits here forever. I have attempted to change log levels and earlyprintk but nothing helps. Any assistance would be greatly appreciated.
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:
Code:
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.
Code:
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.