半片枫叶 发表于 2012-5-24 14:42:20

移植内核,启动时分区显示不一致,求助???

我移植的内核是2.6.27uboo是2011.12平台是at91rm9200我的疑惑是?
为什么我这里是三个分区
Creating 3 MTD partitions on "NOR flash on AT91RM9200":
0x00000000-0x00050000 : "u-boot"
0x00050000-0x00190000 : "Kernel"
0x00190000-0x003f0000 : "rootfs"
后边怎么成了5个分区
Please append a correct "root=" boot option; here are the available partitions:
1f00       2048 mtdblock0 (driver?)
1f01       4096 mtdblock1 (driver?)
1f02      320 mtdblock2 (driver?)
1f03       1280 mtdblock3 (driver?)
1f04       2432 mtdblock4 (driver?)


下面是启动信息:
Starting kernel ...

Uncompressing Linux............................................................................. done, booting the kernel.
Linux version 2.6.27.4 (root@amine-ubuntu) (gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-70) ) #31 Wed May 23 17:51:08 CST 2012
CPU: ARM920T revision 0 (ARMv4T), cr=c0007177
Machine: Atmel AT91RM9200-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 179 MHz, master 59 MHz, main 18.432 MHz
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists in Zone order, mobility grouping on.Total pages: 8128
Kernel command line: root=/dev/mtdblock2 rootfstype=jffs2 rw init=/linuxrc console=ttySAC0,115200
AT91: 128 gpio irqs in 4 banks
PID hash table entries: 128 (order: 7, 512 bytes)
Console: colour dummy device 80x30
console enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 30008KB available (2144K code, 184K data, 100K init)
SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 89.79 BogoMIPS (lpj=350208)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 288 bytes
NET: Registered protocol family 16
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (extended precision)
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
msgmni has been set to 58
io scheduler noop registered
io scheduler anticipatory registered (default)
Epson S1D13XXX FB Driver
s1d13xxxfb: chip not found: 0
at91_spi: Baud rate set to 5990400
AT91 SPI driver loaded
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffc4000 (irq = 7) is a ATMEL_SERIAL
brd: module loaded
at91_ether: probe of at91_ether failed with error -1
physmap platform flash device: 00200000 at 10000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
NOR chip too large to fit in mapping. Attempting to cope...
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Reducing visibility of 4096KiB chip to 2048KiB
RedBoot partition parsing not available
physmap-flash.0: failed to claim resource 0
AT91RM9200-NOR:0x00400000 at 0x00000000
NOR flash on AT91RM9200: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
AT91RM9200-NOR:using static partition definition
Creating 3 MTD partitions on "NOR flash on AT91RM9200":
0x00000000-0x00050000 : "u-boot"
0x00050000-0x00190000 : "Kernel"
0x00190000-0x003f0000 : "rootfs"
at91_dataflash: Unknown device (0)
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 23, io mem 0x00300000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: AT91 OHCI
usb usb1: Manufacturer: Linux 2.6.27.4 ohci_hcd
usb usb1: SerialNumber: at91
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
at91_rtc at91_rtc: rtc core: registered at91_rtc as rtc0
AT91 Real Time Clock driver.
i2c /dev entries driver
i2c-gpio i2c-gpio: using pins 57 (SDA) and 58 (SCL)
AT91 Watchdog Timer enabled (5 seconds, nowayout)
TCP cubic registered
NET: Registered protocol family 17
at91_rtc at91_rtc: setting system clock to 1998-01-01 00:00:07 UTC (883612807)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x0013 instead
......
Empty flash at 0x0002aedc ends at 0x0002aee0
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00030000: 0x0017 instead
.........
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020014: 0x00dc instead
Further such events for this erase block will not be printed
Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
empty_blocks 0, bad_blocks 0, c->nr_blocks 5
VFS: Cannot open root device "mtdblock2" or unknown-block(31,2)
Please append a correct "root=" boot option; here are the available partitions:
1f00       2048 mtdblock0 (driver?)
1f01       4096 mtdblock1 (driver?)
1f02      320 mtdblock2 (driver?)
1f03       1280 mtdblock3 (driver?)
1f04       2432 mtdblock4 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)




谁知道的话?加一下我的QQ?手机在线等?我的qq:858846479有点事请假,纠结了好几天了?

embedsky_lhh 发表于 2012-5-25 21:19:21

你可以修改 uboot分区,在include/configs下的配置文件中,也可以修改内核分区信息,一般在arch/arm/mach-xxx下,也可以直接用uboot的命令烧写文件系统到你内核分区信息中文件系统的位置

embedsky_lhh 发表于 2012-5-25 21:20:23

你可以用UBOOT命令烧写,那样就与uboot分区没关系了
页: [1]
查看完整版本: 移植内核,启动时分区显示不一致,求助???