Closed haidong-yao closed 3 years ago
Hi rsglobal,
Step 1
sudo ln -s ~/glodroid/out/target/product/opi3/fastboot /usr/bin/fastboot sudo ln -s ~/glodroid/out/target/product/opi3/adb /usr/bin/adb sudo ln -s ~/glodroid/out/target/product/opi3/mke2fs /usr/sbin/mke2fs
Step 2
sudo dd if=deploy-sd.img of=/dev/sdb bs=4096
Insert sdcard to board and power up. fastboot devices 82c00007a49e6ba2 fastboot
Step 3
Modify flash-sd.sh remove "./"
fastboot flash gpt deploy-gpt.img fastboot flash bootloader bootloader-sd.img fastboot flash uboot-env env.img fastboot reboot
set +x if [ "-sd" = "-emmc" ]; then echo "Power-down, remove recovery SD-CARD, and power-up the board." echo "Press enter to continue." read key fi set -x
fastboot oem format fastboot flash bootloader bootloader-sd.img fastboot flash uboot-env env.img fastboot flash recovery_boot boot.img fastboot erase misc
fastboot reboot-fastboot
fastboot flash boot_a boot.img fastboot flash dtbo_a boot_dtbo.img fastboot flash super super.img fastboot format:ext4 metadata fastboot format:ext4 userdata fastboot reboot
Step 4
run flash-sd.sh
:~/glodroid/out/target/product/opi3$ sudo ./flash-sd.sh
Allocating group tables: done
Writing inode tables: done
Creating journal (1024 blocks): done
Writing superblocks and filesystem accounting information: done
Sending 'metadata' (52 KB) OKAY [ 0.011s] Writing 'metadata' OKAY [ 0.085s] Finished. Total time: 0.207s
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
Sending 'userdata' (4288 KB) OKAY [ 0.419s] Writing 'userdata' OKAY [ 0.336s] Finished. Total time: 0.809s
It's still a green screen! where it went wrong? What's this deploy-gpt.img?
Hm. It shouldn't be so.
Does adb shell
work for you? If yes, please attach output of:
adb shell dmesg 2>&1 | tee dmesg.log
adb shell logcat 2>&1 | tee logcat.log
Please check your monitor is working. (by installing armbian with the same hardware).
What's this deploy-gpt.img?
It's just initial partition table. (First several sectors of deploy-XX.img) In case user doesn't use deploy-sd-XX.img from release, instead using previous release u-boot, deploy-gpt is used to ensure new deploy image will fit.
monitor is ok, because emmc is image of orangePi ,It can show luncher,so hardware is ok。
Installing Android on sd, while Android is present on emmc can cause some issues, but it looks like this is not the case:
01-01 00:00:24.298 325 325 E HWComposer: loadLayerMetadataSupport: getLayerGenericMetadataKeys failed: UNSUPPORTED (8)
01-01 00:00:24.299 325 325 I HWComposer: Switching to legacy multi-display mode
01-01 00:00:24.299 325 325 E HWComposer: isConnected failed for display 0: Invalid display
01-01 00:00:24.329 305 305 I ServiceManager: Waiting for service 'statscompanion' on '/dev/binder'...
01-01 00:00:24.329 377 377 I ServiceManager: Waiting for service 'package_native' on '/dev/binder'...
01-01 00:00:24.346 389 389 I ServiceManager: Waiting for service 'package_native' on '/dev/binder'...
01-01 00:00:24.413 325 325 E HWC2 : getDisplayAttribute(0, 1, Unknown) failed: BadConfig (1)
01-01 00:00:24.414 325 325 E HWC2 : getDisplayAttribute(0, 3, Unknown) failed: BadConfig (1)
01-01 00:00:24.414 325 325 E HWC2 : getDisplayAttribute(0, 7, Unknown) failed: BadConfig (1)
01-01 00:00:24.415 325 325 E HWC2 : getDisplayAttribute(0, 9, Unknown) failed: BadConfig (1)
01-01 00:00:24.415 325 325 E HWC2 : getDisplayAttribute(0, 10, Unknown) failed: BadConfig (1)
01-01 00:00:24.416 325 325 E HWC2 : getDisplayAttribute(0, 11, Unknown) failed: BadConfig (1)
01-01 00:00:24.416 325 325 E HWC2 : getDisplayAttribute(0, 12, Unknown) failed: BadConfig (1)
01-01 00:00:24.417 325 325 E HWC2 : getDisplayAttribute(0, 13, Unknown) failed: BadConfig (1)
01-01 00:00:24.417 325 325 E HWC2 : getDisplayAttribute(0, 14, Unknown) failed: BadConfig (1)
01-01 00:00:24.418 325 325 E HWC2 : getDisplayAttribute(0, 15, Unknown) failed: BadConfig (1)
01-01 00:00:24.419 325 325 E HWC2 : getDisplayAttribute(0, 16, Unknown) failed: BadConfig (1)
01-01 00:00:24.419 325 325 E HWC2 : getDisplayAttribute(0, 17, Unknown) failed: BadConfig (1)
01-01 00:00:24.420 325 325 E HWC2 : getDisplayAttribute(0, 18, Unknown) failed: BadConfig (1)
01-01 00:00:24.420 325 325 E HWC2 : getDisplayAttribute(0, 19, Unknown) failed: BadConfig (1)
01-01 00:00:24.421 325 325 E HWC2 : getDisplayAttribute(0, 20, Unknown) failed: BadConfig (1)
01-01 00:00:24.421 325 325 E HWC2 : getDisplayAttribute(0, 21, Unknown) failed: BadConfig (1)
01-01 00:00:24.422 325 325 E HWC2 : getDisplayAttribute(0, 22, Unknown) failed: BadConfig (1)
01-01 00:00:24.422 325 325 E HWC2 : getDisplayAttribute(0, 23, Unknown) failed: BadConfig (1)
01-01 00:00:24.423 325 325 E HWC2 : getDisplayAttribute(0, 24, Unknown) failed: BadConfig (1)
01-01 00:00:24.423 325 325 E HWC2 : getDisplayAttribute(0, 26, Unknown) failed: BadConfig (1)
01-01 00:00:24.424 325 325 E HWC2 : getDisplayAttribute(0, 27, Unknown) failed: BadConfig (1)
01-01 00:00:24.424 325 325 E HWC2 : getDisplayAttribute(0, 28, Unknown) failed: BadConfig (1)
01-01 00:00:24.425 325 325 E HWC2 : getDisplayAttribute(0, 30, Unknown) failed: BadConfig (1)
01-01 00:00:24.425 325 325 E HWC2 : getDisplayAttribute(0, 31, Unknown) failed: BadConfig (1)
01-01 00:00:24.426 325 325 E HWC2 : getDisplayAttribute(0, 32, Unknown) failed: BadConfig (1)
01-01 00:00:24.426 325 325 E HWC2 : getDisplayAttribute(0, 33, Unknown) failed: BadConfig (1)
01-01 00:00:24.427 325 325 E HWC2 : getDisplayAttribute(0, 35, Unknown) failed: BadConfig (1)
01-01 00:00:24.427 325 325 E HWC2 : getDisplayAttribute(0, 37, Unknown) failed: BadConfig (1)
01-01 00:00:24.428 325 325 E HWC2 : getDisplayAttribute(0, 38, Unknown) failed: BadConfig (1)
01-01 00:00:24.428 325 325 E HWC2 : getDisplayAttribute(0, 39, Unknown) failed: BadConfig (1)
01-01 00:00:24.429 325 325 E HWC2 : getDisplayAttribute(0, 40, Unknown) failed: BadConfig (1)
01-01 00:00:24.429 325 325 E HWC2 : getDisplayAttribute(0, 41, Unknown) failed: BadConfig (1)
01-01 00:00:24.430 325 325 E HWC2 : getDisplayAttribute(0, 42, Unknown) failed: BadConfig (1)
01-01 00:00:24.430 305 305 I ServiceManager: Waiting for service 'statscompanion' on '/dev/binder'...
01-01 00:00:24.430 377 377 I ServiceManager: Waiting for service 'package_native' on '/dev/binder'...
01-01 00:00:24.430 325 325 E HWC2 : getDisplayAttribute(0, 44, Unknown) failed: BadConfig (1)
I can see this on your logcat output.
Please try with different display.
Please also check with v0.5.1 and v0.6.1 release images.
I changed to a high-resolution monitor and can enter the glodroid luncher ,the testing is very good!
Thanks rsglobal
Can you specify your (first) monitor type to help us handle such kind of issues?
The first monitor is ViewSonic VA2462H. The second monitor is Samsung S27E360HSIXF.
Which device of hardware supports mali-G52?
Which device of hardware supports mali-G52?
Could you rephrase your question please
Which SOC / board? I don't know. Try googling.
oh, Thanks rsglobal
The opi3 is mali-t720, I want to add log, Learning GPU,How to compile kernel?
I don't know where to define ”make images“,it's all compiled。
for example:
Write boot.img through fastboot fastboot flash boot_a boot.img?
make out/target/product/opi3/boot.img
or just
m out/target/product/opi3/boot.img
m
is working from any directory inside the tree.
Write boot.img failed!
:~/glodroid/out/target/product/opi3$ fastboot flash boot_a boot.img fastboot: error: boot partition is smaller than boot image
24M boot.img
24M should fit. Anyway try to change partition layout: https://github.com/GloDroid/glodroid_device/blob/618cd78a15f4d320ea48ebc0d18128aa76f1b754/platform/uboot/bootscript.cpp#L43
Another size-related option is here: https://github.com/GloDroid/glodroid_device/blob/618cd78a15f4d320ea48ebc0d18128aa76f1b754/common/boardconfig-common.mk#L58
But it should not cause fastboot issues.
Must execute fastboot reboot fastboot
**1. source build/envsetup.sh 2 . lunch opi3-userdebug
The display screen is a display with HDMI interface, Green screen after power on(Not power button) 。 adb shell is ok,One of the LED is red**