首页 > 其他 > 详细

Learn ZYNQ (8)

时间:2014-06-24 14:26:48      阅读:511      评论:0      收藏:0      [点我收藏+]

在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)

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!