Hi,
I follow the instructions in the PCIe root complex design 2014.2 on the mini-ITX board in order to build the Linux kernel. But I have two problems now.
First, I download the kernel from
git://github.com/Xilinx/linux-xlnx.git
I check the kernel version and it is 3.14
After i have applied the patch,
git am zynq_rc_nwl_drivers.patch
the kernel version is changed to 3.9,
so is it a correct result that the kernel version changes?
Second, since i want to use this PCIe RC design to control a solid state disk, i add the SATA and ACHI drivers in the menuconfig as follows,
make ARCH=arm zc706_rc_defconfig
make ARCH=arm menuconfig
after i have added the SATA drviers, I build the kernel by
make ARCH=arm uImage -j 4 UIMAGE_LOADADDR=0x8000
However, a lot of options jump out as follows:
hadoop@cubiemaster:~/kernel/linux-xlnx$ git apply --check zynq_rc_nwl_drivers.patch
hadoop@cubiemaster:~/kernel/linux-xlnx$ git am zynq_rc_nwl_drivers.patch
Applying: K7 Base and Connectivity TRD versions of North West Logic DMA drivers
/home/hadoop/kernel/linux-xlnx/.git/rebase-apply/patch:3273: trailing whitespace.
obj-y += xdma/ xrawdata0/
/home/hadoop/kernel/linux-xlnx/.git/rebase-apply/patch:5201: trailing whitespace.
ccflags-y := -DK7_TRD -DX86_PC -DNWLDMA -DXENV_LINUX -DUSE_IO_MACROS -DXLITTLE_ENDIAN -DPCI_LINUX -I arch/arm/mach-zynq/k7_base_driver/include/
/home/hadoop/kernel/linux-xlnx/.git/rebase-apply/patch:5371: trailing whitespace.
spin_lock(&(InstancePtr->bdring_lock));
/home/hadoop/kernel/linux-xlnx/.git/rebase-apply/patch:5422: trailing whitespace.
spin_unlock(&(InstancePtr->bdring_lock));
/home/hadoop/kernel/linux-xlnx/.git/rebase-apply/patch:5933: trailing whitespace.
extern spinlock_t GlobalDataLock;
warning: squelched 959 whitespace errors
warning: 964 lines add whitespace errors.
hadoop@cubiemaster:~/kernel/linux-xlnx$ make ARCH=arm zc706_rc_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
hadoop@cubiemaster:~/kernel/linux-xlnx$ make menuconfig
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/mconf.o
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
configuration written to .config
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
hadoop@cubiemaster:~/kernel/linux-xlnx$ make ARCH=arm uImage -j 4 UIMAGE_LOADADDR=0x8000
scripts/kconfig/conf --silentoldconfig Kconfig
*
* Restart config...
*
*
* IRQ subsystem
*
Expose hardware/virtual IRQ mapping via debugfs (IRQ_DOMAIN_DEBUG) [N/y/?] (NEW)
*
* General setup
*
Cross-compiler tool prefix (CROSS_COMPILE) []
Local version - append to kernel release (LOCALVERSION) [-xilinx] -xilinx
Automatically append version information to the version string (LOCALVERSION_AUTO) [Y/n/?] y
Kernel compression mode
> 1. Gzip (KERNEL_GZIP)
2. LZMA (KERNEL_LZMA)
3. XZ (KERNEL_XZ)
4. LZO (KERNEL_LZO)
choice[1-4?]: 1
Default hostname (DEFAULT_HOSTNAME) [(none)] (none)
Support for paging of anonymous memory (swap) (SWAP) [Y/n/?] y
System V IPC (SYSVIPC) [Y/n/?] y
POSIX Message Queues (POSIX_MQUEUE) [N/y/?] n
open by fhandle syscalls (FHANDLE) [N/y/?] n
Auditing support (AUDIT) [N/y/?] n
Kernel .config support (IKCONFIG) [Y/n/m/?] y
Enable access to .config through /proc/config.gz (IKCONFIG_PROC) [Y/n/?] y
Kernel log buffer size (16 => 64KB, 17 => 128KB) (LOG_BUF_SHIFT) [14] 14
Checkpoint/restore support (CHECKPOINT_RESTORE) [N/y/?] n
Require conversions between uid/gids and their internal representation (UIDGID_STRICT_TYPE_CHECKS) [N/y/?] n
Automatic process group scheduling (SCHED_AUTOGROUP) [N/y/?] n
Enable deprecated sysfs features to support old userspace tools (SYSFS_DEPRECATED) [Y/n/?] y
Enable deprecated sysfs features by default (SYSFS_DEPRECATED_V2) [Y/n/?] y
Kernel->user space relay support (formerly relayfs) (RELAY) [N/y/?] n
Initial RAM filesystem and RAM disk (initramfs/initrd) support (BLK_DEV_INITRD) [Y/n/?] y
Initramfs source file(s) (INITRAMFS_SOURCE) []
Support initial ramdisks compressed using gzip (RD_GZIP) [Y/n/?] y
Support initial ramdisks compressed using bzip2 (RD_BZIP2) [N/y/?] n
Support initial ramdisks compressed using LZMA (RD_LZMA) [N/y/?] n
Support initial ramdisks compressed using XZ (RD_XZ) [N/y/?] n
Support initial ramdisks compressed using LZO (RD_LZO) [N/y/?] n
Optimize for size (CC_OPTIMIZE_FOR_SIZE) [Y/n/?] y
Enable 16-bit UID system calls (UID16) [Y/n/?] (NEW)
It seems that it is not config properly...
I don't know if i have made any operations incorrectly?
Any suggestions will be appreciated!
Thank You!