[Q] need help with error building 4.2 - Android Q&A, Help & Troubleshooting

Ok im building cm 10.1 for my phone which is unsupported it has the msm8660 common kernel and i fixed the ramdisk offset now i get this error and cant figure out where to add the path to fix it if that is what im supposed to do it builds great up to this point please help
target Dex: core-junit-hostdex
target Dex: apachehttp-hostdex
----- Making recovery image ------
error: no output filename specified
usage: mkbootimg
--kernel <filename>
--ramdisk <filename>
[ --second <2ndbootloader-filename> ]
[ --cmdline <kernel-commandline> ]
[ --board <boardname> ]
[ --base <address> ]
[ --pagesize <pagesize> ]
[ --ramdisk_offset <address> ]
-o|--output <filename>
make: *** [/home/ken/android/cm10_1/out/target/product/i577/recovery.img] Error 1
make: *** Waiting for unfinished jobs....
[email protected]:~/android/cm10_1$

ktempleton said:
Ok im building cm 10.1 for my phone which is unsupported it has the msm8660 common kernel and i fixed the ramdisk offset now i get this error and cant figure out where to add the path to fix it if that is what im supposed to do it builds great up to this point please help
target Dex: core-junit-hostdex
target Dex: apachehttp-hostdex
----- Making recovery image ------
error: no output filename specified
usage: mkbootimg
--kernel <filename>
--ramdisk <filename>
[ --second <2ndbootloader-filename> ]
[ --cmdline <kernel-commandline> ]
[ --board <boardname> ]
[ --base <address> ]
[ --pagesize <pagesize> ]
[ --ramdisk_offset <address> ]
-o|--output <filename>
make: *** [/home/ken/android/cm10_1/out/target/product/i577/recovery.img] Error 1
make: *** Waiting for unfinished jobs....
[email protected]:~/android/cm10_1$
Click to expand...
Click to collapse
the error show that no output file name is specified. To add the correct output you need to edit /build/core/tasks/kernel.mk
edit that kernel.mk file and look for (line 27) KERNEL_OUT := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ
you need to change that. delete $(TARGET_OUT_INTERMEDIATES) and make it say what your absolute path to that folder is.
Example: KERNEL_OUT := /mnt/android/cm10.1/out/target/product/i577/obj/KERNEL_OBJ
Hope this helps...

Related

[Q] rendering chrooted xorg uising /dev/graphics/fb0

Hey
i got archlinux chroot which works with vnc and I'm really interested in trying to use xorg on /dev/graphics/fb0. But i have no luck at my attempts.
blog.rot13 org/2012/08/x11-running-on-nook-color-without-android-stack.html
i also shutdown android stuff with
Code:
adb shell setprop ctl.stop media
adb shell setprop ctl.stop zygote
adb shell setprop ctl.stop surfaceflinger
adb shell setprop ctl.stop drm
and then i use xinit, startx through ssh, and adb but they both stop at the same level:
Code:
[ 10635.484]
X.Org X Server 1.14.1
Release Date: 2013-04-17
[ 10635.486] X Protocol Version 11, Revision 0
[ 10635.486] Build Operating System: Linux 3.2.34-2-FARM armv7l
[ 10635.487] Current Operating System: Linux localhost 3.0.8+ #290 PREEMPT Sat Apr 28 21:08:11 CST 2012 armv7l
[ 10635.487] Kernel command line: console=ttyS0,115200 rw init=/init loglevel=8
[ 10635.489] Build Date: 18 April 2013 12:09:06AM
[ 10635.489]
[ 10635.491] Current version of pixman: 0.28.2
[ 10635.493] Before reporting problems, check
to make sure that you have the latest version.
[ 10635.493] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 10635.496] (==) Log file: "/var/log/Xorg.0.log", Time: Wed May 8 20:00:35 2013
[ 10635.498] (==) Using config file: "/etc/X11/xorg.conf"
[ 10635.499] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 10635.499] (==) No Layout section. Using the first Screen section.
[ 10635.500] (==) No screen section available. Using defaults.
[ 10635.501] (**) |-->Screen "Default Screen Section" (0)
[ 10635.501] (**) | |-->Monitor "<default monitor>"
[ 10635.501] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 10635.502] (**) | |-->Device "Allwinner A10/A13 FBDEV"
[ 10635.502] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 10635.502] (==) Automatically adding devices
[ 10635.502] (==) Automatically enabling devices
[ 10635.502] (==) Automatically adding GPU devices
[ 10635.502] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 10635.502] Entry deleted from font path.
[ 10635.502] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 10635.502] Entry deleted from font path.
[ 10635.502] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[ 10635.502] Entry deleted from font path.
[ 10635.502] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[ 10635.502] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[ 10635.502] Entry deleted from font path.
[ 10635.502] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[ 10635.502] (==) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/TTF/
[ 10635.502] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 10635.502] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 10635.503] (II) Loader magic: 0x1c0698
[ 10635.503] (II) Module ABI versions:
[ 10635.503] X.Org ANSI C Emulation: 0.4
[ 10635.503] X.Org Video Driver: 14.1
[ 10635.503] X.Org XInput driver : 19.1
[ 10635.503] X.Org Server Extension : 7.0
[ 10635.504] Initializing built-in extension Generic Event Extension
[ 10635.505] Initializing built-in extension SHAPE
[ 10635.505] Initializing built-in extension MIT-SHM
[ 10635.506] Initializing built-in extension XInputExtension
[ 10635.507] Initializing built-in extension XTEST
[ 10635.507] Initializing built-in extension BIG-REQUESTS
[ 10635.508] Initializing built-in extension SYNC
[ 10635.508] Initializing built-in extension XKEYBOARD
[ 10635.509] Initializing built-in extension XC-MISC
[ 10635.509] Initializing built-in extension SECURITY
[ 10635.510] Initializing built-in extension XINERAMA
[ 10635.510] Initializing built-in extension XFIXES
[ 10635.510] Initializing built-in extension RENDER
[ 10635.511] Initializing built-in extension RANDR
[ 10635.511] Initializing built-in extension COMPOSITE
[ 10635.511] Initializing built-in extension DAMAGE
[ 10635.512] Initializing built-in extension MIT-SCREEN-SAVER
[ 10635.512] Initializing built-in extension DOUBLE-BUFFER
[ 10635.512] Initializing built-in extension RECORD
[ 10635.512] Initializing built-in extension DPMS
[ 10635.512] Initializing built-in extension X-Resource
[ 10635.512] Initializing built-in extension XVideo
[ 10635.512] Initializing built-in extension XVideo-MotionCompensation
[ 10635.512] Initializing built-in extension XFree86-VidModeExtension
[ 10635.513] Initializing built-in extension XFree86-DGA
[ 10635.513] Initializing built-in extension XFree86-DRI
[ 10635.513] Initializing built-in extension DRI2
[ 10635.513] (II) LoadModule: "glx"
[ 10635.514] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 10635.515] (II) Module glx: vendor="X.Org Foundation"
[ 10635.515] compiled for 1.14.1, module version = 1.0.0
[ 10635.515] ABI class: X.Org Server Extension, version 7.0
[ 10635.515] (==) AIGLX enabled
[ 10635.515] Loading extension GLX
[ 10635.515] (II) LoadModule: "sunxifb"
[ 10635.516] (II) Loading /usr/lib/xorg/modules/drivers/sunxifb_drv.so
[ 10635.516] (II) Module sunxifb: vendor="X.Org Foundation"
[ 10635.516] compiled for 1.14.1, module version = 0.3.1
[ 10635.516] Module class: X.Org Video Driver
[ 10635.516] ABI class: X.Org Video Driver, version 14.1
[ 10635.516] (II) SUNXIFB: driver for framebuffer: sunxifb
[ 10635.517] (--) using VT number 2
my xorg.conf:
Code:
# This is a minimal sample config file, which can be copied to
# /etc/X11/xorg.conf in order to make the Xorg server pick up
# and load xf86-video-sunxifb driver installed in the system.
#
# When troubleshooting, check /var/log/Xorg.0.log for the debugging
# output and error messages.
#
# Run "man sunxifb" to get additional information about the extra
# configuration options for tuning the driver.
Section "Device"
Identifier "Allwinner A10/A13 FBDEV"
Driver "sunxifb"
Option "fbdev" "/dev/graphics/fb0"
EndSection
same goes with fbdev and sunxifb drivers i tried.
i can't find the reason it stops.
dd if=/dev/urandom of=/dev/graphics/fb0 does work.
and yeah i tried googling :\
thanks for helpers!

Repack system.img

Hello guys,
i have a problem with repacking my system_mount folder to a android image file.
Code:
make_ext4fs -s -l 1024M -a system system_modified.img system_mount/
Then i become this error:
Code:
can't set android permissions - built without android support
make_ext4fs [ -l <len> ] [ -j <journal size> ] [ -b <block_size> ]
[ -g <blocks per group> ] [ -i <inodes> ] [ -I <inode size> ]
[ -L <label> ] [ -f ] [ -a <android mountpoint> ]
[ -S file_contexts ]
[ -z | -s ] [ -w ] [ -c ] [ -J ] [ -v ]
<filename> [<directory>]
Have anyone a idea?
I also don't know if the size of 1024M is right but i can create a image without the parameter "-a system".
Greetings
fire855
Push!

Install kernel Marshmallow (Wiko Lenny 2 )

Hi all,
I have compiled the new kernel Marshmallow for Wiko Lenny 2 which I downloaded from wikogeek.com. I successfully have the: zImage and zImage-dtb.
But when I try to flash the device I have the message "FAILED (remote: partition table doesn't exist)"
I use the commands:
Code:
$ fastboot oem unlock
$ fastboot flash zimage ~/Downloads/LENNY2_OpenSource/kernel-3.10/arch/arm/boot/zImage
target reported max download size of 134217728 bytes
sending 'zimage' (6689 KB)...
OKAY [ 0.249s]
writing 'zimage'...
FAILED (remote: partition table doesn't exist)
finished. total time: 0.251s
Anyone have an idea?
Thank you!
EDIT:
- I dump the boot.img from the /dev/block/<boot-partition>
- I decompress the dump using split_bootimg.pl (gist.github.com/oldhu/1832541)
Code:
$ perl split_bootimg.pl boot.img
Page size: 2048 (0x00000800)
Kernel size: 6006495 (0x005ba6df)
Ramdisk size: 844208 (0x000ce1b0)
Second size: 0 (0x00000000)
Board name: WIKO
Command line: bootopt=64S3,32S1,32S1
Base address: (0x8dffff00)
Writing boot.img-kernel ... complete.
Writing boot.img-ramdisk.gz ... complete.
- I replace the boot.img-kernel by the zImage compiled from the kernel sources
- And make a new image with the command mkbootimg:
Code:
$ mkbootimg --page 2048 --base 0x8dfffe00 --kernel ~/Downloads/LENNY2_OpenSource/kernel-3.10/arch/arm/boot/zImage --ramdisk bootable_dump/boot.img-ramdisk.gz -o boot-new.img
$ ./fastboot flash boot ~/boot-new.img
target reported max download size of 134217728 bytes
sending 'boot' (7504 KB)...
OKAY [ 0.277s]
writing 'boot'...
OKAY [ 0.524s]
finished. total time: 0.801s
$ ./flashboot reboot
But the phone doesn't boot!
It seems that the marshmallow kernel available on official Wiko website for Lenny 2, te is a mistake as I red, it's for the Lenny 4 . It's not the first time wiko make suche a mistake!
Anyway that world explain why every one thet tri this marshmallow kernel did fail

Compile error

Hello guys!
When i am trying to compile Crdroid or any other rom i get these error:
Code:
/home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/framework-res_intermediates/flat-res/device/xiaomi/msm8956-common/overlay/frameworks/base/core/res/res/values_config.arsc.flat: error: resource bool/config_multiColorNotificationLed does not override an existing resource.
/home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/framework-res_intermediates/flat-res/device/xiaomi/msm8956-common/overlay/frameworks/base/core/res/res/values_config.arsc.flat: note: define an <add-resource> tag or use --auto-add-overlay.
/home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/framework-res_intermediates/flat-res/device/xiaomi/msm8956-common/overlay/frameworks/base/core/res/res/values_config.arsc.flat: error: resource bool/config_proximityCheckOnWake does not override an existing resource.
/home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/framework-res_intermediates/flat-res/device/xiaomi/msm8956-common/overlay/frameworks/base/core/res/res/values_config.arsc.flat: note: define an <add-resource> tag or use --auto-add-overlay.
/home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/framework-res_intermediates/flat-res/device/xiaomi/msm8956-common/overlay/frameworks/base/core/res/res/values_config.arsc.flat: error: resource bool/config_proximityCheckOnWakeEnabledByDefault does not override an existing resource.
/home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/framework-res_intermediates/flat-res/device/xiaomi/msm8956-common/overlay/frameworks/base/core/res/res/values_config.arsc.flat: note: define an <add-resource> tag or use --auto-add-overlay.
error: failed parsing overlays.
[ 54% 53791/99436] AAPT2 compile /home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/LatinIME_intermediates/flat-res/packages/inputmethods/LatinIME/java/res/drawable_btn_suggestion_lxx_light.xml.flat <- packages/inputmethods/LatinIME/java/res/drawable/btn_suggestion_lxx_light.xml
[ 54% 53792/99436] AAPT2 compile /home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/LatinIME_intermediates/flat-res/packages/inputmethods/LatinIME/java/res/drawable_ic_emoji_activity_lxx_dark.xml.flat <- packages/inputmethods/LatinIME/java/res/drawable/ic_emoji_activity_lxx_dark.xml
[ 54% 53793/99436] AAPT2 compile /home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/LatinIME_intermediates/flat-res/packages/inputmethods/LatinIME/java/res/drawable_ic_emoji_activity_lxx_light.xml.flat <- packages/inputmethods/LatinIME/java/res/drawable/ic_emoji_activity_lxx_light.xml
[ 54% 53794/99436] AAPT2 compile /home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/LatinIME_intermediates/flat-res/packages/inputmethods/LatinIME/java/res/drawable_ic_emoji_emoticons_holo_dark.xml.flat <- packages/inputmethods/LatinIME/java/res/drawable/ic_emoji_emoticons_holo_dark.xml
[ 54% 53795/99436] AAPT2 compile /home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/LatinIME_intermediates/flat-res/packages/inputmethods/LatinIME/java/res/drawable_btn_suggestion_lxx_dark.xml.flat <- packages/inputmethods/LatinIME/java/res/drawable/btn_suggestion_lxx_dark.xml
[ 54% 53796/99436] AAPT2 compile /home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/LatinIME_intermediates/flat-res/packages/inputmethods/LatinIME/java/res/drawable_ic_emoji_activity_holo_dark.xml.flat <- packages/inputmethods/LatinIME/java/res/drawable/ic_emoji_activity_holo_dark.xml
[ 54% 53797/99436] AAPT2 compile /home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/LatinIME_intermediates/flat-res/packages/inputmethods/LatinIME/java/res/drawable_ic_emoji_emoticons_lxx_dark.xml.flat <- packages/inputmethods/LatinIME/java/res/drawable/ic_emoji_emoticons_lxx_dark.xml
[ 54% 53798/99436] AAPT2 compile /home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/LatinIME_intermediates/flat-res/packages/inputmethods/LatinIME/java/res/drawable_ic_emoji_flag_holo_dark.xml.flat <- packages/inputmethods/LatinIME/java/res/drawable/ic_emoji_flag_holo_dark.xml
[ 54% 53799/99436] AAPT2 compile /home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/LatinIME_intermediates/flat-res/packages/inputmethods/LatinIME/java/res/drawable_ic_emoji_emoticons_lxx_light.xml.flat <- packages/inputmethods/LatinIME/java/res/drawable/ic_emoji_emoticons_lxx_light.xml
[ 54% 53800/99436] AAPT2 compile /home/romaniulian2013/crdroid/out/target/product/kenzo/obj/APPS/LatinIME_intermediates/flat-res/packages/inputmethods/LatinIME/java/res/drawable_ic_emoji_flag_lxx_dark.xml.flat <- packages/inputmethods/LatinIME/java/res/drawable/ic_emoji_flag_lxx_dark.xml
[ 54% 53801/99436] target StaticLib: libv8 (/home/romaniulian2013/crdroid/out/target/product/kenzo/obj/STATIC_LIBRARIES/libv8_intermediates/libv8.a)
ninja: build stopped: subcommand failed.
15:03:11 ninja failed with: exit status 1
#### failed to build some targets (16:41 (mm:ss)) ####
Please, someone help me!
Just nuke the lines providing error and done!

Howto fastboot flashall - not that useful

I have used it this way for a nexus one:
NOTE: that only boot, recovery, and system will be flashed - bit misleading
1. Unzip zipped *.img files to a directory
Code:
unzip -d somedir passion.zip
I have these files: android-info.txt, radio.img, splash1.img, boot.img, recovery.img, system.img, hboot_8x50_0.35.0017_100610.nb0, spcustom.img, userdata.img
I used PASSIMG_Passion_Google_WWE_3.13.1700.1_GRK39F_release_signed.zip
2. cd into directory
Code:
cd somedir
3.
Code:
sudo ANDROID_PRODUCT_OUT="./" fastboot flashall
NOTE: ANDROID_PRODUCT_OUT variable is set to current directory "./" and only a space after this to fastboot command. This sets environment variable and runs command.
Code:
Example output
--------------------------------------------
Bootloader Version...: 0.35.0017
Baseband Version.....: 5.12.00.08
Serial Number........: HT9CPP80xxxx
--------------------------------------------
sending 'boot' (2322 KB)...
OKAY [ 0.376s]
writing 'boot'...
OKAY [ 0.979s]
sending 'recovery' (2560 KB)...
OKAY [ 0.403s]
writing 'recovery'...
OKAY [ 1.045s]
sending 'system' (135673 KB)...
OKAY [ 20.775s]
writing 'system'...
OKAY [ 47.087s]
rebooting...
finished. total time: 70.755s

Categories

Resources