RAMDISK: Couldn't find valid RAM disk image starting at 0.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RAMDISK: Couldn't find valid RAM disk image starting at 0.

8,446 Views
zhaopingyang_sg
Contributor III

I want to boot linux use ramdisk file system.when kernel started, I can see print message like this:

RAMDISK: Couldn't find valid RAM disk image starting at 0.

Follw is boot message:(red messages is key message I printed.

U-Boot 2009.08 (Jul 28 2017 - 15:12:30)

CPU: Freescale i.MX6 family TO1.5 at 792 MHz
Thermal sensor with ratio = 183
Temperature: 41 C, calibration data 0x5844f069
mx6q pll1: 792MHz
mx6q pll2: 528MHz
mx6q pll3: 480MHz
mx6q pll8: 50MHz
ipg clock : 66000000Hz
ipg per clock : 66000000Hz
uart clock : 80000000Hz
cspi clock : 60000000Hz
ahb clock : 132000000Hz
axi clock : 264000000Hz
emi_slow clock: 132000000Hz
ddr clock : 528000000Hz
usdhc1 clock : 198000000Hz
usdhc2 clock : 198000000Hz
usdhc3 clock : 198000000Hz
usdhc4 clock : 198000000Hz
nfc clock : 11000000Hz
Board: MX6Q-SABRELITE:[ POR]
Boot Device: I2C
I2C: ready
DRAM: 1 GB
NAND: ONFI param page 0 valid
ONFI flash detected
Manufacturer ID: 0x2c, Chip ID: 0x68 (Micron MT29F32G08CBACAWP), page size: 4096, OOB size: 224
4096 MiB
JEDEC ID: 0xbf:0x25:0x41
Reading SPI NOR flash 0xc0000 [0x2000 bytes] -> ram 0x27605d18
SUCCESS

In: serial
Out: serial
Err: serial
Net: got MAC address from IIM: 00:00:00:00:00:00
FEC0 [PRIME]
Hit any key to stop autoboot: 0
MX6-SGXB->
MX6-SGXB->
MX6-SGXB->
MX6-SGXB->

MX6-SGXB-> tftp 0x10800000 uImage
FEC: Link is Up 796d
Using FEC0 device
TFTP from server 192.168.0.148; our IP address is 192.168.0.103
Filename 'uImage'.
Load address: 0x10800000
Loading: #################################################################
#################################################################
#################################################################
###############
done
Bytes transferred = 3070244 (2ed924 hex)
MX6-SGXB-> bootm 0x10800000 0x10c00000
## Booting kernel from Legacy Image at 10800000 ...
Image Name: Linux-3.0.35-2666-gbdde708
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3070180 Bytes = 2.9 MB
Load Address: 10008000
Entry Point: 10008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 10c00000 ...
Image Name: uboot ext2 ramdisk rootfs
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 5695044 Bytes = 5.4 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
ramdisk start = 0x10c00040, ramdisk end = 0x1116e684
Loading Kernel Image ... OK
OK
set arams->u.initrd.start to 10c00040 params->u.initrd.size to 56e644

Starting kernel ...

[ 0.000000] Linux version 3.0.35-2666-gbdde708 (zhaoping@zhaoping-wisdom) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) ) #30 SMP PREEMPT Thu Jul 27 21:53:42 CST 2017
[ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: Freescale i.MX 6Quad Sabre-Lite Board
[ 0.000000] Memory policy: ECC disabled, Data cache writealloc
[ 0.000000] CPU identified as i.MX6Q, unknown revision
[ 0.000000] PERCPU: Embedded 7 pages/cpu @8c008000 s5440 r8192 d15040 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 227328
[ 0.000000] Kernel command line: console=ttymxc0,115200 rdinit=/linuxrc root=/dev/ram0 rw enable_wait_mode=off ramdisk_size=20480
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 640MB 256MB = 896MB total
[ 0.000000] Memory: 892872k/892872k available, 155704k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xf4600000 - 0xffe00000 ( 184 MB)
[ 0.000000] vmalloc : 0xc0800000 - 0xf2000000 ( 792 MB)
[ 0.000000] lowmem : 0x80000000 - 0xc0000000 (1024 MB)
[ 0.000000] pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
[ 0.000000] modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
[ 0.000000] .init : 0x80008000 - 0x8003b000 ( 204 kB)
[ 0.000000] .text : 0x8003b000 - 0x80911bec (9051 kB)
[ 0.000000] .data : 0x80912000 - 0x809670e0 ( 341 kB)
[ 0.000000] .bss : 0x80967104 - 0x809b1508 ( 298 kB)
[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:624
[ 0.000000] MXC GPIO hardware
[ 0.000000] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms
[ 0.000000] arm_max_freq=800MHz
[ 0.000000] MXC_Early serial console at MMIO 0x2020000 (options '115200')
[ 0.000000] bootconsole [ttymxc0] enabled
[ 0.000000] Console: colour dummy device 80x30
[ 0.221003] Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280)
[ 0.309321] pid_max: default: 32768 minimum: 301
[ 0.314340] Mount-cache hash table entries: 512
[ 0.319800] CPU: Testing write buffer coherency: ok
[ 0.324969] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
[ 0.425486] CPU1: Booted secondary processor
[ 0.505488] CPU2: Booted secondary processor
[ 0.585508] CPU3: Booted secondary processor
[ 0.625004] Brought up 4 CPUs
[ 0.640832] SMP: Total of 4 processors activated (6324.22 BogoMIPS).
[ 0.665851] print_constraints: dummy:
[ 0.669850] NET: Registered protocol family 16
[ 0.678445] print_constraints: vddpu: 725 <--> 1300 mV at 700 mV fast normal
[ 0.685958] print_constraints: vddcore: 725 <--> 1300 mV at 1150 mV fast normal
[ 0.693698] print_constraints: vddsoc: 725 <--> 1300 mV at 1200 mV fast normal
[ 0.701399] print_constraints: vdd2p5: 2000 <--> 2775 mV at 2400 mV fast normal
[ 0.709170] print_constraints: vdd1p1: 800 <--> 1400 mV at 1100 mV fast normal
[ 0.716852] print_constraints: vdd3p0: 2625 <--> 3400 mV at 3000 mV fast normal
[ 0.729413] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.736249] hw-breakpoint: 1 breakpoint(s) reserved for watchpoint single-step.
[ 0.743595] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.749497] L310 cache controller enabled
[ 0.753527] l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x02070000, Cache size: 1048576 B
[ 0.778338] bio: create slab <bio-0> at 0
[ 0.785767] mxs-dma mxs-dma-apbh: initialized
[ 0.791533] SCSI subsystem initialized
[ 0.797475] MIPI CSI2 driver module loaded
[ 0.801738] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.809321] i2c-core: driver [max17135] using legacy suspend method
[ 0.815621] i2c-core: driver [max17135] using legacy resume method
[ 0.821838] Switching to clocksource mxc_timer1
[ 0.839092] NET: Registered protocol family 2
[ 0.843681] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.851668] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.861006] TCP bind hash table entries: 65536 (order: 7, 786432 bytes)
[ 0.868739] TCP: Hash tables configured (established 131072 bind 65536)
[ 0.875375] TCP reno registered
[ 0.878542] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.884508] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.891395] NET: Registered protocol family 1
[ 0.896135] RPC: Registered named UNIX socket transport module.
[ 0.902092] RPC: Registered udp transport module.
[ 0.906830] RPC: Registered tcp transport module.
[ 0.911550] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.918167] __initramfs_start = 8002f5e0 __initramfs_size = 512
[ 0.924197] [30] [37] [30] [37] [30] [31]
[ 0.928231] Trying to unpack rootfs image as initramfs...
[ 0.933648] initrd_start = 80c00040 initrd_end = 8116e684
[ 0.939091] [e6] [60] [94] [40] [67] [ed]
[ 0.943309] rootfs image is not initramfs (junk in compressed archive); looks like an initrd
[ 0.970992] Freeing initrd memory: 5560K
[ 0.975918] Static Power Management for Freescale i.MX6
[ 0.981181] wait mode is disabled for i.MX6
[ 0.985519] cpaddr = c0880000 suspend_iram_base=c082c000
[ 0.990942] PM driver module loaded
[ 0.994634] IMX usb wakeup probe
[ 0.997912] cpu regulator mode:ldo_enable
[ 1.002046] i.MXC CPU frequency driver
[ 1.036191] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 1.043012] msgmni has been set to 1754
[ 1.048571] alg: No test for stdrng (krng)
[ 1.052846] io scheduler noop registered
[ 1.056799] io scheduler deadline registered
[ 1.061190] io scheduler cfq registered (default)
[ 1.066795] MIPI DSI driver module loaded
[ 1.071651] imx-sdma imx-sdma: loaded firmware 1.1
[ 1.081872] imx-sdma imx-sdma: initialized
[ 1.242937] Serial: IMX driver
[ 1.246139] imx-uart.0: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX
[ 1.252643] console [ttymxc0] enabled, bootconsole disabled
[ 1.252643] console [ttymxc0] enabled, bootconsole disabled
[ 1.264286] imx-uart.1: ttymxc1 at MMIO 0x21e8000 (irq = 59) is a IMX
[ 1.271203] imx-uart.2: ttymxc2 at MMIO 0x21ec000 (irq = 60) is a IMX
[ 1.278136] imx-uart.3: ttymxc3 at MMIO 0x21f0000 (irq = 61) is a IMX
[ 1.285051] imx-uart.4: ttymxc4 at MMIO 0x21f4000 (irq = 62) is a IMX
[ 1.301208] brd: module loaded
[ 1.308589] loop: module loaded
[ 1.313795] ONFI flash detected
[ 1.317117] ONFI param page 0 valid
[ 1.320618] NAND device: Manufacturer ID: 0x2c, Chip ID: 0x68 (Micron MT29F32G08CBACAWP)
[ 1.328994] gpmi-nand imx6q-gpmi-nand.0: enable asynchronous EDO mode 5
[ 1.335618] Scanning device for bad blocks
[ 1.350806] Bad eraseblock 90 at 0x000005a00000
[ 1.355426] Bad eraseblock 91 at 0x000005b00000
[ 1.891268] GPMI NAND driver registered. (IMX)
[ 1.896780] FEC Ethernet Driver
[ 1.902946] fec_enet_mii_bus: probed
[ 1.908289] mousedev: PS/2 mouse device common for all mice
[ 1.914788] i2c /dev entries driver
[ 1.918956] Linux video capture interface: v2.00
[ 1.927304] ALSA device list:
[ 1.930277] No soundcards found.
[ 1.933923] NET: Registered protocol family 26
[ 1.939081] TCP cubic registered
[ 1.942317] NET: Registered protocol family 17
[ 1.946797] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 1.954857] Bus freq driver module loaded
[ 1.958888] Bus freq driver Enabled
[ 1.965009] DVFS driver module loaded
[ 1.971190] RAMDISK Open /initrd.image rd_image_start = 0
[ 1.976642] 0xe6 0x60 0x94 0x40 0x67 0xed
[ 1.980747] romfsb->word0 = 409460e6 romfsb->word1 = f6cbed67
[ 1.986509] cramfsb->magic= 409460e6
[ 1.990096] 0xdc 0x26 0x9f 0x2f 0x5d 0x49
[ 1.994199] RAMDISK: Couldn't find valid RAM disk image starting at 0.
[ 2.616531] List of all partitions:
[ 2.620063] No filesystem could mount root, tried: ext3 ext2 ext4 cramfs vfat msdos
[ 2.627972] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
[ 2.636320] [<80046c58>] (unwind_backtrace+0x0/0xe0) from [<80401148>] (panic+0x68/0x188)
[ 2.644571] [<80401148>] (panic+0x68/0x188) from [<80008d78>] (mount_block_root+0x1d0/0x214)
[ 2.653068] [<80008d78>] (mount_block_root+0x1d0/0x214) from [<80008f8c>] (mount_root+0xe8/0x108)
[ 2.661995] [<80008f8c>] (mount_root+0xe8/0x108) from [<8000910c>] (prepare_namespace+0x160/0x1b4)
[ 2.671025] [<8000910c>] (prepare_namespace+0x160/0x1b4) from [<800089e8>] (kernel_init+0x104/0x13c)
[ 2.680213] [<800089e8>] (kernel_init+0x104/0x13c) from [<80041284>] (kernel_thread_exit+0x0/0x8)
[ 2.689108] CPU0: stopping
[ 2.691837] [<80046c58>] (unwind_backtrace+0x0/0xe0) from [<8003b278>] (do_IPI+0xd0/0x13c)
[ 2.700119] [<8003b278>] (do_IPI+0xd0/0x13c) from [<8004020c>] (__irq_svc+0x4c/0xe8)
[ 2.707870] Exception stack(0x80913f70 to 0x80913fb8)
[ 2.712931] 3f60: 20000000 00000000 00000000 80913fb8
[ 2.721119] 3f80: 80912000 80927a70 80408d14 8c005100 1000406a 412fc09a 00000000 00000000
[ 2.729305] 3fa0: 60000013 80913fb8 8004e394 800412e4 20000013 ffffffff
[ 2.735937] [<8004020c>] (__irq_svc+0x4c/0xe8) from [<800412e4>] (default_idle+0x24/0x28)
[ 2.744131] [<800412e4>] (default_idle+0x24/0x28) from [<800414c8>] (cpu_idle+0xa8/0x110)
[ 2.752323] [<800414c8>] (cpu_idle+0xa8/0x110) from [<80008894>] (start_kernel+0x28c/0x2dc)
[ 2.760689] [<80008894>] (start_kernel+0x28c/0x2dc) from [<10008040>] (0x10008040)
[ 2.768266] CPU1: stopping
[ 2.770993] [<80046c58>] (unwind_backtrace+0x0/0xe0) from [<8003b278>] (do_IPI+0xd0/0x13c)
[ 2.779272] [<8003b278>] (do_IPI+0xd0/0x13c) from [<8004020c>] (__irq_svc+0x4c/0xe8)
[ 2.787022] Exception stack(0xbffadf98 to 0xbffadfe0)
[ 2.792080] df80: 20000000 00000000
[ 2.800268] dfa0: 00000001 bffadfe0 bffac000 80927a70 80408d14 80967380 1000406a 412fc09a
[ 2.808455] dfc0: 00000000 00000000 60000013 bffadfe0 8004e394 800412e4 20000013 ffffffff
[ 2.816648] [<8004020c>] (__irq_svc+0x4c/0xe8) from [<800412e4>] (default_idle+0x24/0x28)
[ 2.824839] [<800412e4>] (default_idle+0x24/0x28) from [<800414c8>] (cpu_idle+0xa8/0x110)
[ 2.833029] [<800414c8>] (cpu_idle+0xa8/0x110) from [<103fe094>] (0x103fe094)
[ 2.840170] CPU2: stopping
[ 2.842895] [<80046c58>] (unwind_backtrace+0x0/0xe0) from [<8003b278>] (do_IPI+0xd0/0x13c)
[ 2.851175] [<8003b278>] (do_IPI+0xd0/0x13c) from [<8004020c>] (__irq_svc+0x4c/0xe8)
[ 2.858924] Exception stack(0xbffb5f98 to 0xbffb5fe0)
[ 2.863981] 5f80: 20000000 00000000
[ 2.872169] 5fa0: 00000002 bffb5fe0 bffb4000 80927a70 80408d14 80967380 1000406a 412fc09a
[ 2.880358] 5fc0: 00000000 00000000 60000013 bffb5fe0 8004e394 800412e4 20000013 ffffffff
[ 2.888550] [<8004020c>] (__irq_svc+0x4c/0xe8) from [<800412e4>] (default_idle+0x24/0x28)
[ 2.896742] [<800412e4>] (default_idle+0x24/0x28) from [<800414c8>] (cpu_idle+0xa8/0x110)
[ 2.904931] [<800414c8>] (cpu_idle+0xa8/0x110) from [<103fe094>] (0x103fe094)

I want to know why in uboot initrd_start=0x10c00000 ,but in kernel is 0x80c00000? and the content in memory is wrong.

thank you!

Labels (1)
0 Kudos
2 Replies

4,282 Views
igorpadykov
NXP Employee
NXP Employee

Hi zhaoping

please check boundary devices ramdisk description on

IMX6 - booting to a roofts on ramdisk (Boundary Sabre-lite)? 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

4,282 Views
zhaopingyang_sg
Contributor III

thanks for youu answer, I have cheked my kernel config.

CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
CONFIG_RD_GZIP=y

I found when I boot kerel,the ramdisk address is correct.but when map the physic addres to virtual addres,the content in memory is wrong。

PHY ADDR 0x10c00040 maped to VIRT ADDR 0x800c0040

0 Kudos