SM-T295 - Finally rooted tablet!! (updated 19-May-2020)

mehanik6

Member
Apr 6, 2013
34
4
0
Having problem building t295 kernel from mehanik6 source code on 4PDA. Cannot login to site, even though have account. I cannot read Russian numbers in captcha. Here is error.
trying to build skyhawk. Getting error:
DTC arch/arm64/boot/dts/qcom/msm8937-pmi8950-mtp.dtb
ERROR (phandle_references): Reference to non-existent node or label "pm8953_gpios"

ERROR (phandle_references): Reference to non-existent node or label "pm8953_gpios"

ERROR (phandle_references): Reference to non-existent node or label "pm8953_gpios"

ERROR (phandle_references): Reference to non-existent node or label "pm8953_gpios"

ERROR (phandle_references): Reference to non-existent node or label "dsi_truly_1080_vid"

ERROR (phandle_references): Reference to non-existent node or label "dsi_adv7533_1080p"

this is for samsung Tab A: sm-t295 (qcom)
any idea how to fix this?
my build_kernel.sh, commands https://github.com/mehanik6/kernel_samsung_gto/blob/master/build_kernel.sh
and the compiled kernel, dtbo
 

Attachments

Last edited:

gcrutchr

Senior Member
Jun 11, 2009
1,094
520
113
Bangkok

mehanik6

Member
Apr 6, 2013
34
4
0
Thanks, but all the build_kernel.sh script is doing is making the dtbo.img file.
Also, when I try to make the recovery image file, the script is still trying to build the kernel.
Where in TWRP is the link options for the kernel. In other words, the actual linker list of files, command line options, etc. ?
kernel is built without clang,
therefore - kernel separately
- twrp separately
 

mehanik6

Member
Apr 6, 2013
34
4
0
Its your trees from github: device & kernel
Code:
# Kernel
BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200,n8 androidboot.console=ttyMSM0 androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 androidboot.bootdevice=7824900.sdhci earlycon=msm_serial_dm,0x78B0000 firmware_class.path=/vendor/firmware_mnt/image androidboot.usbconfigfs=true loop.max_part=7
BOARD_KERNEL_BASE := 0x80000000
BOARD_KERNEL_PAGESIZE := 2048
BOARD_KERNEL_OFFSET := 0x00008000
BOARD_RAMDISK_OFFSET := 0x02000000
BOARD_SECOND_OFFSET := 0x00f00000
BOARD_KERNEL_TAGS_OFFSET := 0x01e00000
BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64)
BOARD_BOOTIMG_HEADER_VERSION := 1
TARGET_PREBUILT_KERNEL := $(DEVICE_PATH)/prebuilt/zImage-dtb
BOARD_PREBUILT_DTBOIMAGE := $(DEVICE_PATH)/prebuilt/dtbo.img
BOARD_INCLUDE_RECOVERY_DTBO := true
BOARD_MKBOOTIMG_ARGS += --ramdisk_offset $(BOARD_RAMDISK_OFFSET)
BOARD_MKBOOTIMG_ARGS += --tags_offset $(BOARD_KERNEL_TAGS_OFFSET)
BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOTIMG_HEADER_VERSION)
BOARD_CUSTOM_BOOTIMG_MK := $(DEVICE_PATH)/mkbootimg.mk
BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb
#TARGET_KERNEL_ARCH := arm64
#TARGET_KERNEL_HEADER_ARCH := arm64
#TARGET_KERNEL_SOURCE := kernel/samsung/gto
#TARGET_KERNEL_CONFIG := gto_defconfig
do so
 

gcrutchr

Senior Member
Jun 11, 2009
1,094
520
113
Bangkok
Code:
# Kernel
BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200,n8 androidboot.console=ttyMSM0 androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 androidboot.bootdevice=7824900.sdhci earlycon=msm_serial_dm,0x78B0000 firmware_class.path=/vendor/firmware_mnt/image androidboot.usbconfigfs=true loop.max_part=7
BOARD_KERNEL_BASE := 0x80000000
BOARD_KERNEL_PAGESIZE := 2048
BOARD_KERNEL_OFFSET := 0x00008000
BOARD_RAMDISK_OFFSET := 0x02000000
BOARD_SECOND_OFFSET := 0x00f00000
BOARD_KERNEL_TAGS_OFFSET := 0x01e00000
BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64)
BOARD_BOOTIMG_HEADER_VERSION := 1
TARGET_PREBUILT_KERNEL := $(DEVICE_PATH)/prebuilt/zImage-dtb
BOARD_PREBUILT_DTBOIMAGE := $(DEVICE_PATH)/prebuilt/dtbo.img
BOARD_INCLUDE_RECOVERY_DTBO := true
BOARD_MKBOOTIMG_ARGS += --ramdisk_offset $(BOARD_RAMDISK_OFFSET)
BOARD_MKBOOTIMG_ARGS += --tags_offset $(BOARD_KERNEL_TAGS_OFFSET)
BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOTIMG_HEADER_VERSION)
BOARD_CUSTOM_BOOTIMG_MK := $(DEVICE_PATH)/mkbootimg.mk
BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb
#TARGET_KERNEL_ARCH := arm64
#TARGET_KERNEL_HEADER_ARCH := arm64
#TARGET_KERNEL_SOURCE := kernel/samsung/gto
#TARGET_KERNEL_CONFIG := gto_defconfig
do so
Thanks. I will have to do this tomorrow...am having repo issues....
 

gcrutchr

Senior Member
Jun 11, 2009
1,094
520
113
Bangkok
Code:
# Kernel

do so[/QUOTE]

here is the output of build_kernel.sh:
arch/arm64/boot/dts/qcom/sdm429.dtb.reverse.dts: Warning (simple_bus_reg): Node /soc/qmi-tmd-devices missing or empty reg/ranges property
arch/arm64/boot/dts/qcom/sdm429.dtb.reverse.dts: Warning (simple_bus_reg): Node /soc/apc-mem-acc-regulator missing or empty reg/ranges property
arch/arm64/boot/dts/qcom/sdm429.dtb.reverse.dts: Warning (simple_bus_reg): Node /soc/dbu1 missing or empty reg/ranges property
arch/arm64/boot/dts/qcom/sdm429.dtb.reverse.dts: Warning (simple_bus_reg): Node /soc/qcom,camera-flash missing or empty reg/ranges property
arch/arm64/boot/dts/qcom/sdm429.dtb.reverse.dts: Warning (simple_bus_reg): Node /soc/audio_ext_clk_native missing or empty reg/ranges property
  CC      net/ipv4/tcp_westwood.mod.o
  LD [M]  drivers/char/rdbg.ko
  LD [M]  drivers/video/backlight/lcd.ko
  LD [M]  fs/efivarfs/efivarfs.ko
  LD [M]  net/bridge/br_netfilter.ko
  LD [M]  net/ipv4/tcp_htcp.ko
  LD [M]  net/ipv4/tcp_westwood.ko
  CAT     arch/arm64/boot/Image.gz-dtb
make[1]: Leaving directory '/home/gcrutchr/twrp/kernel/samsung/gto/out'
make: Leaving directory '/home/gcrutchr/twrp/kernel/samsung/gto'
create image file: out/dtbo.img...

here is output of mka recoveryimage:
[  8% 1153/13075] Prebuilt:  (/home/gc...hr/twrp/out/target/product/gto/kernel)
FAILED: /home/gcrutchr/twrp/out/target/product/gto/kernel 
/bin/bash -c "(rm -f /home/gcrutchr/twrp/out/target/product/gto/kernel ) && (cp \"\" \"/home/gcrutchr/twrp/out/target/product/gto/kernel\" )"
cp: cannot stat '': No such file or directory
[  8% 1160/13075] target  C++: libminu... bootable/recovery/minui/resources.cpp
ninja: build stopped: subcommand failed.
11:53:46 ninja failed with: exit status 1

#### failed to build some targets (01:01 (mm:ss)) ####

I attached the logfile for the kernel build
 

Attachments

Last edited:

mehanik6

Member
Apr 6, 2013
34
4
0
FAILED: /home/gcrutchr/twrp/out/target/product/gto/kernel
/bin/bash -c "(rm -f /home/gcrutchr/twrp/out/target/product/gto/kernel ) && (cp "" ern"/home/gcrutchr/twrp/out/target/product/gto/kernel" )"
cp: cannot stat '': No such file or directory
[ 8% 1160/13075] target C++: libminu... bootable/recovery/minui/resources.cpp
ninja: build stopped: subcommand failed.
11:53:46 ninja failed with: exit status 1

#### failed to build some targets (01:01 (mm:ss)) ####
- remove the kernel folder from the twrp sources (build the kernel separately)
- remove build_kernel.sh from twrp sources
- put the prebuilt folder in the twrp tree (/device/samsung/gto) https://forum.xda-developers.com/showpost.php?p=83434929&postcount=242
- fix BoardConfig.mk (/device/samsung/gto) https://forum.xda-developers.com/showpost.php?p=83436311&postcount=248
- mka recoveryimage
 

gcrutchr

Senior Member
Jun 11, 2009
1,094
520
113
Bangkok
- remove the kernel folder from the twrp sources (build the kernel separately)
- remove build_kernel.sh from twrp sources
- put the prebuilt folder in the twrp tree (/device/samsung/gto) https://forum.xda-developers.com/showpost.php?p=83434929&postcount=242
- fix BoardConfig.mk (/device/samsung/gto) https://forum.xda-developers.com/showpost.php?p=83436311&postcount=248
- mka recoveryimage
Thank you very much! You have been a great help to me. I made the recovery.img.
Now I need to test it to make sure it is the same as the one you posted. If yes, then I will make the Skyhawk Recovery image
Again, thanks for all your help !!!!

Update: Made Skyhawk recovery - works great!!
 
Last edited:

gcrutchr

Senior Member
Jun 11, 2009
1,094
520
113
Bangkok
Skyhawk recovery for SM-T295

I have made a Skyhawk recovery for our Tab A 8.0 (t295).
I give a lot of thanks to [email protected] for his help with getting a build for TWRP.
Once the TWRP build worked, I made the Skyhawk recovery.

I doubt if I will do much maintenance on this as I am not a TWRP developer.

Skyhawk recovery for SM-T295

To install:
Use TWRP Recovery Manager from playstore.
DO NOT try to install this with ODIN. It will fail, probably.
 

Attachments

Tianhe

Senior Member
Mar 16, 2011
648
144
73
I have made a Skyhawk recovery for our Tab A 8.0 (t295).
I give a lot of thanks to [email protected] for his help with getting a build for TWRP.
Once the TWRP build worked, I made the Skyhawk recovery.

I doubt if I will do much maintenance on this as I am not a TWRP developer.

Skyhawk recovery for SM-T295

To install:
Use TWRP Recovery Manager from playstore.
DO NOT try to install this with ODIN. It will fail, probably.
Is it working fully ? I mean can it mount internal storage, backup/restore data etc. ?

In any case, thank you for your efforts !