I did not say to try a different branch. I said to try a known good manifest.
just need to modify the content of default.xml by the hikey960.xml in .repo/manifests/default.xml
and sync again
Thatās it ?
Yeah, I think that should work.
Any manual changes youāve made to any repo could freak out the sync, so just be aware of that and reset any trees that may need some adjustment.
Oh yeah youāre right.
Need to remove patch in system/sepolicy/neverallow file (the +hal_gnss)
Do you know any way to reset hard everything with repo ?
Try this;
repo forall -c "git am --abort"
repo forall -c "git reset --hard"
Still have the changesā¦ I see them with repo status.
You could try reset --hard HEAD or --hard HEAD~5. That should eradicate anything.
Perfect ! Also I need to repo forall -c "git clean -f -d"
to remove extras files if need
Ok now Iām ready to sync and build with the new manifest.
Can I directly build the hikey960_car ? Or better to build the hikey960?
I started build with the car directly. Will see that later Thanks a lot for your help.
Hello @doitright
I was able to build & run with the last manifest on github.
I will test automotive HAL etc to be sure that the remove of the BOARD SEPOLICY DIRS did not break anything.
Thanks!
#EDIT
I did some modifications and after that I rebuilt and I got this error :
device/linaro/hikey/gralloc960/mali_gralloc_formats.cpp:139:7: error: use of undeclared identifier āHAL_PIXEL_FORMAT_YCBCR_422_888ā; did you mean āHAL_PIXEL_FORMAT_YCBCR_420_888ā?
case HAL_PIXEL_FORMAT_YCbCr_422_888:
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HAL_PIXEL_FORMAT_YCBCR_420_888
system/core/libsystem/include/system/graphics.h:35:40: note: expanded from macro āHAL_PIXEL_FORMAT_YCbCr_422_888ā
#define HAL_PIXEL_FORMAT_YCbCr_422_888 HAL_PIXEL_FORMAT_YCBCR_422_888
^
system/core/libsystem/include/system/graphics-base.h:25:5: note: āHAL_PIXEL_FORMAT_YCBCR_420_888ā declared here
HAL_PIXEL_FORMAT_YCBCR_420_888 = 35,
Do you know what can be the issue ? This error came after a second rebuild, thatās so weird. This part was not modified at all.
#EDIT 2
I found the issue. I executed the update_makefiles.sh in hardware/interfaces directory because I added a custom data on the vehicle HAL. And thatās updated some values in :
project system/core/ (*** NO BRANCH ***)
-m libsystem/include/system/graphics-base.h
So now, itās dangerous to add custom data to types.hal
and then generates the new .h Did I miss something ?
#EDIT 3
Everything have been fixed. Need to delete some files in the out directory. The system build does not regenerate anything if the previous are still there.
Hello,
Got issue with Gnss HAL using the last Manifest.
The boot keeps stuck on bootanimation when my GPS USB is plugged on the hikey.
If I reboot without the GPS Usb it boots correctly.
Iām using CP210X Driver for the GNSS. It was working before I synced with the last manifest.
Do you know what can cause this issue ?
Iām checking the logs but it seems that there is nothing very differentā¦
#EDIT
I removed the Settings application, when I put it again it boots ā¦ Wow
Iāve actually noticed some unending boot animation problems even with the April build. Thing is, its intermittent and usually rebooting will clear it up. Presumably, youāve noticed the same thing, but its moved from intermittent to consistent. I have not had a chance to debug it, and since Iāve only had it as intermittent, it hasnāt been an enormous priority, at least not with where Iām working at the moment.
I think also youāre using the generic serial GPS HAL, right? I actually havenāt touched that since I got the U-Blox HAL working. The U-Blox HAL is a lot less jumpy and locks on a lot faster thanks to working AGPS.
One thing I did notice, is that if the kernel is overbloated with drivers, the chances of being stuck on the boot animation increases. Possibly something related to boot time? Now of course, reducing the boot time isnāt the āfixā, but it may hint at the issue. I will point out that the USB drivers on this board have been somewhat glitchy.
Other strange things also happen during boot. Iāve seen the USB host mode initialize during boot, then be removed, and reinitialized. If this happens while it is trying to initialize the GPS, i.e., start initializing it and having the device disappear, that could cause the GPS HAL to lock up.
I suspect that your Settings application removal/replacement is a red herring. What you probably experienced, is the intermittent behavior Iāve noted above.
When the bootanimation is stuck, it means that the Surfaceflinger did not receive the āBOOT_FINISHEDā message from the ActivityManager
https://android.googlesource.com/platform/frameworks/native/+/master/libs/gui/ISurfaceComposer.cpp#566
I did many tests (one image without Settings, an other with Settings) with Settings it boots, without it does not boot. I donāt think itās an intermittent behavior. Settings is certainly doing additional stuffs that CarSettings does not ? What do you think ?
Oh, see I read that backwards. I thought you said that it booted withOUT settings. Obviously it makes sense that not having the settings application will cause some things to break.
Now CarSettingsā¦ that is very far from complete. Iām not sure if its even worth including it.
Yes it seems that the Settings application has a impact on the system.
But how to explain why it boots with application Settings removed AND GPS USB unplugged ?
Yes Iām using the generic serial GPS Hal.
This Hal cannot work with my USB GPS, isnāt it ?
#EDIT
I wanted to share with you, after some investigation, I noticed that the Settings application has an activity named āFallbackHomeā that inflate the famous view āAndroid is startingā¦ā. CarSettings does not have this view. So, thatās why Settings application is mandatory
#EDIT 2
Problem ānot bootingā is fixed by adding the FallBackHomeActivity to CarSettings.
hi @rubberduck203 , do you know please what is exactly the difference between car-lib and car-support-lib ?
thanks
The car-lib is lower level than the car-support-lib. The support library wraps the lower level lib in an easier to use interface.
I donāt think that we really need to explain that behavior. When the GPS HAL initializes, it obviously needs a positive response from something that involves the settings application, i.e., to notify that there is a GPS present on the system, and then issues a success.
So if the GPS is present, it tries to make that call, but doesnāt get a response, so it ends up stuck there waiting forever. If the GPS is NOT present, it doesnāt need to make that call and therefore doesnāt get stuck on it.
The U-Blox HAL will only work with a U-Blox GPS. From what I understand, all U-Blox GPSās will show up as a /dev/ttyACMx, and will also spit out U-Blox as manufacturer on the kmsg. U-Blox USB GPSās usually run around $10-$15 on Amazon.
Check my EDIT 2 on my previous post.
I saw it, interesting observation, but it doesnāt change anything I said.