Starting TWRP 3.2.1-0-baeabc5b-dirty on Wed Jan 17 12:34:50 2018 (pid 1731)I:=> device id not found, using 'serialno'BOARD_HAS_NO_REAL_SDCARD := trueTW_NO_REBOOT_RECOVERY := trueTW_NO_REBOOT_BOOTLOADER := trueRECOVERY_SDCARD_ON_DATA := trueTW_ALWAYS_RMRF := trueTW_NEVER_UNMOUNT_SYSTEM := trueI:Lun file '/sys/class/android_usb/android0/f_mass_storage/lun0/file' does not exist, USB storage mode disabledI:Found brightness file at '/sys/devices/pci0000:00/0000:00:01.0/0000:01:05.0/drm/card0/card0-LVDS-1/radeon_bl0/brightness'I:TWFunc::Set_Brightness: Setting brightness control to 149I:TW_EXCLUDE_MTP := trueI:LANG: enStarting the UI...setting DRM_FORMAT_BGRA8888 and GGL_PIXEL_FORMAT_BGRA_8888setting DRM_FORMAT_ARGB8888 and GGL_PIXEL_FORMAT_BGRA_8888, GGL_PIXEL_FORMAT may not match!mmap() failed: Invalid argumentsetting DRM_FORMAT_ARGB8888 and GGL_PIXEL_FORMAT_BGRA_8888, GGL_PIXEL_FORMAT may not match!mmap() failed: Invalid argumentfb0 reports (possibly inaccurate): vi.bits_per_pixel = 32 vi.red.offset = 16 .length = 8 vi.green.offset = 8 .length = 8 vi.blue.offset = 0 .length = 8setting GGL_PIXEL_FORMAT_BGRA_8888single bufferedRECOVERY_BGRAframebuffer: 0 (1600 x 900)Using fbdev graphics.I:TWFunc::Set_Brightness: Setting brightness control to 149I:Loading package: splash (/twres/splash.xml)I:Load XML directlyI:PageManager::LoadFileToBuffer loading filename: '/twres/splash.xml' directlyI:Checking resolution...I:Scaling theme width 0.833333x and height 0.750000x, offsets x: 0 y: 0 w: 0 h: 0I:Loading resources...I:Loading variables...I:Loading mouse cursor...I:Loading pages...I:Loading page splashI am attempting to port TWRP to Android-x86. This in itself has a few challenges I have yet to address since most android devices use partitions and we use a single partition. That isn't the problem yet, I figured I'd address that once I got the GUI to boot, which IS my problem.Things I've done so far:
- Hybrid sources from omni and android-x86
- Get build system to compile
- Modify android-x86 initrd to load recovery if RECOVERY=1 passed via kernel cmdline
- Modify android-x86 initrd's script to "detect android-x86" only on a writable partition if booting recovery (idea is to allow you to use TWRP from an ISO to modify an installed copy in case its foobar'd)
- No dependency on an existing or working system folder (modules/firmware in ramdisk)
But, I cannot actually load the GUI. It gets to stage "Loading page splash" then just dies with error 11 (segfault). The only info I have is that its "Loading page splash" as thats the last thing in recovery.log
I assume the problem is with minui and how android-x86 does graphics, and was hoping someone could give me a little more information on how exactly android-x86 does its graphics, and if I am missing a custom init.rc daemon to do so.
function init_hal_gralloc()
{
case "$(cat /proc/fb | head -1)" in
*virtiodrmfb)
if [ "$HWACCEL" != "0" ]; then
set_property ro.hardware.hwcomposer drm
set_property ro.hardware.gralloc gbm
fi
;;
0*inteldrmfb|0*radeondrmfb|0*nouveaufb|0*svgadrmfb|0*amdgpudrmfb)
if [ "$HWACCEL" != "0" ]; then
set_property ro.hardware.gralloc drm
set_drm_mode
fi
;;
"")
init_uvesafb
;&
0*)
;;
esac
[ -n "$DEBUG" ] && set_property debug.egl.trace error As for progress, I bypassed a few issues using uvesafb, disabling cursor blink, and setting the console to tty2. Touch requires double tapping at the moment but it's usable.
More soon.
Could TWRP be used as an alternative way to install android-x86?
Mauro
--
You received this message because you are subscribed to a topic in the Google Groups "Android-x86" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-x86/TZlAFbjavKg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-x86...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
The TWRP build with your auto detect worked except drm so I just made it so TWRP mode doesn't exclude drm_kms like default. There are a few modifications I made to the initrd. All the current code in the iso I released is on my git with the links in a previous post.
I've tried to make my modifications not break existing functionality in case you desire to more TWRP into future releases but I may have missed some stuff. After about 4 days straight working on it I needed as break but wanted to get as public build out. :)
I am attempting to port TWRP to Android-x86. This in itself has a few challenges I have yet to address since most android devices use partitions and we use a single partition. That isn't the problem yet, I figured I'd address that once I got the GUI to boot, which IS my problem.Things I've done so far:
- Hybrid sources from omni and android-x86
- Get build system to compile
- Modify android-x86 initrd to load recovery if RECOVERY=1 passed via kernel cmdline
- Modify android-x86 initrd's script to "detect android-x86" only on a writable partition if booting recovery (idea is to allow you to use TWRP from an ISO to modify an installed copy in case its foobar'd)
- No dependency on an existing or working system folder (modules/firmware in ramdisk)
But, I cannot actually load the GUI. It gets to stage "Loading page splash" then just dies with error 11 (segfault). The only info I have is that its "Loading page splash" as thats the last thing in recovery.logI assume the problem is with minui and how android-x86 does graphics, and was hoping someone could give me a little more information on how exactly android-x86 does its graphics, and if I am missing a custom init.rc daemon to do so.Once complete, while my TWRP is designed for my HP TouchSmart 300 nwfermi build, should be compatible with most Android x86 instances.Anyone interested?
--
Have you look into Phoenix-OS Initrd.img ,it's able to use graphics and update the os with updater-script.i have seen traces of twrp in its initrd.img.
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.