Halium / projectmanagement

140 stars 32 forks source link

[device-port] [espresso3g/espressowifi] Samsung Galaxy Tab 2 #238

Open MightyM17 opened 3 years ago

MightyM17 commented 3 years ago

Tree: halium-7.1

=== Sensor 1 == Name: MS-3E (YAS530) Magnetic Sensor Vendor: Yamaha Corporation Version: 0x1 Handle: 0x2 Type: 2 maxRange: 800.0 resolution: 0.300000 power: 4.0 mA minDelay: 10000

=== Sensor 2 == Name: MS-x Orientation Sensor Vendor: Yamaha Corporation Version: 0x1 Handle: 0x3 Type: 3 maxRange: 360.0 resolution: 0.100000 power: 0.0 mA minDelay: 10000

=== Sensor 3 == Name: GP2AP002 Light Sensor Vendor: Sharp Version: 0x1 Handle: 0x4 Type: 5 maxRange: 0.0 resolution: 0.0 power: 0.0 mA minDelay: 0

=== Sensor 4 == Name: GP2AP002 Proximity Sensor Vendor: Sharp Version: 0x1 Handle: 0x5 Type: 8 maxRange: 5.0 resolution: 0.0 power: 0.0 mA minDelay: 0

  * [ ] test_audio

phablet@ubuntu-phablet:~$ test_audio Audio device API version 0200 doesn't match platform current 3004.test_audio: test_audio.c:71: main: Assertion `audiohw->common.version == AUDIO_DEVICE_API_VERSION_CURRENT' failed. Aborted

  * [ ] test_camera

phablet@ubuntu-phablet:~$ test_camera Problem connecting to camera

  * [x] test_input

phablet@ubuntu-phablet:~$ test_input fatal error opening "/sys/power/wake_lock": Permission denied fatal error opening "/sys/android_power/acquire_partial_wake_lock": No such file or directory

  * [ ] test_recorder

^Cphablet@ubuntu-phablet:~$ test_recorder Test application for video recording using the camera Recording start with volume up button. And stops with volume down. The result is stored to /root/test_video.avi



<!-- 
Other information goes below this comment. Possible topics of comment may 
include special flashing or building instructions, such as manual effort to
change vendor files.
-->
MightyM17 commented 3 years ago

I am getting this error https://pastebin.com/WbRiSAFr

Edit - Fixed it by changing fstab.espresso

MightyM17 commented 3 years ago

halium-boot.img is too big, Any fixes for that?

Edit - use Heimdall (?)

lloowen commented 3 years ago

MightyM17 have you succeeded in porting Samsung Galaxy Tab2 10.1 p5110 ?

MightyM17 commented 3 years ago

MightyM17 have you succeeded in porting Samsung Galaxy Tab2 10.1 p5110 ?

Not yet, i was trying with a 3.4 kernel but i have found a 3.8 kernel so im working with itnow

lloowen commented 3 years ago

Just started learning how Halium works. So I'm on the first stage of the list shown above. Would be very grateful for some pointers. I thought p5110 needed halium-5.1 as the original Android version was lower than Android 7.1 I used the information from this link to build the manifest file but I can't get past the mka mkbootin stage

MightyM17 commented 3 years ago

It is pretty easy you just need to follow the guide.

I used the information from this link to build the manifest file but I can't get past the mka mkbootin stage

what is your error can you paste it to pastbin or something?

MightyM17 commented 3 years ago

For Update - halium-boot.img has some issues only with ubuntu touch's defconfig edit. In my testing I could install halium-boot.img and the rootfs but my pc cant detect the tab and it shows a blank screen

MightyM17 commented 3 years ago

Also these are the devices - https://github.com/LineageOS/android_device_samsung_espresso3g and https://github.com/LineageOS/android_device_samsung_espressowifi

lloowen commented 3 years ago

It is pretty easy you just need to follow the guide.

I used the information from this link to build the manifest file but I can't get past the mka mkbootin stage

what is your error can you paste it to pastbin or something?

I started again from scratch, this time using the Halium-7.1 tree. I have also gone through the halium documentation using the android_device_samsung_espressowif. But I'm stuck again on with the mka mkbooting. I'm getting this output:

~/HALIUM$ mka mkbooting make: Entering directory '/home/lloowen/HALIUM' build/core/product_config.mk:249: *** Can not locate config makefile for product "aosp_arm". Stop. make: Leaving directory '/home/lloowen/HALIUM'

The biggest problem I have right now is understanding the directory structure of Halium and how it relates to git repositories as well as the file system and directory structure of the hardware.

MightyM17 commented 3 years ago

Looks like your xml file isnt proper can u send it here?

MightyM17 commented 3 years ago

Okay so new start, i will try with Unlegacy-Android/OMAP4-AOSP sources, here is a 3.10 wip kernel https://github.com/OMAP4-AOSP/android_kernel_samsung_espresso/

MightyM17 commented 3 years ago

The repos i used are - Kernel - https://github.com/OMAP4-AOSP/android_kernel_samsung_espresso/tree/wip/3.10 espresso3g - https://github.com/Unlegacy-Android/android_device_samsung_espresso3g espresso - https://github.com/Unlegacy-Android/android_device_samsung_espresso hardware - https://github.com/Unlegacy-Android/android_hardware_ti_omap4 vendors - https://github.com/TheMuppets/proprietary_vendor_ti and https://github.com/TheWiggles/proprietary_vendor_samsung_espresso3g

MightyM17 commented 3 years ago

There were many changes i needed to do locally! for now i am stuck at mka halium-boot


mka halium-boot
make: Entering directory '/home/mighty/Halium'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=
TARGET_PRODUCT=aosp_espresso3g
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.8.0-41-generic-x86_64-with-Ubuntu-20.04-focal
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NOF27B
OUT_DIR=/home/mighty/Halium/out
============================================
halium/hybris-boot/Android.mk:69: ********************* /boot appears to live on /dev/block/platform/omap_hsmmc.1/by-name/KERNEL
halium/hybris-boot/Android.mk:70: ********************* /data appears to live on /dev/block/platform/omap_hsmmc.1/by-name/DATAFS
PRODUCT_COPY_FILES frameworks/base/data/sounds/alarms/ogg/Argon.ogg:system/media/audio/alarms/Argon.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/alarms/ogg/Carbon.ogg:system/media/audio/alarms/Carbon.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/alarms/ogg/Krypton.ogg:system/media/audio/alarms/Krypton.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/alarms/ogg/Neon.ogg:system/media/audio/alarms/Neon.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/alarms/ogg/Osmium.ogg:system/media/audio/alarms/Osmium.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/alarms/ogg/Platinum.ogg:system/media/audio/alarms/Platinum.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Effect_Tick_48k.ogg:system/media/audio/ui/Effect_Tick.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressDelete_120_48k.ogg:system/media/audio/ui/KeypressDelete.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressReturn_120_48k.ogg:system/media/audio/ui/KeypressReturn.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressSpacebar_120_48k.ogg:system/media/audio/ui/KeypressSpacebar.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressStandard_120_48k.ogg:system/media/audio/ui/KeypressStandard.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressInvalid_120_48k.ogg:system/media/audio/ui/KeypressInvalid.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/LowBattery.ogg:system/media/audio/ui/LowBattery.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Trusted_48k.ogg:system/media/audio/ui/Trusted.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/VideoRecord_48k.ogg:system/media/audio/ui/VideoRecord.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/VideoStop_48k.ogg:system/media/audio/ui/VideoStop.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/WirelessChargingStarted.ogg:system/media/audio/ui/WirelessChargingStarted.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/camera_click_48k.ogg:system/media/audio/ui/camera_click.ogg ignored.
build/core/Makefile:34: warning: overriding recipe for target '/home/mighty/Halium/out/target/product/espresso3g/system/lib/libsecnativefeature.so'
build/core/base_rules.mk:316: warning: ignoring old recipe for target '/home/mighty/Halium/out/target/product/espresso3g/system/lib/libsecnativefeature.so'
No private recovery resources for TARGET_DEVICE espresso3g
Building Kernel
make  CFLAGS_MODULE="-fno-pic" -C kernel/samsung/espresso O=/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/usr/bin/ccache arm-linux-androidkernel-" zImage
make[1]: Entering directory '/home/mighty/Halium/kernel/samsung/espresso'
  GEN     /home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/Makefile
  CHK     include/generated/uapi/linux/version.h
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  Using /home/mighty/Halium/kernel/samsung/espresso as source for kernel
  CHK     include/generated/utsrelease.h
make[3]: 'include/generated/mach-types.h' is up to date.
  CALL    /home/mighty/Halium/kernel/samsung/espresso/scripts/checksyscalls.sh
  HOSTLD  scripts/mod/modpost
  CHK     include/generated/compile.h
  CHK     kernel/config_data.h
  Kernel: arch/arm/boot/Image is ready
  Kernel: arch/arm/boot/zImage is ready
make[1]: Leaving directory '/home/mighty/Halium/kernel/samsung/espresso'
Building DTBs
make[1]: Entering directory '/home/mighty/Halium/kernel/samsung/espresso'
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTLD  scripts/mod/modpost
make[1]: Leaving directory '/home/mighty/Halium/kernel/samsung/espresso'
Building Kernel Modules
make[1]: Entering directory '/home/mighty/Halium/kernel/samsung/espresso'
  GEN     /home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/Makefile
  CHK     include/generated/uapi/linux/version.h
  CC      scripts/mod/devicetable-offsets.s
  GEN     scripts/mod/devicetable-offsets.h
  Using /home/mighty/Halium/kernel/samsung/espresso as source for kernel
  HOSTCC  scripts/mod/file2alias.o
  CHK     include/generated/utsrelease.h
make[3]: 'include/generated/mach-types.h' is up to date.
  CALL    /home/mighty/Halium/kernel/samsung/espresso/scripts/checksyscalls.sh
  HOSTLD  scripts/mod/modpost
  Building modules, stage 2.
  MODPOST 0 modules
make[1]: Leaving directory '/home/mighty/Halium/kernel/samsung/espresso'
make ARCH=arm KERNELDIR=/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ OUT=/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km -C hardware/ti/omap4/pvr-source/eurasiacon/build/linux2/omap_android clean && make ARCH=arm KERNELDIR=/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ OUT=/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km -C hardware/ti/omap4/pvr-source/eurasiacon/build/linux2/omap_android CROSS_COMPILE="/usr/bin/ccache arm-linux-androidkernel-" \
    TARGET_DEVICE=blaze
make[1]: Entering directory '/home/mighty/Halium'
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
../common/android/platform_version.mk:63: *** No device prop file (/home/mighty/Halium/out/target/product/espresso3g/system/build.prop). Extracting from build/core/version_defaults.mk
PLATFORM_RELEASE=7.1.1 & PLATFORM_CODENAME=REL
WARNING: Android version is newer than this DDK supports
  RM       /home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/host /home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target /home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/docs
make[1]: Leaving directory '/home/mighty/Halium/hardware/ti/omap4/pvr-source/eurasiacon/build/linux2/omap_android'
make[1]: Entering directory '/home/mighty/Halium'
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
../common/android/platform_version.mk:63: *** No device prop file (/home/mighty/Halium/out/target/product/espresso3g/system/build.prop). Extracting from build/core/version_defaults.mk
PLATFORM_RELEASE=7.1.1 & PLATFORM_CODENAME=REL
WARNING: Android version is newer than this DDK supports
../config/core.mk:480: $(KERNELDIR)/vmlinux does not exist. Kbuild may fail.
make -C /home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ \
KBUILD_SRC=/home/mighty/Halium/kernel/samsung/espresso \
KBUILD_EXTMOD="/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild" -f /home/mighty/Halium/kernel/samsung/espresso/Makefile \

  LD      /home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/built-in.o
  CC [M]  /home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/3rdparty/dc_omapfb3_linux/omaplfb_displayclass.o
/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/3rdparty/dc_omapfb3_linux/omaplfb_displayclass.c:1300:22: warning: 'OMAPLFBInitFBVRAM' defined but not used [-Wunused-function]
 static OMAPLFB_ERROR OMAPLFBInitFBVRAM(OMAPLFB_DEVINFO *psDevInfo,
                      ^
  CC [M]  /home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.o
  CC [M]  /home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/osfunc.o
  CC [M]  /home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/mutils.o
  CC [M]  /home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/mmap.o
  CC [M]  /home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/module.o
  CC [M]  /home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/pdump.o
  CC [M]  /home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/proc.o
/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/proc.c: In function 'pvr_proc_open':
/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/proc.c:226:9: error: implicit declaration of function 'PDE' [-Werror=implicit-function-declaration]
  struct pvr_proc_dir_entry* ppde = PDE_DATA(inode);
         ^
/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/proc.c:138:30: error: invalid type argument of '->' (have 'int')
 #define PDE_DATA(x)    PDE(x)->data;
                              ^
/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/proc.c:226:36: note: in expansion of macro 'PDE_DATA'
  struct pvr_proc_dir_entry* ppde = PDE_DATA(inode);
                                    ^
/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/proc.c: In function 'pvr_proc_write':
/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/proc.c:138:30: error: invalid type argument of '->' (have 'int')
 #define PDE_DATA(x)    PDE(x)->data;
                              ^
/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/proc.c:251:9: note: in expansion of macro 'PDE_DATA'
  ppde = PDE_DATA(inode);
         ^
/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/proc.c: In function 'RemoveProcEntrySeq':
/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/proc.c:730:29: error: dereferencing pointer to incomplete type
  remove_proc_entry(ppde->pde->name, dir);
                             ^
/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/proc.c: In function 'RemovePerProcessProcEntrySeq':
/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/proc.c:773:36: error: dereferencing pointer to incomplete type
         remove_proc_entry(ppde->pde->name, psPerProc->psProcDir);
                                    ^
/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/proc.c: In function 'RemovePerProcessProcDir':
/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/proc.c:824:36: error: dereferencing pointer to incomplete type
         while (psPerProc->psProcDir->subdir)
                                    ^
/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/proc.c:828:49: error: dereferencing pointer to incomplete type
             RemoveProcEntry(psPerProc->psProcDir->subdir->name);
                                                 ^
/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/proc.c:830:45: error: dereferencing pointer to incomplete type
         RemoveProcEntry(psPerProc->psProcDir->name);
                                             ^
/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/proc.c: In function 'RemoveProcEntries':
/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/proc.c:870:12: error: dereferencing pointer to incomplete type
  while (dir->subdir)
            ^
/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/proc.c:874:22: error: dereferencing pointer to incomplete type
   RemoveProcEntry(dir->subdir->name);
                      ^
cc1: all warnings being treated as errors
make[6]: *** [/home/mighty/Halium/kernel/samsung/espresso/scripts/Makefile.build:309: /home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild/services4/srvkm/env/linux/proc.o] Error 1
make[5]: *** [/home/mighty/Halium/kernel/samsung/espresso/Makefile:1228: _module_/home/mighty/Halium/out/target/product/espresso3g/obj/KERNEL_OBJ/pvr-km/target/kbuild] Error 2
make[4]: *** [Makefile:130: sub-make] Error 2
make[3]: *** [Makefile:26: all] Error 2
make[2]: *** [eurasiacon/build/linux2/kbuild/kbuild.mk:56: kbuild] Error 2
make[1]: *** [../config/core.mk:711: build] Error 2
make[1]: Leaving directory '/home/mighty/Halium/hardware/ti/omap4/pvr-source/eurasiacon/build/linux2/omap_android'
make: *** [hardware/ti/omap4/pvr-km.mk:22: BUILD_PVR] Error 2
make: Leaving directory '/home/mighty/Halium'

#### make failed to build some targets (36 seconds) ####
MightyM17 commented 3 years ago

I hope someone can help me here, I wont be having much time for halium

SakiiCode commented 3 years ago

I tried copying Unlegacy-Android's CM12.1 manifest to halium, it worked at the beginning, then at some point gave FATAL: Kernel too old error (it's 3.0.x only).

Then replaced its kernel with TI's 3.10.y branch and got into the endless loop of fixing driver compilation errors. The android_hardware_ti_omap repo seems to be outdated for this purpose but don't know much about it

MightyM17 commented 3 years ago

Yes even i faced that problem the hardware_ti_omap is ancient

MightyM17 commented 3 years ago

Device boots into power reset mode maybe the kernel panics :(

MightyM17 commented 3 years ago

halium boot doesnt work at all, hybris boot atleast boots

MightyM17 commented 3 years ago

Update: It finally boots!! Using https://github.com/Unlegacy-Android/android_kernel_ti_omap4/tree/3.4/common/ with XZ compression the boot image finally fits for the tab, no more power reset mode. No display yet. test_hwcomposer fails with Segmantation fault. Here are more logs

phablet@ubuntu-phablet:~$ sudo unity-system-compositor --debug-without-dm 
[2021-05-15 07:50:18.438629] <information> mirserver: Starting
[2021-05-15 07:50:18.461883] < - debug - > mirserver: Not using logind for session management: Seat has no active session
[2021-05-15 07:50:18.465393] < - debug - > mirserver: Using Linux VT subsystem for session management
[2021-05-15 07:50:18.469024] <information> mircommon: Loading modules from: /usr/lib/arm-linux-gnueabihf/mir/server-platform
[2021-05-15 07:50:18.470245] <information> mircommon: Loading module: /usr/lib/arm-linux-gnueabihf/mir/server-platform/graphics-android.so.15
[2021-05-15 07:50:18.471160] <information> mircommon: Loading module: /usr/lib/arm-linux-gnueabihf/mir/server-platform/graphics-android-caf.so.15
[2021-05-15 07:50:18.471832] <information> mircommon: Loading module: /usr/lib/arm-linux-gnueabihf/mir/server-platform/input-evdev.so.7
[2021-05-15 07:50:18.486358] <information> mirplatform: Found graphics driver: mir:android (version 1.1.0) Support priority: 256
[2021-05-15 07:50:18.488250] <information> mirplatform: Found graphics driver: mir:android-caf (version 1.1.0) Support priority: 0
[2021-05-15 07:50:18.489990] <information> mirserver: Selected driver: mir:android (version 1.1.0)
library "libgui.so" wasn't loaded and RTLD_NOLOAD prevented it
library "libPVROGL.so" not found
library "libPVROCL.so" not found
failed to open gralloc module with both version 0 and 1 methods
unity-system-compositor: gralloc.c:125: hybris_gralloc_initialize: Assertion `NULL' failed.
Aborted
RealTheHexagon commented 3 years ago

Hey, I have a espressowifi. Can I help with the porting? Just send me your manifest

MightyM17 commented 3 years ago

I dont have a manifest for now as i was hopping through many sources but here are what I used Kernel - https://github.com/Unlegacy-Android/android_kernel_ti_omap4/blob/3.4/common/ Device - https://github.com/Unlegacy-Android/android_device_samsung_espresso/tree/aosp-7.1/ (this is espressowifi) https://github.com/Unlegacy-Android/android_device_samsung_espresso3g/tree/aosp-7.1/ (espresso3g) Hardware - https://github.com/Unlegacy-Android/android_hardware_ti_omap4 (You have to add libcorkscrew stuff from this commit https://github.com/Unlegacy-Android/android_hardware_ti_omap4/commit/5ce609532556c5a141a68b4ace981fbb6a580e1d) Vendor - https://github.com/Unlegacy-Android/proprietary_vendor_samsung/tree/aosp-7.1 https://github.com/Unlegacy-Android/proprietary_vendor_ti

RealTheHexagon commented 3 years ago

Thanks. I'll start building, and let you know.

MightyM17 commented 3 years ago

Also you need to change the defconfig, add these to espresso_defconfig

CONFIG_KERNEL_GZIP=n
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_KERNEL_XZ=y

(Also do the normal ubports/halium changes)

RealTheHexagon commented 3 years ago

Wait, do I add the libcorkscrew back?

MightyM17 commented 3 years ago

Yes add it back

MightyM17 commented 2 years ago

Ubuntu touch boots and works with ui!

RealTheHexagon commented 2 years ago

dude how??? i thought that device hated ub touch

MightyM17 commented 2 years ago

Haha, it doesnt, I can upload the system.img and halium-boot.img and/or upload the sources I used to build :D

RealTheHexagon commented 2 years ago

Just update all your sources. I cant port rn, because I have exams coming up and I have to prepare.

MightyM17 commented 2 years ago

I'll put the repo links here device/samsung/espresso - https://github.com/Unlegacy-Android/android_device_samsung_espresso device/samsung/espresso3g - https://github.com/Unlegacy-Android/android_device_samsung_espresso3g device/sample - https://android.googlesource.com/device/sample (only needed for espresso3g because of

# Get the long list of APNs
PRODUCT_COPY_FILES += \
    device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml

can remove this line kernel/ti/omap4 - https://github.com/MightyM17/android_kernel_ti_omap4/tree/halium hardware/ti/omap4 - https://github.com/Unlegacy-Android/android_hardware_ti_omap4 vendor/ti - https://github.com/Unlegacy-Android/proprietary_vendor_ti vendor/samsung - https://github.com/Unlegacy-Android/proprietary_vendor_samsung

RealTheHexagon commented 2 years ago

Cool. When my exams finish up, I'll have a look.

omsourabh commented 2 years ago

hello, I would like to collaborate on this project. I have a test device, and some history of programming. however this would be my first shot of anything like this. Any read-me or getting started guide as suggestion to get me to speed on this? I wouldn't mind refreshing some basics too if you guys have suggestions.

MightyM17 commented 2 years ago

Hello there! The guide to port halium is here -> https://docs.halium.org/en/latest/ and for ubuntu touch is -> https://docs.ubports.com/en/latest/ I've linked the device specific repos above!

omsourabh commented 2 years ago

getting error on the step: breakfast espresso3g

this is my manifest

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="unlegacy" fetch="https://github.com/Unlegacy-Android" revision="stable"/>
<remote name="MightyM17" fetch="https://github.com/MightyM17" revision="halium"/>

<project path="device/samsung/espresso" name="android_device_samsung_espresso" remote="unlegacy" revision="stable" />
<project path="device/samsung/espresso3g" name="android_device_samsung_espresso3g" remote="unlegacy" revision="stable" />
<project path="device/sample" name="android_sampe" remote="aosp"/>

<project path="kernel/ti/omap4" name="android_kernel_ti_omap4" remote="MightyM17" revision="halium" />
<project path="vendor/ti" name="proprietary_vendor_ti" remote="unlegacy" revision="stable" />
<project path="vendor/samsung" name="proprietary_vendor_samsung" remote="unlegacy" revision="stable" />
<project path="vendor/samsung" name="proprietary_vendor_samsung" remote="them" revision="cm-14.1" />
<project path="hardware/ti/omap4" name="android_hardware_ti_omap4" remote="unlegacy"  revision="stable"/>
</manifest>
MightyM17 commented 2 years ago

And the error is? Also, revision should be aosp-7.1 for android_device_samsung_espresso, android_device_samsung_espresso3g, proprietary_vendor_samsung and why do you have 2 vendor/samsung?

omsourabh commented 2 years ago

And the error is? Also, revision should be aosp-7.1 for android_device_samsung_espresso, android_device_samsung_espresso3g, proprietary_vendor_samsung and why do you have 2 vendor/samsung?

about the 2 vendors: I started with official documentation and then added specifics you shared in the thread above. I kept both the sources in the manifest since i thought it may fallback on other source.

thanks for sharing the revision correction, i have modified my Manifest and sharing here for reference/review.

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="unlegacy" fetch="https://github.com/Unlegacy-Android" />
<remote name="MightyM17" fetch="https://github.com/MightyM17" />

<project path="device/samsung/espresso" name="android_device_samsung_espresso" remote="unlegacy" revision="aosp-7.1" />
<project path="device/samsung/espresso3g" name="android_device_samsung_espresso3g" remote="unlegacy" revision="aosp-7.1" />
<project path="device/sample" name="device/sample" remote="aosp"/>
<project path="kernel/ti/omap4" name="android_kernel_ti_omap4" remote="MightyM17" revision="halium" />
<project path="vendor/ti" name="proprietary_vendor_ti" remote="unlegacy" revision="stable" />
<project path="vendor/samsung" name="proprietary_vendor_samsung" remote="unlegacy" revision="aosp-7.1" />
<project path="hardware/ti/omap4" name="android_hardware_ti_omap4" remote="unlegacy"  revision="stable"/>
</manifest>

Steps i performed since my last visit are:

  1. Manifest correction
  2. running "repo sync" and correcting errors with conflicts with earlier synced data
  3. running "./halium/devices/setup espresso3g"
  4. running "source build/envsetup.sh"
  5. running "breakfast espresso3g"

I am still getting error though while running "breakfast espresso3g" and I am not able to figure it out yet. I'll revisit your notes in case i missed something else. here is the error:

:~/halium$ breakfast espresso3g
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_espresso3g".  Stop.
build/core/product_config.mk:249: *** Can not locate config makefile for product "cm_espresso3g".  Stop.
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_espresso3g".  Stop.
Device espresso3g not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Found repository: android_device_samsung_espresso3g
Traceback (most recent call last):
  File "/home/sourabh/halium/vendor/cm/build/tools/roomservice.py", line 263, in <module>
    default_revision = get_default_revision()
  File "/home/sourabh/halium/vendor/cm/build/tools/roomservice.py", line 115, in get_default_revision
    d = m.findall('default')[0]
IndexError: list index out of range
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_espresso3g".  Stop.
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_espresso3g".  Stop.

** Don't have a product spec for: 'lineage_espresso3g'
** Do you have the right repo manifest?

PS: found similar error here: https://forum.xda-developers.com/t/help-building-lineageos-13-for-unsupported-device.3734698/ will understand and explore this too

Edit: so need to figure-out how to modify .repo/manifest correctly so it picks a correct revision.

######### After a break .... #########

exploring with lunch command here is what i got

lunch

You're building on Linux

Breakfast menu... pick a combo:
 1. aosp_arm64-eng       3. aosp_espresso3g-userdebug    5. aosp_mips64-eng          7. aosp_x86_64-eng 
 2. aosp_arm-eng         4. aosp_espresso-userdebug      6. aosp_mips-eng        8. aosp_x86-eng 
... and don't forget the bacon!

Which would you like? [aosp_arm-eng] aosp_espresso3g-eng
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=
TARGET_PRODUCT=aosp_espresso3g
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.13.0-27-generic-x86_64-with-glibc2.34
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NOF27B
OUT_DIR=/home/sourabh/halium/out
============================================

######### some more time breaks, and more changes #########

modified manifest further, traced back some steps. now able to run breakfast or lunch commands successfully. down to image building steps, getting this error while running "mka mkbootimg":


============================================
halium/hybris-boot/Android.mk:69: ********************* /boot appears to live on /dev/block/mmcblk0p5 /dev/block/platform/omap_hsmmc.1/by-name/KERNEL
halium/hybris-boot/Android.mk:70: ********************* /data appears to live on /dev/block/platform/omap_hsmmc.1/by-name/DATAFS
halium/hybris-boot/Android.mk:73: *** There should be a one and only one device entry for HYBRIS_BOOT_PART and HYBRIS_DATA_PART.
make: *** [build/core/ninja.mk:167: /home/sourabh/halium/out/build-lineage_espresso3g.ninja] Error 1
MightyM17 commented 2 years ago

For

halium/hybris-boot/Android.mk:69: ********************* /boot appears to live on /dev/block/mmcblk0p5 /dev/block/platform/omap_hsmmc.1/by-name/KERNEL
halium/hybris-boot/Android.mk:70: ********************* /data appears to live on /dev/block/platform/omap_hsmmc.1/by-name/DATAFS
halium/hybris-boot/Android.mk:73: *** There should be a one and only one device entry for HYBRIS_BOOT_PART and HYBRIS_DATA_PART.
make: *** [build/core/ninja.mk:167: /home/sourabh/halium/out/build-lineage_espresso3g.ninja] Error 1

check <BUILDDIR>/halium/hybris-boot/fixup-mountpoints with https://github.com/Unlegacy-Android/android_device_samsung_espresso/blob/aosp-7.1/rootdir/fstab.espresso and do the necessary changes

omsourabh commented 2 years ago

mka mkbootimg through

facing this on mka halium-boot command ¯_(ツ)_/¯

[ 44% 4/9] Building Kernel
FAILED: /bin/bash -c "(make -j16  CFLAGS_MODULE=\"-fno-pic\" -C kernel/ti/omap4 O=/home/sourabh/halium/out/target/product/espresso3g/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" arm-linux-androidkernel-\" zImage ) && (if grep -q '^CONFIG_OF=y' /home/sourabh/halium/out/target/product/espresso3g/obj/KERNEL_OBJ/.config; then             echo \"Building DTBs\";             make -j16  CFLAGS_MODULE=\"-fno-pic\" -C kernel/ti/omap4 O=/home/sourabh/halium/out/target/product/espresso3g/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" arm-linux-androidkernel-\" dtbs;         fi ) && (if grep -q '^CONFIG_MODULES=y' /home/sourabh/halium/out/target/product/espresso3g/obj/KERNEL_OBJ/.config; then             echo \"Building Kernel Modules\";           make -j16  CFLAGS_MODULE=\"-fno-pic\" -C kernel/ti/omap4 O=/home/sourabh/halium/out/target/product/espresso3g/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" arm-linux-androidkernel-\" modules;      fi )"
make: Entering directory '/home/sourabh/halium/kernel/ti/omap4'
  GEN     /home/sourabh/halium/out/target/product/espresso3g/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
  GEN     /home/sourabh/halium/out/target/product/espresso3g/obj/KERNEL_OBJ/Makefile
  CHK     include/linux/version.h
  CC      scripts/mod/empty.o
  HOSTLD  scripts/dtc/dtc
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x30): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
collect2: error: ld returned 1 exit status
make[3]: *** [scripts/Makefile.host:127: scripts/dtc/dtc] Error 1
make[2]: *** [/home/sourabh/halium/kernel/ti/omap4/scripts/Makefile.build:454: scripts/dtc] Error 2
make[2]: *** Waiting for unfinished jobs....
  HOSTLD  scripts/mod/modpost
make[1]: *** [/home/sourabh/halium/kernel/ti/omap4/Makefile:506: scripts] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:130: sub-make] Error 2
make: Leaving directory '/home/sourabh/halium/kernel/ti/omap4'
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
make: Leaving directory '/home/sourabh/halium'

#### make failed to build some targets (5 seconds) ####
MightyM17 commented 2 years ago

mka mkbootimg through

facing this on mka halium-boot command ¯(ツ)

[ 44% 4/9] Building Kernel
FAILED: /bin/bash -c "(make -j16  CFLAGS_MODULE=\"-fno-pic\" -C kernel/ti/omap4 O=/home/sourabh/halium/out/target/product/espresso3g/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" arm-linux-androidkernel-\" zImage ) && (if grep -q '^CONFIG_OF=y' /home/sourabh/halium/out/target/product/espresso3g/obj/KERNEL_OBJ/.config; then           echo \"Building DTBs\";             make -j16  CFLAGS_MODULE=\"-fno-pic\" -C kernel/ti/omap4 O=/home/sourabh/halium/out/target/product/espresso3g/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" arm-linux-androidkernel-\" dtbs;         fi ) && (if grep -q '^CONFIG_MODULES=y' /home/sourabh/halium/out/target/product/espresso3g/obj/KERNEL_OBJ/.config; then             echo \"Building Kernel Modules\";           make -j16  CFLAGS_MODULE=\"-fno-pic\" -C kernel/ti/omap4 O=/home/sourabh/halium/out/target/product/espresso3g/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=\" arm-linux-androidkernel-\" modules;      fi )"
make: Entering directory '/home/sourabh/halium/kernel/ti/omap4'
  GEN     /home/sourabh/halium/out/target/product/espresso3g/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
  GEN     /home/sourabh/halium/out/target/product/espresso3g/obj/KERNEL_OBJ/Makefile
  CHK     include/linux/version.h
  CC      scripts/mod/empty.o
  HOSTLD  scripts/dtc/dtc
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x30): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
collect2: error: ld returned 1 exit status
make[3]: *** [scripts/Makefile.host:127: scripts/dtc/dtc] Error 1
make[2]: *** [/home/sourabh/halium/kernel/ti/omap4/scripts/Makefile.build:454: scripts/dtc] Error 2
make[2]: *** Waiting for unfinished jobs....
  HOSTLD  scripts/mod/modpost
make[1]: *** [/home/sourabh/halium/kernel/ti/omap4/Makefile:506: scripts] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:130: sub-make] Error 2
make: Leaving directory '/home/sourabh/halium/kernel/ti/omap4'
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
make: Leaving directory '/home/sourabh/halium'

#### make failed to build some targets (5 seconds) ####

Easy fix, instead of YYLTYPE yylloc; make it extern YYLTYPE yylloc; If that fails, remove them like https://review.lineageos.org/c/LineageOS/android_kernel_oneplus_sm8150/+/273023 Mostly happens due to gcc10 defaulting to -fno-common

pistasjis commented 2 years ago

Hi! How do I get started trying to build this? I'd like to try it on my device, but I have no idea where to even get this.

yxles-dev commented 1 year ago

Hello there! I also encountered @omsourabh error when running the command "breakfast espresso3g"

ubuntu@denpc:~/halium$ breakfast espresso3g
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_espresso3g".  Stop.
build/core/product_config.mk:249: *** Can not locate config makefile for product "cm_espresso3g".  Stop.
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_espresso3g".  Stop.
Device espresso3g not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Found repository: android_device_samsung_espresso3g
Traceback (most recent call last):
  File "/home/deniel/halium/vendor/cm/build/tools/roomservice.py", line 263, in <module>
    default_revision = get_default_revision()
  File "/home/deniel/halium/vendor/cm/build/tools/roomservice.py", line 115, in get_default_revision
    d = m.findall('default')[0]
IndexError: list index out of range
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_espresso3g".  Stop.
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_espresso3g".  Stop.

** Don't have a product spec for: 'lineage_espresso3g'
** Do you have the right repo manifest?

How do I fix this? (this is my first time doing this stuff fyi)

yxles-dev commented 1 year ago

This is the manifest incase its needed

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
        <remote  name="espresso3g"
                 fetch="https://github.com/yxles-dev"
                 revision="aosp-7.1" />

        <project path="device/samsung/espresso3g" name="android_device_samsung_espresso3g" remote="espresso3g" />

        <!-- Project Depedencies -->
        <project path="kernel/ti/omap4" name="android_kernel_ti_omap4" remote="espresso3g" revision="3.4/common" />
        <project path="hardware/ti/omap4" name="android_hardware_ti_omap4" remote="espresso3g" revision="stable" />
        <project path="vendor/ti" name="proprietary_vendor_ti" remote="espresso3g" revision="stable" />
        <project path="vendor/samsung" name="proprietary_vendor_samsung" remote="espresso3g" />
</manifest>

I'm only building this for espresso3g so I didn't include the espressowifi stuff

MightyM17 commented 1 year ago

Will not work, you need espressowifi device tree for espresso3g as well as 3g tree is based on it

yxles-dev commented 1 year ago

Will not work, you need espressowifi device tree for espresso3g as well as 3g tree is based on it

oh ok thx I'll try with espressowifi again and see if it works

yxles-dev commented 1 year ago

Hello there! I also encountered @omsourabh error when running the command "breakfast espresso3g"

ubuntu@denpc:~/halium$ breakfast espresso3g
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_espresso3g".  Stop.
build/core/product_config.mk:249: *** Can not locate config makefile for product "cm_espresso3g".  Stop.
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_espresso3g".  Stop.
Device espresso3g not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Found repository: android_device_samsung_espresso3g
Traceback (most recent call last):
  File "/home/deniel/halium/vendor/cm/build/tools/roomservice.py", line 263, in <module>
    default_revision = get_default_revision()
  File "/home/deniel/halium/vendor/cm/build/tools/roomservice.py", line 115, in get_default_revision
    d = m.findall('default')[0]
IndexError: list index out of range
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_espresso3g".  Stop.
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_espresso3g".  Stop.

** Don't have a product spec for: 'lineage_espresso3g'
** Do you have the right repo manifest?

How do I fix this? (this is my first time doing this stuff fyi)

I'm still getting this error even with espressowifi device tree

yxles-dev commented 1 year ago

When executing "source build/envsetup.sh" it seems that my manifest works

ubuntu@denpc:~/halium$ source build/envsetup.sh
including device/samsung/espresso3g/vendorsetup.sh
including device/samsung/espresso/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/bash_completion/git.bash
including vendor/cm/bash_completion/repo.bash
MightyM17 commented 1 year ago

Hello there! I also encountered @omsourabh error when running the command "breakfast espresso3g"

ubuntu@denpc:~/halium$ breakfast espresso3g
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_espresso3g".  Stop.
build/core/product_config.mk:249: *** Can not locate config makefile for product "cm_espresso3g".  Stop.
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_espresso3g".  Stop.
Device espresso3g not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Found repository: android_device_samsung_espresso3g
Traceback (most recent call last):
  File "/home/deniel/halium/vendor/cm/build/tools/roomservice.py", line 263, in <module>
    default_revision = get_default_revision()
  File "/home/deniel/halium/vendor/cm/build/tools/roomservice.py", line 115, in get_default_revision
    d = m.findall('default')[0]
IndexError: list index out of range
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_espresso3g".  Stop.
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_espresso3g".  Stop.

** Don't have a product spec for: 'lineage_espresso3g'
** Do you have the right repo manifest?

How do I fix this? (this is my first time doing this stuff fyi)

I'm still getting this error even with espressowifi device tree

What does lunch show you?

yxles-dev commented 1 year ago

Here

deniel@denpc:~/halium$ lunch

You're building on Linux

Breakfast menu... pick a combo:
 1. full-eng 
... and don't forget the bacon!

Which would you like? [aosp_arm-eng] 
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.15.0-43-generic-x86_64-with-glibc2.35
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NOF27B
OUT_DIR=/home/deniel/halium/out
============================================
MightyM17 commented 1 year ago

Hm that should show you espresso3g in it, ok do these commands source build/envsetup.sh and then lunch. What is the output now?

yxles-dev commented 1 year ago

Hm that should show you espresso3g in it, ok do these commands source build/envsetup.sh and then lunch. What is the output now?

Yeah here

deniel@denpc:~/halium$ lunch

You're building on Linux

Breakfast menu... pick a combo:
 1. aosp_arm64-eng       5. aosp_mips64-eng 
 2. aosp_arm-eng         6. aosp_mips-eng 
 3. aosp_espresso3g-userdebug    7. aosp_x86_64-eng 
 4. aosp_espresso-userdebug      8. aosp_x86-eng 
... and don't forget the bacon!

Which would you like? [aosp_arm-eng] aosp_espresso3g-userdebug
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=
TARGET_PRODUCT=aosp_espresso3g
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.15.0-43-generic-x86_64-with-glibc2.35
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NOF27B
OUT_DIR=/home/deniel/halium/out
============================================