SAM9261完全启动Bootstrp/U-boot/linux-2.6.30/rootfs

 经过一段时间的奋斗,终于将linux在AT91SAM9260的板子上启动了。下面是启动后打印出来的字符。成功启动,花了将近一个月的时间。从编译bootstrp开始一步步的实现。其中遇到了很多困难,但是都被慢慢征服了!呵呵 希望未来是美好的!如果时间允许我将会把所有的实现步骤贴出来!但是不一定能实现!linux内核版本问题,gcc编译器,glibc的不同都会导致不一致性!希望想学习的朋友能够坚持!呵呵,真知待你去探寻!

RomBOOT
Start AT91Bootstrap...
U-Boot 1.3.4 (Feb 19 2013 - 17:19:27)
DRAM:  64 MB
NAND:  128 MiB
DataFlash:AT45DB642
Nb pages:   8192
Page Size:   1056
Size= 8650752 bytes
Logical address: 0xC0000000
Area 0: C0000000 to C00041FF (RO) Bootstrap
Area 1: C0004200 to C00083FF      Environment
Area 2: C0008400 to C0041FFF (RO) U-Boot
Area 3: C0042000 to C0251FFF      Kernel
Area 4: C0252000 to C083FFFF      FS
In:    serial
Out:   serial
Err:   serial
dm9000 i/o: 0x30000000, id: 0x90000a46 
DM9000: running in 16 bit mode
MAC: de:ad:be:ef:01:01
operating at unknown: 15 mode
Hit any key to stop autoboot:  3 2 1 0 

NAND read: device 0 offset 0xa0000, size 0x200000
 2097152 bytes read: OK
## Booting kernel from Legacy Image at 22000000 ...
   Image Name:   linux-2.6.30
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1309916 Bytes =  1.2 MB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux.................................................................................. done, booting the kernel.
Linux version 2.6.30 (root@localhost.andlyli) (gcc version 4.7.2 (Sourcery CodeBench Lite 2012.09-64) ) #11 Wed Feb 20 13:58:54 CST 2013
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Atmel AT91SAM9261-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
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=yaffs2
NR_IRQS:192
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: 62272KB available (2232K code, 189K data, 92K init, 0K highmem)
Calibrating delay loop... 99.12 BogoMIPS (lpj=495616)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 296 bytes
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
msgmni has been set to 121
io scheduler noop registered
io scheduler anticipatory registered (default)
atmel_lcdfb atmel_lcdfb.0: backlight control is not available
atmel_lcdfb atmel_lcdfb.0: 255KiB frame buffer at 23940000 (mapped at ffc00000)
atmel_lcdfb atmel_lcdfb.0: fb0: Atmel LCDC at 0x00600000 (mapped at c4866000), irq 21
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
brd: module loaded
loop: module loaded
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methods
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks
Bad eraseblock 72 at 0x000000900000
Bad eraseblock 368 at 0x000002e00000
Bad eraseblock 517 at 0x0000040a0000
Bad eraseblock 677 at 0x0000054a0000
Creating 6 MTD partitions on "atmel_nand":
0x000000000000-0x000000020000 : "bootstrap"
0x000000020000-0x000000060000 : "u-boot"
0x000000060000-0x000000080000 : "env1"
0x000000080000-0x0000000a0000 : "env2"
0x0000000a0000-0x0000002a0000 : "kernel"
0x0000002a0000-0x000008000000 : "rootfs"
atmel_spi atmel_spi.0: Atmel SPI Controller at 0xfffc8000 (irq 12)
mtd_dataflash spi0.0: AT45DB642x (8448 KBytes) pagesize 1056 bytes (OTP)
usbmon: debugfs is not available
ohci_hcd: 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 0x00500000
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
input: gpio-keys as /class/input/input0
ads7846 spi0.2: touchscreen, irq 29
input: ADS784x Touchscreen as /class/input/input1
i2c /dev entries driver
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
yaffs: dev is 32505861 name is "mtdblock5" rw
yaffs: passed flags ""
VFS: Mounted root (yaffs2 filesystem) on device 31:5.
Freeing init memory: 92K
running /etc/init.d/rcS
starting udevd...
cannot open /dev/null
error initializing udevd socket
ifconfig: socket: Address family not supported by protocol
ifconfig: socket: Address family not supported by protocol
eeprom: version magic '2.6.24 mod_unload ARMv5 ' should be '2.6.30 mod_unload ARMv5 '
insmod: cannot insert '/lib/modules/2.6.24/eeprom.ko': Invalid module format (-1): Exec format error
/opt/apache/bin/apachectl start: httpd started

Please press Enter to activate this console. nand write.yaffs 20400000 2a0000 $(filesize) 

running /etc/profile
~ $ 
~ $ ls
[1;34mbin[0m         [1;34metc[0m         [1;34mlib[0m         [1;34mmedia[0m       [1;34mproc[0m        [1;34mtmp[0m
[1;34mboot[0m        [1;34mhome[0m        [1;36mlinuxrc[0m     [1;34mmnt[0m         [1;34msbin[0m        [1;34musr[0m
[1;34mdev[0m         [1;34minclude[0m     [1;34mlost+found[0m  [1;34mopt[0m         [1;34msys[0m         [1;34mvar[0m
~ $ 
~ $ 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值