码迷,mamicode.com
首页 > 其他好文 > 详细

Learn ZYNQ (8)

时间:2014-06-24 14:27:44      阅读:497      评论:0      收藏:0      [点我收藏+]

标签:style   blog   code   http   tar   ext   

在zed的PS端运行spark:

(1)设置uboot为sd卡启动rootfs:

"sdboot=if mmcinfo; then " \
                        "run uenvboot; " \
                        "echo Copying Linux from SD to RAM... && " \
                        "fatload mmc 0 0x3000000 ${kernel_image} && " \
                        "fatload mmc 0 0x2A00000 ${devicetree_image} && " \
                        "bootm 0x3000000 - 0x2A00000; " \
                "fi\0" \

bubuko.com,布布扣

如果想从zImage启动,修改 include/configs/zynq_common.h 的sdboot 内容:

        "sdboot=echo (modified) Copying Linux from SD to RAM... && " \

                "mmcinfo && " \

                "fatload mmc 0 0x8000 zImage && " \

                "fatload mmc 0 0x2A00000 ${devicetree_image} && " \

                "bootz 0x8000 - 0x2A00000\0" \

(2)devicetree.dts修改启动参数:

bootargs = "console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait devtmpfs.mount=0";

bubuko.com,布布扣

参考网站http://www.wiki.xilinx.com/Ubuntu+on+Zynq

(3)下载Uboot的rootfs镜像:

http://www.wiki.xilinx.com/file/view/zynq-ubuntu-core-12.10-core-armhf-rootfs.tar.xz/423293908/zynq-ubuntu-core-12.10-core-armhf-rootfs.tar.xz

(4)

ln -s /home/code/scala-2.10.4/bin/scala /usr/bin/scala

ln -s /home/code/scala-2.10.4/bin/scalac /usr/bin/scalac

ln -s /home/code/scala-2.10.4/bin/fsc /usr/bin/fsc

Learn ZYNQ (8),布布扣,bubuko.com

Learn ZYNQ (8)

标签:style   blog   code   http   tar   ext   

原文地址:http://www.cnblogs.com/shenerguang/p/3804905.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!