当前位置: 技术问答>linux和unix
ar9330 Ramdisk启动失败
来源: 互联网 发布时间:2016-10-27
本文导语: 各位大虾: 我在用kernel引导ramdisk时,出现kernel panic,打印信息如下: U-Boot 1.1.4 (Oct 9 2010 - 15:58:42) AP121-2MB (ar9330) U-boot DRAM: 32 MB Top of RAM usable for U-Boot at: 82000000 Reserving 147k for U-Boot at: 81fd8000 Reser...
各位大虾:
我在用kernel引导ramdisk时,出现kernel panic,打印信息如下:
U-Boot 1.1.4 (Oct 9 2010 - 15:58:42)
AP121-2MB (ar9330) U-boot
DRAM: 32 MB
Top of RAM usable for U-Boot at: 82000000
Reserving 147k for U-Boot at: 81fd8000
Reserving 192k for malloc() at: 81fa8000
Reserving 44 Bytes for Board Info at: 81fa7fd4
Reserving 36 Bytes for Global Data at: 81fa7fb0
Reserving 128k for boot params() at: 81f87fb0
Stack Pointer at: 81f87f98
Now running in RAM - U-Boot at: 81fd8000
id read 0x100000ff
flash size 2097152, sector count = 32
Flash: 2 MB
Using default environment
In: serial
Out: serial
Err: serial
Net: ag7240_enet_initialize...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
: cfg1 0xf cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0, eth1
Hit any key to stop autoboot: 4 0
ar7240> setenv serverip 192.168.1.201
ar7240> tftpboot 0x80800000 vmlinux.lzma.uImage
dup 1 speed 100
Using eth0 device
TFTP from server 192.168.1.201; our IP address is 192.168.1.2
Filename 'vmlinux.lzma.uImage'.
Load address: 0x80800000
Loading: *#################################################################
#####################################################
done
Bytes transferred = 602701 (9324d hex)
ar7240> tftpboot 0x82000000 ap121-2.6.31-2MB-squashfs
Using eth0 device
TFTP from server 192.168.1.201; our IP address is 192.168.1.2
Filename 'ap121-2.6.31-2MB-squashfs'.
Load address: 0x82000000
Loading: *#################################################################
#################################################################
#################################################################
##########################################
done
Bytes transferred = 1212416 (128000 hex)
ar7240> setenv bootargs console=ttyS0,115200 root=01:00 rootfstype=squashfs rd_start=0x80600000 rd_size=8388608 init=/sbin/init
ar7240> bootm 0x80800000
## Booting image at 80800000 ...
Image Name: Linux Kernel Image
Created: 2010-12-08 9:22:28 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 602637 Bytes = 588.5 kB
Load Address: 80002000
Entry Point: 80140d40
Verifying Checksum at 0x80800040 ...OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80140d40) ...
## Giving linux memsize in bytes, 33554432
Starting kernel ...
Booting AR9330(Hornet)...
Linux version 2.6.31--LSDK-9.2.0.106 (jorpha@jorpha-desktop) (gcc version 4.3.3 (GCC) ) #1 Wed Dec 8 17:21:57 CST 2010
flash_size passed from bootloader = 2
arg 1: console=ttyS0,115200
arg 2: root=01:00
arg 3: rootfstype=squashfs
arg 4: rd_start=0x80600000
arg 5: rd_size=8388608
arg 6: init=/sbin/init
arg 7: mem=32M
CPU revision is: 00019374 (MIPS 24Kc)
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
User-defined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Zone PFN ranges:
Normal 0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00002000
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: console=ttyS0,115200 root=01:00 rootfstype=squashfs rd_start=0x80600000 rd_size=8388608 init=/sbin/
init mem=32M
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 30696k/32768k available (1288k kernel code, 2072k reserved, 321k data, 100k init, 0k highmem)
NR_IRQS:128
plat_time_init: plat time init done
Calibrating delay loop... 266.24 BogoMIPS (lpj=532480)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
===== ar7240_platform_init: 0
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
AR7240 GPIOC major 0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
msgmni has been set to 59
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
ttyS0: detected caps 00000000 should be 00000100
serial8250.0: ttyS0 at MMIO 0xb8020000 (irq = 19) is a 16550A
console [ttyS0] enabled
RedBoot partition parsing not available
No partitions found on flash bank 0
TCP cubic registered
NET: Registered protocol family 17
arch/mips/ar7240/gpio.c (ar7240_simple_config_init) JUMPSTART_GPIO: 12
ar7240wdt_init: Registering WDT success
List of all partitions:
No filesystem could mount root, tried: squashfs
Kernel panic - not syncing: VFS: Unable to mount root fs on /dev/root
请问如何解决?
我在用kernel引导ramdisk时,出现kernel panic,打印信息如下:
U-Boot 1.1.4 (Oct 9 2010 - 15:58:42)
AP121-2MB (ar9330) U-boot
DRAM: 32 MB
Top of RAM usable for U-Boot at: 82000000
Reserving 147k for U-Boot at: 81fd8000
Reserving 192k for malloc() at: 81fa8000
Reserving 44 Bytes for Board Info at: 81fa7fd4
Reserving 36 Bytes for Global Data at: 81fa7fb0
Reserving 128k for boot params() at: 81f87fb0
Stack Pointer at: 81f87f98
Now running in RAM - U-Boot at: 81fd8000
id read 0x100000ff
flash size 2097152, sector count = 32
Flash: 2 MB
Using default environment
In: serial
Out: serial
Err: serial
Net: ag7240_enet_initialize...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
: cfg1 0xf cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0, eth1
Hit any key to stop autoboot: 4 0
ar7240> setenv serverip 192.168.1.201
ar7240> tftpboot 0x80800000 vmlinux.lzma.uImage
dup 1 speed 100
Using eth0 device
TFTP from server 192.168.1.201; our IP address is 192.168.1.2
Filename 'vmlinux.lzma.uImage'.
Load address: 0x80800000
Loading: *#################################################################
#####################################################
done
Bytes transferred = 602701 (9324d hex)
ar7240> tftpboot 0x82000000 ap121-2.6.31-2MB-squashfs
Using eth0 device
TFTP from server 192.168.1.201; our IP address is 192.168.1.2
Filename 'ap121-2.6.31-2MB-squashfs'.
Load address: 0x82000000
Loading: *#################################################################
#################################################################
#################################################################
##########################################
done
Bytes transferred = 1212416 (128000 hex)
ar7240> setenv bootargs console=ttyS0,115200 root=01:00 rootfstype=squashfs rd_start=0x80600000 rd_size=8388608 init=/sbin/init
ar7240> bootm 0x80800000
## Booting image at 80800000 ...
Image Name: Linux Kernel Image
Created: 2010-12-08 9:22:28 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 602637 Bytes = 588.5 kB
Load Address: 80002000
Entry Point: 80140d40
Verifying Checksum at 0x80800040 ...OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80140d40) ...
## Giving linux memsize in bytes, 33554432
Starting kernel ...
Booting AR9330(Hornet)...
Linux version 2.6.31--LSDK-9.2.0.106 (jorpha@jorpha-desktop) (gcc version 4.3.3 (GCC) ) #1 Wed Dec 8 17:21:57 CST 2010
flash_size passed from bootloader = 2
arg 1: console=ttyS0,115200
arg 2: root=01:00
arg 3: rootfstype=squashfs
arg 4: rd_start=0x80600000
arg 5: rd_size=8388608
arg 6: init=/sbin/init
arg 7: mem=32M
CPU revision is: 00019374 (MIPS 24Kc)
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
User-defined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Zone PFN ranges:
Normal 0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00002000
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: console=ttyS0,115200 root=01:00 rootfstype=squashfs rd_start=0x80600000 rd_size=8388608 init=/sbin/
init mem=32M
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 30696k/32768k available (1288k kernel code, 2072k reserved, 321k data, 100k init, 0k highmem)
NR_IRQS:128
plat_time_init: plat time init done
Calibrating delay loop... 266.24 BogoMIPS (lpj=532480)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
===== ar7240_platform_init: 0
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
AR7240 GPIOC major 0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
msgmni has been set to 59
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
ttyS0: detected caps 00000000 should be 00000100
serial8250.0: ttyS0 at MMIO 0xb8020000 (irq = 19) is a 16550A
console [ttyS0] enabled
RedBoot partition parsing not available
No partitions found on flash bank 0
TCP cubic registered
NET: Registered protocol family 17
arch/mips/ar7240/gpio.c (ar7240_simple_config_init) JUMPSTART_GPIO: 12
ar7240wdt_init: Registering WDT success
List of all partitions:
No filesystem could mount root, tried: squashfs
Kernel panic - not syncing: VFS: Unable to mount root fs on /dev/root
请问如何解决?
|
没有用过squashfs