ZedBord Linux 开发 TFTP&NF启动
来源:互联网 发布:美利坚仓储淘宝王下载 编辑:程序博客网 时间:2024/06/01 21:26
ZedBoard Linux开发 --- TFTP&NFS启动
这部分的内容针对大部分运行Linux的嵌入式系统来说都是通用的。关于在PC端设置TFTP和NFS服务器的内容,请参考下面这篇博客:
zed-boot> printenvbaudrate=115200bootcmd=run modebootbootdelay=3ethact=zynq_gemethaddr=00:0a:35:00:01:22ipaddr=192.168.1.10jtagboot=echo TFTPing Linux to RAM...;tftp 0x8000 zImage;tftp 0x1000000 devicetree.dtb;tftp 0x800000 ramdisk8M.image.gz;go 0x8000kernel_size=0x140000modeboot=run sdbootqspiboot=sf probe 0 0 0;sf read 0x8000 0x100000 0x2c0000;sf read 0x1000000 0x3c0000 0x40000;sf read 0x800000 0x400000 0x800000;go 0x8000ramdisk_size=0x200000sdboot=echo Copying Linux from SD to RAM...;mmcinfo;fatload mmc 0 0x8000 zImage;fatload mmc 0 0x1000000 devicetree_ramdisk.dtb;fatload mmc 0 0x800000 ramdisk8M.image.gz;go 0x8000sdboot_linaro=echo Copying Linux from SD to RAM...;mmcinfo;fatload mmc 0 0x8000 zImage;fatload mmc 0 0x1000000 devicetree_linaro.dtb;go 0x8000serverip=192.168.1.50stderr=serialstdin=serialstdout=serialEnvironment size: 861/65532 bytes
echo Copying Linux from SD to RAM...;打印echo后面的文字mmcinfo;显示mmc信息fatload mmc 0 0x8000 zImage;加载fat文件系统根目录下的zImage文件到内存0x8000开始处fatload mmc 0 0x1000000 devicetree_ramdisk.dtb;加载fat文件系统根目录下的devicetree_ramdisk.dtb文件到内存0x1000000fatload mmc 0 0x800000 ramdisk8M.image.gz;加载fat文件系统根目录下的ramdisk8M.image.gz文件到内存0x800000go 0x8000CPU的PC指针跳转到内存0x8000开始执行(也就是开始内核起始地址)
echo TFTPing Linux to RAM...;tftp 0x8000 zImage;tftp 0x1000000 devicetree.dtb;tftp 0x800000 ramdisk8M.image.gz;go 0x8000
sudo service tftpd-hpa restart
zed-boot> setenv serverip 10.10.143.230zed-boot> setenv ipaddr 10.10.143.101zed-boot> setenv netmask 255.255.255.0zed-boot> ping 10.10.143.230Trying to set up GEM link...Phy ID: 01410DD1Resetting PHY...PHY reset complete.Waiting for PHY to complete auto-negotiation...Link is now at 100Mbps!Using zynq_gem devicehost 10.10.143.230 is alive
zed-boot>run jtagbootTFTPing Linux to RAM... Using zynq_gem device TFTP from server 10.10.143.230; our IP address is 10.10.143.101 Filename 'zImage'. Load address: 0x8000 Loading: ################################################################# ################################################################# ###################################################### done Bytes transferred = 2695640 (2921d8 hex) Using zynq_gem device TFTP from server 10.10.143.230; our IP address is 10.10.143.101 Filename 'devicetree.dtb'. Load address: 0x1000000 Loading: # done Bytes transferred = 6161 (1811 hex) Using zynq_gem device TFTP from server 10.10.143.230; our IP address is 10.10.143.101 Filename 'ramdisk8M.image.gz'. Load address: 0x800000 Loading: ################################################################# ################################################################# ################################################################# ######################################################### done Bytes transferred = 3694108 (385e1c hex) ## Starting application at 0x00008000 ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0
./linux-digilent/scripts/dtc/dtc -I dts -O dtb -o devicetree_ramdisk.dtb devicetree_ramdisk.dts
…………………………………………[ 1.450000] No soundcards found.[ 1.460000] VFS: Mounted root (nfs filesystem) on device 0:11.[ 1.470000] Freeing init memory: 152K……………………………………
ifconfig eth0 downifconfig eth0 192.168.1.10 up
………………[ 1.390000] VFS: Mounted root (nfs filesystem) on device 0:11.
[ 1.400000] devtmpfs: mounted[ 1.400000] Freeing init memory: 152KStarting rcS...++ Mounting filesystem++ Setting up mdev++ Configure static IP 192.168.1.10[ 11.020000] nfs: server 10.10.143.230 not responding, still trying
原因很简单,修改了IP,nfs server当然不响应了。如果在启动过程中虽然成功挂载了nfs,但是却出现了下面这些:
mdev: can't create 'ram0': Operation not permitted……………………mdev: can't create 'loop0': Operation not permitted……………………mdev: can't create 'ram10': Operation not permitted……………………
/zynq/rootfs *(rw,sync,no_subtree_check,no_root_squash)
- ZedBord Linux 开发 TFTP&NF启动
- ZedBoard Linux开发 --- TFTP&NFS启动
- ZedBoard Linux开发 --- TFTP&NFS启动
- Linux下启动tftp
- linux下启动tftp服务器
- 嵌入式 Linux开发 之 tftp
- 通过tftp启动arm开发板
- 启动LINUX下的TFTP服务器
- 启动LINUX下的TFTP服务器
- linux 命令学习—tftp启动
- 3. 启动LINUX下的TFTP服务器
- 嵌入式linux的tftp开发环境建立
- linux tftp
- linux系统下tftp服务的安装与启动
- 【linux】ubuntu 安装、配置与启动tftp服务
- imx53 uboot tftp nfs启动, linux tftp,复制gdb, linux host 创建sd卡启动,ddr stress tester
- NF/NR LINUX AWK编程
- linux-awk中NF与$NF的区别
- java接入微信。轻轻松松~
- C/C++编程中容易忽略的知识
- RobotFramework 如何导入其他第三方库
- 对智能手机操作系统发展的研究与预测
- IOS触摸与手势
- ZedBord Linux 开发 TFTP&NF启动
- mongodb分片模式启用认证的注意事项
- Vim中如何转义反斜杠
- git的文件忽略
- 简单选择排序算法
- 阿里算法附加题
- 算法学习之路-二分查找
- 杭电 HDU ACM 1302 The Snail
- 设计模式学习(十二):桥接模式