2009-12-18 11:52:28 No filesystem could mount root
Jianxi Fu (UNITED STATES)
Message: 83702
Hi
Could someone give me a hand?
My Test Information:
BF537-STAMP;
All were based on 2008R1.5-14
U-boot: u-boot-bf537-stamp-bypass-2008R1.5.bin (without modification)
And I can go through the initialization if I choose uImage-bf537-stamp-2008R1.5-RC3
But I just want to use uImage generated by myselfy
So I use uClinux-dist-2008R1.5-RC3.tar.bz2
Only thing I changed is that I use msh shell program
And others in menuconfig I use default
When the board power up, the information shows following:
-------------------------------------------------------------------------------------
U-Boot 1.1.6 (ADI-2008R1.5) (Dec 17 2009 - 17:18:17)
CPU: ADSP bf537-0.2 (Detected Rev: 0.3)
Board: ADI BF537 stamp board
Support: blackfin.uclinux.org/
Clock: VCO: 500 MHz, Core: 500 MHz, System: 100 MHz
RAM: 64 MB
Flash: 4 MB
In: serial
Out: serial
Err: serial
Net: Blackfin EMAC
MAC: 00:E0:22:FE:5D:E6
Hit any key to stop autoboot: 0
Using Blackfin EMAC device
TFTP from server 192.168.0.2; our IP address is 192.168.0.15
Filename 'uImage'.
Load address: 0x1000000
Loading: T #################################################################
#################################################################
#################################################################
#################################################################
#########################################
done
Bytes transferred = 1539082 (177c0a hex)
## Booting image at 01000000 ...
Image Name: Linux-2.6.22.19-ADI-2008R1.5-svn
Created: 2009-12-18 16:21:30 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 1539018 Bytes = 1.5 MB
Load Address: 00001000
Entry Point: 00152000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 152000
Linux version 2.6.22.19-ADI-2008R1.5-svn (root@localhost.localdomain) (gcc version 4.1.2 (ADI svn)) #3 Fri Dec 18 10:21:25 C9
early printk enabled on early_BFuart0
Hardware Trace Active and Enabled
Warning: limiting memory to 56MB due to hardware anomaly 05000263
Blackfin support (C) 2004-2007 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.2
Warning: Compiled for Rev 2, but running on Rev 3
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 100 MHz System Clock
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
text = 0x00001000-0x000f9f90
rodata = 0x000fa000-0x00141c6c
data = 0x00142000-0x00152000
stack = 0x00142000-0x00144000
init = 0x00152000-0x00313000
bss = 0x00313000-0x00323050
available = 0x00323050-0x037ff000
DMA Zone = 0x03f00000-0x04000000
NOMPU: setting up cplb tables for global access
Instruction Cache Enabled
Data Cache Enabled (write-through)
Built 1 zonelists. Total pages: 14224
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=192.168.0.15:192.168.0.2:f
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
console handover: boot [early_BFuart0] -> real [ttyBF0]
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 53548k/65536k RAM, (1796k init code, 995k kernel code, 417k data, 1024k dma, 7756k reserved)
Blackfin Scratchpad data SRAM: 4 KB
Blackfin Data A SRAM: 16 KB (15 KB free)
Blackfin Data B SRAM: 16 KB (16 KB free)
Blackfin Instruction SRAM: 48 KB (39 KB free)
Security Framework v1.0.0 initialized
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
stamp_init(): registering device resources
Generic PHY: Registered new driver
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
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
ISA-BlackFin-CAN CAN Driver 3.4.6_AD_BLACKFIN (c) Dec 18 2009
BlackFin port by H.J. Oertel (oe@port.de)
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
SMSC LAN83C185: Registered new driver
bfin_mac_mdio: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=19)@sclk=100MHz)
bfin_mac: Version 1.1, Blackfin BF53[67] BF527 on-chip Ethernet MAC driver
bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting the system clock to 1970-01-01 01:09:19 (4159)
IP-Config: Complete:
device=eth0, addr=192.168.0.15, mask=255.255.255.0, gw=192.168.0.1,
host=bf537-stamp, domain=, nis-domain=(none),
bootserver=192.168.0.2, rootserver=192.168.0.2, rootpath=
List of all partitions:
No filesystem could mount root, tried:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
PHY: 0:01 - Link is Up - 100/Full
QuoteReplyEditDelete
2009-12-18 12:00:19 Re: No filesystem could mount root
Mike Frysinger (UNITED STATES)
Message: 83703
try reviewing:
docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:images
QuoteReplyEditDelete
2009-12-18 13:03:15 Re: No filesystem could mount root
Robin Getz (UNITED STATES)
Message: 83709
Also - don't build things as root.
-Robin
QuoteReplyEditDelete
2009-12-18 13:10:07 Re: No filesystem could mount root
Mike Frysinger (UNITED STATES)
Message: 83710
hmm, should we add to the toplevel Makefile:
ifeq ($(shell id -u),0)
$(error do not build as root)
endif
QuoteReplyEditDelete
2009-12-18 14:37:46 Re: No filesystem could mount root
Jianxi Fu (UNITED STATES)
Message: 83711
Is it the prime reason that it cannot work?
QuoteReplyEditDelete
2009-12-18 14:47:21 Re: No filesystem could mount root
Jianxi Fu (UNITED STATES)
Message: 83713
Dear Mike,
I have read the whole page.
I just use the uImage.initramfs, am I right?
And I found that the uImage I generated is just 1.5Mb
but when I download uImage-bf537 is about 4mb
Did I lost anything important?
How can I make a uImage just like the file I download?
Sorry for so much questions.
I'm a rookie and learn from this website step by step.
I hope that someone would give me great help here.
Sincerely
QuoteReplyEditDelete
2009-12-18 15:12:48 Re: No filesystem could mount root
Robin Getz (UNITED STATES)
Message: 83714
Mike:
Yes, please - I'm sure it would be accepted upstream in the kernel too.
-Robin
QuoteReplyEditDelete
2009-12-18 17:43:37 Re: No filesystem could mount root
Mike Frysinger (UNITED STATES)
Message: 83718
there is no correct answer for filesize. if you disable packages/features, the image is going to be smaller.
your kernel output does not include features that are enabled by default, so it looks like you disabled things or the defaults werent selected.
best you upgrade to 2009R1, stop building things as root, and start off with the default config before trying to make any of your own changes.
QuoteReplyEditDelete
2009-12-21 10:05:55 Re: No filesystem could mount root
Robin Getz (UNITED STATES)
Message: 83795
Jianxi:
There could be numerous issues caused when building as root. We don't test that way - so we don't know.
-Robin
QuoteReplyEditDelete
2009-12-21 14:50:57 Re: No filesystem could mount root
Jianxi Fu (UNITED STATES)
Message: 83799
Dear Robin&Mike
I reinstall the host machine as your instrustion
Use 2009R1 toolchain, And My OS is Fedora12
I install the package just as normal user instead of root
when I make the uClinux-dist, it still has problem:
compr_zlib.c: In function ‘jffs2_zlib_compress’:
compr_zlib.c:54: warning: unused parameter ‘model’
compr_zlib.c: In function ‘jffs2_zlib_decompress’:
compr_zlib.c:102: warning: unused parameter ‘model’
compr_zlib.c: At top level:
compr_zlib.c:130: warning: initialization discards qualifiers from pointer target type
mkdir -p /home/Veros/Blackfin/uClinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/
gcc -I./include -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o /home/Veros/Blackfin/uClinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr_lzo.o compr_lzo.c -g -Wp,-MD,/home/Veros/Blackfin/uClinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/.compr_lzo.c.dep
compr_lzo.c:29:23: error: lzo/lzo1x.h: No such file or directory
compr_lzo.c: In function ‘jffs2_lzo_cmpr’:
compr_lzo.c:51: error: ‘lzo_uint’ undeclared (first use in this function)
compr_lzo.c:51: error: (Each undeclared identifier is reported only once
compr_lzo.c:51: error: for each function it appears in.)
compr_lzo.c:51: error: expected ‘;’ before ‘compress_size’
compr_lzo.c:54: warning: implicit declaration of function ‘lzo1x_999_compress’
compr_lzo.c:54: error: ‘compress_size’ undeclared (first use in this function)
compr_lzo.c:56: error: ‘LZO_E_OK’ undeclared (first use in this function)
compr_lzo.c:49: warning: unused parameter ‘model’
compr_lzo.c: In function ‘jffs2_lzo_decompress’:
compr_lzo.c:72: error: ‘lzo_uint’ undeclared (first use in this function)
compr_lzo.c:72: error: expected ‘;’ before ‘dl’
compr_lzo.c:74: warning: implicit declaration of function ‘lzo1x_decompress_safe’
compr_lzo.c:74: error: ‘dl’ undeclared (first use in this function)
compr_lzo.c:76: error: ‘LZO_E_OK’ undeclared (first use in this function)
compr_lzo.c:69: warning: unused parameter ‘model’
compr_lzo.c: At top level:
compr_lzo.c:84: warning: initialization discards qualifiers from pointer target type
compr_lzo.c: In function ‘jffs2_lzo_init’:
compr_lzo.c:95: error: ‘LZO1X_999_MEM_COMPRESS’ undeclared (first use in this function)
make[4]: *** [/home/Veros/Blackfin/uClinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr_lzo.o] Error 1
make[4]: Leaving directory `/home/Veros/Blackfin/uClinux-dist/user/mtd-utils/606f38a2221648ca5c5fa292c9f71d2ddd59fa66'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/Veros/Blackfin/uClinux-dist/user/mtd-utils'
make[2]: *** [mtd-utils] Error 2
make[2]: Leaving directory `/home/Veros/Blackfin/uClinux-dist/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/Veros/Blackfin/uClinux-dist/user'
make: *** [subdirs] Error 1
QuoteReplyEditDelete
2009-12-21 14:57:50 Re: No filesystem could mount root
Mike Frysinger (UNITED STATES)
Message: 83800
you need to install the lzo devel packages on your host system like the docs said
QuoteReplyEditDelete
2009-12-21 15:34:06 Re: No filesystem could mount root
Jianxi Fu (UNITED STATES)
Message: 83801
Dear Mike
It works now!!
I appreciate you very much~~
Sincerely
Jianxi
QuoteReplyEditDelete