cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Participant
Participant
9,103 Views
Registered: ‎05-15-2013

Problems on running axi dma test on ZC706, with Linaro filesystem and a UBUNTU 12.04 LTS OS

Hello everybody! I'm a newbie on linux and zynq. In the past two weeks, I followed http://wiki.analog.com/resources/tools-software/linux-drivers/platforms/zynq and xilinx/ananlog wiki, did these things: 1.build UBOOT.bin (I have some problems here too --) 2.build uImage 3.build devicetree.dtb 4.build linaro file roofs in ext4 part on SD card now I can boot the ubuntu OS on zc706, and I can see Analog dekstop. Problems: 1.The kenerl I used is downloaded is linux-xcomm_zynq.zip, has a zynq-zc706-adv7511-defconfig, and includes the xilinx dma device, but on ubuntu OS, I can't find dmaengine.h and other head files-- what should i do to add these head file to OS? 2.when I build uboot.elf from u-boot-xlnx-xilinx-v2015.1(downloaded at xilinx github), I always have boot failed. serial shows:can't find uEnv.txt and ramdisk.gz- I google for this problem and find the uboot not adapt for zc706 on linaro--Can xilinx fix this problem or give some tips? I did googled for many arcticles for these problems, but still unsolved. Sorry for my english. Any help will be preciated.

0 Kudos
7 Replies
Highlighted
Participant
Participant
9,091 Views
Registered: ‎05-15-2013

Re: Problems on running axi dma test on ZC706, with Linaro filesystem and a UBUNTU 12.04 LTS OS

Maybe I didn't describe my problems clearly, complimentions:

 

About UBOOT:

 I have a built uboot.elf(downloaded on analog github), system.bit(with hdmi and axi dma) is generated by vivado 2014.2, so do FSBL.elf. Use analog built uboot.elf, then build to BOOT.bin, it works fine, and I can boot up ubuntu linaro;

Also I download uboot-xilinx-2015.1 at xilinx github, then generate my own uboot.elf, then build to UBOOT.bin; this time uboot will report error: can't find uEnv.txt and ramdiskxxx.gz, then boot fails.

I google for solutions and tried to modify uboot$PATH/include/configs/zynq-common.h, but also failed.

 

About kernel:

I have two kernel, one is linux-xilinx.xcomm downloaded on analogi git, the other is linux-xilinux-2015.1 xilinx git.

the analog one works fine and can boot up,but can't find dmaengine.h and other head file or c file.

xilinx one can't boot up, my target is to have hdmi for gui, so with no hdmi is not suitable for me.

 

Anyone could give some help?

 

0 Kudos
Highlighted
9,077 Views
Registered: ‎03-27-2014

Re: Problems on running axi dma test on ZC706, with Linaro filesystem and a UBUNTU 12.04 LTS OS


the analog one works fine and can boot up,but can't find dmaengine.h and other head file or c file.



Hum, this one would make me think your kernel does not support Linux DMA engine.

 

cd kernel
make menuconfig 
   -> drivers 
      -> dma engine support

xilinx one can't boot up

can we see the serial port output?

G.W.,
NIST - Time Frequency metrology
0 Kudos
Highlighted
Participant
Participant
9,066 Views
Registered: ‎05-15-2013

Re: Problems on running axi dma test on ZC706, with Linaro filesystem and a UBUNTU 12.04 LTS OS

Thx for your reply!

The uboot version I use is u-boot-xlnx-xilinx-2015.1

I'm sure the generated uImage,devicetree and linaro roofs are correct for boot-up

Now I put generated BOOT.bin in SD card, the log :

 

 


U-Boot 2015.01 (May 21 2015 - 08:37:39)

Board: Xilinx Zynq
I2C: ready
DRAM: ECC disabled 1 GiB
MMC: zynq_sdhci: 0
SF: Detected S25FL128S_64K with page size 512 Bytes, erase size 128 KiB, total 32 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Board: Xilinx Zynq
Net: Gem.e000b000
Hit any key to stop autoboot: 0
Device: zynq_sdhci
Manufacturer ID: 1b
OEM: 534d
Name: 00000
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 7.4 GiB
Bus Width: 4-bit
reading uEnv.txt
** Unable to read file uEnv.txt **
Copying Linux from SD to RAM...
reading uImage
3389800 bytes read in 342 ms (9.5 MiB/s)
reading devicetree.dtb
11120 bytes read in 17 ms (638.7 KiB/s)
reading uramdisk.image.gz
** Unable to read file uramdisk.image.gz **
zynq-uboot>

0 Kudos
Highlighted
Participant
Participant
9,060 Views
Registered: ‎05-15-2013

Re: Problems on running axi dma test on ZC706, with Linaro filesystem and a UBUNTU 12.04 LTS OS

Yesterday I find a guide for modification in uboot/include/configs/zynq-common.h

https://fpgacpu.wordpress.com/2013/05/24/yet-another-guide-to-running-linaro-ubuntu-desktop-on-xilinx-zynq-on-the-zedboard/

follow this guide, I did this change in zynq-common.h

 

before change:

"sdboot=if mmcinfo; then " \
"run uenvboot; " \
"echo Copying Linux from SD to RAM... && " \
"load mmc 0 ${kernel_load_address} ${kernel_image} && " \
"load mmc 0 ${devicetree_load_address} ${devicetree_image} && " \
"load mmc 0 ${ramdisk_load_address} ${ramdisk_image} && " \
"bootm ${kernel_load_address} ${ramdisk_load_address} ${devicetree_load_address}; " \

 

modified to

+              "sdboot=echo Copying Linux from SD to RAM...;" \
+                              "mmcinfo;" \
+                              "fatload mmc 0 0x3000000 ${kernel_image};" \
+                              "fatload mmc 0 0x2A00000 ${devicetree_image};" \
+                              "bootm 0x3000000 - 0x2A00000" \

 

but it seems not work. 

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
9,043 Views
Registered: ‎07-01-2010

Re: Problems on running axi dma test on ZC706, with Linaro filesystem and a UBUNTU 12.04 LTS OS

@fivepanda_2013

 

 

Can you try the below details and see if you see the same issue?

1. Copy the file to the SD card 

    

BOOT.bin
devicetree.dtb
uImage
uramdisk.image.gz

2. Stop autoboot while booting from SD card

   

Hit any key to stop autoboot

 

3. Use the below command to load the

    

fatload mmc 0 0x3000000 uImage
fatload mmc 0 0x2A00000 devicetree.dtb
fatload mmc 0 0x2000000 uramdisk.image.gz
bootm 0x3000000 0x2000000 0x2A00000

 

check if this helps.

 

Regards,

Achutha

---------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------
0 Kudos
Highlighted
Participant
Participant
9,038 Views
Registered: ‎05-15-2013

Re: Problems on running axi dma test on ZC706, with Linaro filesystem and a UBUNTU 12.04 LTS OS

I followed  your guide and the result is :


U-Boot 2015.01 (May 21 2015 - 08:37:39)

Board: Xilinx Zynq
I2C: ready
DRAM: ECC disabled 1 GiB
MMC: zynq_sdhci: 0
SF: Detected S25FL128S_64K with page size 512 Bytes, erase size 128 KiB, total 32 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Board: Xilinx Zynq
Net: Gem.e000b000
Hit any key to stop autoboot: 0
zynq-uboot> fatload mmc 0 0x3000000 uImage
reading uImage
3389800 bytes read in 342 ms (9.5 MiB/s)
zynq-uboot> fatload mmc 0 0x2A00000 devicetree.dtb
reading devicetree.dtb
12397 bytes read in 24 ms (503.9 KiB/s)
zynq-uboot> fatload mmc 0 0x2000000 uramdisk.image.gz
reading uramdisk.image.gz
5619967 bytes read in 538 ms (10 MiB/s)
zynq-uboot> bootm 0x3000000 0x2000000 0x2A00000
## Booting kernel from Legacy Image at 03000000 ...
Image Name: Linux-3.17.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3389736 Bytes = 3.2 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02000000 ...
Image Name:
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 5619903 Bytes = 5.4 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 02a00000
Booting using the fdt blob at 0x2a00000
Loading Kernel Image ... OK
Loading Ramdisk to 1faa3000, end 1ffff0bf ... OK
Loading Device Tree to 1fa9c000, end 1faa206c ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 3.17.0 (root@ubuntu) (gcc version 4.6.3 (Sourcery CodeBench Lite 2012.03-79) ) #5 SMP PREEMPT Wed May 20 09:28:45 CST 2015
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Xilinx Zynq ZC706
bootconsole [earlycon0] enabled
cma: Reserved 128 MiB at 27800000
Memory policy: Data cache writealloc
PERCPU: Embedded 7 pages/cpu @e6f98000 s8064 r8192 d12416 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260624
Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 895980K/1048576K available (4342K kernel code, 242K rwdata, 1676K rodata, 199K init, 134K bss, 152596K reserved, 270336K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xffe00000 (2048 kB)
vmalloc : 0xf0000000 - 0xff000000 ( 240 MB)
lowmem : 0xc0000000 - 0xef800000 ( 760 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc05e8cc0 (6020 kB)
.init : 0xc05e9000 - 0xc061af80 ( 200 kB)
.data : 0xc061c000 - 0xc0658ac0 ( 243 kB)
.bss : 0xc0658ac0 - 0xc067a620 ( 135 kB)
Preemptible hierarchical RCU implementation.
Dump stacks of tasks blocking RCU-preempt GP.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
L2C: platform provided aux values match the hardware, so have no effect. Please remove them.
L2C-310 erratum 769419 enabled
L2C-310 enabling early BRESP for Cortex-A9
L2C-310 full line of zeros enabled for Cortex-A9
L2C-310 ID prefetch enabled, offset 1 lines
L2C-310 dynamic clock gating enabled, standby mode enabled
L2C-310 cache controller enabled, 8 ways, 512 kB
L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76360001
slcr mapped to f0006000
zynq_clock_init: clkc starts at f0006100
Zynq clock init
sched_clock: 16 bits at 54kHz, resolution 18432ns, wraps every 1207951633ns
timer #0 at f0008000, irq=43
Console: colour dummy device 80x30
Calibrating delay loop... 1332.01 BogoMIPS (lpj=6660096)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x418860 - 0x4188b8
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated.
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
zynq-ocm f800c000.ps7-ocm: ZYNQ OCM pool: 256 KiB @ 0xf0080000
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
media: Linux media interface: v0.10
Linux video capture interface: v2.00
EDAC MC: Ver: 3.0.0
Advanced Linux Sound Architecture Driver Initialized.
Switched to clocksource ttc_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 5488K (dfaa3000 - dffff000)
hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
futex hash table entries: 512 (order: 3, 32768 bytes)
msgmni has been set to 1488
bounce: pool size: 64 pages
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
dma-pl330 f8003000.ps7-dma: Loaded driver for PL330 DMAC-2364208
dma-pl330 f8003000.ps7-dma: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
xuartps e0001000.uart: clock name 'aper_clk' is deprecated.
xuartps e0001000.uart: clock name 'ref_clk' is deprecated.
e0001000.uart: ttyPS0 at MMIO 0xe0001000 (irq = 82, base_baud = 3125000) is a xuartps
郼onsole [ttyPS0] enabled
console [ttyPS0] enabled
bootconsole [earlycon0] disabled
bootconsole [earlycon0] disabled
xdevcfg f8007000.devcfg: ioremap 0xf8007000 to f001c000
[drm] Initialized drm 1.1.0 20060810
drivers/gpu/drm/adi_axi_hdmi/axi_hdmi_drv.c:axi_hdmi_platform_probe[175]
platform 70e00000.axi_hdmi: Driver axi-hdmi requests probe deferral
brd: module loaded
loop: module loaded
libphy: XEMACPS mii bus: probed
xemacps e000b000.eth: pdev->id -1, baseaddr 0xe000b000, irq 54
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ULPI transceiver vendor/product ID 0x0424/0x0007
Found SMSC USB3320 ULPI transceiver.
ULPI integrity check: passed.
zynq-ehci zynq-ehci.0: Xilinx Zynq USB EHCI Host Controller
zynq-ehci zynq-ehci.0: new USB bus registered, assigned bus number 1
zynq-ehci zynq-ehci.0: irq 53, io mem 0x00000000
zynq-ehci zynq-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver ftdi_sio
usbserial: USB Serial support registered for FTDI USB Serial Device
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
i2c i2c-0: Added multiplexed i2c bus 1
i2c i2c-0: Added multiplexed i2c bus 2
at24 3-0054: 1024 byte 24c08 EEPROM, writable, 1 bytes/write
i2c i2c-0: Added multiplexed i2c bus 3
i2c i2c-0: Added multiplexed i2c bus 4
rtc-pcf8563 5-0051: chip found, driver version 0.4.3
rtc-pcf8563 5-0051: rtc core: registered rtc-pcf8563 as rtc0
i2c i2c-0: Added multiplexed i2c bus 5
i2c i2c-0: Added multiplexed i2c bus 6
i2c i2c-0: Added multiplexed i2c bus 7
i2c i2c-0: Added multiplexed i2c bus 8
pca954x 0-0074: registered 8 multiplexed busses for I2C switch pca9548
zynq-edac f8006000.ps7-ddrc: ecc not enabled
Xilinx Zynq CpuIdle Driver started
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
sdhci-arasan e0100000.sdhci: No vmmc regulator found
sdhci-arasan e0100000.sdhci: No vqmmc regulator found
mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using ADMA
ledtrig-cpu: registered to indicate activity on CPUs
hidraw: raw HID events driver (C) Jiri Kosina
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
si570 1-005d: 'temperature-stability' property missing
si570: probe of 1-005d failed with error -22
platform 44a00000.axi-ad9265-core-lpc: Driver cf_axi_adc requests probe deferral
spi spi32766.0: Driver ad9467 requests probe deferral
ad9517 spi32766.1: Unrecognized CHIP_ID 0xFF
mmc0: new high speed SDHC card at address 0002
mmcblk0: mmc0:0002 00000 7.41 GiB
mmcblk0: p1 p2
adv7511-hdmi-snd fpga-axi@0:adv7511_hdmi_snd: adv7511 <-> 75c00000.axi-spdif-tx mapping ok
TCP: cubic registered
NET: Registered protocol family 17
Registering SWP/SWPB emulation handler
axi-hdmi 70e00000.axi_hdmi: No connectors reported connected with modes
[drm] Cannot find any crtc or sizes - going 1024x768
usb 1-1: new low-speed USB device number 2 using zynq-ehci
Console: switching to colour frame buffer device 128x48
axi-hdmi 70e00000.axi_hdmi: fb0: frame buffer device
axi-hdmi 70e00000.axi_hdmi: registered panic notifier
[drm] Initialized axi_hdmi_drm 1.0.0 20120930 on minor 0
platform 44a00000.axi-ad9265-core-lpc: Driver cf_axi_adc requests probe deferral
spi spi32766.0: Driver ad9467 requests probe deferral
rtc-pcf8563 5-0051: setting system clock to 1970-01-07 01:34:34 UTC (524074)
ALSA device list:
#0: HDMI monitor
Freeing unused kernel memory: 196K (c05e9000 - c061a000)
INIT: version 2.88 booting
input: Generic USB K/B as /devices/soc0/amba@0/e0002000.usb/zynq-ehci.0/usb1/1-1/1-1:1.0/0003:13BA:0017.0001/input/input0
hid-generic 0003:13BA:0017.0001: input,hidraw0: USB HID v1.10 Keyboard [Generic USB K/B] on usb-zynq-ehci.0-1/input0
platform 44a00000.axi-ad9265-core-lpc: Driver cf_axi_adc requests probe deferral
spi spi32766.0: Driver ad9467 requests probe deferral
platform 44a00000.axi-ad9265-core-lpc: Driver cf_axi_adc requests probe deferral
input: Generic USB K/B as /devices/soc0/amba@0/e0002000.usb/zynq-ehci.0/usb1/1-1/1-1:1.1/0003:13BA:0017.0002/input/input1
hid-generic 0003:13BA:0017.0002: input,hidraw1: USB HID v1.10 Mouse [Generic USB K/B] on usb-zynq-ehci.0-1/input1
spi spi32766.0: Driver ad9467 requests probe deferral
platform 44a00000.axi-ad9265-core-lpc: Driver cf_axi_adc requests probe deferral
spi spi32766.0: Driver ad9467 requests probe deferral
platform 44a00000.axi-ad9265-core-lpc: Driver cf_axi_adc requests probe deferral
sh: /etc/mdev/find-touchscreen.sh: No such file or directory
sh: /etc/mdev/find-touchscreen.sh: No such file or directory
Starting Bootlog daemon: bootlogd.
Creating /dev/flash/* device nodes
random: dd urandom read with 19 bits of entropy available
Configuring network interfaces... udhcpc (v1.20.2) started
Sending discover...
random: nonblocking pool is initialized
Sending discover...
Sending discover...
No lease, failing
starting Busybox inet Daemon: inetd... done.
INIT: Entering runlevel: 5
Starting Dropbear SSH server: Will output 1024 bit rsa secret key to '/etc/dropbear/dropbear_rsa_host_key'
Generating key, this may take a while...
Public key portion is:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgwCIoi0Zn7XDMYWjOvVyhcnZmOT/cZekRYet3NPY4saMuX1C2+h0etPhj2aMSSlef2S63XyOvZTDimObam8wkX6RZrfuk8GB6GB1jeY4EvW4z6M84aTi0oji1jKNNxkweAXjB/kIgbWDErExD4ygBaprhXRA0GAs3Q4T8HMDbixKwF5X root@zynq
Fingerprint: md5 bf:67:7d:3c:c3:25:32:50:6d:f6:21:02:13:27:c5:1c
dropbear.
Stopping Bootlog daemon: bootlogd.
Starting tcf-agent: OK

_____ _ _ _
| ___ \ | | | | (_)
| |_/ / ___ | |_ __ _ | | _ _ __ _ _ __ __
| __/ / _ \| __| / _` || | | || '_ \ | | | |\ \/ /
| | | __/| |_ | (_| || |____| || | | || |_| | > <
\_| \___| \__| \__,_|\_____/|_||_| |_| \__,_|/_/\_\

PetaLinux v2013.10 (Yocto 1.4) zynq ttyPS0

zynq login:

 

 

---yes, I did boot up,but it seems like the os is petalinux-but i want boot a linaro roofs ubuntu-

 

 

I set bootargs here

Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait

but it seems not work.

0 Kudos
Highlighted
Participant
Participant
9,036 Views
Registered: ‎05-15-2013

Re: Problems on running axi dma test on ZC706, with Linaro filesystem and a UBUNTU 12.04 LTS OS

I also tried to add a uEnv.txt form adi wiki:

uenvcmd=run adi_sdboot
adi_sdboot=echo Copying Linux from SD to RAM... && fatload mmc 0 0x3000000 ${kernel_image} && fatload mmc 0 0x2A00000 ${devicetree_image} && if fatload mmc 0 0x2000000 ${ramdisk_image}; then bootm 0x3000000 0x2000000 0x2A00000; else bootm 0x3000000 - 0x2A00000; fi
bootargs=console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait

but also has no ifect 

0 Kudos