AnsweredAssumed Answered

Building Linux kernel with NFS for Zynq ZC706 with ADV7511 support

Question asked by guraaf on Jun 19, 2014
Latest reply on Jun 19, 2014 by guraaf

Hello all,

 

I am trying to get ADV7511 working with the Xilinx Zynq ZC706 board. The default out-of-the-box SD card works. I was also able to compile the HDL in Vivado and use that system bitfile.

 

Now, I was trying to use the Linux but realized that it doesn't come with NFS compiled so wanted to rebuild the kernel. I downloaded the source code and built it but am getting a kernel panic. Any pointers appreciated.  My (incorrect?) steps so far:

 

$ git clone https://github.com/analogdevicesinc/linux.git linux-adi

$ cd linux-adi

$ git checkout xcomm_zynq_3_8

$ ARCH=arm CROSS_COMPILE=arm-xilinx-linux-gnueabi- make zync_xcomm_adv7511_defconfig xconfig

# checkbox select the NFS portions

$ ARCH=arm CROSS_COMPILE=arm-xilinx-linux-gnueabi- LOADADDR=0x8000 make uImage

$ cd arch/arm/boot/dts

$ ../../../../scripts/dtc/dtc -I dts -O dtb -o zynq-zc706-adv7511.dtb ../devicetree.dtb

$ cd ..

$ sudo mount /dev/sdc1/ /media/boot

$ sudo cp uImage devicetree.dtb /media/boot

 

The console of the Zynq board is as follows (the BOOT.BIN is something that works with the original uImage and devicetree). Thanks a lot for reading and your pointers.

 

-------

U-Boot 2012.10 (Mar 22 2013 - 14:07:04)

 

DRAM:  1 GiB

WARNING: Caches not enabled

MMC:   SDHCI: 0

SF: Detected S25FL129P_64K with page size 64 KiB, total 32 MiB

In:    serial

Out:   serial

Err:   serial

Net:   zynq_gem

Hit any key to stop autoboot:  0

## Error: "run" not defined

zynq-uboot> run sdboot

Device: SDHCI

Manufacturer ID: 28

OEM: 4245

Name:      

Tran Speed: 50000000

Rd Block Len: 512

SD version 2.0

High Capacity: Yes

Capacity: 7.5 GiB

Bus Width: 4-bit

reading uEnv.txt

 

** Unable to read "uEnv.txt" from mmc 0:1 **

Copying Linux from SD to RAM...

reading uImage

 

2967008 bytes read

reading devicetree.dtb

 

10127 bytes read

reading uramdisk.image.gz

 

5619967 bytes read

## Booting kernel from Legacy Image at 03000000 ...

   Image Name:   Linux-3.8.0-ga6ab43a

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    2966944 Bytes = 2.8 MiB

   Load Address: 00008000

   Entry Point:  00008000

   Verifying Checksum ... OK

## Flattened Device Tree blob at 02a00000

   Booting using the fdt blob at 0x02a00000

   Loading Kernel Image ... OK

OK

   Loading Device Tree to 1fffa000, end 1ffff78e ... OK

 

Starting kernel ...

 

 

Error: unrecognized/unsupported device tree compatible list:

[ 'xlnx,zynq-7000' ]

 

Available machine support:

 

ID (hex)    NAME

ffffffff    ARM-Versatile Express

000008e0    ARM-Versatile Express

00000d32    Xilinx Zynq Platform

 

Please check your kernel config and/or bootloader.

Outcomes