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

来源:互联网 发布:python 结束程序 编辑:程序博客网 时间:2024/05/21 14:50
 经过一段时间的奋斗,终于将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
~ $ 
~ $ 
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 河长制账号密码忘了怎么办 网易登录名忘了怎么办 网易通行证安全手机忘了怎么办 美团数据获取失败怎么办 扣扣图片加载不出来怎么办 电脑qq最小化后不见了怎么办 uwp桌面快捷图标显示异常怎么办 网易云自动切歌怎么办 捡到小米手机怎么办才能自己用 dnf启动安装程序出错怎么办 苹果手机相册视频下载出错怎么办 苹果7软件闪退怎么办 微信上有钱账号就是怎么办 手机网速不给力怎么办 xp系统登录密码忘了怎么办 手机百度云网络出错怎么办 百度账号提示异常风险怎么办 刷xp框架卡米怎么办 全民k歌歌曲下架怎么办 全民k歌伴奏下架怎么办 苹果手机图片的图标打不开怎么办 电脑页面加载不出来怎么办 电脑主页面加载不出来怎么办 桌面图标不见了怎么办右键无反应 手机一直闪退该怎么办 点击华为设置闪退怎么办 小白摄像头获取视频文件失败怎么办 为什么解压文件老提示失败怎么办 b站sd卡写入失败怎么办 手机检测不到sd卡怎么办 华为sd卡不可用怎么办 u盘延缓写入失败怎么办 手机提示sd卡不可用怎么办 显示sd卡不可用怎么办 小米手机检测不到sd卡怎么办 小米手机sd卡写入失败怎么办 没有检测到sd卡怎么办 e站图片配额用尽怎么办 内存卡密码忘了怎么办 电脑上酷狗音乐播放失败怎么办 播放失败不支持该文件怎么办