[G1 Android Development] rainabba:
No CompCache on Sapphire 32B because xvmalloc.ko throws "Exec format error"

I'm getting reloads too with almost any activity. I'm running sapphire also and have used the commands above, but I think I know where my trouble is, and he may be experiencing the same.

Follow the commands/output below (I edited out a bit of the unrelated stuff):

# /system/bin/swap -s
/system/bin/swap -s

*** CompCache ***
compcache_en=1
cc_memlimit=16
cc_disksize=32
cc_backingswap_en=1
cc_backingswap=/dev/block/mmcblk0p3
swappiness=40

*** Linux Swap ***
linux_swap_en=1
linux_swap_partition=/dev/block/mmcblk0p3

*** VM ***
sys_vm_en=1
page_cluster=0
laptop_mode=0
dirty_expire_centisecs=4500
dirty_writeback_centisecs=750
dirty_background_ratio=5
dirty_ratio=10

*** CPU ***
proc_cpu_en=1
scaling_min_freq=245760
scaling_max_freq=528000
sampling_rate=2000000
powersave_bias=0
up_threshold=45

=== CompCache status ===
CompCache version 0.6+
!!!ERROR Compcache disabled
CompCache: MemLimit (system) 16384(user)
CompCache: BackingSwap (system) /dev/block/mmcblk0p3(user)
!!! Unable to set compcache cc_swappiness to user specific "40"
Current system value is "60"

=== CompCache status output ===
Failed to open /dev/block/ramzswap0: No such file or directory

=== VM status ===
ERROR!!! Set VM: page-cluster - 3(system) 0(user)
Set VM: laptop_mode - 0(system) 0(user)
ERROR!!! Set VM: dirty_expire_centisecs - 3000(system) 4500(user)
ERROR!!! Set VM: dirty_writeback_centisecs - 500(system) 750(user)
Set VM: dirty_background_ratio - 5(system) 5(user)
Set VM: dirty_ratio - 10(system) 10(user)

=== CPU status ===
Set CPU: scaling_min_freq - 245760(system) 245760(user)
Set CPU: scaling_max_freq - 528000(system) 528000(user)
ERROR!!! Set CPU: sampling_rate - 200000(system) 2000000(user)
Set CPU: powersave_bias - 0(system) 0(user)
ERROR!!! Set CPU: up_threshold - 40(system) 45(user)

# insmod /system/sd/modules/xvmalloc.ko
insmod /system/sd/modules/xvmalloc.ko
insmod: can't open '/system/sd/modules/xvmalloc.ko'
# find / -name xvmalloc.ko
find / -name xvmalloc.ko
/system/modules/lib/modules/2.6.29.6-jac-ski/compcache/xvmalloc.ko
# ln -s /system/modules/lib/modules/2.6.29.6-jac-ski/compcache/xvmalloc.ko /system/sd/modules/xvmalloc.ko
ln -s /system/modules/lib/modules/2.6.29.6-jac-ski/compcache/xvmalloc.ko /system/sd/modules/xvmalloc.ko
link failed No such file or directory
# mkdir /system/sd/modules
mkdir /system/sd/modules
# ln -s /system/modules/lib/modules/2.6.29.6-jac-ski/compcache/xvmalloc.ko /system/sd/modules/xvmalloc.ko
ln -s /system/modules/lib/modules/2.6.29.6-jac-ski/compcache/xvmalloc.ko /system/sd/modules/xvmalloc.ko
# insmod /system/sd/modules/xvmalloc.ko
insmod /system/sd/modules/xvmalloc.ko
insmod: init_module '/system/sd/modules/xvmalloc.ko' failed (Exec format error)

As you can see, I have no CompCache because /dev/block/ramzswap0 doesn't exist and I can't create it because of the failure with xvmalloc.ko "(Exec format error)". I'm told this may be because xvmalloc.ko is built for 32A (and I'm running 32B)

I just created an update and applied it to a running instance for MoDaCo Custom HERO 2.2 and shockingly I was able to boot, but found the EXACT same problem I just described so I'm confident it's being carried in with boot.img.

I'm also concerned about the CPU Status errors.

Suggestions?

Issue opened at: http://code.google.com/p/jacheroplus/issues/detail?id=163