abnerle 发表于 2012-4-29 13:49:54

使用ubifs遇到了问题,高手指点一下

本帖最后由 abnerle 于 2012-4-29 14:38 编辑

could not establish link
Hit any key to stop autoboot:0
U-Boot>
U-
U-Boot> setenv bootargs console=ttyS0,115200 ubi.mtd=2 root=ubi0_0 rootfstype=ubifs
U-Boot> bootm
## Booting kernel from Legacy Image at 22000000 ...
   Image Name:   Linux-2.6.39.4
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2095104 Bytes =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.39.4 (root@localhost.localdomain) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #9 Fri Apr 27 16:06:32 CST 2012
CPU: ARM926EJ-S revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cX,?
                                          Machine: Atmel AT91SAM9261-EK
Ignoring unrecognised tag 0x54410008
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 ubi.mtd=2 root=ubi0_0 rootfstype=ubifs
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: 60724k/60724k available, 4812k reserved, 0K highmem
Virtual kernY
             j到慑layout:
    vector: 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap: 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA   : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xc4800000 - 0xfee00000   ( 934 MB)
    lowmem: 0xc0000000 - 0xc4000000   (64 MB)
    modules : 0xbf000000 - 0xc0000000   (16 MB)
      .init : 0xc0008000 - 0xc0027000   ( 124 kB)
      .text : 0xc0027000 - 0xc03e1060   (3817 kB)
      .data : 0xc03e2000 - 0xc0406f80   ( 148 kB)
NR_IRQS:192
AT91: 96 gpio irqs in 3 banks
Console: colour dummy device 80x30
console enabled
Calibrating delay loop... 98.71 BogoMIPS (lpj=493568)
pid_max: default: 32768 minimum: 301
M训cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
AT91: Power Management
AT91: Starting after user reset
biK??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
Advanced Linux Sound Architecture Driver Version 1.0.24.
cfg80211: Calling CRDA to update world regulatory domain
tcb_clksrcto ,雓秸?
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
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
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)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) (SUMMARY)? 2001-2006 Red Hat, Inc.
msgmni has been set to 118
io scheduler noop registered (default)
atmel_lcdfb atmel_lcdfb.0: 160KiB frame buffer at 00300000 (mapped at c48c0000)
atmel_lcdfb atmel_lcdfb.0: fb0: Atmel LCDC at 0x00600000 (mapped at c4818000), irq 21
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
brd: module loaded
loop: module loaded
ssc ssc.1: Atmel SSC device at 0xc4820000 (irq 15)
atmel_nand atmel_nand: No DMA support for NAND access.
NAND device: Manufacturer ID: 0xec, Chip ID: 0xd&B低展NAND 1GiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 4 MTD partitions on "atmel_nand":
0x000000000000-0x000004000000 : "mtd0_jiffs2"
0x000004000000-0x000008000000 : "mtd1_empty"
0x000008000000-0x00000c000000 : "mtd2_ubifs"
0x00000c000000-0x000040000000 : "mtd3_empty"
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: max. sequence numbY.'j
                           UBI: attached mtd2 to ubi0
UBI: MTD device name:            "mtd2_ubifs"
UBI: MTD device size:            64 MiB
UBI: number of good PEBs:      512
UBI: number of bad PEBs:         0
UBI: number of corrupted PEBs:   0
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: 512
UBI: number of PEBs reserved for bad PEB handling: 5
UBI: max/mean erase counter: 1/0
UBI: image sequence number:60696940
atmel_spi atmel_spi.0: Atmel SPI Controller at 0xfffc8000 (irq 12)
UBI: background thread "ubi_bgt0d" started, PID 332
mtd_dataflash spi0.0: AT45DB321x (4224 KBytes) pagesize 528 bytes (OTP)
dm9000 Ethernet Driver, V1.31
dm9000 dm9000.0: eth%d: Invalid ethernet MAC address. Please set using ifconfig
eth0: dm9000a at c481c000,c48ae044 IRQ 107 MAC: da:83:da:42:e1:69 (random)
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
at9L塍t91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 20, io mem 0x00500000
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 regi.W?
udc: at91_udc version 3 May 2006
mousedev: PS/2 mouse device common for all mice
input: gpio-keys as /devices/platform/gpio-keys/input/inp]j
                                                         ads7846 spi0.2: touchscreen, irq 29
input: ADS7843 TouchscrYY

                         ?/devices/platform/atmel_spi.0/spi0.2/input/input1
rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0
rtc-at91sam9 at91_rtt.0: rtc0: SET TIME!
at73c213 spi0.3: at73c213: supported bitrate is 48500 (64 divider)
ALSA device list:
#0: AT91SAM9261-EK external DAC on irq 15
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
VFS: Cannot open root device "ubi0_0" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00         65536 mtdblock0(driver?)
1f01         65536 mtdblockLB"??升)
1f02         65536 mtdblock2(driver?)
1f03          851968 mtdblock3(driver?)
1f04            4224 mtdblo?B"??升)
KernY
- not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[<c00325a4>] (unwind_backtrace+0x0/0xec) from [<c02e8d24>] (panic+0x54/0x17c)
[<c02e8d24>] (panic+0x54/0x17c) from [<c0008e58>] (mount_block_root+0x25c/0x2XH??08e58>] (mount_block_root+0x25c/0x2ac) from [<c0008f94>] (prepare_namespace+0x88/0x1bc)
[<c0008f94>] (prepare_namespace+0x88/0x1bc) from [<c0008404>] (kernel_init+0x100/0x13c)
[<c0008404>] (kernel_init+0x100/0x13c) from [<c002e434>] (kernel_thread_exit+0x0/0x8)

看起来,没什么问题一样,但是ubi是否挂载上了呢?怎么看
或者说,这个"root="参数不对?

dds 发表于 2012-4-29 14:15:25

setenv bootargs console=ttyS0,115200 ubi.mtd=2 root=ubi0_0 rootfstype=ubifs

=>root=ubi0:rootfs   试试

abnerle 发表于 2012-4-29 14:40:51

dds 发表于 2012-4-29 14:15 static/image/common/back.gif
setenv bootargs console=ttyS0,115200 ubi.mtd=2 root=ubi0_0 rootfstype=ubifs

=>root=ubi0:rootfs   试 ...

这种办法试了一下,也不行,一样的现象和提示

dds 发表于 2012-4-29 14:58:51

abnerle 发表于 2012-4-29 14:40 static/image/common/back.gif
这种办法试了一下,也不行,一样的现象和提示

那就 root=ubi0:mtd2_ubifs

abnerle 发表于 2012-4-29 20:48:34

dds 发表于 2012-4-29 14:58 static/image/common/back.gif
那就 root=ubi0:mtd2_ubifs

还是不行,问题很奇怪啦

abnerle 发表于 2012-5-2 11:46:37

已经解决了,kernel太大了,是2.4M,kernel区域装不下了,原来是2M,调整kernel区域变为3M,就好了
页: [1]
查看完整版本: 使用ubifs遇到了问题,高手指点一下