реклама на сайте
подробности

 
 
2 страниц V  < 1 2  
Closed TopicStart new topic
doom13
сообщение Apr 10 2018, 08:30
Сообщение #16


Профессионал
*****

Группа: Свой
Сообщений: 1 404
Регистрация: 11-03-11
Из: Минск, Беларусь
Пользователь №: 63 539



Тогда остаётся возможность написать свой драйвер для PCAP-Bridge.
Go to the top of the page
 
+Quote Post
sheynmanyu
сообщение Apr 10 2018, 10:13
Сообщение #17


Участник
*

Группа: Участник
Сообщений: 66
Регистрация: 5-07-17
Пользователь №: 97 975



Цитата(doom13 @ Apr 10 2018, 11:30) *
Тогда остаётся возможность написать свой драйвер для PCAP-Bridge.

Загрузка через fsbl или свой драйвер - этим возможности прошивки исчерпываются? Или есть еще какая-нибудь возможность прошивки PL части?
Go to the top of the page
 
+Quote Post
doom13
сообщение Apr 10 2018, 10:26
Сообщение #18


Профессионал
*****

Группа: Свой
Сообщений: 1 404
Регистрация: 11-03-11
Из: Минск, Беларусь
Пользователь №: 63 539



Для загрузки FPGA используется PCAP интерфейс, мастером выступает PS, а какой код будет рулить процессом загрузки FPGA - на Ваше усмотрение, можно FSBL, а можно Linux.
Go to the top of the page
 
+Quote Post
sheynmanyu
сообщение Apr 10 2018, 11:04
Сообщение #19


Участник
*

Группа: Участник
Сообщений: 66
Регистрация: 5-07-17
Пользователь №: 97 975



Цитата(doom13 @ Apr 10 2018, 13:26) *
Для загрузки FPGA используется PCAP интерфейс, мастером выступает PS, а какой код будет рулить процессом загрузки FPGA - на Ваше усмотрение, можно FSBL, а можно Linux.

Чтобы рулил им Linux, нужно, чтобы был драйвер. Ведь так?
Я склонна воспользоваться существующими драйверами, а не писать свой (пока недостаточно знаний, чтобы написать свой не глючный драйвер, хотя через baremetal приложения я умею перепрошивать PL "на лету", не перезагружая процессор).
На страничке в вики http://www.wiki.xilinx.com/Linux+Drivers написано следующее про драйвер устройства, отвечающего за PL Programming "There are a number of drivers in the kernel tree due to history and they may work, but the following list of drivers are currently what's tested and users are encouraged to use these rather than others. Any other drivers, not in the mainline and only in the Xilinx tree, may be old and obsolete such that they could be removed at any time." Тот драйвер, который мне нужен - not in mainline.
Пока у меня Petalinux 2017.2 Tools и я могу подгрузить этот драйвер в ядро ОС. Если я перейду на Petalinux 2017.4 или выше, смогу ли я воспользоваться старыми наработками (пользовательскими программами, прошивающими плис при запущенном Linux, без перезагрузки последнего)? Как в более высоких версиях petalinux tools предполагается программировать PL?
Надеюсь, я смогла объяснить свой вопрос...
...
Ясно. New driver in drivers/fpga should replace this driver. С репозитория xilinx/linux-xlnx.

Сообщение отредактировал sheynmanyu - Apr 10 2018, 11:04
Go to the top of the page
 
+Quote Post
sheynmanyu
сообщение Apr 13 2018, 12:07
Сообщение #20


Участник
*

Группа: Участник
Сообщений: 66
Регистрация: 5-07-17
Пользователь №: 97 975



Поменяла репозиторий на linux-xlnx v4.9. Лучше бы я этого не делала... Теперь после старта загрузки ядра все виснет. U-boot доходит до разных этапов, и выдает:
CODE
reading system.dtb
13290 bytes read in 17 ms (762.7 KiB/s)
## Loading kernel from FIT Image at 10000000 ...
Using 'conf@2' configuration
Verifying Hash Integrity ... Data Start: 0x100000d4
Data Size: 3741104 Bytes = 3.6 MiB
Architecture: ARM
OS: Linux
Load Address: 0x00008000
Entry Point: 0x00008000
Hash algo: sha1
Hash value: 0b11817ed1d76eb70496295a2869a95ea2515a68
Verifying Hash Integrity ... sha1+ OK
## Flattened Device Tree blob at 11800000
Booting using the fdt blob at 0x11800000
Loading Kernel Image ... OK
Loading Device Tree to 07ff9000, end 07fff3e9 ... OK

Starting kernel ...

uddddata abort
pc : [<1ff7bd1c>] lr : [<1ff7b7a4>]
reloc pc : [<00421d1c>] lr : [<004217a4>]
sp : 1f354428 ip : 1ffa8f05 fp : 294d9016
r10: 00000000 r9 : 1f359ef0 r8 : 1f369e84
r7 : 00000000 r6 : 1ff9c788 r5 : 00000064 r4 : 1f35a228
r3 : 1ff7bd00 r2 : 1f35a228 r1 : 00000064 r0 : e8bd8010
Flags: nzCv IRQs on FIQs on Mode SVC_32

Или
CODE

reading system.dtb
13290 bytes read in 17 ms (762.7 KiB/s)
## Loading kernel from FIT Image at 10000000 ...
Using 'conf@2' configuration
Verifying Hash Integrity ... OK
Trying 'kernel@0' kernel subimage
Description: Linux Kernel
Type: Kernel Image
Compression: uncompressed
Data Start: 0x100000d4
Data Size: 3741104 Bytes = 3.6 MiB
Architecture: ARM
OS: Linux
Load Address: 0x00008000
Entry Point: 0x00008000
Hash algo: sha1
Hash value: 0b11817ed1d76eb70496295a2869a95ea2515a68
Verifying Hash Integrity ... sha1+ OK
## Flattened Device Tree blob at 11800000
Booting using the fdt blob at 0x11800000
Loading Kernel Image ... OK
Loading Device Tree to 07ff9000, end 07fff3e9 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 4.9.0-xilinx-v2017.2 (yulia@yulia-U) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #1 SMP PREEMPT Fri Apr 13 12:29:13 MSK 2018
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt:Machine model: xlnx,zynq-7000
bootconsole [earlycon0] enabled
cma: Reserved 16 MiB at 0x1f000000
Memory policy: Data cache writealloc
percpu: Embedded 14 pages/cpu @debcb000 s25932 r8192 d23220 u57344
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
Kernel command line: console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rw rootwait
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Unable to handle kernel NULL pointer dereference at virtual address 00000018
pgd = c0004000
[00000018] *pgd=00000000
Internal error: Oops - BUG: 5 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 0 PID: 0 Comm: swapper Not tainted 4.9.0-xilinx-v2017.2 #1
Hardware name: Xilinx Zynq Platform
task: c0a06bc0 task.stack: c0a00000
PC is at __next_reserved_mem_region+0x10/0x70
LR is at free_all_bootmem+0xe4/0x1cc
pc : [<c01c06a0>] lr : [<c090f8f8>] psr: 600f00d3
sp : c0a01eb4 ip : 00000000 fp : 00000000
r10: 00000000 r9 : c0a53584 r8 : c0a01ee0
r7 : 00000000 r6 : 00000002 r5 : 00000000 r4 : ffffffff
r3 : 00000400 r2 : c0a01ee4 r1 : c0a01ee0 r0 : c0a01ee8
Flags: nZCv IRQs off FIQs off Mode SVC_32 ISA ARM Segment none
Control: 18c5387d Table: 0000404a DAC: 00000051
Process swapper (pid: 0, stack limit = 0xc0a00210)
Stack: (0xc0a01eb4 to 0xc0a02000)
1ea0: ffffffff ffffffff c0a0f140
1ec0: c0a01ee4 c090f8f8 c0a3b71e 00000000 0000003e c0152d24 00000000 00000000
1ee0: 00100000 00a6be97 00000002 00000000 00020000 c0a5361c fffffc00 c0a0f140
1f00: c0a06884 fffff000 c0a53584 00000000 00000000 c0905cb4 c0a03a2c 007f0000
1f20: 02080020 c0152f34 c07d827f c0a01f54 00000001 c01901b4 c07d827f c0a01f54
1f40: 00008000 0000000f 00020000 c090db70 c07d827f c07da88d 00008000 00000005
1f60: 00020000 00000000 000000c1 c07da88d 00000000 00000000 c0a03a2c 00000001
1f80: c0a03000 defffd80 c0931a30 00000000 00000000 c0911148 00000001 00000000
1fa0: c0a32800 ffffffff c0a03000 defffd80 c0931a30 00000000 00000000 c0900a68
1fc0: ffffffff ffffffff 00000000 c0900670 00000000 c0931a30 00000000 c0a32a94
1fe0: c0a03018 c0931a2c c0a07db8 0000406a 413fc090 0000807c 00000000 00000000
[<c01c06a0>] (__next_reserved_mem_region) from [<c090f8f8>] (free_all_bootmem+0xe4/0x1cc)
[<c090f8f8>] (free_all_bootmem) from [<c0905cb4>] (mem_init+0x64/0x3e4)
[<c0905cb4>] (mem_init) from [<c0900a68>] (start_kernel+0x1ac/0x358)
[<c0900a68>] (start_kernel) from [<0000807c>] (0x807c)
Code: e59fc064 e92d40f0 e3a05000 e1c060d0 (e59c4018)
---[ end trace 0000000000000000 ]---
Kernel panic - not syncing: Attempted to kill the idle task!
---[ end Kernel panic - not syncing: Attempted to kill the idle task!

Подскажите, плиз, что с ним и куда копать, чтобы все-таки все загрузилось?
Go to the top of the page
 
+Quote Post

2 страниц V  < 1 2
Closed TopicStart new topic
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0

 


RSS Текстовая версия Сейчас: 22nd July 2025 - 17:37
Рейтинг@Mail.ru


Страница сгенерированна за 0.01441 секунд с 7
ELECTRONIX ©2004-2016