my main point was that you dont have to completely build the kernel twice, you can
make clean
make defconfig
make modules
copy modules
strip modules
make zImage
make tar/zip
Oh sorry, I see what you mean. Yes, I well update the guide accordingly.
my main point was that you dont have to completely build the kernel twice, you can
make clean
make defconfig
make modules
copy modules
strip modules
make zImage
make tar/zip
make: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: Command not found
says that your CROSS_COMPILE variable is set wrong, you dont have the toolchain installed there..
Sorry for all the questions, once I figure this out ill be good. When I do step 5 it only took like 10 seconds, the op states it should take a while.....
Im on 64 bit ubuntu if it makes any difference.. Im using the initramfs from desperado kernel github.
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ make c1_rev05_na_spr_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
HOSTCC scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function ‘conf_sym’:
scripts/kconfig/conf.c:159:6: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:231:6: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]
scripts/kconfig/conf.c:307:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:105:8: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ make -j5 CONFIG_INITRAMFS_SOURCE=/home/michaelc/Desktop/initramfs
make: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: Command not found
scripts/kconfig/conf -s arch/arm/Kconfig
make: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: Command not found
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/genksyms/genksyms.o
CC scripts/mod/empty.o
/bin/sh: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: not found
make[2]: *** [scripts/mod/empty.o] Error 127
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
HOSTCC scripts/genksyms/lex.o
HOSTCC scripts/genksyms/parse.o
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/bin/sh: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
HOSTLD scripts/genksyms/genksyms
make: *** [scripts] Error 2
Try this:
After you enter : "sudo make clean" and that goes through and its done, retype the "export CROSS_COMPILE=Path to toolchain" command then hit enter and type: "make -j5 CONFIG_INITRAMFS_SOURCE=/home/michaelc/Desktop/initramfs" Then see if it compiles after that.
Same thing. Here my entire terminal session:
michaelc@michaelc-iMac:~$ cd /home/michaelc/Desktop/SPH-D710_GB_Kernel
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ export CROSS_COMPILE=/home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ sudo make clean
[sudo] password for michaelc:
make: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
CLEAN .tmp_versions
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ export CROSS_COMPILE=/home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ make -j5 CONFIG_INITRAMFS_SOURCE=/home/michaelc/Desktop/initramfs
make: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: Command not found
CHK include/linux/version.h
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
CHK include/generated/utsrelease.h
HOSTCC scripts/basic/hash
make[1]: `include/generated/mach-types.h' is up to date.
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/genksyms/lex.o
CC scripts/mod/empty.o
/bin/sh: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: not found
make[2]: *** [scripts/mod/empty.o] Error 127
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
HOSTCC scripts/genksyms/parse.o
CC kernel/bounds.s
/bin/sh: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
HOSTLD scripts/genksyms/genksyms
make: *** [scripts] Error 2
make: *** wait: No child processes. Stop.
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$
Lets start over:
Open a new terminal window and cd again: cd /home/michaelc/Desktop/SPH-D710_GB_Kernel
Then enter: CROSS_COMPILE command: export CROSS_COMPILE=/home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-
Enter: sudo make clean
*ignore any Make: errors*
enter again: CROSS_COMPILE command: export CROSS_COMPILE=/home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-
enter: make -j5 CONFIG_INITRAMFS_SOURCE=/home/michaelc/Desktop/initramfs
Now see with a clean slate if it works now or what errors you get.
Not sure if it the initramfs file I used from desperado github but it doesnt have the lib folder like the one does you liked to.
Restarted terminal and get this;
michaelc@michaelc-iMac:~$ cd /home/michaelc/Desktop/SPH-D710_GB_Kernel
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ export CROSS_COMPILE=/home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ sudo make clean
[sudo] password for michaelc:
make: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
CLEAN .tmp_versions
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ export CROSS_COMPILE=/home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ make -j5 CONFIG_INITRAMFS_SOURCE=/home/michaelc/Desktop/initramfs
make: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: Command not found
CHK include/linux/version.h
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/genksyms/lex.o
HOSTCC scripts/genksyms/parse.o
CC kernel/bounds.s
/bin/sh: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
CC scripts/mod/empty.o
/bin/sh: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: not found
make[2]: *** [scripts/mod/empty.o] Error 127
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
HOSTLD scripts/genksyms/genksyms
make: *** [scripts] Error 2
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$
arm-non-eabi-gcc is in the folder so i dont know why it says not found
I just realised this, you are using a linux toolchain on a mac..
you need a mac toolchain..
Are you using the tool chain linked on the guide or a differrent one? Double check that the path is correct to. Go to your homefolder look for the desktop folder then look for the toolchain.
Restarted terminal and get this;
michaelc@michaelc-iMac:~$ cd /home/michaelc/Desktop/SPH-D710_GB_Kernel
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ export CROSS_COMPILE=/home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ sudo make clean
[sudo] password for michaelc:
make: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
CLEAN .tmp_versions
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ export CROSS_COMPILE=/home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$ make -j5 CONFIG_INITRAMFS_SOURCE=/home/michaelc/Desktop/initramfs
make: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: Command not found
CHK include/linux/version.h
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/genksyms/lex.o
HOSTCC scripts/genksyms/parse.o
CC kernel/bounds.s
/bin/sh: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
CC scripts/mod/empty.o
/bin/sh: /home/michaelc/Desktop/arm-2009q3/bin/arm-none-eabi-gcc: not found
make[2]: *** [scripts/mod/empty.o] Error 127
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
HOSTLD scripts/genksyms/genksyms
make: *** [scripts] Error 2
michaelc@michaelc-iMac:~/Desktop/SPH-D710_GB_Kernel$
Edit: You are on ubuntu? okay never mind what i just said...
I just realised this, you are using a linux toolchain on a mac..
you need a mac toolchain..
Then after that put where your tool chain is located. Also when you are entering where it is at, you need to put a “/bin/arm-none-eabi-” at the end of the directory. This shows the terminal that the compiling tools are under the folder bin and starts with arm-none-eabi- and the android compilation adds the last word for the compiler program it needs. (you can see this if you go into the bin folder under the “arm-2009q3 folder.) For adding the tool chain I entered this:
export CROSS_COMPILE=/home/shane/Desktop/arm-2009q3/bin/arm-none-eabi-
make: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found
cp drivers/samsung/j4fs/j4fs.ko Path to initramfs/lib/modules
cp drivers/scsi/scsi_wait_scan.ko Path to initramfs/lib/modules
cp drivers/bluetooth/bthid/bthid.ko Path to initramfs/lib/modules
cp drivers/net/wireless/bcm4330/dhd.ko Path to initramfs/lib/modules
cp drivers/samsung/vibetonz/vibrator.ko Path to initramfs/lib/modules
cp drivers/staging/westbridge/astoria/switch/cyasswitch.ko Path to initramfs/lib/modules