首页 > 代码库 > Learn ZYNQ (8)
Learn ZYNQ (8)
在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" \
如果想从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";
参考网站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