- gcc -print-libxxx-file-name ,如: -print-libgcc-file-name 会输出libgcc所在的目录
- tftp在线从虚拟机加载uImage, Fs, dtb:
uboot下执行以下命令将对文件加载到到嵌入式设备内存中:
方法: tftp MemoryAddress FileName
tftp 0x1000000 uImage_file;
tftp 0x3000000 dtb_file;
tftp 0x4000000 rootfs_file;
然后执行 bootm 0x1000000 0x4000000 0x3000000,系统就会从指定的内存去加载系统并启动。
2. 固化系统到flash
固化后的系统就可以直接自动启动不需要人工加载干预了,步骤如下:
tftp 0x100000 u-boot
tftp 0x200000 fman
tftp 0x300000 RCW
protect off all; erase all; //擦除所有flash的页
cp.b 100000 eff40000 c0000 //字节拷贝,源地址位0x100000, 目的地址0xeff40000 ,长度为0xc0000,文件长度在执行tftp加载到 &nbs