移植linux之传统方式
在zynq开发时,有些情况下,为了降低开发的复杂性,或是提升系统运行的性能,在arm上跑一个linux系统往往是一个不错的选择,而且linux系统一般集成了一些常用的成熟驱动,可以减少开发周期。本章将通过传统u-boot、kernel方式,完成移植。该方式虽然繁琐复杂,但是毕竟是一种通用的移植方式。
一、搭建硬件环境
1.新建工程,并新建一个 bd 文件,然后添加一个zynq processing system的ip核,并设置好与硬件相符合的ps和pl时钟以及ddr型号
2.添加一些必要外设
为了看到linux启动的实验现象,下面的外设是必备的:
sd:sd卡(用于从sd卡启动u-boot、kernel、pl以及文件系统)
uart:用于打印调试信息的串口
3.右键单击 block 文件,文件选择 generate the output products
4.右键单击 block 文件,选择 create a hdl wrapper,根据 block 文件内容产生一个 hdl 的顶层文件,并选择让 vivado 自动完成
5.并综合实现、生产.bit文件
6.导出硬件(包含.bit),待启动sdk
二、arm上运行linux前的准备工作
-1.电脑上安装linux环境
0.更新apt-get(可选,加速用)在linux系统中打开/etc/apt目录下找到sources.list文件将文件内容替换为
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial universe deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #added by software-properties deb http://archive.canonical.com/ubuntu xenial partner deb-src http://archive.canonical.com/ubuntu xenial partner deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse 1234567891011121314151617
打开命令行执行apt-get update刷新列表
1.安装相应环境
#安装32位依赖库apt-get install lib32z1 lib32ncurses5 lib32stdc++6 libbz2-1.0:i386#安装 openssl 库,实现网络的保密性和可靠性的数据传输,在编译u-boot时会用到apt-get install libssl-dev#安装设备树编译器工具apt-get install device-tree-compiler#安装此库,否则内核编译时make menuconfig等会报错apt-get install libncurses5-dev #安装此库,否则内核编译报错sudo apt-get install u-boot-tools 12345678910
2.安装vivado
从官网下载web版的vivado xilinx_vivado_sdk_2017.1_0415_1_lin64.bin(我已上传到:xilinx_vivado_sdk_2017.1_0415_1_lin64.bin)
执行该.bin,安装方法以及界面都同windows版的vivado安装一样,运行该文件后首先通过gui对安装进行配置
配置到选择器件支持时,尽可能将不需要的器件勾选掉(减少下载的大小)
配置完成后,等待下载,以及安装,即可
3.下载,直接下载官方u-boot和kernel(linux-xlnx-master.zip、u-boot-xlnx-master.tar.gz)
4.编译u-boot
定位编译环境source /opt/xilinx/sdk/2017.1/settings64.sh
进入u-boot目录cd /home/hlf/mnt/u-boot-xlnx-master
打开gui配置u-bootmake menuconfig,但是这个gui是空白的配置,所以要先载入一下xilinx的默认配置,再做修改(如下)
在menu中,按方向键选择load,回车,载入xinlinx默认配置文件(输入zynq_ax7010_defconfig的绝对路径,我的是/home/hlf/mnt/u-boot-xlnx-master/configs/zynq_ax7010_defconfig)
然后将改动好的配置(本章不改动),再save到该路径,所需配置已保存到zynq_ax7010_defconfig文件里
针对刚刚的配置开始编译u-boot:
make cross_compile=arm-xilinx-linux-gnueabi- zynq_ax7010_defconfig#读配置
make cross_compile=arm-xilinx-linux-gnueabi-#编译
#arm-xilinx-linux-gnueabi-objdump -h u-boot #查看 u-boot 文件的不同段的内存分配情况
到这一步,把u-boot拷贝出来,并加后缀为u-boot.elf,待用
5.生成boot.bin
启动sdk,新建一个fsbl模板,并在文件中#define fsbl_degug_info以便看到调试信息,然后编译生成fsbl.elf
从sdk中将上述fsbl.elf、硬件的.bit文件、u-boot.elf打包成boot.bin
6.生成uimage
进入目录 cd /home/hlf/mnt/linux-xlnx-master
定位编译环境 source /opt/xilinx/sdk/2017.1/settings64.sh
打开gui配置内核 make arch=arm menuconfig
在gui中load一下xilinx的默认配置,load的路径为/home/hlf/mnt/linux-xlnx-master/arch/arm/configs/xilinx_zynq_defconfig
在gui中进行相关设置后(本章不改动),save到xilinx_zynq_defconfig里(也可以自己选择)
make arch=arm xilinx_zynq_defconfig #读配置
make arch=arm cross_compile=arm-xilinx-linux-gnueabi- uimage loadaddr=0x00008000 #编译内核
编译完成后,在linux-xlnx-master/arch/arm/boot目录下可以发现uimage文件,待用
7.生成devicetree.dtb在linux-xlnx-master/arch/arm/boot/dts目录内新建或者找到zynq-7010.dts文件,内容为(注意一下串口和主频和硬件是否对应):
/dts-v1/;/include/ zynq-7000.dtsi/ { model = hlf; compatible = alinx,zynq, xlnx,zynq-7000; aliases { ethernet0 = &gem0; serial0 = &uart1; spi0 = &qspi; mmc0 = &sdhci0; }; memory@0 { device_type = memory; reg = ; }; chosen { bootargs = ; stdout-path = serial0:115200n8; }; usb_phy0: phy0 { compatible = usb-nop-xceiv; #phy-cells = ; reset-gpios = ; };};&clkc { ps-clk-frequency = ;};&gem0 { status = okay; phy-mode = rgmii-id; phy-handle = ; ethernet_phy: ethernet-phy@0 { reg = ; };};&qspi { u-boot,dm-pre-reloc; status = okay;};12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
继续在linux-xlnx-master目录下运行命令:./scripts/dtc/dtc -i dts -o dtb -o ./arch/arm/boot/devicetree.dtb ./arch/arm/boot/dts/zynq-7010.dts然后在linux-xlnx-master/arch/arm/boot/目录下即可发现devicetree.dtb文件
8.在sd中,建立文件系统
下载linaro桌面文件系统(http://www.linaro.org/),我下载的是linaro-precise-ubuntu-desktop-20120923-436.tar.gz(文件500多m太大,我无法上传,所以自己去官网寻觅吧)
将sd卡格式化分区,2g的fat分区(分区命名为fat),用于存放boot.bin 等文件,其余分区设为ext4分区(分区命名为ext),用于放置文件系统
将下载的linaro解压到ext分区中
cd ./binary/boot/filesystem.dir #到此目录下
rsync -av ./ /media/hlf/ext #同步文件夹(路径根据实际情况)
9.新建uenv.txt此文件是为了写入环境变量bootargs在txt文件中写入bootargs=console=ttyps0,115200n8 root=/dev/mmcblk0p2 rw noinitrd rootfstype=ext4 rootwait
三、运行linux
1.将fpga设置为sd卡启动
2.将devicetree.dtb、boot.bin、uenv.txt、uimage等文件,拷贝到内存卡的fat分区中
3.fpga上电,并插上串口,运行putty,设置好串口参数,工作正常时,打印出如下信息:
u-boot 2016.07 (aug 23 2017 - 1548 +0800)model: zynq zybo development boardboard: xilinx zynqi2c: readydram: ecc disabled 512 mibmmc: sdhci@e0100000: 0sf: detected s25fl256s_64k with page size 256 bytes, erase size 64 kib, total 32 mibin: serial@e0001000out: serial@e0001000err: serial@e0001000model: zynq zybo development boardboard: xilinx zynqnet: zynq gem: e000b000, phyaddr 0, interface rgmii-idi2c eeprom mac address read failedeth0: ethernet@e000b000reading uenv.txt93 bytes read in 13 ms (6.8 kib/s)importing environment from sd ...hit any key to stop autoboot: 0device: sdhci@e0100000manufacturer id: 41oem: 3432name: sd16gtran speed: 50000000rd block len: 512sd version 3.0high capacity: yescapacity: 7.5 gibbus width: 4-biterase group size: 512 bytesreading uenv.txt93 bytes read in 13 ms (6.8 kib/s)loaded environment from uenv.txtimporting environment from sd ...copying linux from sd to ram...reading uimage3847608 bytes read in 229 ms (16 mib/s)reading devicetree.dtb10471 bytes read in 23 ms (444.3 kib/s)## booting kernel from legacy image at 02080000 ... image name: linux-4.6.0-xilinx image type: arm linux kernel image (uncompressed) data size: 3847544 bytes = 3.7 mib load address: 00008000 entry point: 00008000 verifying checksum ... ok## flattened device tree blob at 02000000 booting using the fdt blob at 0x2000000 loading kernel image ... ok loading device tree to 1eb0c000, end 1eb118e6 ... okstarting kernel ...booting linux on physical cpu 0x0linux version 4.6.0-xilinx (root@osrc-virtual-machine) (gcc version 4.9.2 (sourcery codebench lite 2015.05-17) ) #8 smp preempt wed aug 23 1517 cst 2017cpu: armv7 processor [413fc090] revision 0 (armv7), cr=18c5387dcpu: pipt / vipt nonaliasing data cache, vipt aliasing instruction cachemachine model: zynq miz702n development boardcma: reserved 16 mib at 0x1f000000memory policy: data cache writeallocpercpu: embedded 12 pages/cpu @debcd000 s19776 r8192 d21184 u49152built 1 zonelists in zone order, mobility grouping on. total pages: 130048kernel command line: console=ttyps0,115200n8 root=/dev/mmcblk0p2 rw noinitrd rootfstype=ext4 rootwaitpid 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)memory: 494528k/524288k available (5304k kernel code, 231k rwdata, 1844k rodata, 1024k init, 222k bss, 13376k reserved, 16384k cma-reserved, 0k highmem)virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kb) fixmap : 0xffc00000 - 0xfff00000 (3072 kb) vmalloc : 0xe0800000 - 0xff800000 ( 496 mb) lowmem : 0xc0000000 - 0xe0000000 ( 512 mb) pkmap : 0xbfe00000 - 0xc0000000 ( 2 mb) modules : 0xbf000000 - 0xbfe00000 ( 14 mb) .text : 0xc0008000 - 0xc07fb004 (8141 kb) .init : 0xc0800000 - 0xc0900000 (1024 kb) .data : 0xc0900000 - 0xc0939da0 ( 232 kb) .bss : 0xc0939da0 - 0xc09716e8 ( 223 kb)preemptible hierarchical rcu implementation. build-time adjustment of leaf fanout to 32. rcu restricting cpus from nr_cpus=4 to nr_cpu_ids=2.rcu: adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2nr_irqs:16 nr_irqs:16 16efuse mapped to e0800000slcr mapped to e0802000l2c: platform modifies aux control register: 0x72360000 -> 0x72760000l2c: dt/platform modifies aux control register: 0x72360000 -> 0x72760000l2c-310 erratum 769419 enabledl2c-310 enabling early bresp for cortex-a9l2c-310 full line of zeros enabled for cortex-a9l2c-310 id prefetch enabled, offset 1 linesl2c-310 dynamic clock gating enabled, standby mode enabledl2c-310 cache controller enabled, 8 ways, 512 kbl2c-310: cache_id 0x410000c8, aux_ctrl 0x76760001zynq_clock_init: clkc starts at e0802100zynq clock initsched_clock: 64 bits at 325mhz, resolution 3ns, wraps every 4398046511103nsclocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4af477f6aa, max_idle_ns: 440795207830 nsswitching to timer-based delay loop, resolution 3nsclocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 551318127 nstimer #0 at e080a000, irq=17console: colour dummy device 80x30calibrating delay loop (skipped), value calculated using timer frequency.. 650.00 bogomips (lpj=3250000)pid_max: default: 32768 minimum: 301mount-cache hash table entries: 1024 (order: 0, 4096 bytes)mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)cpu: testing write buffer coherency: okcpu0: thread -1, cpu 0, socket 0, mpidr 80000000setting up static identity map for 0x100000 - 0x100058cpu1: thread -1, cpu 1, socket 0, mpidr 80000001brought up 2 cpussmp: total of 2 processors activated (1300.00 bogomips).cpu: all cpu(s) started in svc mode.devtmpfs: initializedvfp support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 nspinctrl core: initialized pinctrl subsystemnet: registered protocol family 16dma: preallocated 256 kib pool for atomic coherent allocationscpuidle: using governor menuhw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.hw-breakpoint: maximum watchpoint size is 4 bytes.zynq-ocm f800c000.ocmc: zynq ocm pool: 256 kib @ 0xe0880000zynq-pinctrl 700.pinctrl: zynq pinctrl initializedvgaarb: loadedscsi subsystem initializedusbcore: registered new interface driver usbfsusbcore: registered new interface driver hubusbcore: registered new device driver usbmedia: linux media interface: v0.10linux video capture interface: v2.00pps_core: linuxpps api ver. 1 registeredpps_core: software ver. 5.3.6 - copyright 2005-2007 rodolfo giometti ptp clock support registerededac mc: ver: 3.0.0advanced linux sound architecture driver initialized.clocksource: switched to clocksource arm_global_timernet: registered protocol family 2tcp established hash table entries: 4096 (order: 2, 16384 bytes)tcp bind hash table entries: 4096 (order: 3, 32768 bytes)tcp: hash tables configured (established 4096 bind 4096)udp hash table entries: 256 (order: 1, 8192 bytes)udp-lite hash table entries: 256 (order: 1, 8192 bytes)net: registered protocol family 1rpc: registered named unix socket transport module.rpc: registered udp transport module.rpc: registered tcp transport module.rpc: registered tcp nfsv4.1 backchannel transport module.hw perfevents: enabled with armv7_cortex_a9 pmu driver, 7 counters availablefutex hash table entries: 512 (order: 3, 32768 bytes)workingset: timestamp_bits=28 max_order=17 bucket_order=0jffs2: version 2.2. (nand) (summary) ? 2001-2006 red hat, inc.io scheduler noop registeredio scheduler deadline registeredio scheduler cfq registered (default)dma-pl330 f8003000.dmac: loaded driver for pl330 dmac-241330dma-pl330 f8003000.dmac: dbuff-128x8bytes num_chans-8 num_peri-4 num_events-16xilinx-vdma 43000000.dma: xilinx axi vdma engine driver probed!!e0001000.serial: ttyps0 at mmio 0xe0001000 (irq = 143, base_baud = 6250000) is a xuartpsconsole [ttyps0] enabledxdevcfg f8007000.devcfg: ioremap 0xf8007000 to e086e000[drm] initialized drm 1.1.0 20060810console: switching to colour frame buffer device 128x37brd: module loadedloop: module loadedm25p80 spi0.0: found s25fl256s1, expected n25q128a11m25p80 spi0.0: s25fl256s1 (32768 kbytes)5 ofpart partitions found on mtd device spi0.0creating 5 mtd partitions on spi0.0:0x000000000000-0x000000100000 : qspi-fsbl-uboot0x000000100000-0x000000600000 : qspi-linux0x000000600000-0x000000620000 : qspi-device-tree0x000000620000-0x000000c00000 : qspi-rootfs0x000000c00000-0x000001000000 : qspi-bitstreamcan device driver interfacegpiod_set_value: invalid gpiolibphy: macb_mii_bus: probedmacb e000b000.ethernet eth0: cadence gem rev 0x00020118 at 0xe000b000 irq 145 (003501:22)rtl8211e gigabit ethernet e000b000.etherne attached phy driver [rtl8211e gigabit ethernet] (mii_bus:phy_addr=e000b000.etherne:00, irq=-1)e1000e: intel(r) pro/1000 network driver - 3.2.6-ke1000e: copyright(c) 1999 - 2015 intel corporation.ehci_hcd: usb 2.0 'enhanced' host controller (ehci) driverehci-pci: ehci pci platform driverusbcore: registered new interface driver usb-storagee0002000.usb supply vbus not found, using dummy regulatorulpi transceiver vendor/product id 0x0451/0x1507found ti tusb1210 ulpi transceiver.ulpi integrity check: passed.ci_hdrc ci_hdrc.0: ehci host controllerci_hdrc ci_hdrc.0: new usb bus registered, assigned bus number 1ci_hdrc ci_hdrc.0: usb 2.0 started, ehci 1.00hub 1-0 usb hub foundhub 1-0 1 port detectedmousedev: ps/2 mouse device common for all micei2c /dev entries driveredac mc: ecc not enabledxilinx zynq cpuidle driver startedsdhci: secure digital host controller interface driversdhci: copyright(c) pierre ossmansdhci-pltfm: sdhci platform and of driver helpermmc0: sdhci controller on e0100000.sdhci [e0100000.sdhci] using dmammc0: problem switching card into high-speed mode!mmc1: sdhci controller on e0101000.sdhci [e0101000.sdhci] using dmaledtrig-cpu: registered to indicate activity on cpususbcore: registered new interface driver usbhidusbhid: usb hid core drivermmc0: new sdhc card at address 0001net: registered protocol family 10sit: ipv6 over ipv4 tunneling drivermmcblk0: mmc0:0001 sd16g 7.50 gibnet: registered protocol family 17can: controller area network core (rev 20120528 abi 9)net: registered protocol family 29can: raw protocol (rev 20120528)can: broadcast manager protocol (rev 20120528 t)can: netlink gateway (rev 20130117) max_hops=1registering swp/swpb emulation handlerhctosys: unable to open rtc device (rtc0)alsa device list: no soundcards found. mmcblk0: p1 p2mmc1: new high speed mmc card at address 0001mmcblk1: mmc1:0001 p1xxxx 7.20 gibext4-fs (mmcblk0p2): recovery completeext4-fs (mmcblk0p2): mounted filesystem with ordered data mode. opts: (null)mmcblk1boot0: mmc1:0001 p1xxxx partition 1 2.00 mibvfs: mounted root (ext4 filesystem) on device 179:2.mmcblk1boot1: mmc1:0001 p1xxxx partition 2 2.00 mibmmcblk1rpmb: mmc1:0001 p1xxxx partition 3 128 kibdevtmpfs: mountedfreeing unused kernel memory: 1024k (c0800000 - c0900000)init: hwclock main process (706) terminated with status 1einit: ureadahead main process (707) terminated with status 5modprobe: fatal: could not load /lib/modules/4.6.0-xilinx/modules.dep: no such file or directorymodprobe: fatal: could not load /lib/modules/4.6.0-xilinx/modules.dep: no such file or directory * starting mdns/dns-sd daemon [ ok ] * starting bluetooth daemon [ ok ] * starting configure network device security [ ok ] * starting configure network device security [ ok ] * starting configure network device security [ ok ] * starting mount network filesystems [ ok ] * starting upstart job to start rpcbind on boot only [ ok ] * starting configure network device [ ok ] * starting configure network device [ ok ] * starting failsafe boot delay [ ok ] * stopping upstart job to start rpcbind on boot only [ ok ] * starting bluetooth daemon [ ok ] * stopping mount network filesystems [ ok ] * starting nfsv4 id name mapper [ ok ] * starting bluetooth daemon [ ok ] * starting bridge socket events into upstart [ ok ] * starting bluetooth daemon [ ok ] * stopping cold plug devices [ ok ] * stopping log initial device creation [ ok ] * starting configure network device security [ ok ] * starting configure virtual network devices [ ok ] * starting save udev log and update rules [ ok ] * stopping save udev log and update rules [ ok ] * starting rpc portmapper replacement [ ok ] * stopping configure virtual network devices [ ok ] * starting nfsv4 id name mapper [ ok ] * starting bluetooth daemon [ ok ] * starting start this job to wait until rpcbind is started or fails to s[ ok ] * stopping rpcsec_gss daemon [ ok ] * stopping start this job to wait until rpcbind is started or fails to s[ ok ] * starting nfsv4 id name mapper [ ok ] * starting cups printing spooler/server [ ok ] * starting nsm status monitor [ ok ] * starting configure network device [ ok ] * stopping failsafe boot delay [ ok ] * starting system v initialisation compatibility [ ok ] * starting modem connection manager [ ok ] * starting configure network device security [ ok ] * starting nfsv4 id name mapper [ ok ] * starting bluetooth daemon [ ok ] * starting bluetooth daemon [ ok ] * starting bluetooth daemon [ ok ] * starting bluetooth daemon [ ok ]speech-dispatcher disabled; edit /etc/default/speech-dispatchersaned disabled; edit /etc/default/saned * stopping system v initialisation compatibility [ ok ] * starting network connection manager [ ok ] * starting bluetooth daemon [ ok ] * starting bluetooth daemon [fail] * starting automatic crash report generation [ ok ] * starting lightdm display manager [ ok ] * starting anac(h)ronistic cron [ ok ] * starting save kernel messages [ ok ] * starting regular background program processing daemon [ ok ] * stopping bluetooth daemon [ ok ] * stopping system pulseaudio sound server [ ok ] * starting nfsv4 id name mapper [ ok ] * starting crash report submission daemon [ ok ]last login: thu jan 1 0010 utc 1970 on tty1 * stopping save kernel messages [ ok ] * starting nfsv4 id name mapper [ ok ]cat: /var/lib/update-notifier/fsck-at-reboot: no such file or directoryrun-parts: /etc/update-motd.d/98-fsck-at-reboot exited with return code 1welcome to linaro 12.09 (gnu/linux 4.6.0-xilinx armv7l) * documentation: https://wiki.linaro.org/568 packages can be updated.325 updates are security updates.root@linaro-ubuntu-desktop:~#123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
4.就可以在putty中,对linux系统进行操作了一些基础的linux操作,都可以在命令行里运行了,例如:浏览命令ls、网络测试命令ping,甚至如果前期加了网络外设的话,可以直接插网线运行apt-get,linaro文件系统中自带了python,在命令行里,输入python即可体验
传统方法在zynq上移植linux到此就算初步完成了,之后会体验xilinx的专用开发环境petalinux的强大效果
5.当然还是要体验一把helloworld了在电脑linux环境中,创建一个hello.c:
#include int main(){ printf(hello hlf); return 0;}123456
在hello.c路径下,生成可执行文件:
cd /home/hlf/mnt/zynq_pro #hello.c所在目录source /opt/xilinx/sdk/2017.1/settings64.sh #定位arm-xilinx-linux-gnueabi-gcc hello.c -o hello -static #生成执行文件123
将zynq关机,取出sd卡将生成的hello执行文件,拷贝到sd的ext分区下插上sd卡,重新对zynq的linux开机后找到刚刚拷贝的hello文件,并执行,可以在putty中看到相应的结果
这种通用的传统方法在zynq上移植linux完成,即可在此基础上对linux进行使用了。
iOS14.2正式版修复了哪些错误
可编程逻辑器件随着半导体集成电路的4个阶段
冷关断式温度控制电路图_低温冷关断式温度控制电路图
预付费远程抄表电能表的功能
关于MySQL数据库存储引擎的功能和特性
在ZYNQ上完成linux系统移植
5G领衔新基建催化产业变革,大唐移动关注车联网产品和应用布局
饿了么宣布加入发售华为Mate40系列新品
3G协议的三大标准发展情况
德国法院驳回高通诉讼
超低功耗的锂电池管理系统电路模块设计
步进电机和步进电机驱动器选型的九条准则
小米6最新消息:小米6明日再来三轮抢购,亮黑色有大量现货“管够”亮蓝色还要再等等
型煤热量化验设备/热值仪使用培训-煤灰熔融性的测定方法中四个熔点温度解释
什么是拌合站监测管理系统?
搭载恩智浦芯片组的4D成像雷达传感器
一文读懂电感的能量绝大部分存在气隙中
体感很冷还是热血沸腾 OFweek探讨机器人新时代
高通抢夺低端手机市场 与联发科相对
二(2)输入端CMOS与非门电路 (由MOS管构成)