嵌入式linux ubi,基于AT91SAM9261EK的嵌入式Linux+UBI根文件系统移植成功

uboot->reset        //或是断电重上电,都可以重新运行整个系统了。

我的启动信息如下:

RomBOOT

AT91Bootstrap 3.8.2 (Tue Feb 23 22:43:35 CST 2016)

NAND: ONFI not supported

NAND: Manufacturer ID: 0xec Chip ID: 0xf1

WARNING: Fail to disable On-Die ECC

NAND: Using Software ECC

NAND: Image: Copy 0x80000 bytes from 0x40000 to 0x21f00000

NAND: Done to load image

U-Boot 2014.04 (Feb 28 2016 - 15:53:00)

CPU: AT91SAM9261

Crystal frequency:   18.432 MHz

CPU clock        :  198.656 MHz

Master clock     :   99.328 MHz

DRAM:  64 MiB

WARNING: Caches not enabled

NAND:  128 MiB

*** Warning - bad CRC, using default environment

In:    serial

Out:   serial

Err:   serial

Net:   dm9000

Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x200000, size 0x300000

3145728 bytes read: OK

## Booting kernel from Legacy Image at 22000000 ...

Image Name:   Linux-2.6.32.2

Image Type:   ARM Linux Kernel Image (uncompressed)

Data Size:    1644632 Bytes = 1.6 MiB

Load Address: 20008000

Entry Point:  20008000

Verifying Checksum ... OK

Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux....................................................................................................... done, booting the kernel.

Linux version 2.6.32.2 (root@zhangsz) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) ) #4 Sun Feb 28 15:50:52 CST 2016

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: mem=64M console=ttyS0,115200 ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs init=/linuxrc

PID hash table entries: 256 (order: -2, 1024 bytes)

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: 61560KB available (2840K code, 247K data, 124K init, 0K highmem)

Hierarchical RCU implementation.

NR_IRQS:192

AT91: 96 gpio irqs in 3 banks

Console: colour dummy device 80x30

console [ttyS0] enabled

Calibrating delay loop... 99.12 BogoMIPS (lpj=495616)

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

NET: Registered protocol family 16

bio: create slab at 0

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

Switching to clocksource pit

NET: Registered protocol family 2

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

NET: Registered protocol family 1

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

NetWinder Floating Point Emulator V0.97 (double precision)

msgmni has been set to 120

io scheduler noop registered

io scheduler anticipatory registered (default)

atmel_lcdfb atmel_lcdfb.0: backlight control is not available

atmel_lcdfb atmel_lcdfb.0: 150KiB frame buffer at 23900000 (mapped at ffc00000)

Console: switching to colour frame buffer device 30x40

atmel_lcdfb atmel_lcdfb.0: fb0: Atmel LCDC at 0x00600000 (mapped at c4814000), irq 21

atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL

brd: module loaded

ssc ssc.1: Atmel SSC device at 0xc4818000 (irq 15)

NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)

Scanning device for bad blocks

Bad eraseblock 446 at 0x0000037c0000

Bad eraseblock 994 at 0x000007c40000

Creating 3 MTD partitions on "atmel_nand":

0x000000000000-0x000000200000 : "boot"

0x000000200000-0x000000800000 : "kernel"

0x000000800000-0x000008000000 : "rootfs"

UBI: attaching mtd2 to ubi0

UBI: physical eraseblock size:   131072 bytes (128 KiB)

UBI: logical eraseblock size:    129024 bytes

UBI: smallest flash I/O unit:    2048

UBI: sub-page size:              512

UBI: VID header offset:          512 (aligned 512)

UBI: data offset:                2048

UBI: attached mtd2 to ubi0

UBI: MTD device name:            "rootfs"

UBI: MTD device size:            120 MiB

UBI: number of good PEBs:        958

UBI: number of bad PEBs:         2

UBI: max. allowed volumes:       128

UBI: wear-leveling threshold:    4096

UBI: number of internal volumes: 1

UBI: number of user volumes:     1

UBI: available PEBs:             0

UBI: total number of reserved PEBs: 958

UBI: number of PEBs reserved for bad PEB handling: 9

UBI: max/mean erase counter: 4/1

UBI: image sequence number: 0

atmel_spi atmel_spi.0: Atmel SPI Controller at 0xfffc8000 (irq 12)

UBI: background thread "ubi_bgt0d" started, PID 779

dm9000 Ethernet Driver, V1.31

dm9000 dm9000.0: eth%d: Invalid ethernet MAC address. Please set using ifconfig

eth0: dm9000a at c4872000,c4876044 IRQ 107 MAC: 00:00:00:00:00:00 (chip)

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 /devices/platform/gpio-keys/input/input0

ads7846 spi0.2: touchscreen, irq 29

input: ADS7843 Touchscreen as /devices/platform/atmel_spi.0/spi0.2/input/input1

rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0

IRQ 1/rtc0: IRQF_DISABLED is not guaranteed on shared IRQs

rtc-at91sam9 at91_rtt.0: rtc0: SET TIME!

i2c /dev entries driver

i2c-gpio i2c-gpio: using pins 39 (SDA) and 40 (SCL)

AT91SAM9 Watchdog: sorry, watchdog is disabled

at91_wdt: probe of at91_wdt failed with error -5

TCP cubic registered

NET: Registered protocol family 17

rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock

UBIFS: recovery needed

UBIFS: recovery completed

UBIFS: mounted UBI device 0, volume 0, name "rootfs"

UBIFS: file system size:   101799936 bytes (99414 KiB, 97 MiB, 789 LEBs)

UBIFS: journal size:       9033728 bytes (8822 KiB, 8 MiB, 71 LEBs)

UBIFS: media format:       w4/r0 (latest is w4/r0)

UBIFS: default compressor: lzo

UBIFS: reserved for root:  0 bytes (0 KiB)

VFS: Mounted root (ubifs filesystem) on device 0:13.

Freeing init memory: 124K

#-----Start /etc/init.d/rcS

------------*******AT91SAM9261EK-Linux 2016-02-26***********------------

ifconfig: SIOCSIFFLAGS: Cannot assign requested address

AT91 login: root

Password:

login[826]: root login on 'ttyS0'

[root@AT91 /]# ls

bin      dev      home     linuxrc  proc     sbin     tmp      var

boot     etc      lib      mnt      root     sys      usr

[root@AT91 /]# cd home/

[root@AT91 /home]# sl

-sh: sl: not found

[root@AT91 /home]# ls

hello      hello.txt

[root@AT91 /home]# cat hello.txt

移植ubi文件系统成功了!! 2016-02-28

[root@AT91 /home]# cd /

[root@AT91 /]# ls

bin      dev      home     linuxrc  proc     sbin     tmp      var

boot     etc      lib      mnt      root     sys      usr

[root@AT91 /]#

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值