Galaxy Tab source code is online - Galaxy S I9000 Android Development

The Galaxy Tab source code is online at http://opensource.samsung.com/ section GT-P1000
Now we can manage this source code for inspecting memory problem of galaxy s 1080p video playback and hdmi out.

I'm not able to download it at the moment, by any chance is the source for the bootloaders included?

im uploading it now

http://www.mediafire.com/file/4qkxeg1fbi1exbe/GT-P1000_OpenSource.zip
Here you go !

Jeshter2000 said:
http://www.mediafire.com/file/4qkxeg1fbi1exbe/GT-P1000_OpenSource.zip
Here you go !
Click to expand...
Click to collapse
. Thanks!

From first look - a lot of debug options are disabled that were enabled in SGS config.
Edit: Also memory assignments are different, somewhere higher, somewhere lower ... On average I think number would be similar.
On general at least in config so far the difference seems bigger then I would expect.

Which means that we got a Froyo source that voodoo and cm can use?

jakaka said:
From first look - a lot of debug options are disabled that were enabled in SGS config.
Edit: Also memory assignments are different, somewhere higher, somewhere lower ... On average I think number would be similar.
On general at least in config so far the difference seems bigger then I would expect.
Click to expand...
Click to collapse
Is it possible to use the same memory assignments and have similar memory available in he sgs?

Compiling right now
thanks zulu99 !
I will take a look at the sound driver ^^ (and the rest)!
An ext4 modules in a few minutes!
I really like the fact that this time the ramdisk in included in sources.

Code:
sound/soc/s3c24xx/s3c-idma.c: In function 's3c_idma_hw_params':
sound/soc/s3c24xx/s3c-idma.c:230: warning: format '%x' expects type 'unsigned int', but argument 6 has type 'unsigned char *'
sound/soc/s3c24xx/s3c-idma.c: In function 's3c_idma_pointer':
sound/soc/s3c24xx/s3c-idma.c:318: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'unsigned char *'
make[3]: *** [sound/soc/s3c24xx/s3c-idma.o] Erreur 1
make[3]: *** Attente des tâches non terminées....
make[2]: *** [sound/soc/s3c24xx] Erreur 2
make[1]: *** [sound/soc] Erreur 2
make: *** [sound] Erreur 2
(compiling with trusty gcc 4.3.5 i use for Voodoo)
BOO !

Ext4 modules (no POSIX ACL or xattrs to keep it small)
PS: i doubt they insert in Galaxy S Froyo kernels, but who know, with a little help...

Samsung are releasing the Galaxy K (SHW-M130K) with froyo in South Korea soon. The Source code isn't on their site yet, but judging by their track record so far, we should see it very soon.

supercurio said:
Ext4 modules (no POSIX ACL or xattrs to keep it small)
PS: i doubt they insert in Galaxy S Froyo kernels, but who know, with a little help...
Click to expand...
Click to collapse
I've tried to compile them using samsung suggested toolset (in readme), but they won't insmod - device just reboots.

supercurio said:
Code:
sound/soc/s3c24xx/s3c-idma.c: In function 's3c_idma_hw_params':
sound/soc/s3c24xx/s3c-idma.c:230: warning: format '%x' expects type 'unsigned int', but argument 6 has type 'unsigned char *'
sound/soc/s3c24xx/s3c-idma.c: In function 's3c_idma_pointer':
sound/soc/s3c24xx/s3c-idma.c:318: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'unsigned char *'
make[3]: *** [sound/soc/s3c24xx/s3c-idma.o] Erreur 1
make[3]: *** Attente des tâches non terminées....
make[2]: *** [sound/soc/s3c24xx] Erreur 2
make[1]: *** [sound/soc] Erreur 2
make: *** [sound] Erreur 2
(compiling with trusty gcc 4.3.5 i use for Voodoo)
BOO !
Click to expand...
Click to collapse
Erreur... You got a little Clouseau in your compiler. No wonder it's giving you erreurs .. leul

vitalij said:
I've tried to compile them using samsung suggested toolset (in readme), but they won't insmod - device just reboots.
Click to expand...
Click to collapse
Okay. I suppose compiling them using at least Galaxy S .config would help
appelflap said:
Erreur... You got a little Clouseau in your compiler. No wonder it's giving you erreurs .. leul
Click to expand...
Click to collapse
HAHAHA, why everybody laugh at my erreurs

Related

[DEV] Kernel framebuffer console / kernel cmdline

Hi, i'm actually playing with my new galaxy S phone, and i was trying to get a kernel framebuffer console output for debugging purpose. Has anyone succeed in this ? I saw that the "universal lagfix kernel" is using a graphs application, even this application do not output correctly to the framebuffer on my galaxy S. It seems the bootloader logo is running on top of the framebuffer, preventing a correct blitting. Some help here would be very helpful.
Else it seems the bootloader is overriding the kernel command line, does someone take a look at this ?
Thanks,
Cpasjuste.
Edit : take a look at post #3
Cpasjuste said:
Hi, i'm actually playing with my new galaxy S phone, and i was trying to get a kernel framebuffer console output for debugging purpose. Has anyone succeed in this ? I saw that the "universal lagfix kernel" is using a graphs application, even this application do not output correctly to the framebuffer on my galaxy S. It seems the bootloader logo is running on top of the framebuffer, preventing a correct blitting. Some help here would be very helpful.
Else it seems the bootloader is overriding the kernel command line, does someone take a look at this ?
Thanks,
Cpasjuste.
Click to expand...
Click to collapse
Agreed, it seems a bit strange. I've also tried this without much luck so far.
So basically, bump!
Just a little update, it's now easy to get framebuffer console working with the gingerthing kernel port found here :
- Initramfs : https://github.com/project-voodoo/nsonsgs-initramfs
- Kernel : https://github.com/galaxys-kernel/linux_samsung_galaxys_port/
In short :
Force the kernel cmdline in .config :
CONFIG_CMDLINE="console=tty0,115200 fbcon=rotate:1 fbcon=font:VGA8x8"
CONFIG_CMDLINE_FORCE=y
Then enable fb console :
CONFIG_VT=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
CONFIG_FONTS=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
CONFIG_LOGO=y
CONFIG_LOGO_LINUX_MONO=y
(if it ask for vga console reply No)
It should now be easier to port your favorite distribution
a vanilla android boots how?
can you post a screenshot?
Sure, here is a photo :
f*** this is priceless!!!
thanks!
Cpasjuste, thank you it's works
BPaul said:
Cpasjuste, thank you it's works
Click to expand...
Click to collapse
The date...
Sent from my Galaxy Nexus using Tapatalk 2
DanielSanchez said:
The date...
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
haha
DanielSanchez said:
The date...
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
:laugh:
Does this apply to all android phones ?
Sent from my ALCATEL ONE TOUCH 918D using xda app-developers app
kenkitt said:
Does this apply to all android phones ?
Sent from my ALCATEL ONE TOUCH 918D using xda app-developers app
Click to expand...
Click to collapse
Most. BTW: Date...
Thanks
devloz said:
Most. BTW: Date...
Click to expand...
Click to collapse
I'm now compiling for MTK 6573 Alcatel OT-918D , hope it works.
About the kernel commandline what should I put, or maybe the one used here will work ?
---------- Post added at 10:10 AM ---------- Previous post was at 10:05 AM ----------
Building failed
drivers/video/console/fbcon.c:638: note: expected 'struct file *' but argument is of type 'struct fb_info *'
drivers/video/console/fbcon.c:638: error: too few arguments to function 'info->fbops->fb_open'
drivers/video/console/fbcon.c: In function 'con2fb_release_oldinfo':
drivers/video/console/fbcon.c:670: warning: passing argument 1 of 'oldinfo->fbops->fb_release' from incompatible pointer type
drivers/video/console/fbcon.c:670: note: expected 'struct file *' but argument is of type 'struct fb_info *'
drivers/video/console/fbcon.c:670: error: too few arguments to function 'oldinfo->fbops->fb_release'
drivers/video/console/fbcon.c:673: warning: passing argument 1 of 'newinfo->fbops->fb_release' from incompatible pointer type
drivers/video/console/fbcon.c:673: note: expected 'struct file *' but argument is of type 'struct fb_info *'
drivers/video/console/fbcon.c:673: error: too few arguments to function 'newinfo->fbops->fb_release'
drivers/video/console/fbcon.c: In function 'fbcon_startup':
drivers/video/console/fbcon.c:868: warning: passing argument 1 of 'info->fbops->fb_open' from incompatible pointer type
drivers/video/console/fbcon.c:868: note: expected 'struct file *' but argument is of type 'struct fb_info *'
drivers/video/console/fbcon.c:868: error: too few arguments to function 'info->fbops->fb_open'
drivers/video/console/fbcon.c: In function 'fbcon_exit':
drivers/video/console/fbcon.c:3388: warning: passing argument 1 of 'info->fbops->fb_release' from incompatible pointer type
drivers/video/console/fbcon.c:3388: note: expected 'struct file *' but argument is of type 'struct fb_info *'
drivers/video/console/fbcon.c:3388: error: too few arguments to function 'info->fbops->fb_release'
make[3]: *** [drivers/video/console/fbcon.o] Error 1
make[2]: *** [drivers/video/console] Error 2
make[1]: *** [drivers/video] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
CC [M] ../mediatek/source/kernel/drivers/lttng/probes/net-extended-trace.o
CC [M] ../mediatek/source/kernel/drivers/lttng/probes/block-trace.o
CC ../mediatek/source/kernel/kernel/trace_mt65xx_mon.o
LD [M] ../mediatek/source/kernel/drivers/lttng/ltt-relay.o
CC ../mediatek/source/kernel/drivers/m4u/m4u_kernel.o
../mediatek/source/kernel/drivers/m4u/m4u_kernel.c: In function 'm4u_user_v2p':
../mediatek/source/kernel/drivers/m4u/m4u_kernel.c:66: warning: format '%d' expects type 'int', but argument 3 has type 'struct task_struct *'
Anyone know how to go about this ?
I'm trying to do this as well. It compiles fine but the device is stuck with a black screen, LCD backlight on and warming up after the bootloader logo.
This thread needs to be resurrected it's still a thing and an alternate to USB/Serial or JTAG debugging
nexolight said:
I'm trying to do this as well. It compiles fine but the device is stuck with a black screen, LCD backlight on and warming up after the bootloader logo.
This thread needs to be resurrected it's still a thing and an alternate to USB/Serial or JTAG debugging
Click to expand...
Click to collapse
You are right. My kernel compiles, but when it boots, it changes directly from the bootloader (penguin in the middle of the screen) to the boot logo (TWRP, in my case). I'm compiling the kernel for a Letv LeMax 1 (X900/Max1).
Just for getting the Linux penguin on screen at boot time, you can enable BOOT_LOGO on defconfig.
For getting the text to show up it's a different story, I'll try to compile a kernel for my device (pretty old, 2012) but that should be possible, after all the linux kernel is there and has native support for doing that kind of things!

[Sprint] Kernel Development - OC

Okay I've been reading and reading and finally got all the tools to build a kernel from the source that Samsung had on their site for DJ30. Since these are very identical to the other galaxy s devices they should overclock decently. Will report with more progress later.
-------------------------
Status - Downloaded source and repo and building configuration to make kernel.
Sent from my SPH-P100 using XDA App
Interested in your development... my Sprint Tab arrives tomorrow, decided to give it a 30 day try before I try the Nook Color.
Doesn't appear to be a lot of development yet, hoping to see that change.
One question, is the Zroot method still the preferred method to rooting the device?
I used superoneclick 1.5.5
Sent from my SPH-P100 using XDA App
------------------------------------------------------------
Trying to compile a test kernel to make sure everything is going to work correctly and running into this crazy error if any of the dev's can chime in please do I already installed all the repo's and linked them.
[email protected]:~/.Tab_Kernel_sources/Kernel$ make ARCH=arm CROSS_COMPILE=../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/
make: ../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/gcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
/bin/sh: ../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
seems like you're missing (a part of) the gcc compiler... the part to compile for ARM it would seem...
maxjivi05 said:
I used superoneclick 1.5.5
Sent from my SPH-P100 using XDA App
------------------------------------------------------------
Trying to compile a test kernel to make sure everything is going to work correctly and running into this crazy error if any of the dev's can chime in please do I already installed all the repo's and linked them.
[email protected]:~/.Tab_Kernel_sources/Kernel$ make ARCH=arm CROSS_COMPILE=../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/
make: ../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/gcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
/bin/sh: ../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
Click to expand...
Click to collapse
Made it a bit farther, got that error fixed had to install lsb along with a few other things now I'm sitting on this error. Any and all help is greatly appreciated! We can get this working!
------------------------------------
[email protected]:~/.Tab_Kernel_sources/Kernel$ make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh
HOSTCC scripts/genksyms/genksyms.o
SHIPPED scripts/genksyms/lex.c
SHIPPED scripts/genksyms/parse.h
SHIPPED scripts/genksyms/keywords.c
HOSTCC scripts/genksyms/lex.o
SHIPPED scripts/genksyms/parse.c
HOSTCC scripts/genksyms/parse.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
scripts/mod/modpost.c: In function ‘get_markers’:
scripts/mod/modpost.c:1562: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
scripts/mod/modpost.c: In function ‘add_marker’:
scripts/mod/modpost.c:1982: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/kallsyms
scripts/kallsyms.c: In function ‘read_symbol’:
scripts/kallsyms.c:112: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
HOSTCC scripts/conmakehash
CC init/main.o
In file included from init/main.c:85:
include/linux/kernel_sec_common.h:7:22: error: mach/map.h: No such file or directory
include/linux/kernel_sec_common.h:8:29: error: mach/regs-clock.h: No such file or directory
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
[email protected]:~/.Tab_Kernel_sources/Kernel$ make ARCH=arm CROSS_COMPILE=../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/
make: ../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/gcc: Command not found
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
/bin/sh: ../home/max/GalaxyTab/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
I'm not a dev, but I sure can test on my sprint tablet
I have a Linux blade at home, what are the tools necessary to compile from source, and what repo are you using for the sprint tab drivers and such?
Simple solution here is that you are missing GCC or have an incorrect version installed. I wrote a how to compile thread in the Streak section a few months bak ill dig it up and post it here.
try
apt-get install build-essential
Already installed build essential.
Sent from my SPH-P100 using XDA App
The readme file tells you where to get the compiler from, decompress it to /opt/toolchain.
And this thread has pretty good explanations on how to build the kernel http://forum.xda-developers.com/showthread.php?t=837170
A little farther int he process of getting this sucker compiled... Got this error now... *I forgot how much of a pain it was to go through setting things up perfectly! lol.. any and all help is greatly appreciated!
-------------------------------------
make[1]: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
cp: cannot stat `/home/max/.Tab_Kernel_sources/Kernel/modules.order': No such file or directory
make[1]: *** [_modinst_] Error 1
make: *** [sub-make] Error 2
[email protected]:~/.Tab_Kernel_sources/Kernel$
This is the most disappointing thread ever.
maxjivi05 said:
A little farther int he process of getting this sucker compiled... Got this error now... *I forgot how much of a pain it was to go through setting things up perfectly! lol.. any and all help is greatly appreciated!
-------------------------------------
make[1]: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
cp: cannot stat `/home/max/.Tab_Kernel_sources/Kernel/modules.order': No such file or directory
make[1]: *** [_modinst_] Error 1
make: *** [sub-make] Error 2
[email protected]:~/.Tab_Kernel_sources/Kernel$
Click to expand...
Click to collapse
It's pretty obvious from that line that it can't find that particular binary in your toolchain directory...
I followed the instructions in the readme file and compiled the kernel already, it was extremely simple. You ran the build_kernel.sh file right... after editing it?
Yes I did and its been 5 years since I've done anything with Linux so its a rather learning curve to get anything done. With lack of development on tab thought it would be a good place to start. I've done normal kernel build before but nothing for a phone and it wasn't rather hard either it was just a few commands and everything was already in the right directories
Sent from my SPH-P100 using XDA App
FYI I grabbed the kernel source and cross toolchain, installed the toolchain to /opt (on my desktop Linux box) added the toolchain's bin directory to the start of $PATH, edited the (iirc - am posting from a Windows box) build.sh script and the kernel built fine first time.
I need to set the path to the raminitfs file in .config and then try again and make sure it boots ok
Anyway just a post to say that it must be your setup. I see you have installed the toolchain to /home/max/GalaxyTab/prebuilt/linux-x86/toolchain/ and in your latest post there's the following error: make[1]: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
So there's obviously a path problem there. I also see you're using a plain "make" command without setting the ARCH env var.
I'd recommend giving the build.sh script a go (after editing the toolchain path), as it sets up all the env vars, etc., for you automatically.
okay, I was missing a file went I was doing my repo sync... which didn't make sense but i got it worked out... finally able to compile going to apply the patches and recompile and will repo, but thanks for the people who did help figure out the issue...
maxjivi05 said:
With lack of development on tab
Click to expand...
Click to collapse
HUH?
10 characters
Does anyone have an untouched sprint kernel pulled from a device? I rooted mine and it's seeminly impossible to pull the initrd out of it.
jstigall said:
Does anyone have an untouched sprint kernel pulled from a device? I rooted mine and it's seeminly impossible to pull the initrd out of it.
Click to expand...
Click to collapse
Nevermind, I got it... I have a booting Sprint kernel that works great.
Do you have a link to the patches you want to include, I may be able to get the CPU frequency adjustments you want to make built.
jstigall said:
Nevermind, I got it... I have a booting Sprint kernel that works great.
Do you have a link to the patches you want to include, I may be able to get the CPU frequency adjustments you want to make built.
Click to expand...
Click to collapse
Currently there are 2 files that tell the kernel the freq to run at, and 3 spots at the bottom of each that need changed. Located in /ARM/ARCH/OMAP something I need to get more info when I get home I'll edit this post and let you know but there is a file called cpu24xx.c and cpu34xx.c, I was going to compile a working kernel with those files edited to run 1200MHz to test and see if that would work if that didn't work there were some patches made on the other galaxy s devices I have links to thanks to SetiroN for providing, which they are a little different then the files for the galaxy source but I'll post it when I get home and have time!

Can't compile Galaxy Note 3 Kernel

I am kinda new to kernel development. I need to rebuild the kernel I'm using ((http://forum.xda-developers.com/showthread.php?t=2480353) Compulsion Kernel) with loadable module support. I have also tried other kernels. I also tried using the "-i" flag on make, but the errors kept getting worse, until the whole compilation output was errors...
I keep getting errors from the console output. For example:
Code:
net/bluetooth/hci_conn.c: In function 'hci_le_ltk_reply':
net/bluetooth/hci_conn.c:406:28: warning: argument to 'sizeof' in 'memcpy' call is the same pointer type '__u8 *' as the destination; expected '__u8' or an explicit length [-Wsizeof-pointer-memaccess]
error, forbidden warning: hci_conn.c:406
make[2]: [net/bluetooth/hci_conn.o] Error 1
-Wsizeof-pointer-memaccess errors pop up very often.
There are also file not found errors:
Code:
arm-eabi-ld: error: cannot open net/bluetooth/hci_conn.o: No such file or directory
make[2]: [net/bluetooth/bluetooth.o] Error 1
LD net/bluetooth/built-in.o
arm-eabi-ld: error: cannot open net/bluetooth/bluetooth.o: No such file or directory
make[2]: [net/bluetooth/built-in.o] Error 1
CC net/bridge/br_input.o
Heres another example:
Code:
CC net/bridge/br_ioctl.o
arch/arm/mach-msm/board-8974-sec.c:569:13: warning: 'modem_power_off' defined but not used [-Wunused-function]
error, forbidden warning: board-8974-sec.c:569
make[1]: [arch/arm/mach-msm/board-8974-sec.o] Error 1
LD arch/arm/mach-msm/built-in.o
CC drivers/gpu/ion/ion_cma_heap.o
arm-eabi-ld: error: cannot open arch/arm/mach-msm/bam_dmux.o: No such file or directory
arm-eabi-ld: error: cannot open arch/arm/mach-msm/board-8974-sec.o: No such file or directory
System information:
I attached my .config file. It is the default from the Compulsion kernel.
Compile commands (in order):
Code:
export VARIANT_DEFCONFIG=msm8974_sec_defconfig ##I added this because it wont generate .config if this variable is empty...
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=/home/julian/android-toolchain-eabi/bin/arm-eabi-
git pull
make clean
make msm8974_sec_defconfig
make -j4
Operating system: Fresh install of Linux Mint 16 (Petra)
Build-related packages I installed with apt: git-core, gnupg, flex, bison, gperf, libsdl-dev, libesd0-dev, libwxgtk2.6-dev, build-essential, zip, curl, libncurses5-dev, zlib1g-dev, ia32-libs, lib32z1-dev, lib32ncurses5-dev, gcc-multilib, g++-multilib, and Adb
Toolchain:
Tried linaro, the android NDK from Google's website, and various other toolchains. Same error.
Output of "echo $PATH"
Code:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/julian/android-toolchain-eabi/bin:/home/julian/androidkernel/N900T_Kernel
I think thats all the needed information
Thank you!
Your command for the configuration is incomplete. You need to type a command for the other files as well. Type this command "make msm8974_sec_defconfig VARIANT_DEFCONFIG=msm8974_sec_hltetmo_defconfig DEBUG_DEFCONFIG= SELINUX_DEFCONFIG=selinux_defconfig SELINUX_LOG_DEFCONFIG=selinux_log_defconfig TIMA_DEFCONFIG=tima_defconfig".
djintrigue808 said:
Your command for the configuration is incomplete. You need to type a command for the other files as well. Type this command "make msm8974_sec_defconfig VARIANT_DEFCONFIG=msm8974_sec_hltetmo_defconfig DEBUG_DEFCONFIG= SELINUX_DEFCONFIG=selinux_defconfig SELINUX_LOG_DEFCONFIG=selinux_log_defconfig TIMA_DEFCONFIG=tima_defconfig".
Click to expand...
Click to collapse
Still can't compile
No more file not found errors, but still getting:
Code:
arch/arm/mach-msm/bam_dmux.c: In function 'show_waketime':
arch/arm/mach-msm/bam_dmux.c:2440:29: warning: argument to 'sizeof' in 'snprintf' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
error, forbidden warning: bam_dmux.c:2440
make[1]: *** [arch/arm/mach-msm/bam_dmux.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....
My compile script (easier then entering commands...)
#!/bin/bash
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=arm-eabi-
if [[ "$PATH" == *"/home/julian/android-toolchain-eabi/bin"* ]]; then
echo "PATH Contains toolchain"
else
export PATH=$PATH:/home/julian/android-toolchain-eabi/bin
echo "Toolchain added to PATH!"
fi
git pull
make clean -j4
echo "Building config..."
sleep 2
make msm8974_sec_defconfig VARIANT_DEFCONFIG=msm8974_sec_hltetmo_defconfig DEBUG_DEFCONFIG= SELINUX_DEFCONFIG=selinux_defconfig SELINUX_LOG_DEFCONFIG=selinux_log_defconfig TIMA_DEFCONFIG=tima_defconfig -j4
sleep 1
read -p "Customize config? (Y/N): " yesno
if [ "$yesno" == "Y" ]; then
make menuconfig -j4
make -j4
else
make -j4
fi
Thank you!
Julian90090 said:
Still can't compile
No more file not found errors, but still getting:
Code:
arch/arm/mach-msm/bam_dmux.c: In function 'show_waketime':
arch/arm/mach-msm/bam_dmux.c:2440:29: warning: argument to 'sizeof' in 'snprintf' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
error, forbidden warning: bam_dmux.c:2440
make[1]: *** [arch/arm/mach-msm/bam_dmux.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....
My compile script (easier then entering commands...)
#!/bin/bash
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=arm-eabi-
if [[ "$PATH" == *"/home/julian/android-toolchain-eabi/bin"* ]]; then
echo "PATH Contains toolchain"
else
export PATH=$PATH:/home/julian/android-toolchain-eabi/bin
echo "Toolchain added to PATH!"
fi
git pull
make clean -j4
echo "Building config..."
sleep 2
make msm8974_sec_defconfig VARIANT_DEFCONFIG=msm8974_sec_hltetmo_defconfig DEBUG_DEFCONFIG= SELINUX_DEFCONFIG=selinux_defconfig SELINUX_LOG_DEFCONFIG=selinux_log_defconfig TIMA_DEFCONFIG=tima_defconfig -j4
sleep 1
read -p "Customize config? (Y/N): " yesno
if [ "$yesno" == "Y" ]; then
make menuconfig -j4
make -j4
else
make -j4
fi
Thank you!
Click to expand...
Click to collapse
Ok so I was messing around and decided to fix the -Wsizeof-pointer-memaccess errors. I opened bam_dmux.c and changed the line
Code:
return snprintf(buf, sizeof(buf), "%u\n", wakelock_timeout);
to
Code:
return snprintf(buf, (int)sizeof(buf), "%u\n", wakelock_timeout);
The kernel compiles now, but when I flash it to my device (mkbootimg), I get a ODIN message saying regular boot failed...
MORE UPDATES:
Tried flashing plain zImage in tar with ODIN, got a "unsupport dev_type" error on the device.
I fixed all the compile errors. I changed cross compilers to arm linux gnueabihf 4.7. There is still the task of getting the kernel on the device though... Thanks in advance!
EDIT AGAIN: Still can't get it to boot. Tried compiling stock kernel, leankernel, and Saber kernel. All same result after packing zImage and flashing with flashable zip...
Using repack-zImage.sh, I get a "gunzip result is oscillating between 'too small' and 'too large' at size: 7836575 7836576 7836577 7836578" error. There are no compile errors with any of the kernels. I attached my "finished" stock kernel flashable zip (doesn't work). I heard something about a mismatch between gzip and lzop... *feeling determined*
Any ideas?
EDIT:
Compile warnings about swp{b} although swp emulation is enabled in config. I still can't figure out how to get the zImage to work correctly on my device. I swapped the zImage out of the Saber kernel install zip boot.img and put my own in, flashed with TWRP, device doesn't boot until I go back and install the original kernel.
Julian90090 said:
Still can't compile
No more file not found errors, but still getting:
Code:
arch/arm/mach-msm/bam_dmux.c: In function 'show_waketime':
arch/arm/mach-msm/bam_dmux.c:2440:29: warning: argument to 'sizeof' in 'snprintf' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
error, forbidden warning: bam_dmux.c:2440
make[1]: *** [arch/arm/mach-msm/bam_dmux.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....
My compile script (easier then entering commands...)
#!/bin/bash
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=arm-eabi-
if [[ "$PATH" == *"/home/julian/android-toolchain-eabi/bin"* ]]; then
echo "PATH Contains toolchain"
else
export PATH=$PATH:/home/julian/android-toolchain-eabi/bin
echo "Toolchain added to PATH!"
fi
git pull
make clean -j4
echo "Building config..."
sleep 2
make msm8974_sec_defconfig VARIANT_DEFCONFIG=msm8974_sec_hltetmo_defconfig DEBUG_DEFCONFIG= SELINUX_DEFCONFIG=selinux_defconfig SELINUX_LOG_DEFCONFIG=selinux_log_defconfig TIMA_DEFCONFIG=tima_defconfig -j4
sleep 1
read -p "Customize config? (Y/N): " yesno
if [ "$yesno" == "Y" ]; then
make menuconfig -j4
make -j4
else
make -j4
fi
Thank you!
Click to expand...
Click to collapse
Please ignore if irrelevant or ignorant. I'm in my infancy and still grasping the basics.
My environment is quite different than yours, on a Mac and using a Sprint note 3, but I came across this thread with the same compiler error using the 4.8 tools in the NDK. If I use 4.6 gcc I make it pretty far into the compilation process before error (failing @net/netfilter/xt_TCPMSS.c). However, using 4.8 gave me the same error as you:
Code:
arch/arm/mach-msm/bam_dmux.c: In function 'show_waketime':
arch/arm/mach-msm/bam_dmux.c:2440:29: warning: argument to 'sizeof' in 'snprintf' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
error, forbidden warning: bam_dmux.c:2440
make[1]: *** [arch/arm/mach-msm/bam_dmux.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
Here's the layout of my toolchains folder and my broken build file (looks like yours)
Code:
z:toolchains anon$ pwd
/Volumes/android/ndk/toolchains
z:toolchains anon$ ls arm-linux-androideabi-4.*/prebuilt/darwin-x86_64/arm-linux-androideabi/bin
arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/arm-linux-androideabi/bin:
ar c++ gcc ld.bfd ld.mcld objcopy ranlib
as g++ ld ld.gold nm objdump strip
arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/arm-linux-androideabi/bin:
ar c++ gcc ld.bfd ld.mcld objcopy ranlib
as g++ ld ld.gold nm objdump strip
Broken Make file edit:
Code:
CROSS_COMPILE ?= /Volumes/android/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-
Change to 4.6 for new compile error:
Code:
CROSS_COMPILE ?= /Volumes/android/ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-
Made is a helluva lot father in the compilation process, but still won't compile correctly.
Code:
net/netfilter/xt_TCPMSS.c:50:8: warning: 'struct xt_tcpmss_info' declared inside parameter list [enabled by default]
error, forbidden warning: xt_TCPMSS.c:50
make[2]: *** [net/netfilter/xt_TCPMSS.o] Error 1
make[1]: *** [net/netfilter] Error 2
make: *** [net] Error 2
Got my NDK from here:
Code:
http://dl.google.com/android/ndk/android-ndk-r9c-darwin-x86_64.tar.bz2
I don't, yet, understand the differences between the versions. Not sure if this will be helpful, samsungs open source community page sure isn't very friendly.
Julian90090 said:
Ok so I was messing around and decided to fix the -Wsizeof-pointer-memaccess errors. I opened bam_dmux.c and changed the line
Code:
return snprintf(buf, sizeof(buf), "%u\n", wakelock_timeout);
to
Code:
return snprintf(buf, (int)sizeof(buf), "%u\n", wakelock_timeout);
The kernel compiles now, but when I flash it to my device (mkbootimg), I get a ODIN message saying regular boot failed...
MORE UPDATES:
Tried flashing plain zImage in tar with ODIN, got a "unsupport dev_type" error on the device.
I fixed all the compile errors. I changed cross compilers to arm linux gnueabihf 4.7. There is still the task of getting the kernel on the device though... Thanks in advance!
EDIT AGAIN: Still can't get it to boot. Tried compiling stock kernel, leankernel, and Saber kernel. All same result after packing zImage and flashing with flashable zip...
Using repack-zImage.sh, I get a "gunzip result is oscillating between 'too small' and 'too large' at size: 7836575 7836576 7836577 7836578" error. There are no compile errors with any of the kernels. I attached my "finished" stock kernel flashable zip (doesn't work). I heard something about a mismatch between gzip and lzop... *feeling determined*
Click to expand...
Click to collapse
I dunno if it is still relevant to you, but in your code change this
Code:
return snprintf(buf, sizeof(buf), "%u\n", wakelock_timeout);
to this
Code:
return snprintf(buf, sizeof([COLOR="Red"]*[/COLOR]buf), "%u\n", wakelock_timeout);
Do that for all the files you get error in.
This error is because the toolchain you are using is higher version than GCC 4.8.*
Use any lower GCC version toolchain and those changes are not needed.
If you want the newer cross compiler, You need to make the cnanges. I hope this helps...
Cheers!!!
daxgirl said:
I dunno if it is still relevant to you, but in your code change this
Code:
return snprintf(buf, sizeof(buf), "%u\n", wakelock_timeout);
to this
Code:
return snprintf(buf, sizeof([COLOR="Red"]*[/COLOR]buf), "%u\n", wakelock_timeout);
Do that for all the files you get error in.
This error is because the toolchain you are using is higher version than GCC 4.8.*
Use any lower GCC version toolchain and those changes are not needed.
If you want the newer cross compiler, You need to make the cnanges. I hope this helps...
Cheers!!!
Click to expand...
Click to collapse
I did the same thing; i.e. I added (int) to the line also. The compiler seems to be ok with it, but I have not installed it on a device yet. I actually see a number of these errors. Do you think there should be another fix for it perhaps? Did you findout anything else about this? I appreciate a reply.
sansari123 said:
I did the same thing; i.e. I added (int) to the line also. The compiler seems to be ok with it, but I have not installed it on a device yet. I actually see a number of these errors. Do you think there should be another fix for it perhaps? Did you findout anything else about this? I appreciate a reply.
Click to expand...
Click to collapse
Yeah there is another fix. You add flags to your makefile for the cross cimpiler to basically accept those. Since they are not errors. Than you can use any chain. I managed to compile on sabermod 4.10 a kernel for s5, which was giving me the same trouble. Once I upload my sources I will send you a link to the repo so you can tweak your makefile accordingly ?
Sent from my SM-G900F using Tapatalk
Thanks. The latest message I get is the following:
Code:
drivers/cpufreq/cpufreq_interactive.c: In function 'show_target_loads':
drivers/cpufreq/cpufreq_interactive.c:813:6: warning: operation on 'ret' may be undefined [-Wsequence-point]
error, forbidden warning: cpufreq_interactive.c:813
make[2]: *** [drivers/cpufreq/cpufreq_interactive.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2
But this one is a warning also. I guess there is a flag for ignoring warning(s)? I'll wait to hear back from you.
daxgirl said:
Yeah there is another fix. You add flags to your makefile for the cross cimpiler to basically accept those. Since they are not errors. Than you can use any chain. I managed to compile on sabermod 4.10 a kernel for s5, which was giving me the same trouble. Once I upload my sources I will send you a link to the repo so you can tweak your makefile accordingly ?
Sent from my SM-G900F using Tapatalk
Click to expand...
Click to collapse
@daxgirl - I like to learn how to modify the flags. Did you find out which flags to modify by reading the Makefile documentation? I would really appreciate it if you tell me how I can learn which flags to modify and do it myself vs. copy your Makefile.

[SM-T110][Q] Need a little help with kernel compiling! :)

Hi guys! I need help from more experienced people or devs. I'm building a kernel for SM-T110 (the lite wifi version)., and i have a few problems. First problem is, i don't know how to add OC to this device. This device (SM-T110) has a Marvell PXA986 CPU, not like T210 wich has Exynos CPU. Im going to folder where my kernel is then /arch/arm and because this device has PXA986 im opening a folder mach-pxa, and then there is a multiple files with .c extension, like PXA2xx,PXA95x, and CPUFREQpxa3xx , CPUFREQpxa2xx, The tablet has a PXA986, and i dont know wich file i must open and edit... yeah it's a "real problem" . And i need a little help with compiling the kernel. Why? Because when i try to compile kernel i've got multiple errors, i fixed most of em but there is a 1 error i can't get rid of. Now i'm on Windows so i'm gonna post the log from this error in post 2, cause i must boot ubuntu first .
I'm using this as a source http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=SM-T110 - SM-T110_EUR_JB_OPENSOURCE.
It's my first time when im building a kernel, so maybe i ****ed something up Tried 2 times doing it all over again, nothing.
P.S I really want to OC this device so please not ask questions like "why do you want OC this device OC is dangerous blah blah blah" I know it can harm my hardware but, i want better performance!
Now im on UBUNTU 14.04
OK, here is the log with error from terminal with command make -j2 (2 because of number of cores in CPU)
[email protected]:~$ cd android
[email protected]:~/android$ cd kernel
[email protected]:~/android/kernel$ make -j2
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/Kconfig:164: syntax error
drivers/Kconfig:163: unknown option "The"
drivers/Kconfig:164: unknown option "changes"
drivers/Kconfig:165: unknown option "The"
drivers/Kconfig:166: unknown option "do"
drivers/Kconfig:167: unknown option "transitions"
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
[email protected]:~/android/kernel$
Click to expand...
Click to collapse
And with command "make"
[email protected]:~/android/kernel$ make
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/Kconfig:164: syntax error
drivers/Kconfig:163: unknown option "The"
drivers/Kconfig:164: unknown option "changes"
drivers/Kconfig:165: unknown option "The"
drivers/Kconfig:166: unknown option "do"
drivers/Kconfig:167: unknown option "transitions"
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
[email protected]:~/android/kernel$
Click to expand...
Click to collapse
With SU :
[email protected]:/home/bl1nd/android/kernel# make
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/Kconfig:164: syntax error
drivers/Kconfig:163: unknown option "The"
drivers/Kconfig:164: unknown option "changes"
drivers/Kconfig:165: unknown option "The"
drivers/Kconfig:166: unknown option "do"
drivers/Kconfig:167: unknown option "transitions"
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
[email protected]:/home/bl1nd/android/kernel#
Click to expand...
Click to collapse
I don't know what this error means...
Bl!nd said:
Hi guys! I need help from more experienced people or devs. I'm building a kernel for SM-T110 (the lite wifi version)., and i have a few problems. First problem is, i don't know how to add OC to this device. This device (SM-T110) has a Marvell PXA986 CPU, not like T210 wich has Exynos CPU. Im going to folder where my kernel is then /arch/arm and because this device has PXA986 im opening a folder mach-pxa, and then there is a multiple files with .c extension, like PXA2xx,PXA95x, and CPUFREQpxa3xx , CPUFREQpxa2xx, The tablet has a PXA986, and i dont know wich file i must open and edit... yeah it's a "real problem" . And i need a little help with compiling the kernel. Why? Because when i try to compile kernel i've got multiple errors, i fixed most of em but there is a 1 error i can't get rid of. Now i'm on Windows so i'm gonna post the log from this error in post 2, cause i must boot ubuntu first .
I'm using this as a source http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=SM-T110 - SM-T110_EUR_JB_OPENSOURCE.
It's my first time when im building a kernel, so maybe i ****ed something up Tried 2 times doing it all over again, nothing.
P.S I really want to OC this device so please not ask questions like "why do you want OC this device OC is dangerous blah blah blah" I know it can harm my hardware but, i want better performance!
Click to expand...
Click to collapse
T210 also has Marvell, not Exynos. Take a look at Werewolf kernel sources. I believe he added OC to it.
Sent from my SM-G920V using Tapatalk
Well that's strange, this forum http://forum.xda-developers.com/galaxy-tab-3 says "The 7 is powered by an Exonys 1.2 dual core processor" same like other sources. Thanks, i'm gonna look at his kernel.
EDIT: Yep! i found it it's in arch/arm/mach_mpp/apuclock988 / dvfs-pxa988.c /clock-pxa988.c
Again...
gr8nole said:
T210 also has Marvell, not Exynos. Take a look at Werewolf kernel sources. I believe he added OC to it.
Sent from my SM-G920V using Tapatalk
Click to expand...
Click to collapse
Hi, thanks for your help, i added the CPU oc to the kernel and some GPU OC entries (i think this GPU OC wont work). Now i have a problem with compiling the kernel. Here's a log from terminal:
[email protected]:~$ su
Password:
[email protected]:/home/bl1nd# cd android
[email protected]:/home/bl1nd/android# cd kernel
[email protected]:/home/bl1nd/android/kernel# make
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/Kconfig:164: syntax error
drivers/Kconfig:163: unknown option "The"
drivers/Kconfig:164: unknown option "changes"
drivers/Kconfig:165: unknown option "The"
drivers/Kconfig:166: unknown option "do"
drivers/Kconfig:167: unknown option "transitions"
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
? What this error means?
another error
gr8nole said:
T210 also has Marvell, not Exynos. Take a look at Werewolf kernel sources. I believe he added OC to it.
Sent from my SM-G920V using Tapatalk
Click to expand...
Click to collapse
This errors make it a torture to compile this kernel.....:
CC arch/arm/plat-versatile/leds.o
CC arch/arm/plat-versatile/sched-clock.o
LD arch/arm/plat-versatile/built-in.o
CC kernel/fork.o
CC kernel/exec_domain.o
CC kernel/panic.o
CC kernel/printk.o
kernel/printk.c:49:28: fatal error: mach/sec_debug.h: No such file or directory
compilation terminated.
make[1]: *** [kernel/printk.o] Error 1
make: *** [kernel] Error 2
[email protected]:~/android/K
.......I'm fixing one error then another comes, and again again again .
/tmp/ccg3uLct.s: Assembler messages:
/tmp/ccg3uLct.s: Error: .size expression for __v7_pj4_proc_info does not evaluate to a constant
make[1]: *** [arch/arm/mm/proc-v7.o] Error 1
make: *** [arch/arm/mm] Error 2
Click to expand...
Click to collapse
But this is the error that im trying to fix from a 3 hours, and i just can't.
See this commit for the fix: https://github.com/pazos/android_ke...bb936b4716cf3b07896d3f26df4e376b5738718bbafde

[Q]Noob trying to build CM13

Hey guys I am new to compiling from source. I am not looking to build a fully working version of CM13 i am trying to broadan my knowledge. I have got previose experiance in linux but not in source building. I know that I should have probably started with a version of CM that is already supported but I thought I would jump in the deap end.
I am trying to compile CM13 but keep getting this error. can anyone shed some light of where I am going wrong and what I can possibly do to fix it?
I used this tree
https://github.com/CyanogenMod/android_device_samsung_serrano3gxx/tree/cm-13.0
@k2wl
 @F4k
 @F4uzan
@aidasaidas75
 @GeekyDroid
 @freeusername
@Asce1062
 @bkr32
@AngSanley
@-CALIBAN666-
Code:
target thumb C++: gralloc.msm8960 <= hardware/qcom/display-caf/msm8960/libgralloc/gpu.cpp
hardware/qcom/display-caf/msm8960/libgralloc/gpu.cpp: In constructor 'gralloc::gpu_context_t::gpu_context_t(const private_module_t*, gralloc::IAllocController*)':
hardware/qcom/display-caf/msm8960/libgralloc/gpu.cpp:49:5: error: 'allocSize' was not declared in this scope
allocSize = gralloc_alloc_size;
^
hardware/qcom/display-caf/msm8960/libgralloc/gpu.cpp: At global scope:
hardware/qcom/display-caf/msm8960/libgralloc/gpu.cpp:172:60: warning: unused parameter 'size' [-Wunused-parameter]
int gpu_context_t::gralloc_alloc_framebuffer_locked(size_t size, int usage,
^
make: *** [/home/andre/CM13/out/target/product/serrano3gxx/obj/SHARED_LIBRARIES/gralloc.msm8960_intermediates/gpu.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/andre/CM13'
ok I think I fixed it by cherry picking
http://review.cyanogenmod.org/#/c/113774/
Interesting. Have you got it to boot yet?

Categories

Resources