Closed zaazbb closed 9 years ago
You have a typo, it should be "ARCH=arm" not "ARM=arm"
yes, I modify it , rebuild, met a new error:
fs/btrfs/extent_io.c: In function ‘btrfs_free_io_failure_record’:
fs/btrfs/extent_io.c:2166:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
make[2]: *** No rule to make target `fs/btrfs/volumes.o', needed by `fs/btrfs/btrfs.o'. Stop.
make[1]: *** [fs/btrfs] Error 2
make: *** [fs] Error 2
It's probably worth a:
make ARCH=arm clean
to get the world back into a sane state.
make clean also met a error.
jf@ubuntu:~/work/raspberry/linux-rpi-3.18.y$ make ARCH=arm clean
CLEAN .
CLEAN arch/arm/kernel
./scripts/Makefile.clean:17: fs/fscache/Makefile: File name too long
make[2]: stat: fs/fscache/Makefile: File name too long
make[2]: *** No rule to make target `fs/fscache/Makefile'. Stop.
make[1]: *** [fs/fscache] Error 2
make: *** [_clean_fs] Error 2
What kind of filing system are you compiling in?
I do not know, I am under ubuntu 32bit, maybe, ext3 or ext4.
ubuntu 14.04 32bit, ext4. Ext4 (version 1.0) — Mounted at Filesystem Root.
The fact that your kernel is complaining about clock skew is worrying. You often see that using NFS when the clock differs between the server and the client.
I think this isn't a problem in the source, and that you have managed to get your installation into a peculiar state. I suggest you commit your changes, then use git format-patch to generate a patch. Then delete the entire tree, git clone it afresh, git am to apply your patch, then try the build steps again.
I'll try it tomorrow. thank you very much.
I delete the linux dir, and reunzip the linux-05851b0ab113773aeefbe98bee94298fa3cf646c.zip, create default config
jf@ubuntu:~/work/raspberry/linux-05851b0ab113773aeefbe98bee94298fa3cf646c$ make bcmrpi_defconfig ARCH=arm CROSS_COMPILE=/home/jf/work/raspberry/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-
then, make.
jf@ubuntu:~/work/raspberry/linux-05851b0ab113773aeefbe98bee94298fa3cf646c$ make bcmrpi_defconfig ARCH=arm CROSS_COMPILE=/home/jf/work/raspberry/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-
first, stoped at a broken linke file
In file included from fs/btrfs/super.c:60:0:
fs/btrfs/backref.h:23:19: fatal error: ulist.h: No such file or directory
compilation terminated.
make[2]: *** [fs/btrfs/super.o] Error 1
make[1]: *** [fs/btrfs] Error 2
make: *** [fs] Error 2
i rename it as ulist(copy).h, and download a new ulist.h file. then, make again. i met the same error.
fs/btrfs/extent_io.c: In function ‘btrfs_free_io_failure_record’:
fs/btrfs/extent_io.c:2166:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
make[2]: *** No rule to make target `fs/btrfs/volumes.o', needed by `fs/btrfs/btrfs.o'. Stop.
make[1]: *** [fs/btrfs] Error 2
make: *** [fs] Error 2
Github is notorious for corrupting .zip images of large repositories.
Retry pulling the source code from Github with git clone https://github.com/raspberrypi/linux.git
.
ok, I am cloning use git, i'll try again later.
now, build finished, how i can use new kernel?
Please close this issue, then go to the RPi forums and ask there.
ok. thank you.
os: ubuntu 14.04 rpi: rpi-3.18.y- a6cf3c99bc89e2c010c2f78fbf9e3ed478ccfd46 cross compiler: gcc-4.7-linaro-rpi-gnueabihf (from internet)
1, download "2015-01-31-raspbian.zip" from raspberry pi website, write it to sd card, copy /proc/config.gz to pc, unzip it, rename to .config, and copy it to rpi-3.18.y/ 2, add new touchscreen driver code: add i2c info to rpi-3.18.y/arch/arm/mach-bcm27-8/bcm2708.c add driver file to /drivers/i2c/ add driver files to /drivers/i2c/makefile add config option to /drivers/input/touchscreen/kconfig then enable the touchscreen option in "make menuconfig" 3, make it,
when building, met some errors as below: