服务热线
4008-900-930,010-62105696
-如何正确设置编译路径
请检查PATH变量,如果PATH项与下面不同则继续进行,否则您的编译路径已经设置好了
davinci@davinci-desktop:~$ export
...
declare -x PATH="/opt/codesourcery/arm-none-linux-gnueabi/arm-2007q3/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
...
davinci@davinci-desktop:~$
在ICETEK-OMAP3530-Mini系统所配的Ubuntu开发环境中进行以下操作:
davinci@davinci-desktop:~$PATH="/opt/codesourcery/arm-none-linux-gnueabi/arm-2007q3/bin/:$PATH"
编辑/home/davinci/.bashrc文件
davinci@davinci-desktop:~$gedit .bashrc
在文件末尾添加如下行并保存退出
export PATH="/opt/codesourcery/arm-none-linux-gnueabi/arm-2007q3/bin/:$PATH"
-如何恢复ICETEK-OMAP3530-Mini系统配置的DemoSD卡
需要使用ICETEK-OMAP3530-Mini系统配的开发环境
准备一块SD卡,按照上面介绍的将SD制成双分区并格式化好,将它插入读卡器并连接到开发主机上
在【uBuntu】中如下操作:
davinci@davinci-desktop:~$ cd ICETEKWork/Demos
davinci@davinci-desktop:~/ICETEKWork/Demos$ sudo cp DemoSD/fat32/MLO /media/FAT32
davinci@davinci-desktop:~/ICETEKWork/Demos$ sync
davinci@davinci-desktop:~/ICETEKWork/Demos$ sudo cp DemoSD/fat32/* /media/FAT32
davinci@davinci-desktop:~/ICETEKWork/Demos$ sudo cp -a DemoSD/ext3/* /media/EXT3
davinci@davinci-desktop:~/ICETEKWork/Demos$ sync
等待所有数据均写入SD卡后即可使用
-如何制作从NandFlash启动的系统
注:本说明是针对ICETEK-OMAP3530-MINI-V3的软件开发包,详细说明请参照ICETEK-OMAP3530-MINI-V3随附光盘中使用说明。这里我们将ICETEKWork/software/v3下的内容复制到ICETEKWork/projects下再进行如下操作。
1...如果已经做过启动卡,可将此卡插入读卡器后在Ubuntu中用文件浏览器删除卡上FAT32分区中除MLO文件,bootmode文件和u-boot00.bin,uImage00外所有文件,删除EXT3分区中所有文件及子目录.
2...打开project/xloader/include/configs/omap3530mini.h修改#define NAND_UBOOT_END 0x0160000为#define NAND_UBOOT_END 0x0260000;再将#define CONFIG_MMC 1注释掉,重新编译XLoader,生成新的x-load.bin.ift。
3...在Ubuntu中插入读卡器,使系统识别FAT32分区和EXT3分区并在桌面上显示相应图标(如果分区名称有不同,请在下面操作中根据相应的映射位置调整命令内容中相关部分)启动Ubuntu中终端,进行如下操作
...$ sync
...$cd ICETEKWork/projects/xloader/
...$sudo cp x-load.bin.ift /media/FAT32/(新生成的x-load.bin.ift)
...$cd ../busybox-1.12.2/
...$sudo cp -a _install/* /media/EXT3/
...$sudo mkdir -p /media/EXT3/work/fs
...$sudo cp _install/* /media/EXT3/work/fs/ -a
...$sync
4...卸载SD卡
5...在断电情况下,将SD卡插入Mini板,连接串口,在Windows中打开超级终端程序,接通电源启动ICETEK-OMAP3530-Mini系统,观察超级终端中的显示,在UBoot计数时按空格键停止.
6... 烧写XLoader到NandFlash:
OMAP3 Miniboard # mw.b 80000000 ff 80000
OMAP3 Miniboard # mmcinit
OMAP3 Miniboard # fatload mmc 0:1 80000000 x-load.bin.ift
reading x-load.bin.ift
11412 bytes read
OMAP3 Miniboard # nandecc hw
OMAP3 Miniboard # nand erase 0 80000
NAND erase: device 0 offset 0x0, size 0x80000
Erasing at 0x60000 -- 100% complete.
OK
OMAP3 Miniboard # nand write 80000000 0 80000
NAND write: device 0 offset 0x0, size 0x80000
524288 bytes written: OK
7... 烧写UBoot到NandFlash:
OMAP3 Miniboard # mw.b 80000000 ff 200000
OMAP3 Miniboard # mmcinit
OMAP3 Miniboard # fatload mmc 0:1 80000000 u-boot00.bin
reading u-boot.bin
212880 bytes read
OMAP3 Miniboard # nandecc sw
OMAP3 Miniboard # nand erase 80000 1e0000
NAND erase: device 0 offset 0x80000, size 0x1e0000
Erasing at 0x240000 -- 100% complete.
OK
OMAP3 Miniboard # nand write 80000000 80000 1e0000
NAND write: device 0 offset 0x80000, size 0x1e0000
1966080 bytes written: OK
8... 烧写Kernel到NandFlash:
OMAP3 Miniboard # mw.b 80000000 ff 400000
OMAP3 Miniboard # mmcinit
OMAP3 Miniboard # fatload mmc 0:1 80000000 uImage00
reading uImage
1856668 bytes read
OMAP3 Miniboard # nandecc sw
OMAP3 Miniboard # nand erase 280000 400000
NAND erase: device 0 offset 0x280000, size 0x400000
Erasing at 0x660000 -- 100% complete.
OK
OMAP3 Miniboard # nand write 80000000 280000 400000
NAND write: device 0 offset 0x280000, size 0x400000
4194304 bytes written: OK
OMAP3 Miniboard # nand erase 680000 7980000
NAND erase: device 0 offset 0x680000, size 0x7980000
Skipping bad block at xxxxxxxx
Erasing at 0x7fe0000 -- 100% complete.
OK
OMAP3 Miniboard # setenv bootcmd 'nand read 80200000 280000 400000;bootm 80200000'
OMAP3 Miniboard # setenv bootargs console=ttyS2,115200n8 console=ttyS0 noinitrd root=/dev/mmcblk0p2 rootfstype=ext3 rw rootdelay=3 nohz=off
OMAP3 Miniboard # save
OMAP3 Miniboard # boot
9...烧写文件系统到NandFlash:(在系统启动后提示Please press Enter to activate this console.此时按一下回车键进入控制台)
[MiniBoard]# mkdir /mnt
[MiniBoard]# mkdir /mnt/nand
[MiniBoard]# mount -t jffs2 /dev/mtdblock4 /mnt/nand
[MiniBoard]# cd /mnt/nand
[MiniBoard]# cp -a /work/fs/* .
[MiniBoard]# sync
[MiniBoard]# cd /
[MiniBoard]# umount /mnt/nand
10...从NandFlash启动系统 给ICETEK-OMAP3530-Mini系统重新加电,停止UBoot程序运行,进入UBoot的命令行状态
OMAP3 Miniboard # setenv bootargs 'console=ttyS2,115200N8 console=ttyS0 noinitrd root=/dev/mtdblock4 rw rootfstype=jffs2'
OMAP3 Miniboard # save
11...断电,去掉SD卡,上电重新启动系统。
-SDK里面Linux kernal的原代码在什么位置
~/ICETEKWork/software/2.6_kernel
-UBoot里面的bootloader的使用说明书
包含在软件包中,主要是根目录下的readme.txt
微信二维码