atmel sam d20开发at91sam-ice支持什么开发环境

君,已阅读到文档的结尾了呢~~
&Atmel芯片AT91SAM9X25的Linux调试笔记—ARM进阶之路&,研发中心,一线工程师自己编写,从一个完全没有了解ARM的和linux的视角出发,包括各种软件的安装,软件下载地址等都给出,同时贴出几乎涵盖嵌入式需要用到的源码的英文网页地址。以截图的方式直接展现每一步
扫扫二维码,随身浏览文档
手机或平板扫扫即可继续访问
Atmel芯片9X25的Linux调试笔记—ARM进阶之路
举报该文档为侵权文档。
举报该文档含有违规或不良信息。
反馈该文档无法正常浏览。
举报该文档为重复文档。
推荐理由:
将文档分享至:
分享完整地址
文档地址:
粘贴到BBS或博客
flash地址:
支持嵌入FLASH地址的网站使用
html代码:
&embed src='/DocinViewer-4.swf' width='100%' height='600' type=application/x-shockwave-flash ALLOWFULLSCREEN='true' ALLOWSCRIPTACCESS='always'&&/embed&
450px*300px480px*400px650px*490px
支持嵌入HTML代码的网站使用
您的内容已经提交成功
您所提交的内容需要审核后才能发布,请您等待!
3秒自动关闭窗口AT91SAM9260 嵌入式开发板(C 版本) - ATMEL 爱特梅尔代理商BDTIC自主研发AT91RM9260开发工具C版本
AT91SAM9260 嵌入式开发板(C 版本)
(订购型号:)
AT91SAM9260 ARM工控主板是一款功能齐全、体积小巧、性能稳定、超低价格的嵌入式模块产品。模块硬件完全按工业级标准设计,CPU采用了ATMEL公司32位工业级ARM9芯片(AT91SAM9260),主频达到200MHz,PCB板经精心优化设计,除提供全面、高效的功能之外,还较好地控制了模块功耗。
配备了完备的通讯和输入输出接口,包括1个100M快速以太网,6个标准异步串口,1个CAN总线接口,2个USB HOST及1个USB Device接口,能够满足大多数工业应用的需要。同时,EM9260还提供了LCD接口(支持大多数单色和部分彩色LCD)以及矩阵键盘接口,使用户很容易构成所需的智能终端。EM9260板上带有64MB系统内存、256MB
FLASH存储空间,并支持SD卡应用存储扩展。EM9260的精简ISA扩展总线则为客户扩展各种应用单元提供了简单高效的手段,用户可以不加任何接口电路,就与大多数的通讯接口控制芯片、AD-DA、DIO等器件直接相连或者进行双CAN扩展、多串口扩展以及多网口扩展等应用扩展。此外,EM9260有最多28位GPIO以及2路单端输入10-bit AD通道(与精简ISA总线复用,通过软件配置),实现多种应用组合。
工业级Atmel ARM9,32位CPU,主频200MHz
64MB系统内存,256MB NAND FLASH
预装WINDOWS CE实时多任务实时操作系统
支持包括eVC在内的多种应用程序开发工具
提供标准SD卡插座,即插即用
USB接口支持U盘即插即用
实时时钟RTC,具有掉电保护功能
通讯接口配置
10M/100M自适应快速以太网接口(100BASE-TX)
2个USB HOST接口,其中一个USB与CAN复用管脚
1个USB Device接口,支持ActiveSync
1个系统专用调试维护串口
5个用户可用标准UART串口
COM2,9线制,TTL接口,一般使用该端口接GPRS/CDMA模块
COM3,3线制RS232接口
COM4,TTL接口,一般使用该端口作RS485扩展
COM5,TTL接口,与GPIO0和GPIO1复用管脚
COM6,TTL接口,与GPIO2和GPIO3复用管脚
1个CAN接口,支持CAN2.0B
显示键盘单元
专用LCD接口,直接支持各种低成本单色LCD,模拟彩色LCD
多种显示格式,如128×64、320×240、240×128、192×64等
利用GPIO可方便实现简单键盘输入
扩展总线与DIO单元
精简ISA扩展总线,支持2个独立的外设扩展区域CS0#和CS1#
总线读写周期:500ns
可直接连接英创公司的典型外设模块,如AD模块、数字IO模块等
可软件配置的DIO,包含在4个端口(P2-P5)中,最多28位
2路单端输入10-bit AD通道,与P4.5、P4.6复用管脚
预装Windows CE实时多任务操作系统
提供相应SDK开发包,包括各种接口驱动程序API
支持eVC作为基本的应用程序开发环境,支持包括MFC在内的各种典型的Windows应用程序框架
支持以太网源码调试
支持微软的远程调试工具集,实现对目标板的文件、注册表、进程及线程的管理
对基于以太网、串口的各种TCP/IP网络应用,支持标准WinSock用户API
提供典型应用参考程序源码
AT91SAM9260 嵌入式开发板技术支持
. PDF(完整版)
. PDF(简洁版)
QQ: ;TradeManager
深圳电话:136
西安电话:130
&1993 - 2016 & BDTIC 版权所有供应Atmel SAM-ICE仿真器
营业执照:已审核
身份证:未认证
经营模式:经销商
所在地区:上海 上海市
会员等级:
诚信积分:
公司:上海至秦电子有限公司
联系人:葛先生
地址:上海市普陀区金沙江路1628弄绿洲中环中心5号902室
Atmel SAM-ICE仿真器 适用于SAMA5, SAM3, SAM4, SAM7 和 SAM9 ARM系列。
Atmel SAMA5D3 [i18N - prefix removed]
ATSAMA5D31
ARM Cortex-A5 processor-base_d embedded MPU, 536MHz, Linux support, FPU, LCD controller, 10/100 Ethernet, security
ATSAMA5D33
ARM Cortex-A5 processor-base_d embedded MPU, 536MHz, Linux support, FPU, LCD controller,&gigabit Ethernet, security
ATSAMA5D34
ARM Cortex-A5 processor-base_d embedded MPU, 536MHz, Linux support, FPU, LCD controller,&gigabit Ethernet, dual CAN, security
ATSAMA5D35
ARM Cortex-A5 processor-base_d embedded MPU, 536MHz, Linux support, FPU,&dual Ethernet, dual CAN, security
Atmel SAM3S
Cortex-M3 Microcontroller with 64KB Flash, USB, 48 Pins
Cortex-M3 Microcontroller with 64KB Flash, USB, 64 Pins
Cortex-M3 Microcontroller with 64KB Flash, USB, 100 Pins
Cortex-M3 Microcontroller with 128KB Flash, USB, 48 Pins
Cortex-M3 Microcontroller with 128KB Flash, USB, 64 Pins
Cortex-M3 Microcontroller with 128KB Flash, USB, 100 Pins
Cortex-M3 Microcontroller with 256KB Flash, USB, 48 Pins
Cortex-M3 Microcontroller with 256KB Flash, USB, 64 Pins
Cortex-M3 Microcontroller with 256KB Flash, USB, 100 Pins
Cortex-M3 Microcontroller with 512KB Flash,&64 Pins
Cortex-M3 Microcontroller with 512KB Flash, USB, 100 Pins
ATSAM3SD8B
Cortex-M3 Microcontroller with 2 x 256KB dual-bank Flash, USB, 64 pins
ATSAM3SD8C
Cortex-M3 Microcontroller with 2 x 256KB dual-bank Flash, USB, 100 Pins&
OFDM-base_d PLC Solutions
ATSAM4SP32A
首个基于 Cortex-M4 处理器、与 PRIME 兼容的、高度集成、高性能、低功耗的 PLC SoC
Atmel SAM3U
Cortex-M3 Microcontroller with 64KB Flash, HS USB, 100 Pins
Cortex-M3 Microcontroller with 64KB Flash, HS USB, 144 Pins
Cortex-M3 Microcontroller with 128KB Flash, HS USB, 100 Pins
Cortex-M3 Microcontroller with 128KB Flash, HS USB, 144 Pins
Cortex-M3 Microcontroller with 256KB Flash, HS USB, 100 Pins
Cortex-M3 Microcontroller with 256KB Flash, HS USB, 144 Pins
Atmel SAM3N
ATSAM3N00A
Cortex-M3 Microcontroller with 16KB Flash, 48 Pins
ATSAM3N00B
Cortex-M3 Microcontroller with 16KB Flash,&64 Pins
Cortex-M3 Microcontroller with 32KB Flash, 48 Pins
Cortex-M3 Microcontroller with 32KB Flash,&64 Pins
Cortex-M3 Microcontroller with 32KB Flash, 100 Pins
Cortex-M3 Microcontroller with 64KB Flash, 48 Pins
Cortex-M3 Microcontroller with 64KB Flash, 64 Pins
Cortex-M3 Microcontroller with 64KB Flash, 100 Pins
Cortex-M3 Microcontroller with 128KB Flash, 48 Pins
Cortex-M3 Microcontroller with 128KB Flash, 64 Pins
Cortex-M3 Microcontroller with 128KB Flash, 100 Pins
Cortex-M3 Microcontroller with 256KB Flash, 48 Pins
Cortex-M3 Microcontroller with 256KB Flash, 64 Pins
Cortex-M3 Microcontroller with 256KB Flash, 100 Pins
Atmel SAM3A
Cortex-M3 Microcontroller with 2x128 KB Flash, HS USB, 100 Pins
Cortex-M3 Microcontroller with 2x256 KB Flash, HS USB, 100 Pins
Atmel SAM3X
Cortex-M3 Microcontroller with 2x128 KB Flash, HS USB, 100 Pins&
Cortex-M3 Microcontroller with 2x128 KB Flash, HS USB, 144 Pins&
Cortex-M3 Microcontroller with 2x256 KB Flash, HS USB, 100 Pins&
Cortex-M3 Microcontroller with 2x256 KB Flash, HS USB, 144 Pins&
Atmel SAM4E [i18N - prefix removed]
ATSAM4E16C
ARM® Cortex®-M4 microcontroller with 1MB Flash, IEEE Std Mbps Ethernet MAC, CAN, FS USB, dual ADC/DAC, 100 pins
ATSAM4E16E
ARM® Cortex®-M4 microcontroller with 1MB Flash, IEEE Std Mbps Ethernet MAC, dual CAN, FS USB, dual ADC/DAC, 144 pins
ARM® Cortex®-M4 microcontroller with 512KB Flash, IEEE Std Mbps Ethernet MAC, CAN, FS USB, dual ADC/DAC, 100 pins
ARM® Cortex®-M4 microcontroller with 512KB Flash, IEEE Std Mbps Ethernet MAC, dual CAN, FS USB, dual ADC/DAC, 144 pins
Atmel SAM4N [i18N - prefix removed]
ATSAM4N16B
ARM® Cortex®-M4-base_d microcontroller with&1MB Flash, 80KB SRAM, 100MHz, serial communication peripherals, ADC/DAC, 64 pins
ATSAM4N16C
ARM® Cortex®-M4-base_d microcontroller with&1MB Flash, 80KB SRAM, 100MHz, serial communication peripherals, ADC/DAC,&100 pins
ARM® Cortex®-M4-base_d microcontroller with&512KB Flash, 64KB SRAM, 100MHz, serial communication peripherals, ADC,&48 pins
ARM® Cortex®-M4-base_d microcontroller with&512KB Flash, 64KB SRAM, 100MHz, serial communication peripherals, ADC/DAC, 64 pins
ARM® Cortex®-M4-base_d microcontroller with&512KB Flash, 64KB SRAM, 100MHz, serial communication peripherals, ADC/DAC,&100 pins
Atmel SAM4S
ATSAM4SD32B
ARM®-base_d Cortex®-M4 core with 2MB dual-bank Flash, 160KB SRAM, USB,&64 Pins
ATSAM4SD32C
ARM®-base_d Cortex®-M4 core with 2MB dual-bank Flash, 160KB SRAM, USB,&100 Pins
ATSAM4SD16B
ARM®-base_d Cortex®-M4 core with 1MB dual-bank Flash, 160KB SRAM, USB,&64 Pins
ATSAM4SD16C
ARM®-base_d Cortex®-M4 core with 1MB dual-bank Flash, 160KB SRAM, USB,&100 Pins
ATSAM4SA16B
ARM®-base_d Cortex®-M4 core with 1MB&Flash, 160KB SRAM, USB,&64 Pins
ATSAM4SA16C
ARM®-base_d Cortex®-M4 core with 1MB&Flash, 160KB SRAM, USB,&100 Pins
ATSAM4S16B
ARM®-base_d Cortex®-M4 core with 1MB Flash, 128KB SRAM, USB,&64 Pins
ATSAM4S16C
ARM®-base_d Cortex®-M4 core with 1MB Flash, 128KB SRAM, USB, 100 Pins
ARM®-base_d Cortex®-M4 core with&512KB Flash, 128KB SRAM, USB,&64 Pins
ARM®-base_d Cortex®-M4 core with&512KB Flash, 128KB SRAM, USB,&100 Pins
Atmel SAM7S/SE
AT91SAM7S16
ARM7TDMI Microcontroller with 16KB Flash, 48 Pins
AT91SAM7S161
ARM7TDMI Microcontroller with 16KB Flash, 64 Pins
AT91SAM7S32
ARM7TDMI Microcontroller with 32KB Flash, 48 Pins
AT91SAM7S321
ARM7TDMI Microcontroller with 32KB Flash, 64 Pins
AT91SAM7S64
ARM7TDMI Microcontroller with 64KB Flash, 64 Pins
AT91SAM7S128
ARM7TDMI Microcontroller with 128KB Flash, 64 Pins
AT91SAM7S256
ARM7TDMI Microcontroller with 256KB Flash, 64 Pins
AT91SAM7S512
ARM7TDMI Microcontroller with 512KB Flash, 64 Pins
AT91SAM7SE32
ARM7TDMI Microcontroller with 32KB Flash, 128 Pins
AT91SAM7SE256
ARM7TDMI Microcontroller with 256KB Flash, 128 Pins
AT91SAM7SE512
ARM7TDMI Microcontroller with 512KB Flash, 128 Pins
Legacy Products
AT91M40800
ARM7TDMI Microcontroller with 8KB SRAM, 100 Pins
AT91M42800A
ARM7TDMI Microcontroller with 8KB on-chip SRAM, 144 Pins
AT91M55800A
ARM7TDMI Microcontroller with 8KB on-chip SRAM, 176 Pins
AT91R40008
ARM7TDMI Microcontroller with 256KB SRAM, 100 Pins
AT91RM9200
ARM920T Embedded Microprocessor Unit with USB host and Device, Ethernet, 208 and 256 Pins
AT91SAM9260
ARM926EJ Embedded Microprocessor Unit, 210MHz, FS USB, Ethernet, 208 & 217 Pins
AT91SAM9263
ARM926EJ Embedded Microprocessor Unit, 240MHz, LCD, USB, Ethernet and CAN, 324 Pins
Atmel SAM7X/XC
AT91SAM7X128
ARM7TDMI Microcontroller with 128KB Flash, Ethernet, USB and CAN, 100 Pins
AT91SAM7X256
ARM7TDMI Microcontroller with 256KB Flash, Ethernet, USB and CAN, 100 Pins
AT91SAM7X512
ARM7TDMI Microcontroller with 512KB Flash, Ethernet, USB and CAN, 100 Pins
AT91SAM7XC128
ARM7TDMI Crypto Microcontroller with 128KB Flash, Ethernet, USB and CAN, 100 Pins
AT91SAM7XC256
ARM7TDMI Crypto Microcontroller with 256KB Flash, Ethernet, USB and CAN, 100 Pins
AT91SAM7XC512
ARM7TDMI Crypto Microcontroller with 512KB Flash, Ethernet, USB and CAN, 100 Pins
Atmel SAM7L
AT91SAM7L128
ARM7TDMI Microcontroller with 128KB Flash, 128 and 144 Pins
AT91SAM7L64
ARM7TDMI Microcontroller with 64KB Flash, 128 and 144 Pins
Atmel SAM9XE
AT91SAM9XE128
ARM926EJ Microcontroller with 128KB Flash, Ethernet, USB, 208 and 217 Pins
AT91SAM9XE256
ARM926EJ Microcontroller with 256KB Flash, Ethernet, USB, 208 and 217 Pins
AT91SAM9XE512
ARM926EJ Microcontroller with 512KB Flash, Ethernet, USB, 208 and 217 Pins
Atmel SAM9G
AT91SAM9G46
ARM926EJ Embedded Microprocessor Unit, 400MHz, Hardware Encryption, DDR2/LPDDR, Dual EBI, 324 Pins
AT91SAM9G45
ARM926EJ Embedded Microprocessor Unit, 400MHz, DDR2/LPDDR, LCD, HS USB, 10/100 Ethernet, Dual EBI, 324 Pins
AT91SAM9G35
ARM926EJ Embedded Microprocessor Unit, 400MHz, LCD, Touchscreen, Ethernet, HS USB, LPDDR/DDR2/MLC NAND support, 217 Pins
AT91SAM9G25
ARM926EJ Embedded Microprocessor Unit, 400MHz, Ethernet, HS USB, LPDDR/DDR2/MLC NAND support, 217 and 247 Pins
AT91SAM9G20
ARM926EJ Embedded Microprocessor Unit, 400MHz, USB, Ethernet, 217 and 247 Pins
AT91SAM9G15
ARM926EJ Embedded Microprocessor Unit, 400MHz, LCD, Touchscreen, HS USB, LPDDR/DDR2/MLC NAND support, 217 Pins
AT91SAM9G10
ARM926EJ Embedded Microprocessor Unit, 266MHz, LCD, USB, 217 Pins
AT91SAM9261
ARM926EJ Embedded Microprocessor Unit, 190MHz, 160KB SRAM, LCD, USB, 217 Pins
Atmel SAM9X
AT91SAM9X25
ARM926EJ Embedded Microprocessor Unit, 400MHz, Dual Ethernet and CAN, HS USB, LPDDR/DDR2/MLC NAND support, 217 Pins
AT91SAM9X35
ARM926EJ Embedded Microprocessor Unit, 400MHz, LCD, Touchscreen, Ethernet, Dual CAN, HS USB, LPDDR/DDR2/MLC NAND support, 217 Pins
Atmel SAM9R
AT91SAM9R64
ARM926EJ Embedded Microprocessor Unit, 190MHz, HS USB, 144 Pins
AT91SAM9RL64
ARM926EJ Embedded Microprocessor Unit, 190MHz, LCD, HS USB, 217 Pins
Atmel SAM9M
AT91SAM9M10
ARM926EJ Embedded Microprocessor Unit, 400MHz, DDR2/LPDDR, Video Decoder, LCD, HS USB, 10/100 Ethernet, Dual EBI, 324 Pins
AT91SAM9M11
ARM926EJ Embedded Microprocessor Unit, 400MHz, Hardware Encryption, Video Decoder, DDR2/LPDDR, Dual EBI, 324 Pins
Atmel SAM9N [i18N - prefix removed]
AT91SAM9N12
ARM926EJ Embedded Microprocessor Unit, 400MHz, LCD,&USB, LPDDR/DDR2/MLC NAND support, 217 Pins
AT91SAM9CN11
ARM926EJ Embedded Microprocessor Unit, 400MHz, Crypto engine, LCD,&USB, LPDDR/DDR2/MLC NAND support, 217 Pins
AT91SAM9CN12
ARM926EJ Embedded Microprocessor Unit, 400MHz, Secure BootROM, Crypto engine, LCD,&USB, LPDDR/DDR2/MLC NAND support, 217 Pins
您可能还喜欢:
电子市场网版权所有
经营许可证:浙B2-买家服务热线:
卖家服务热线:1779人阅读
1,下载源码和补丁&
root@emboard:/workdir/atmel/at91sam9260#&
AT91Bootstrap1.14.zip&&
arm--arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2&
u-boot-1.3.4-exp.3.diff&&
u-boot-1.3.4.tar.bz&
22.6.24.at91.2-exp.patch.gz&&
2.6.24-at91.patch.gz&&
linux-2.6.24& linux-2.6.24.tar.bz2&
2,建立工作目录文件夹,解压源码和打入相应的补丁:&
3,开始编译源码:&
3.1:编译一级启动代码:&
root@emboard:/workdir/atmel/at91sam9260/AT91Bootstrap# unzip AT91Bootstrap1.14.zip&
root@emboard:/workdir/atmel/at91sam9260/AT91Bootstrap# ls
AT91Bootstrap1.14.zip& Bootstrap-v1.14
root@emboard:/workdir/atmel/at91sam9260/AT91Bootstrap# cd Bootstrap-v1.14/board/at91sam9260ek/nandflash/
root@emboard:/workdir/atmel/at91sam9260/AT91Bootstrap/Bootstrap-v1.14/board/at91sam9260ek/nandflash# ls
at91sam9260ek.h& debug.o& main.o&&&&&&&&&&&&&&&&&&&&&& nandflash_at91sam9260ek.elf& pmc.o&&&& udiv.o
at91sam9260ek.o& div0.o&& Makefile&&&&&&&&&&&&&&&&&&&& nandflash_at91sam9260ek.map& sdramc.o& _udivsi3.o
crt0_gnu.o&&&&&& gpio.o&& nandflash_at91sam9260ek.bin& nandflash.o&&&&&&&&&&&&&&&&& string.o& _umodsi3.o&
root@emboard:/workdir/atmel/at91sam9260/AT91Bootstrap/Bootstrap-v1.14/board/at91sam9260ek/nandflash# make clean
rm -f *.o *.bin *.elf *.map
root@emboard:/workdir/atmel/at91sam9260/AT91Bootstrap/Bootstrap-v1.14/board/at91sam9260ek/nandflash# ls
at91sam9260ek.h& Makefile&
因为9260编译后必须使这个烧入文件小于4K,所以要针对Makefile做修改:&
root@emboard:/workdir/atmel/at91sam9260/AT91Bootstrap/Bootstrap-v1.14/board/at91sam9260ek/nandflash# vim Makefile&
修改下面这个地方:
OBJDUMP=$(CROSS_COMPILE)objdump
CCFLAGS=-g -mcpu=arm9&-O1 -Wall -D$(TARGET) -I$(INCL)
ASFLAGS=-g -mcpu=arm9&-c -O1 -Wall -D$(TARGET) -I$(INCL) -DTOP_OF_MEM=$(TOP_OF_MEMORY)&
root@emboard:/workdir/atmel/at91sam9260/AT91Bootstrap/Bootstrap-v1.14# cd include/
root@emboard:/workdir/atmel/at91sam9260/AT91Bootstrap/Bootstrap-v1.14/include# ls
AT91CAP9_inc.h&&&& AT91SAM9263_inc.h& AT91SAM9XE128_inc.h& debug.h& nandflash.h& part.h&& sdramc.h
AT91SAM9260_inc.h& AT91SAM9G45_inc.h& dataflash.h&&&&&&&&& gpio.h&& nand_ids.h&& pmc.h
AT91SAM9261_inc.h& AT91SAM9RL_inc.h&& ddramc.h&&&&&&&&&&&& main.h&& norflash.h&& sddrc.h&
修改这个文件:&
root@emboard:/workdir/atmel/at91sam9260/AT91Bootstrap/Bootstrap-v1.14/include# vim nand_ids.h&
#ifndef _NAND_IDS_H
#define _NAND_IDS_H&
#include &../include/nandflash.h&&
/* Supported NandFlash devices */
static struct SNandInitInfo NandFlash_InitInfo[] = {
&{0xecda, 0x800, 0x2, 0x40, 0x0, &K9F2G08U0M\0&},
&//{0xecaa, 0x800, 0x2, 0x40, 0x0, &K9F2G08R0A\0&},
&//{0x2cca, 0x800, 0x2, 0x40, 0x1, &MT29F2G16AAB\0&},&
&//{0x2cda, 0x800, 0x2, 0x40, 0x0, &MT29F2G08AAC\0&},
&//{0x20aa, 0x800, 0x2, 0x40, 0x0, &STMNAND02GR3B\0&},&
&//{0x2caa, 0x800, 0x2, 0x40, 0x0, &MT29F2G08ABD\0&},
屏蔽掉你不用的nandflash,这样就可以使编译最后的大小小于4K!
root@emboard:/workdir/atmel/at91sam9260/AT91Bootstrap/Bootstrap-v1.14/board/at91sam9260ek/nandflash# make&
root@emboard:/workdir/atmel/at91sam9260/AT91Bootstrap/Bootstrap-v1.14/board/at91sam9260ek/nandflash# ls -l
-rwxrwxrwx 1 root&& root&&&& -04 19:18 at91sam9260ek.h
-rw-r--r-- 1 root&& root&&&& -18 21:26 at91sam9260ek.o
-rw-r--r-- 1 root&& root&&&& -18 21:26 crt0_gnu.o
-rw-r--r-- 1 root&& root&&&&& 992
21:26 debug.o
-rw-r--r-- 1 root&& root&&&& -18 21:26 div0.o
-rw-r--r-- 1 root&& root&&&& -18 21:26 gpio.o
-rw-r--r-- 1 root&& root&&&& -18 21:26 main.o
-rwxr--r-- 1 nobody nogroup& -18 21:22 Makefile
-rwxr-xr-x 1 root&& root&&&& -18 21:26 nandflash_at91sam9260ek.bin
-rwxr-xr-x 1 root&& root&&& -05-18 21:26 nandflash_at91sam9260ek.elf
-rw-r--r-- 1 root&& root&&& -05-18 21:26 nandflash_at91sam9260ek.map
-rw-r--r-- 1 root&& root&&&& -18 21:26 nandflash.o
-rw-r--r-- 1 root&& root&&&& -18 21:26 pmc.o
-rw-r--r-- 1 root&& root&&&& -18 21:26 sdramc.o
-rw-r--r-- 1 root&& root&&&& -18 21:26 string.o
-rw-r--r-- 1 root&& root&&&& -18 21:26 udiv.o
-rw-r--r-- 1 root&& root&&&& -18 21:26 _udivsi3.o
-rw-r--r-- 1 root&& root&&&& -18 21:26 _umodsi3.o&
可以看到nandflash_at91sam9260ek.bin小于4K!&
将编译出来的文件写入nandflash的0x里面去:&
3.2:编译u-boot:&
root@emboard:/workdir/at91sam9260/u-boot# ls -l
total 7668
-rw-rw-rw-& 1 root root& 9-10-23 10:08 u-boot-1.3.4-exp.3.diff
-rw-rw-rw-& 1 root root 9-05-11 09:51 u-boot-1.3.4.tar.bz2&
root@emboard:/workdir/at91sam9260/u-boot# tar -xjvf u-boot-1.3.4.tar.bz2&
root@emboard:/workdir/at91sam9260/u-boot# ls
u-boot-1.3.4& u-boot-1.3.4-exp.3.diff& u-boot-1.3.4.tar.bz2&
进入u-boot目录:&
root@emboard:/workdir/at91sam9260/u-boot# cd u-boot-1.3.4&
将补丁复制到u-boot目录里:
root@emboard:/workdir/at91sam9260/u-boot/u-boot-1.3.4# cp ../u-boot-1.3.4-exp.3.diff .&
打入atmel的补丁:
root@emboard:/workdir/at91sam9260/u-boot/u-boot-1.3.4# cat u-boot-1.3.4-exp.3.diff | patch -p1&
root@emboard:/workdir/atmel/at91sam9260/u-boot/u-boot-1.3.4# make distclean
root@emboard:/workdir/atmel/at91sam9260/u-boot/u-boot-1.3.4# make at91sam9260ek_nandflash_config
... with environment variable in NAND FLASH
Configuring for at91sam9260ek board...
root@emboard:/workdir/atmel/at91sam9260/u-boot/u-boot-1.3.4# make&
这样就可以编译出u-boot.bin&
可以去这个文件来看u-boot烧写进nandflash的地址&
root@emboard:/workdir/atmel/at91sam9260/AT91Bootstrap/Bootstrap-v1.14/board/at91sam9260ek/nandflash# vim at91sam9260ek.h&
/* ******************************************************************* */
/* BootStrap Settings&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& */
/*&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& */
/* ******************************************************************* */
#define IMG_ADDRESS &&0x20000&&/* Image Address in NandFlash */
#define&IMG_SIZE&&0x40000&&/* Image Size in NandFlash&&& */&
看到烧到nandflash的地址是:0x20000&
然后打开串口,写入进nandflash串口信息如下:&
U-Boot 1.3.4 (May 18 2010 - 21:40:34)&
DRAM:& 64 MB
NAND:& 256 MiB
*** Warning - bad CRC or NAND, using default environment&
In:&&& serial
Out:&& serial
Err:&& serial
Net:&& macb0
macb0: Starting autonegotiation...
macb0: Autonegotiation complete
macb0: link up, 100Mbps full-duplex (lpa: 0x41e1)
Hit any key to stop autoboot:& 0&
NAND read: device 0 offset 0xa0000, size 0x200000
&2097152 bytes read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image!
可以看到u-boot启动起来了:&
然后插上网线,看下网络能通吗?&
U-Boot& ping 192.168.1.1
macb0: link up, 100Mbps full-duplex (lpa: 0x41e1)
*** ERROR: `ipaddr' not set
host 192.168.1.1 is not alive&
看到提示没有设置ipaddr:&
U-Boot& setenv ipaddr 192.168.1.250
U-Boot& printenv
bootargs=console=ttyS0,115200 root=/dev/mtdblock5 mtdparts=at91_nand:128k(bootstrap)ro,256k(uboot)ro,128k(env1)ro,128k(env2)ro,2M(linux),-(root) rw rootfstype=jffs2
bootcmd=nand read 0xxA000; bootm
bootdelay=3
baudrate=115200
stdin=serial
stdout=serial
stderr=serial
ethact=macb0
ipaddr=192.168.1.250&
Environment size: 321/131067 bytes
U-Boot& saveenv
Saving Environment to NAND...
Erasing redundant Nand...
Erasing at 0x80000 -- 100% complete.
Writing to redundant Nand... done&
U-Boot& setenv ethaddr 3e:36:65:ba:6f:be
U-Boot& setenv netmask 255.255.255.0
U-Boot& setenv gatewayip 192.168.1.1
U-Boot& savenv
Unknown command 'savenv' - try 'help'
U-Boot& saveenv
Saving Environment to NAND...
Erasing Nand...
Erasing at 0x60000 -- 100% complete.
Writing to Nand... done
U-Boot& ping 192.168.1.1
macb0: link up, 100Mbps full-duplex (lpa: 0x41e1)
Using macb0 device
host 192.168.1.1 is alive&
现在可以ping通网络了:&
我们现在ping下google:&
U-Boot& ping 66.249.89.104
macb0: link up, 100Mbps full-duplex (lpa: 0x41e1)
Using macb0 device
host 66.249.89.104 is alive&
可以看到也能ping到外网!&
3.3移植linux内核:&
root@emboard:/workdir/atmel/at91sam9260/kernel# tar -xjvf linux-2.6.24.tar.bz2&
root@emboard:/workdir/atmel/at90sam9260/kernel# ls
2.6.24.at91.2-exp.patch.gz& 2.6.24-at91.patch.gz&linux-2.6.24.tar.bz2&
root@emboard:/workdir/at91sam9260/kernel/linux-2.6.24# zcat 2.6.24.at91.2-exp.patch.gz | patch -p1
root@emboard:/workdir/at91sam9260/kernel/linux-2.6.24# zcat&
2.6.24-at91.patch.gz | patch -p1&
root@emboard:/workdir/atmel/at91sam9260/kernel# cd linux-2.6.24
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24# ls
arch&&&& CREDITS&&&&&&& drivers& init&&& kernel&&&&&& Makefile&&&&&&& net&&&&&&&&&&&& samples&& sound&&&&&& vmlinux
block&&& crypto&&&&&&&& fs&&&&&& ipc&&&& lib&&&&&&&&& mm&&&&&&&&&&&&& README&&&&&&&&& scripts&& System.map& vmlinux.o
COPYING& Documentation& include& Kbuild& MAINTAINERS& Module.symvers& REPORTING-BUGS& security& usr&
root@emboard:/workdir/at91sam9261/kernel/linux-2.6.24# vim Makefile&
linux-2.6.24 主目录下有个Makefile 文件,打开,找到185 行左右,修改
ARCH ?= arm
CROSS_COMPILE ?= arm-none-linux-gnueabi-
保存退出。&
root@emboard:/workdir/at91sam9261/kernel/linux-2.6.24# make distclean&
root@emboard:/workdir/at91sam9261/kernel/linux-2.6.24# make at91sam9261ek_defconfig&
root@emboard:/workdir/at91sam9261/kernel/linux-2.6.24# make menuconfig&
然后配置:&
kernel Features --&选中:&
[*]Use the ARM EABI to compile the kernel&
[*]Allow old ABI ............&
然后编译:&
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24# make uImage&
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24/arch/arm/mach-at91# pwd
/workdir/atmel/at91sam9260/kernel/linux-2.6.24/arch/arm/mach-at91&
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24/arch/arm/mach-at91# vim board-sam9260ek.c&
修改这里可以修改为自己想要的:&
116行开始:&
&* NAND flash
static struct mtd_partition __initdata ek_nand_partition[] = {
&&&&&&&&&&&&&&& .name&& = &Bootstrap&,
&&&&&&&&&&&&&&& .offset = 0,
&&&&&&&&&&&&&&& .size&& = 4 * 1024 * 1024,
&&.name&= &u-boot&,
&&.offset&= 4 * 1024 * 1024,
&&.size&= 4 * 1024 * 1024,
&&.name&= &kernel&,
&&.offset&= 8 * 1024 * 1024,
&&.size&= 22 * 1024 * 1024,
&&.name&= &fs&,
&&.offset&= 30 * 1024 * 1024,
&&.size&= 40 * 1024 * 1024,
&&.name&= &user space0&,
&&.offset&= 70 * 1024 * 1024,
&&.size&= 60 * 1024 * 1024,
&&.name&= &user space2&,
&&.offset&= 130 * 1024 * 1024,
&&.size&= MTDPART_SIZ_FULL,
我的是256M的nandflash!&
然后编译写入板子:&
串口信息如下:&
U-Boot 1.3.4 (May 18 2010 - 21:40:34)&
DRAM:& 64 MB
NAND:& 256 MiB
*** Warning - bad CRC or NAND, using default environment&
In:&&& serial
Out:&& serial
Err:&& serial
Net:&& macb0
macb0: Starting autonegotiation...
macb0: Autonegotiation complete
macb0: link up, 100Mbps full-duplex (lpa: 0x41e1)
Hit any key to stop autoboot:& 0&
NAND read: device 0 offset 0xa0000, size 0x200000
&2097152 bytes read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image!
U-Boot& printenv&&&&&&&&&&&
bootargs=console=ttyS0,115200 root=/dev/mtdblock5 mtdparts=at91_nand:128k(bootstrap)ro,256k(uboot)ro,128k(env1)ro,128k(env2)ro,2M(linux),-(root) rw rootfstype=jffs2
bootcmd=nand read 0xxA000; bootm
bootdelay=3
baudrate=115200
stdin=serial
stdout=serial
stderr=serial
ethact=macb0&
Environment size: 300/131067 bytes
U-Boot& nand read 0xxx200000&
NAND read: device 0 offset 0x800000, size 0x200000
&2097152 bytes read: OK
U-Boot& bootm 0x
## Booting kernel from Legacy Image at
&& Image Name:&& Linux-2.6.24
&& Image Type:&& ARM Linux Kernel Image (uncompressed)
&& Data Size:&&& 1070252 Bytes =& 1 MB
&& Load Address:
&& Entry Point:&
&& Verifying Checksum ... OK
&& Loading Kernel Image ... OK
Starting kernel ...&
Uncompressing Linux....................................................................... done, booting the kernel.
Linux version 2.6.24 (root@emboard) (gcc version 4.2.3 (Sourcery G++ Lite )) #1 Tue May 18 22:50:41 HKT 2010
CPU: ARM926EJ-S [] revision 5 (ARMv5TEJ), cr=
Machine: Atmel AT91SAM9260-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
CPU0: D VIVT write-back cache
CPU0: I cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
Built 1 zonelists in Zone order, mobility grouping on.& Total pages: 16256
Kernel command line: console=ttyS0,115200 root=/dev/mtdblock5 mtdparts=at91_nand:128k(bootstrap)ro,256k(uboot)ro,128k(env1)ro,128k(env2)ro,2M(linux),-(root) rw rootfstype=jffs2
AT91: 96 gpio irqs in 3 banks
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttyS0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 62616KB available (1944K code, 194K data, 100K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 64 bytes
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
Time: pit clocksource has been installed.
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
io scheduler noop registered
io scheduler anticipatory registered (default)
Internal error: Oops - undefined instruction: 0 [#1]
Modules linked in:
CPU: 0&&& Not tainted& (2.6.24 #1)
PC is at device_create+0x20/0xb8
LR is at tty_register_device+0xb4/0xd0
pc : [&c0101288&]&&& lr : [&c00e8c18&]&&& psr: a0000013
sp : c3c19ea8& ip : c3c19ed8& fp : c3c19ed0
r10: & r9 : & r8 : c3c18000
r7 : c00e8c17& r6 : & r5 : c3c36bc0& r4 :
r3 : c3c19ee0& r2 : & r1 : & r0 : c3c36bc0
Flags: NzCv& IRQs on& FIQs on& Mode SVC_32& ISA ARM& Segment kernel
Control: 0005317f& Table: & DAC:
Process swapper (pid: 1, stack limit = 0xc3c18268)
Stack: (0xc3c19ea8 to 0xc3c1a000)
9ea0:&&&&&&&&&&&&&&&&&& c19ea8 c00e8c18 04&
9ec0: c19f3c c3c19ed8 c00e8c18 c010127c c3c19ee0 000004&
9ee0: c19e00 c010530c c019cf94 c500 c3cab800&
9f00: c00 c19f3c c3c19f20 c007d518 c0105210&
9f20: c52800 c3cab800 c19f64 c3c19f40 c00eb74&
9f40: c3c19f64 3ae0 1d60c c3c19f7c c3c19f68&
9f60: c0017a2c c00e95b0 33ae0 c3c19f94 c3c19f80 c17988&
9f80: c001e000 c19ff4 c3c19f98 c18 c00354d4&
9fa0: c19fb0 c00 0bbc0&
9fc0: 00 00 00000&
9fe0: 00 c3c19ff8 c003bbc0 c0008880 ffffff7f feffefff&
Backtrace:&
[&c010126c&] (device_create+0x4/0xb8) from [&c00e8c18&] (tty_register_device+0xb4/0xd0)
[&c00e8b64&] (tty_register_device+0x0/0xd0) from [&c00e9744&] (tty_register_driver+0x1a4/0x1e4)
&r7::c3cab800 r5:c3c500003
[&c00e95a0&] (tty_register_driver+0x0/0x1e4) from [&c0017a2c&] (vty_init+0xb4/0xec)
&r7:c001d60c r6::c:c0234404
[&c0017978&] (vty_init+0x0/0xec) from [&c00172c4&] (tty_init+0x174/0x1cc)
[&c0017150&] (tty_init+0x0/0x1cc) from [&c0008934&] (kernel_init+0xc4/0x284)
&r5::c001e000
[&c0008870&] (kernel_init+0x0/0x284) from [&c003bbc0&] (do_exit+0x0/0x710)
Code: e24dd00c ea002 (0a000019)&
---[ end trace 119d4cb ]---
Kernel panic - not syncing: Attempted to kill init!&
可以看到内核是启动起来了!但是还文件系统等还没完全启动,所以还需要进行修改!&
4:添加内核对yaffs2的支持&
上面可以看到,没有对yaffs2文件系统的支持,现在就添加yaffs2的支持&
4.1解压yaffs2文件包&
root@emboard:/workdir/atmel/at91sam9260/kernel# tar -xzvf yaffs2.tar.gz&
root@emboard:/workdir/atmel/at91sam9260/kernel# ls
2.6.24.at91.2-exp.patch.gz& 2.6.24-at91.patch.gz& linux-2.6.24& linux-2.6.24.tar.bz2& yaffs2& yaffs2.tar.gz&
root@emboard:/workdir/atmel/at91sam9260/kernel# cd linux-2.6.24/fs&
root@emboard:/workdir/atmel/at91sam9260/kernel# mkdir yaffs&
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24/fs/yaffs2# pwd
/workdir/atmel/at91sam9260/kernel/linux-2.6.24/fs/yaffs&
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24/fs/yaffs# cp ../../../yaffs/*.h .
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24/fs/yaffs# cp ../../../yaffs/*.c .
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24/fs/yaffs# ls
devextras.h&&&&&&& yaffs_fs.c&&&&&&&&&&& yaffs_mtdif1.h& yaffs_nandemul2k.h&& yaffs_qsort.c&&&&&&&& yportenv.h
moduleconfig.h&&&& yaffs_getblockinfo.h& yaffs_mtdif2.c& yaffs_nand.h&&&&&&&& yaffs_qsort.h
yaffs_checkptrw.c& yaffs_guts.c&&&&&&&&& yaffs_mtdif2.h& yaffs_packedtags1.c& yaffs_tagscompat.c
yaffs_checkptrw.h& yaffs_guts.h&&&&&&&&& yaffs_mtdif.c&& yaffs_packedtags1.h& yaffs_tagscompat.h
yaffs_ecc.c&&&&&&& yaffsinterface.h&&&&& yaffs_mtdif.h&& yaffs_packedtags2.c& yaffs_tagsvalidity.c
yaffs_ecc.h&&&&&&& yaffs_mtdif1.c&&&&&&& yaffs_nand.c&&& yaffs_packedtags2.h& yaffs_tagsvalidity.h&
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24/fs/yaffs# cp ../../../yaffs2/Makefile.kernel .
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24/fs/yaffs# ls
devextras.h&&&&&&& yaffs_ecc.h&&&&&&&&&& yaffs_mtdif1.c& yaffs_nand.c&&&&&&&& yaffs_packedtags2.h&& yaffs_tagsvalidity.h
Makefile.kernel&&& yaffs_fs.c&&&&&&&&&&& yaffs_mtdif1.h& yaffs_nandemul2k.h&& yaffs_qsort.c&&&&&&&& yportenv.h
moduleconfig.h&&&& yaffs_getblockinfo.h& yaffs_mtdif2.c& yaffs_nand.h&&&&&&&& yaffs_qsort.h
yaffs_checkptrw.c& yaffs_guts.c&&&&&&&&& yaffs_mtdif2.h& yaffs_packedtags1.c& yaffs_tagscompat.c
yaffs_checkptrw.h& yaffs_guts.h&&&&&&&&& yaffs_mtdif.c&& yaffs_packedtags1.h& yaffs_tagscompat.h
yaffs_ecc.c&&&&&&& yaffsinterface.h&&&&& yaffs_mtdif.h&& yaffs_packedtags2.c& yaffs_tagsvalidity.c
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24/fs/yaffs# mv Makefile.kernel Makefile
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24/fs/yaffs# ls
devextras.h&&&&&&& yaffs_ecc.h&&&&&&&&&& yaffs_mtdif1.c& yaffs_nand.c&&&&&&&& yaffs_packedtags2.h&& yaffs_tagsvalidity.h
Makefile&&&&&&&&&& yaffs_fs.c&&&&&&&&&&& yaffs_mtdif1.h& yaffs_nandemul2k.h&& yaffs_qsort.c&&&&&&&& yportenv.h
moduleconfig.h&&&& yaffs_getblockinfo.h& yaffs_mtdif2.c& yaffs_nand.h&&&&&&&& yaffs_qsort.h
yaffs_checkptrw.c& yaffs_guts.c&&&&&&&&& yaffs_mtdif2.h& yaffs_packedtags1.c& yaffs_tagscompat.c
yaffs_checkptrw.h& yaffs_guts.h&&&&&&&&& yaffs_mtdif.c&& yaffs_packedtags1.h& yaffs_tagscompat.h
yaffs_ecc.c&&&&&&& yaffsinterface.h&&&&& yaffs_mtdif.h&& yaffs_packedtags2.c& yaffs_tagsvalidity.c&
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24/fs/yaffs# pwd
/workdir/atmel/at91sam9260/kernel/linux-2.6.24/fs/yaffs2&
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24/fs/yaffs# cp ../../../yaffs2/Kconfig .&
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24/fs/yaffs# cd ..&
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24/fs# pwd
/workdir/atmel/at91sam9260/kernel/linux-2.6.24/fs&
119行开始:&
obj-$(CONFIG_OCFS2_FS)&&+= ocfs2/
obj-$(CONFIG_GFS2_FS)&&&&&&&&&& += gfs2/
obj-$(CONFIG_YAFFS_FS)&&&&&&&&&& += yaffs/&
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24/fs# vim Kconfig&
修改2119行:&
endif # NETWORK_FILESYSTEMS&
source &fs/yaffs2/Kconfig&&
menu &Partition Types&&
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24# make distclean&
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24# make at91sam9260ek_defconfig&
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24# make menuconfig&
修改配置,去选择支持yaffs!&
Device Drivers --& Memory Technology Device(MTD) support&
File Systems --& YAFFS2 file system support&
&&&&&&&&&&&&&&&&&Autoselect yaffs2 format&
&&&&&&&&&&&&&&&& Disable lazy loading&
&&&&&&&&&&&&&&&& Turn off wide tnodes&
Kernel Features --& Use the ARM EABI to compile the kernel&
&&&&&&&&&&&&&&&&&&& Allow ole ABI binaries to run with this kernel&
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24# make uImage&
root@emboard:/workdir/atmel/at91sam9260/kernel/yaffs2/utils# pwd
/workdir/atmel/at91sam9260/kernel/yaffs2/utils
root@emboard:/workdir/atmel/at91sam9260/kernel/yaffs2/utils# ls
Makefile& mkyaffs2image.c& mkyaffsimage.c&
root@emboard:/workdir/atmel/at91sam9260/kernel/yaffs2/utils# make&
root@emboard:/workdir/atmel/at91sam9260/kernel/yaffs2/utils# ls
Makefile&&&&&& mkyaffs2image.c& mkyaffsimage&&& mkyaffsimage.o& yaffs_ecc.o&&&&&&&&& yaffs_packedtags2.o&& yaffs_tagsvalidity.o
mkyaffs2image& mkyaffs2image.o& mkyaffsimage.c& yaffs_ecc.c&&&& yaffs_packedtags2.c& yaffs_tagsvalidity.c&
然后将这个&mkyaffs2image&目录添加到环境变量里面去!&
root@emboard:/workdir/atmel/at91sam9260/kernel/yaffs2/utils# cd ../../../../&
root@emboard:/workdir/atmel/at91sam9260# ls
AT91Bootstrap& crosstool& filesyetem& kernel& setenv-9260& Source Insight Workdir& u-boot&
然后就得到支持yaffs2的内核了!&
==================================================================================&
给建立服务器
首先设置虚拟机能上网步骤如下:
配置,配置文件
然后是,配置
例如:配置静态地址
内容如下:
增加以下内容:
增加默认网关
重新启动网络配置
建立服务器
网上摘抄方法
这样服务器就启动了,下面可以做一个测试
建立一个文件
登录另一个目录
换成自己的如果能够得到文件,那么就成功了。
:不要忘了关于不能上传()的解决
打开目录新建文件内容:
重新启动服务:
安装过程中出现的问题及原因
服务没有启动
在中设置的为设置的时候只要将=改为你自己设定的服务器文件夹就行了
指定的文件不存在;或启动参数中没有指定选项,允许上传文件。
板子通过下载虚拟机的文件
这样就可以直接下载文件到板子上了
当然你也可以下载其它的文件:
U-Boot& tftp 0x uImage
macb0: link up, 100Mbps full-duplex (lpa: 0x41e1)
Using macb0 device
TFTP from server 192.168.1.5; our IP address is 192.168.1.254
Filename 'uImage'.
Load address: 0x
Loading: #################################################################
&&&&&&&& #########
Bytes transferred = 67c8 hex)
U-Boot& bootm 0x
U-Boot& bootm 0x&&&&&&
## Booting kernel from Legacy Image at
&& Image Name:&& Linux-2.6.24
&& Image Type:&& ARM Linux Kernel Image (uncompressed)
&& Data Size:&&& 1075080 Bytes =& 1 MB
&& Load Address:
&& Entry Point:&
&& Verifying Checksum ... OK
&& Loading Kernel Image ... OK
Starting kernel ...
Uncompressing Linux....................................................................... done, booting the kernel.
Linux version 2.6.24 (root@emboard) (gcc version 4.2.3 (Sourcery G++ Lite )) #1 Thu May 20 21:16:55 HKT 2010
CPU: ARM926EJ-S [] revision 5 (ARMv5TEJ), cr=
Machine: Atmel AT91SAM9260-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
CPU0: D VIVT write-back cache
CPU0: I cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
Built 1 zonelists in Zone order, mobility grouping on.& Total pages: 16256
Kernel command line: console=ttyS0,115200
AT91: 96 gpio irqs in 3 banks
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttyS0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 62616KB available (1944K code, 194K data, 100K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 64 bytes
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
Time: pit clocksource has been installed.
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
io scheduler noop registered
io scheduler anticipatory registered (default)
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL
atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
ssc ssc.0: Atmel SSC device at 0xc4820000 (irq 14)
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffc4000 irq 21 (3e:36:65:ba:6f:be)
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:00, irq=-1)
Driver 'sd' needs updating - please use bus_type methods
usbmon: debugfs is not available
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 20, io mem 0x
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0
rtc-at91sam9 at91_rtt.0: rtc0: SET TIME!
i2c /dev entries driver
i2c-gpio i2c-gpio: using pins 55 (SDA) and 56 (SCL)
at91sam9_wdt: invalid timeout (must be between 1 and 16)
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
VFS: Cannot open root device &&NULL&& or unknown-block(0,0)
Please append a correct &root=& here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
停在这里就运行不下去了!
google下,知道是内核恐慌.原因是内核的
内核命令行有个环境变量。如果即将达到或者已经超过了的话参数会没有传进去启动时会引发错误。
所以去看uboot的参数传递,没有!
现在去看下u-boot
配置内核 :
U-Boot 1.3.4 (May 18 2010 - 21:40:34)
DRAM:& 64 MB
NAND:& 256 MiB
In:&&& serial
Out:&& serial
Err:&& serial
Net:&& macb0
macb0: Starting autonegotiation...
macb0: Autonegotiation complete
macb0: link up, 100Mbps full-duplex (lpa: 0x41e1)
Hit any key to stop autoboot:& 0&
U-Boot& printenv
bootdelay=3
baudrate=115200
ethact=macb0
ethaddr=3e:36:65:ba:6f:be
ipaddr=192.168.1.254
getwayip=192.168.1.1
netmask=255.255.255.0
serverip=192.168.1.5
bootfile=uImage
bootcmd=nand read 0xxx; bootm 0x
bootargs=noinitrd console=ttyS0,115200 init=/linuxrc root=/dev/mtdblock2 rootfs=cramfs men=64M
stdin=serial
stdout=serial
stderr=serial
Environment size: 373/131067 bytes
U-Boot& tftp 0x uImage
macb0: link up, 100Mbps full-duplex (lpa: 0x41e1)
Using macb0 device
TFTP from server 192.168.1.5; our IP address is 192.168.1.254
Filename 'uImage'.
Load address: 0x
Loading: #################################################################
&&&&&&&& ############
Bytes transferred = 15e4 hex)
U-Boot& bootm 0x
## Booting kernel from Legacy Image at
&& Image Name:&& Linux-2.6.24
&& Image Type:&& ARM Linux Kernel Image (uncompressed)
&& Data Size:&&& 1119652 Bytes =& 1.1 MB
&& Load Address:
&& Entry Point:&
&& Verifying Checksum ... OK
&& Loading Kernel Image ... OK
Starting kernel ...
Uncompressing Linux.......................................................................... done, booting the kernel.
Linux version 2.6.24 (root@emboard) (gcc version 4.2.3 (Sourcery G++ Lite )) #1 Thu May 20 22:01:58 HKT 2010
CPU: ARM926EJ-S [] revision 5 (ARMv5TEJ), cr=
Machine: Atmel AT91SAM9260-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
CPU0: D VIVT write-back cache
CPU0: I cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
Built 1 zonelists in Zone order, mobility grouping on.& Total pages: 16256
Kernel command line: noinitrd console=ttyS0,115200 init=/linuxrc root=/dev/mtdblock2 rootfs=cramfs men=64M
AT91: 96 gpio irqs in 3 banks
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttyS0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 62592KB available (2036K code, 195K data, 100K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 64 bytes
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
Time: pit clocksource has been installed.
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
yaffs May 20 :45 Installing.&
io scheduler noop registered
io scheduler anticipatory registered (default)
Unable to handle kernel NULL pointer dereference at virtual address 00000c20
pgd = c0004000
[00000c20] *pgd=
Internal error: Oops: 0 [#1]
Modules linked in:
CPU: 0&&& Not tainted& (2.6.24 #1)
PC is at 0xc20
LR is at link_path_walk+0x8c/0x168
pc : [&00000c20&]&&& lr : [&c008479c&]&&& psr:
sp : c3c79d98& ip : c022d511& fp : c3c79de4
r10: c022d516& r9 : & r8 : c022d510
r7 : & r6 : c3800d08& r5 : c3c79ee0& r4 :
r3 : & r2 : c3c79db0& r1 : c3c79da4& r0 : c3c79ee0
Flags: nZCv& IRQs on& FIQs on& Mode SVC_32& ISA ARM& Segment kernel
Control: 0005317f& Table: & DAC:
Process khelper (pid: 616, stack limit = 0xc3c78268)
Stack: (0xc3c79d98 to 0xc3c7a000)
9d80:&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& c78000&
9da0: c000e1 2d511 c3c0d7a0 cc7c0&
9dc0: c3c79ee0 c3c0d7a0 c2d510 0e5c c3c79de8&
9de0: c008479c c0d7a0 c3c79f64 cc1ab20 &
9e00: 0f34 c3c79f10 38e10 c38e10&
9e20: 3f2e0 c3c79f54 0b20 c3c79ecc c3c263c0&
9e40: c79ee0 2d510 c3c79e6c c3c79e60 c84720&
9e60: c3c79e9c c3c79e70 c80 c79e9c c3c79ee0&
9e80: ffffff9c c022d510 c79f70 c3c79ebc c3c79ea0 c00857ec c0084ad0&
9ea0: c3c79ee0 c022d510 c3cfe000 c3c19dfc c3c79ed4 c3c79ec0 c857a8&
9ec0: 0f44 c3c79ed8 c007eef8 c00858ac 00000&
9ee0: cc0d7a0 c3c79f64 cc1ab20 00&
9f00: c3c79f34 c3c79f10 38e10 c38e10 3f2e0&
9f20: c3c79f54 0b20 c3c60 c3c79f6c c3c79f48&
9f40: c008042c c007eed8 c022d510 c3c19dfc c3cfe000 c3c79f70 00000&
9f60: c3c79fd4 c3c79f70 c803fc 00 &
9f80: 00 00 00000&
9fa0: 00 00 c78000&
9fc0: c741e0 c3c79ff4 c3c79fd8 c254c4 00000&
9fe0: 00 c3c79ff8 c003bbc0 c0048630 ffffffff ffffffff&
Backtrace:&
[&c0083898&] (__link_path_walk+0x0/0xe78) from [&c008479c&] (link_path_walk+0x8c/0x168)
[&c0084710&] (link_path_walk+0x0/0x168) from [&c00848a0&] (path_walk+0x28/0x2c)
&r8:c022d510 r7::c3c79ee0 r5::c3c263c0
[&c0084878&] (path_walk+0x0/0x2c) from [&c0084d04&] (do_path_lookup+0x244/0x274)
[&c0084ac0&] (do_path_lookup+0x0/0x274) from [&c00857ec&] (__path_lookup_intent_open+0x54/0x94)
&r8:c3c79f70 r7::c022d510 r5:ffffff9c r4:c3c79ee0
[&c0085798&] (__path_lookup_intent_open+0x0/0x94) from [&c00858c0&] (path_lookup_open+0x24/0x2c)
&r7:c3c19dfc r6:c3cfe000 r5:c022d510 r4:c3c79ee0
[&c008589c&] (path_lookup_open+0x0/0x2c) from [&c007eef8&] (open_exec+0x30/0xc0)
[&c007eec8&] (open_exec+0x0/0xc0) from [&c008042c&] (do_execve+0x40/0x184)
&r5:c022d510 r4:c3c64380
[&c00803ec&] (do_execve+0x0/0x184) from [&c00254f4&] (kernel_execve+0x40/0x8c)
&r9:::c3c79f70 r6:c3cfe000 r5:c3c19dfc
r4:c022d510
[&c00254b4&] (kernel_execve+0x0/0x8c) from [&c0048700&] (____call_usermodehelper+0xe0/0xec)
&r7:c3c741e0 r6::c3c700000
[&c0048620&] (____call_usermodehelper+0x0/0xec) from [&c003bbc0&] (do_exit+0x0/0x710)
Code: bad PC value.
---[ end trace e12eef ]---
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL
atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
ssc ssc.0: Atmel SSC device at 0xc4820000 (irq 14)
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffc4000 irq 21 (3e:36:65:ba:6f:be)
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:00, irq=-1)
Driver 'sd' needs updating - please use bus_type methods
usbmon: debugfs is not available
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 20, io mem 0x
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0
rtc-at91sam9 at91_rtt.0: rtc0: SET TIME!
i2c /dev entries driver
i2c-gpio i2c-gpio: using pins 55 (SDA) and 56 (SCL)
at91sam9_wdt: invalid timeout (must be between 1 and 16)
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
VFS: Cannot open root device &mtdblock2& or unknown-block(0,0)
Please append a correct &root=& here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
现在内核已经起来了,现在就是要做文件系统了!
对内核进行重新配置
root@emboard:/workdir/atmel/at91sam9260/kernel/linux-2.6.24# make menuconfig
500)this.width=500;& border=0&500)this.width=500;& border=0&
500)this.width=500;& border=0&
500)this.width=500;& border=0&
修改后重新启动板子可以看到mtd分区:
U-Boot 1.3.4 (May 18 2010 - 21:40:34)
DRAM:& 64 MB
NAND:& RomBOOT
U-Boot 1.3.4 (May 18 2010 - 21:40:34)
DRAM:& 64 MB
NAND:& 256 MiB
In:&&& serial
Out:&& serial
Err:&& serial
Net:&& macb0
macb0: Starting autonegotiation...
macb0: Autonegotiation complete
macb0: link up, 100Mbps full-duplex (lpa: 0x41e1)
Hit any key to stop autoboot:& 0&
macb0: link up, 100Mbps full-duplex (lpa: 0x41e1)
Using macb0 device
TFTP from server 192.168.1.5; our IP address is 192.168.1.254
Filename 'uImage'.
Load address: 0x
Loading: #################################################################
&&&&&&&& #############################
Bytes transferred = 04dc hex)
## Booting kernel from Legacy Image at
&& Image Name:&& Linux-2.6.24
&& Image Type:&& ARM Linux Kernel Image (uncompressed)
&& Data Size:&&& 1377436 Bytes =& 1.3 MB
&& Load Address:
&& Entry Point:&
&& Verifying Checksum ... OK
&& Loading Kernel Image ... OK
Starting kernel ...
Uncompressing Linux.......................................................................................... done, booting the kernel.
Linux version 2.6.24 (root@emboard) (gcc version 4.2.3 (Sourcery G++ Lite )) #2 Thu May 20 23:52:25 HKT 2010
CPU: ARM926EJ-S [] revision 5 (ARMv5TEJ), cr=
Machine: Atmel AT91SAM9260-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
CPU0: D VIVT write-back cache
CPU0: I cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
Built 1 zonelists in Zone order, mobility grouping on.& Total pages: 16256
Kernel command line: menm=64M noinitrd console=ttyS0,115200 init=linuxrc root=/dev/mtdblock2 rootfstype=cramfs
AT91: 96 gpio irqs in 3 banks
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttyS0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61964KB available (2544K code, 245K data, 112K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 64 bytes
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
Time: pit clocksource has been installed.
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
Installing knfsd (copyright (C) 1996&okir@monad.swb.de).
yaffs May 20 :52 Installing.&
io scheduler noop registered
io scheduler anticipatory registered (default)
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL
atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
nbd: registered device at major 43
ssc ssc.0: Atmel SSC device at 0xc4820000 (irq 14)
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffc4000 irq 21 (3e:36:65:ba:6f:be)
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:00, irq=-1)
Driver 'sd' needs updating - please use bus_type methods
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks
Creating 6 MTD partitions on &at91_nand&:
0xx : &Bootstrap&
0xx : &u-boot&
0xx01e00000 : &kernel&
0x01e00000 : &fs&
0xx : &user space0&
0xx : &user space2&
usbmon: debugfs is not available
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 20, io mem 0x
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0
rtc-at91sam9 at91_rtt.0: rtc0: SET TIME!
i2c /dev entries driver
i2c-gpio i2c-gpio: using pins 55 (SDA) and 56 (SCL)
at91sam9_wdt: invalid timeout (must be between 1 and 16)
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device &mtdblock2& or unknown-block(2,0)
Please append a correct &root=& here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
3.板子通过nfs挂载主机的文件:
root@emboard:/workdir/atmel/at91sam9260# apt-get install nfs-kernel-serve
root@emboard:/workdir/atmel/at91sam9260# vim /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
#&&&&&&&&&&&&&& to NFS clients.& See exports(5).
# Example for NFSv2 and NFSv3:
# /srv/homes&&&&&& hostname1(rw,sync) hostname2(ro,sync)
# Example for NFSv4:
# /srv/nfs4&&&&&&& gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes& gss/krb5i(rw,sync)
/workdir/atmel/at91sam9260/filesyetem/rootfs *(rw,sync,no_root_squash)
root@emboard:/workdir/atmel/at91sam9260# exportfs -r
root@emboard:/workdir/atmel/at91sam9260# /etc/init.d/nfs-kernel-server restart
&* Stopping NFS kernel daemon
&& ...done.
&* Unexporting directories for NFS kernel daemon...
&& ...done.
&* Exporting directories for NFS kernel daemon...
exportfs: /etc/exports [2]: Neither 'subtree_check' or 'no_subtree_check' specified for export &*:/workdir/atmel/at91sam9260/filesyetem/rootfs&.
& Assuming default behaviour ('no_subtree_check').
& NOTE: this default has changed since nfs-utils version 1.0.x
&& ...done.
&* Starting NFS kernel daemon
&& ...done.
@emboard:/workdir/atmel/at91sam9260# mount -t nfs 192.168.1.5:/workdir/atmel/at91sam9260/filesyetem/rootfs /mnt
root@emboard:/workdir/atmel/at91sam9260# ls /mnt/
app& bin& boot& dev& driver& etc& home& lib& linuxrc& mnt& proc& root& sbin& sys& tmp& usr& var
这样可以看到成功挂载,nfs服务器配置成功
root@emboard:/workdir/atmel/at91sam9260# umount 192.168.1.5:/workdir/atmel/at91sam9260/filesyetem/rootfs&
root@emboard:/workdir/atmel/at91sam9260# ls /mnt/
成功卸载了.
================================================
为什么我选择下面的这个内核配置会出现这个结果呢?&
选种的话,会自己自动创建MTD分&
500)this.width=500;& border=0&&
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks
6 cmdlinepart partitions found on MTD device at91_nand
Creating 6 MTD partitions on &at91_nand&:
0xx : &bootstrap&
0xx : &uboot&
0xx : &env1&
0xx000a0000 : &env2&
0x000aa0000 : &linux&
0x002a00000 : &root&&
不选中的话:500)this.width=500;& border=0&&
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks
Creating 6 MTD partitions on &NAND 256MiB 3,3V 8-bit&:
0xx : &Bootstrap&
0xx : &u-boot&
0xx01e00000 : &kernel&
0x01e00000 : &fs&
0xx : &user space0&&
0xx : &user space2&&
2,NFS文件系统搭建:&
安装服务器端和客户端
配置共享文件
编辑,在其中增加要共享的目录
客户就可以加载了
[root@microcreat /]$mount -o nolock -t nfs 192.168.1.5:/nfs/rootfs /mnt/
要加上-o nolock
内核里面关于nfs文件系统的选项选上
&原文地址&http://blog.chinaunix.net/u3/103748/showart_2250636.html
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:165033次
积分:2109
积分:2109
排名:第14877名
原创:24篇
转载:118篇
评论:19条
(1)(5)(1)(1)(2)(1)(4)(1)(1)(1)(2)(1)(4)(1)(8)(2)(4)(2)(2)(7)(4)(8)(3)(10)(2)(4)(3)(10)(15)(7)(11)(9)(1)(4)

我要回帖

更多关于 atmel sam ice 的文章

 

随机推荐