[Android Software Development] Kapricornus:
I was trying to compile TWRP for Galaxy Gio (BML, armv6).

My commits are based on Shaaan's sources for Galaxy Ace (CM10 branch (same branch used Shaaan and successfully))

What I've got:

1.It is building

2.It is not bricking my device after install

BUT: Screen is blue

Adb shell gives me: "- exec '/system/bin/sh' failed: No such file or directory (2) -"

Adb logcat gives me the same

But I got recovery.log:

Starting TWRP 2.3.0.2 on Mon Jan 7 14:25:57 2013
I:=> hardware id from cpuinfo: 'GT-S5660 Board'
I:=> serial from cpuinfo: '3831df73e83000ec'
I:Single storage only.
I:No internal storage defined.
I:No storage defined, defaulting to /sdcard.
Starting the UI...Pixel format: 320x480 @ 32bpp
Pixel format: BGR_565
framebuffer: fd 4 (320 x 480)
I:Event object: magnetic_sensor
I:EV: ST minX: -131072 maxX: 131072 minY: -131072 maxY: 131072
I:EV: MT minX: 0 maxX: 0 minY: 0 maxY: 0
I:Event object: accelerometer_sensor
I:EV: ST minX: -256 maxX: 256 minY: -256 maxY: 256
I:EV: MT minX: 0 maxX: 0 minY: 0 maxY: 0
I:Event object: sec_key
I:EV: ST minX: 0 maxX: 0 minY: 0 maxY: 0
I:EV: MT minX: 0 maxX: 0 minY: 0 maxY: 0
I:Event object: sec_touchscreen
I:EV: ST minX: 0 maxX: 0 minY: 0 maxY: 0
I:EV: MT minX: 0 maxX: 320 minY: 0 maxY: 480
I:Event object: sec_jack
I:EV: ST minX: 0 maxX: 0 minY: 0 maxY: 0
I:EV: MT minX: 0 maxX: 0 minY: 0 maxY: 0
=> Linking mtab
=> Processing recovery.fstab
I:Processing '/boot'
I:Processing '/recovery'
I:Processing '/cache'
I:Processing '/data'
I:Processing '/system'
I:Processing '/sdcard'
I:Created '/and-sec' folder.
I:Processing '/sd-ext'
Updating partition details...
I:Unmounting main partitions...

Partition Logs:
/boot | /dev/block/bml8 | Size: 8MB
MTD_Name: boot
Backup_Method: flash_utils

/recovery | /dev/block/bml9 | Size: 8MB
MTD_Name: recovery
Backup_Method: flash_utils

/cache | /dev/block/stl14 | Size: 24MB Used: 24MB Free: 0MB Backup Size: 24MB
Flags: Can_Be_Wiped Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent
Primary_Block_Device: /dev/block/stl14
Display_Name: Cache
Backup_Path: /cache
Backup_Name: cache
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files

/data | /dev/block/stl13 | Size: 178MB Used: 103MB Free: 74MB Backup Size: 103MB
Flags: Can_Be_Wiped Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent
Primary_Block_Device: /dev/block/stl13
Display_Name: Data
Backup_Path: /data
Backup_Name: data
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files

/system | /dev/block/stl12 | Size: 206MB Used: 201MB Free: 5MB Backup Size: 201MB
Flags: Can_Be_Wiped Wipe_Available_in_GUI IsPresent
Primary_Block_Device: /dev/block/stl12
Display_Name: System
Backup_Path: /system
Backup_Name: system
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files

/sdcard | /dev/block/mmcblk0p1 | Size: 14534MB Used: 13360MB Free: 1173MB Backup Size: 49MB
Flags: Can_Be_Wiped Removable IsPresent Has_Android_Secure Is_Storage
Symlink_Path: /sdcard/.android_secure
Symlink_Mount_Point: /and-sec
Primary_Block_Device: /dev/block/mmcblk0p1
Alternate_Block_Device: /dev/block/mmcblk0
Display_Name: sdcard
Backup_Path: /and-sec
Backup_Name: and-sec
Storage_Path: /sdcard
Current_File_System: vfat
Fstab_File_System: vfat
Backup_Method: files

/sd-ext | /dev/block/mmcblk0p2 | Size: 503MB Used: 345MB Free: 158MB Backup Size: 345MB
Flags: Can_Be_Wiped Wipe_During_Factory_Reset Wipe_Available_in_GUI Removable IsPresent
Primary_Block_Device: /dev/block/mmcblk0p2
Display_Name: SD-Ext
Backup_Path: /sd-ext
Backup_Name: sd-ext
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files

I:Loading package: TWRP (/script/ui.xml)
I:Loading package: TWRP (/sdcard/TWRP/theme/ui.zip)
I:Loading package: TWRP (/res/ui.xml)
I:Loading resources...
I:Loading variables...
I:Loading pages...
I:Loading page main
I:Loading page main2
I:Loading page install
I:Loading page flash_confirm
I:Loading page flash_zip
I:Loading page flash_done
I:Loading page clear_vars
I:Loading page confirm_action
I:Loading page action_page
I:Loading page action_complete
I:Loading page filecheck
I:Loading page rebootcheck
I:Loading page wipe
I:Loading page backup
I:Loading page backupname1
I:Loading page backupname2
I:Loading page backup_run
I:Loading page restore
I:Unable to open '/sdcard/TWRP/BACKUPS/3831df73e83000ec'
I:Loading page restore_select
I:Loading page renamebackup
I:Loading page restore_run
I:Loading page mount
I:Loading page usb_mount
I:Loading page usb_umount
I:Loading page reboot
I:Loading page settings
I:Loading page timezone
I:Loading page advanced
I:Loading page partsdcard
I:Loading page htcdumlock
I:Loading page lock
I:Loading page filemanagerlist
I:Loading page filemanageroptions
I:Loading page choosedestinationfolder
I:Loading page filemanagerrenamefile
I:Loading page filemanagerrenamefolder
I:Loading page filemanagerchmod
I:Loading page filemanagerconfirm
I:Loading page filemanageracction
I:Loading page decrypt
I:Loading page trydecrypt
I:Loading page terminalfolder
I:Loading page terminalcommand
I:Set page: 'clear_vars'
I:Switching packages (TWRP)
Command: "/sbin/recovery"

ro.serialno=
ro.bootmode=unknown
ro.baseband=unknown
ro.bootloader=unknown
ro.hardware=gt-s5660board
ro.revision=10
ro.emmc=0
ro.boot.emmc=0
ro.factorytest=0
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=1
persist.sys.usb.config=adb,mass_storage
ro.build.id=JZO54K
ro.build.display.id=cm_gio-userdebug 4.1.2 JZO54K eng.konstantin.20130107.160349 test-keys
ro.build.version.incremental=eng.konstantin.20130107.160349
ro.build.version.sdk=16
ro.build.version.codename=REL
ro.build.version.release=4.1.2
ro.build.date=Пнд Янв 7 16:05:39 EET 2013
ro.build.date.utc=0
ro.build.type=userdebug
ro.build.user=konstantin
ro.build.host=ubuntu
ro.build.tags=test-keys
ro.product.model=GT-S5660
ro.product.brand=Samsung
ro.product.name=cm_gio
ro.product.device=gio
ro.product.board=gio
ro.product.cpu.abi=armeabi-v6l
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=Samsung
ro.product.locale.language=en
ro.wifi.channels=
ro.board.platform=msm7x27
ro.build.product=gio
ro.build.description=cm_gio-userdebug 4.1.2 JZO54K eng.konstantin.20130107.160349 test-keys
ro.build.fingerprint=Samsung/cm_gio/gio:4.1.2/JZO54K/eng.konstantin.20130107.160349:userdebug/test-keys
ro.build.characteristics=default
ro.cm.device=gio
ro.opengles.version=131072
ro.sf.lcd_density=160
video.accelerate.hw=1
debug.sf.hw=1
persist.sys.use_dithering=2
debug.sf.no_hw_vsync=1
media.stagefright.enable-player=true
media.stagefright.enable-meta=true
media.stagefright.enable-scan=true
media.stagefright.enable-http=true
media.stagefright.enable-record=true
debug.gr.numframebuffers=3
debug.qctwa.statusbar=1
debug.qctwa.preservebuf=1
com.qc.hardware=true
debug.enabletr=false
debug.hwui.render_dirty_regions=false
rild.libpath=/system/lib/libsec-ril.so
rild.libargs=-d /dev/smd0
ro.ril.gprsclass=10
ro.telephony.ril_class=SamsungMSMRIL
mobiledata.interfaces=pdp0,gprs,ppp0
ro.telephony.call_ring.delay=0
ro.ril.disable.power.collapse=0
DEVICE_PROVISIONED=1
ro.ril.def.agps.mode=2
ro.ril.def.agps.feature=1
wifi.interface=wlan0
wifi.ap.interface=athap0
sys.mem.max_hidden_apps=10
sys.mem.FOREGROUND_APP_ADJ=0
sys.mem.VISIBLE_APP_ADJ=3
sys.mem.PERCEPTIBLE_APP_ADJ=6
sys.mem.BACKUP_APP_ADJ=10
sys.mem.HIDDEN_APP_MIN_ADJ=12
sys.mem.HIDDEN_APP_MAX_ADJ=15
sys.mem.FOREGROUND_APP_MEM=8192
sys.mem.VISIBLE_APP_MEM=12288
sys.mem.PERCEPTIBLE_APP_MEM=30720
sys.mem.BACKUP_APP_MEM=36864
sys.mem.HIDDEN_APP_MIN_MEM=41984
sys.mem.HIDDEN_APP_MAX_MEM=48128
dalvik.vm.lockprof.threshold=500
dalvik.vm.dexopt-flags=m=y
dalvik.vm.heapstartsize=5m
dalvik.vm.heapgrowthlimit=24m
dalvik.vm.heapsize=64m
dalvik.vm.execution-mode=int:jit
dalvik.vm.dexopt-data-only=1
dalvik.vm.verify_bytecode=false
dalvik.vm.checkjni=0
persist.service.adb.enable=1
ro.vold.umsdirtyratio=20
debug.camcorder.disablemeta=1
ro.rommanager.developerid=cyanogenmod
keyguard.no_require_sim=true
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html
ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html
ro.com.google.clientidbase=android-google
ro.com.android.wifi-watchlist=GoogleGuest
ro.setupwizard.enterprise_mode=1
ro.com.android.dateformat=MM-dd-yyyy
ro.com.android.dataroaming=false
ro.cm.version=10-20130107-UNOFFICIAL-gio
ro.modversion=10-20130107-UNOFFICIAL-gio
ro.config.ringtone=Ring_Digital_02.ogg
ro.config.notification_sound=F1_New_SMS.ogg
ro.config.alarm_alert=Alarm_Beep_03.ogg
ro.carrier=unknown
net.bt.name=Android
net.change=net.bt.name
dalvik.vm.stack-trace-file=/data/anr/traces.txt
init.svc.ueventd=running
init.svc.recovery=running
init.svc.adbd=running

I:Set page: 'main2'
I:Attempt to load settings from settings file...
I:Version number saved to '/sdcard/TWRP/.version'
I:Switching packages (TWRP)

My source code is here

Shaaan says that it is kernel problem, but cm10 is working with the same kernel, I have also tried cm9 kernel (everything the same) and cm10.1 kernel (windows even does not recognize my device) with the same device config.

BTW I have tried with and without TARGET_RECOVERY_PIXEL_FORMAT := "RGB_565" with no result

Is there any advice for me?