目錄php
@(ZYNQ移植Linux)html
撰寫日期 | 2019.09.06 |
---|---|
完稿日期 | 2019.09.06 |
最近維護 | 暫無 |
本文做者 | multimicro |
聯繫方式 | multimicro@qq.com |
資料連接 | 本文無附件資料 |
GitHub | https://github.com/wifialan/ |
原文連接 | https://blog.csdn.net/multimicro/article/details/100585223 |
環境說明 | 詳細信息 | 備註信息 |
---|---|---|
操做系統 | Windows_x6四、Manjaro18.04 KDE、Debian | |
Vivado版本 | 2018.3 | 官網地址 |
開發板型號 | ZYNQ7010(米聯客 MiZ701N 黑色版本) | |
編譯器版本 | gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf | 官網地址 |
編譯器路徑 | /opt/toolschain/linaro/bin/arm-linux-gnueabihf- | 絕對路徑 |
Xilinx uboot版本 | u-boot-xlnx-v2018.3 | 官網地址 |
Xilinx kernel版本 | linux-xlnx-v2018.3 | 官網地址 |
文件系統 | linaro-precise-ubuntu-desktop-20121124-560 | 官網地址 |
SD卡型號 | SanDisk C10 A1至尊高速移動版 16GB | 參考連接 |
參考ZYNQ的Linux Linaro系統鏡像製做SD卡啓動node
網上移植u-boot的教程比較多,這裏僅說明一下u-boot的編譯流程,本博客採用的是2018.3版本。linux
proxychains4 git clone https://github.com/Xilinx/u-boot-xlnx.git
前面的proxychains4
是走的終端代理,不走代理的話,直接克隆便可。走代理的方式詳情參考重裝Ubuntu18.04後的系統配置工做總結裏面內容。
根據本身使用的vivado版本進行檢出對應的tag文件,不清楚tag名稱的,可使用git tag
命令查看
*
而後檢出tag文件內容使用ios
git checkout xilinx-v2018.3 git checkout -b xilinx-v2018.3
此時的uboot版本和vivado版本一致,能夠進行後續工做。
在此以前要更改一個配置文件git
vim configs/zynq_zc702_defconfig
禁掉此行,不然uboot會在FLASH裏面讀取配置文件。而後github
vim arch/arm/dts/zynq-zc702.dts
更改頻率,這個頻率就是在vivado創建工程時的晶振頻率50MHz
而後在終端裏面ubuntu
make CROSS_COMPILE=/opt/toolschain/linaro/bin/arm-linux-gnueabihf- ARCH=arm zynq_zc702_defconfig
make CROSS_COMPILE=/opt/toolschain/linaro/bin/arm-linux-gnueabihf- ARCH=arm menuconfig make CROSS_COMPILE=/opt/toolschain/linaro/bin/arm-linux-gnueabihf- ARCH=arm -j8
最後產生了u-boot文件
執行命令,生成elf文件vim
cp u-boot u-boot.elf
而後用此u-boot.elf完成上述步驟2
app
此SD卡里面有完整的BOOT.bin、devicetree.dtb、uEnv.txt、uImage文件,因此打印出的狀況是下面這種(截選部分打印信息)
U-Boot 2018.01-dirty (Sep 06 2019 - 18:55:56 +0800) Xilinx Zynq ZC702 Model: Zynq ZC702 Development Board Board: Xilinx Zynq Silicon: v3.1 I2C: ready DRAM: ECC disabled 1 GiB MMC: sdhci@e0100000: 0 (SD) Using default environment In: serial@e0001000 Out: serial@e0001000 Err: serial@e0001000 Net: ZYNQ GEM: e000b000, phyaddr 7, interface rgmii-id eth0: ethernet@e000b000 reading uEnv.txt 398 bytes read in 11 ms (35.2 KiB/s) Importing environment from SD ... Hit any key to stop autoboot: 0 Device: sdhci@e0100000 Manufacturer ID: 3 OEM: 5344 Name: SC16G Tran Speed: 50000000 Rd Block Len: 512 SD version 3.0 High Capacity: Yes Capacity: 14.8 GiB Bus Width: 4-bit Erase Group Size: 512 Bytes reading uEnv.txt 398 bytes read in 10 ms (38.1 KiB/s) Loaded environment from uEnv.txt Importing environment from SD ... Running uenvcmd ... Copying Linux from SD to RAM... reading uImage 3966200 bytes read in 204 ms (18.5 MiB/s) reading devicetree.dtb
和uboot步驟同樣,先git下來uImage代碼工程,不用代理就把proxychains4
取掉
proxychains4 git clone https://github.com/Xilinx/linux-xlnx.git
檢出2018.3版本,
git checkout xilinx-v2018.3 git checkout -b xilinx-v2018.3
檢出完成
而後執行如下步驟:
make CROSS_COMPILE=/opt/toolschain/linaro/bin/arm-linux-gnueabihf- ARCH=arm clean make CROSS_COMPILE=/opt/toolschain/linaro/bin/arm-linux-gnueabihf- ARCH=arm xilinx_zynq_defconfig
make CROSS_COMPILE=/opt/toolschain/linaro/bin/arm-linux-gnueabihf- ARCH=arm menuconfig
在可視化配置面板中,須要轉到此位置進行更改一些配置
Kernel hacking->
[ ]Kernel low-level debugging functiongs(read help!)
按照紅框裏面的配置更改
配置完成,開始編譯uImage
make CROSS_COMPILE=/opt/toolschain/linaro/bin/arm-linux-gnueabihf- ARCH=arm -j8 make CROSS_COMPILE=/opt/toolschain/linaro/bin/arm-linux-gnueabihf- ARCH=arm uImage LOADADDR=0x00008000
此時uImage
編譯完成
在linux-xlnx/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 = <0x0 0x20000000>; }; chosen { bootargs = ""; stdout-path = "serial0:115200n8"; }; usb_phy0: phy0 { compatible = "usb-nop-xceiv"; #phy-cells = <0>; reset-gpios = <&gpio0 46 1>; }; }; &clkc { ps-clk-frequency = <50000000>; }; &gem0 { status = "okay"; phy-mode = "rgmii-id"; phy-handle = <ðernet_phy>; ethernet_phy: ethernet-phy@0 { reg = <0>; device_type = "ethernet-phy"; }; }; &qspi { u-boot,dm-pre-reloc; status = "okay"; }; &sdhci0 { u-boot,dm-pre-reloc; status = "okay"; broken-mmc-highspeed; clock-frequency = <20000000>; disable-wp; no-1-8-v; }; &uart1 { u-boot,dm-pre-reloc; status = "okay"; }; &usb0 { u-boot,dm-pre-reloc; status = "okay"; usb-phy = <&usb_phy0>; };
而後在uImage
工程的頂層目錄裏面,執行如下命令:
./scripts/dtc/dtc -I dts -O dtb -o ./arch/arm/boot/devicetree.dtb ./arch/arm/boot/dts/zynq-7010.dts
產生了devicetree.dtb文件
隨便找個位置新建一個uEnv.txt 文件,文件內寫入boot的配置信息:
uenvcmd=run linaro_sdboot linaro_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
將uImage
文件、devicetree.dtb
文件和uEnv.txt
拷貝到SD卡里面,此時SD卡里面共有四個文件
爲了以防沒有執行權限,在linxu下面進入SD卡的boot文件夾裏面執行如下命令
sudo chmod 777 *
雖然執行完也是下面模樣,哈哈哈,但不影響執行
如今插入SD卡,上電看一下打印出的信息:
注:文件系統已經移植好了,因此後面能夠看到掛載文件系統的信息。
U-Boot 2018.01-dirty (Sep 06 2019 - 20:31:16 +0800) Xilinx Zynq ZC702 Model: Zynq ZC702 Development Board Board: Xilinx Zynq Silicon: v3.1 I2C: ready DRAM: ECC disabled 1 GiB MMC: sdhci@e0100000: 0 (SD) Using default environment In: serial@e0001000 Out: serial@e0001000 Err: serial@e0001000 Net: ZYNQ GEM: e000b000, phyaddr 7, interface rgmii-id eth0: ethernet@e000b000 reading uEnv.txt 398 bytes read in 11 ms (35.2 KiB/s) Importing environment from SD ... Hit any key to stop autoboot: 0 Device: sdhci@e0100000 Manufacturer ID: 3 OEM: 5344 Name: SC16G Tran Speed: 50000000 Rd Block Len: 512 SD version 3.0 High Capacity: Yes Capacity: 14.8 GiB Bus Width: 4-bit Erase Group Size: 512 Bytes reading uEnv.txt 398 bytes read in 11 ms (35.2 KiB/s) Loaded environment from uEnv.txt Importing environment from SD ... Running uenvcmd ... Copying Linux from SD to RAM... reading uImage 3966200 bytes read in 254 ms (14.9 MiB/s) reading devicetree.dtb 9279 bytes read in 16 ms (565.4 KiB/s) ** Unable to read file uramdisk.image.gz ** ## Booting kernel from Legacy Image at 03000000 ... Image Name: Linux-4.14.0-xilinx-dirty Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3966136 Bytes = 3.8 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Flattened Device Tree blob at 02a00000 Booting using the fdt blob at 0x2a00000 Loading Kernel Image ... OK Loading Device Tree to 1fffa000, end 1ffff43e ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. Booting Linux on physical CPU 0x0 Linux version 4.14.0-xilinx-dirty (china@alan) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)) #2 SMP PREEMPT Fri Sep 6 21:44:47 CST 2019 CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache OF: fdt: Machine model: HLF bootconsole [earlycon0] enabled Memory policy: Data cache writealloc cma: Reserved 16 MiB at 0x3f000000 random: fast init done percpu: Embedded 16 pages/cpu @ef7ce000 s34764 r8192 d22580 u65536 Built 1 zonelists, mobility grouping on. Total pages: 260608 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: 1012892K/1048576K available (6144K kernel code, 238K rwdata, 1560K rodata, 1024K init, 153K bss, 19300K reserved, 16384K cma-reserved, 245760K highmem) Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .text : 0xc0008000 - 0xc0700000 (7136 kB) .init : 0xc0900000 - 0xc0a00000 (1024 kB) .data : 0xc0a00000 - 0xc0a3b8c0 ( 239 kB) .bss : 0xc0a3b8c0 - 0xc0a61d84 ( 154 kB) Preemptible hierarchical RCU implementation. RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. Tasks RCU enabled. RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 efuse mapped to f0802000 slcr mapped to f0804000 L2C: platform modifies aux control register: 0x72360000 -> 0x72760000 L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000 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 0x76760001 zynq_clock_init: clkc starts at f0804100 Zynq clock init sched_clock: 64 bits at 325MHz, resolution 3ns, wraps every 4398046511103ns clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4af477f6aa, max_idle_ns: 440795207830 ns Switching to timer-based delay loop, resolution 3ns clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 551318127 ns timer #0 at f080c000, irq=17 Console: colour dummy device 80x30 Calibrating delay loop (skipped), value calculated using timer frequency.. 650.00 BogoMIPS (lpj=3250000) 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 0x100000 - 0x100060 Hierarchical SRCU implementation. smp: Bringing up secondary CPUs ... CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 smp: Brought up 1 node, 2 CPUs SMP: Total of 2 processors activated (1300.00 BogoMIPS). CPU: All CPU(s) started in SVC mode. devtmpfs: initialized VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns futex hash table entries: 512 (order: 3, 32768 bytes) pinctrl core: initialized pinctrl subsystem NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations 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.ocmc: ZYNQ OCM pool: 256 KiB @ 0xf0880000 zynq-pinctrl 700.pinctrl: zynq pinctrl initialized e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 25, base_baud = 6250000) is a xuartps ▒▒k▒▒▒▒[ttyPS0] enabled console [ttyPS0] enabled bootconsole [earlycon0] disabled bootconsole [earlycon0] disabled vgaarb: loaded SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb usb_phy_generic phy0: phy0 supply vcc not found, using dummy regulator media: Linux media interface: v0.10 Linux video capture interface: v2.00 pps_core: LinuxPPS API ver. 1 registered pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> PTP clock support registered EDAC MC: Ver: 3.0.0 FPGA manager framework fpga-region fpga-full: FPGA Region probed Advanced Linux Sound Architecture Driver Initialized. clocksource: Switched to clocksource arm_global_timer 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) UDP hash table entries: 512 (order: 2, 16384 bytes) UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) NET: Registered protocol family 1 RPC: 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: no interrupt-affinity property for /pmu@f8891000, guessing. hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available workingset: timestamp_bits=30 max_order=18 bucket_order=0 jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. bounce: pool size: 64 pages io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) io scheduler mq-deadline registered io scheduler kyber registered dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330 dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16 brd: module loaded loop: module loaded zynq-qspi e000d000.spi: couldn't determine configuration info zynq-qspi e000d000.spi: about dual memories. defaulting to single memory libphy: Fixed MDIO Bus: probed CAN device driver interface libphy: MACB_mii_bus: probed macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 27 (00:0a:35:00:01:22) RTL8211E Gigabit Ethernet e000b000.ethernet-ffffffff:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=e000b000.ethernet-ffffffff:00, irq=POLL) e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k e1000e: Copyright(c) 1999 - 2015 Intel Corporation. ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci-pci: EHCI PCI platform driver usbcore: registered new interface driver usb-storage chipidea-usb2 e0002000.usb: e0002000.usb supply vbus not found, using dummy regulator ci_hdrc ci_hdrc.0: EHCI Host Controller ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1 ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00 hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected i2c /dev entries driver IR NEC protocol handler initialized IR RC5(x/sz) protocol handler initialized IR RC6 protocol handler initialized IR JVC protocol handler initialized IR Sony protocol handler initialized IR SANYO protocol handler initialized IR Sharp protocol handler initialized IR MCE Keyboard/mouse protocol handler initialized IR XMP protocol handler initialized cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer at f0990000 with timeout 10s EDAC MC: 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 mmc0: SDHCI controller on e0100000.mmc [e0100000.mmc] using ADMA ledtrig-cpu: registered to indicate activity on CPUs usbcore: registered new interface driver usbhid usbhid: USB HID core driver fpga_manager fpga0: Xilinx Zynq FPGA Manager registered NET: Registered protocol family 10 Segment Routing with IPv6 sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver NET: Registered protocol family 17 can: controller area network core (rev 20170425 abi 9) NET: Registered protocol family 29 can: raw protocol (rev 20170425) can: broadcast manager protocol (rev 20170425 t) can: netlink gateway (rev 20170425) max_hops=1 Registering SWP/SWPB emulation handler hctosys: unable to open rtc device (rtc0) of_cfs_init of_cfs_init: OK ALSA device list: No soundcards found. Waiting for root device /dev/mmcblk0p2... mmc0: new SDHC card at address aaaa mmcblk0: mmc0:aaaa SC16G 14.8 GiB mmcblk0: p1 p2 EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) VFS: Mounted root (ext4 filesystem) on device 179:2. devtmpfs: mounted Freeing unused kernel memory: 1024K init: hwclock main process (685) terminated with status 1 init: ureadahead main process (686) terminated with status 5 mmcblk0: error -110 sending status command, retrying mmcblk0: error -110 sending status command, retrying mmcblk0: error -110 sending status command, aborting mmcblk0: error -110 sending status command, retrying mmcblk0: error -110 sending status command, retrying mmcblk0: error -110 sending status command, aborting mmcblk0: error -110 sending status command, retrying mmcblk0: error -110 sending status command, retrying mmcblk0: error -110 sending status command, aborting Last login: Thu Jan 1 00:00:09 UTC 1970 on tty1 mmcblk0: error -110 sending status command, retrying mmcblk0: error -110 sending status command, retrying mmcblk0: error -110 sending status command, aborting mmcblk0: error -110 sending status command, retrying mmcblk0: error -110 sending status command, retrying mmcblk0: error -110 sending status command, aborting mmcblk0: error -110 sending status command, retrying mmcblk0: error -110 sending status command, retrying mmcblk0: error -110 sending status command, aborting mmcblk0: error -110 sending status command, retrying mmcblk0: error -110 sending status command, retrying mmcblk0: error -110 sending status command, aborting cat: /var/lib/update-notifier/fsck-at-reboot: No such file or directory run-parts: /etc/update-motd.d/98-fsck-at-reboot exited with return code 1 Welcome to Linaro 12.11 (GNU/Linux 4.14.0-xilinx-dirty armv7l) * Documentation: https://wiki.linaro.org/ 0 packages can be updated. 0 updates are security updates. 0 packages can be updated. 0 updates are security updates. 0 packages can be updated. 0 updates are security updates. root@linaro-ubuntu-desktop:~# pwd /root root@linaro-ubuntu-desktop:~# cd / root@linaro-ubuntu-desktop:/# ls -al total 88 drwxr-xr-x 23 root root 4096 Jan 1 00:02 . drwxr-xr-x 23 root root 4096 Jan 1 00:02 .. drwxr-xr-x 2 root root 4096 Nov 24 2012 .disk drwxr-xr-x 2 root root 4096 Nov 24 2012 bin drwxr-xr-x 2 root root 4096 Oct 20 2012 boot drwxr-xr-x 10 root root 2940 Jan 1 00:00 dev drwxr-xr-x 128 root root 4096 Jan 1 00:00 etc drwxr-xr-x 3 root root 4096 Nov 24 2012 home drwxr-xr-x 17 root root 4096 Nov 24 2012 lib drwx------ 2 root root 16384 Sep 6 2019 lost+found drwxr-xr-x 2 root root 4096 Nov 24 2012 media drwxr-xr-x 2 root root 4096 Oct 20 2012 mnt drwxr-xr-x 2 root root 4096 Nov 24 2012 opt dr-xr-xr-x 82 root root 0 Jan 1 00:00 proc drwx------ 4 root root 4096 Jan 1 1970 root drwxr-xr-x 12 root root 480 Jan 1 00:00 run drwxr-xr-x 2 root root 4096 Nov 24 2012 sbin drwxr-xr-x 2 root root 4096 Mar 5 2012 selinux drwxr-xr-x 2 root root 4096 Nov 24 2012 srv dr-xr-xr-x 12 root root 0 Jan 1 00:00 sys drwxrwxrwt 4 root root 4096 Jan 1 00:00 tmp drwxr-xr-x 10 root root 4096 Nov 24 2012 usr drwxr-xr-x 13 root root 4096 Jan 1 1970 var root@linaro-ubuntu-desktop:/#
能夠看到kernel能夠掛載上文件系統,可是有錯誤的打印信息
mmcblk0: error -110 sending status command, retrying
mmcblk0: error -110 sending status command, aborting
目前不清楚爲什麼,查了好多資料,纔算是打印的少了,以前的一直不停的在打印,網上有人說是SD卡的速度太快了,我在設備樹中下降的SD卡的速度後,算是能夠掛載上文件系統了,但在成功掛載前仍是會出現這種狀況,不知道是爲什麼。如有大神瞭解緣由,還請不吝賜教,在此感謝!
***
下載好文件系統後,在文件系統所在文件夾內執行如下命令:
sudo tar --strip-components=3 -C /run/media/china/rootfs -xzpf linaro-precise-ubuntu-desktop-20120723-305.tar.gz binary/boot/filesystem.dir
注意,紅框裏的路徑要保持一致方可
掛載文件系統時,打印出以下錯誤信息
mmcblk0: error -110 sending status command, retrying mmcblk0: error -110 sending status command, aborting
維護日期 | 維護內容 |
---|---|
暫無 | 暫無 |