sonyxperiadev / kernel-sony-msm-5.4-common

3 stars 5 forks source link

Include pre-compiled `kernel-pdx225` for `Xperia 10 IV` #4

Open LecrisUT opened 2 years ago

LecrisUT commented 2 years ago

Following the guide fails at the build stage because it is looking for pre-compiled kernel-pdx225.

For anyone new like me, the workaround is to compile the kernel yourself:

  1. Go to kernel/sony/msm-5.4/common-kernel (this repository)
  2. Execute ./build-kernels-clang.sh -d pdx225
  3. Build AOSP as per guide make ... (from the android root folder)

(PS: In principle this should be covered by setting environment variable BUILD_KERNEL=true, but that does not seem to be the case)

LecrisUT commented 2 years ago

Beware, after building the kernel and bootimage, I was unable to boot back into fastbootd. From the documentation in android it seems that it cannot access fastboot userspace (if it has been built) which should be in boot partition (or maybe ramdisk, but I'm not sure where that should be flashed to). Not sure what went wrong in my build

jerpelea commented 2 years ago

@LecrisUT the 10IV is still in the early porting stages When the device will boot it will be officially announced on https://developer.sony.com/develop/open-source/

jerpelea commented 2 years ago

@LecrisUT please use Flahtool https://developer.sony.com/develop/open-devices/get-started/flash-tool

to recover your device to a working state

LecrisUT commented 2 years ago

I am using Fedora, so is there an equivalent of flash-tool for linux? Also what is the current status of the device?

LecrisUT commented 2 years ago

I have tried using this community flash-tool, but it does not seem to detect/support xperia 10 IV

jerpelea commented 2 years ago

please use the provided one

jerpelea commented 2 years ago

I am using Fedora, so is there an equivalent of flash-tool for linux? Also what is the current status of the device?

the device will crash at the early boot and you need UART to debug it. we are working on fixing the issues and when it will boot we will announce it unfortunately there is no Linux supported flash tool from Sony

LecrisUT commented 1 year ago

@konradybcio with your recent commits what's the status?