UBIFS not attaching to mtd2 on SheevaPlug
Hey
I can't boot a manually created ubifs on NAND on a SheevaPlug, it seems
UBI doesn't register on mtd2 when it shows up.
For the record, I had a hard time installing manually to UBIFS on a
SheevaPlug, ubimkvol would fail after ubiformat + ubiattach. I found
posts from people with the issue recommending mkfs.ubifs + ubinize +
ubiformat and that indeed was accepted.
I'm using:
setenv bootargs "console=ttyS0,115200 ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs"
with squeeze/sid's linux-image-kirkwood and no initrd.
I currently load the kernel from MMC.
If I boot on an USB stick, I get no /dev/ubi* but I can ubiattach
-m /dev/mtd2, and then things jsut work.
So it seems the attach step is failing; from what I understand, it's
supposed to happen right after the MTD show up, e.g.:
http://chiana.homelinux.org/~marc/eib_sheeva.html
shows:
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "root"
UBI: attaching mtd2 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
This is my boot log:
Marvell>> bootm 0x00800000
## Booting image at 00800000 ...
Image Name: Debian kernel
Created: 2010-07-03 15:32:51 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1445884 Bytes = 1.4 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.32-5-kirkwood (Debian 2.6.32-15) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-1) ) #1 Thu Jun 3 15:54:38 UTC 2010
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: Marvell SheevaPlug Reference Board
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: "console=ttyS0,115200 ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs"
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 256MB 256MB = 512MB total
[ 0.000000] Memory: 515200KB available (3548K code, 583K data, 120K init, 0K highmem)
[ 0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:114
[ 0.000000] Console: colour dummy device 80x30
[ 0.000122] Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
[ 0.240085] Security Framework initialized
[ 0.240104] SELinux: Disabled at boot.
[ 0.240131] Mount-cache hash table entries: 512
[ 0.240420] Initializing cgroup subsys ns
[ 0.240435] Initializing cgroup subsys cpuacct
[ 0.240444] Initializing cgroup subsys devices
[ 0.240453] Initializing cgroup subsys freezer
[ 0.240461] Initializing cgroup subsys net_cls
[ 0.240504] CPU: Testing write buffer coherency: ok
[ 0.241201] devtmpfs: initialized
[ 0.242852] regulator: core version 0.5
[ 0.243056] NET: Registered protocol family 16
[ 0.243551] Kirkwood: MV88F6281-A0, TCLK=200000000.
[ 0.243564] Feroceon L2: Enabling L2
[ 0.243596] Feroceon L2: Cache support initialised.
[ 0.245589] bio: create slab <bio-0> at 0
[ 0.245853] vgaarb: loaded
[ 0.246300] Switching to clocksource orion_clocksource
[ 0.249882] NET: Registered protocol family 2
[ 0.250175] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.250939] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.251292] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.251471] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.251481] TCP reno registered
[ 0.251629] NET: Registered protocol family 1
[ 0.251870] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.252100] audit: initializing netlink socket (disabled)
[ 0.252131] type=2000 audit(0.243:1): initialized
[ 0.258655] VFS: Disk quotas dquot_6.5.2
[ 0.258914] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.259004] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.259632] msgmni has been set to 1006
[ 0.261198] alg: No test for stdrng (krng)
[ 0.261316] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 0.261328] io scheduler noop registered
[ 0.261335] io scheduler anticipatory registered
[ 0.261343] io scheduler deadline registered
[ 0.261531] io scheduler cfq registered (default)
[ 0.267454] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.267905] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[ 0.585276] console [ttyS0] enabled
[ 0.589330] NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit)
[ 0.597851] Scanning device for bad blocks
[ 0.660860] Bad eraseblock 2015 at 0x00000fbe0000
[ 0.726344] Creating 3 MTD partitions on "orion_nand":
[ 0.731511] 0x000000000000-0x000000100000 : "u-boot"
[ 0.737063] 0x000000100000-0x000000500000 : "uImage"
[ 0.742511] 0x000000500000-0x000020000000 : "root"
[ 0.748752] mice: PS/2 mouse device common for all mice
[ 0.754342] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[ 0.760301] i2c /dev entries driver
[ 0.763969] cpuidle: using governor ladder
[ 0.768219] cpuidle: using governor menu
[ 0.772248] Registered led device: plug:green:health
[ 0.777298] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[ 0.783700] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[ 0.826361] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[ 0.866359] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[ 0.906359] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[ 0.946359] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[ 0.953013] TCP cubic registered
[ 0.956257] NET: Registered protocol family 17
[ 0.961063] registered taskstats version 1
[ 0.965781] rtc-mv rtc-mv: setting system clock to 2010-07-06 00:18:38 UTC (1278375518)
[ 0.973845] Initalizing network drop monitor service
[ 0.978960] List of all partitions:
[ 0.982473] 1f00 1024 mtdblock0 (driver?)
[ 0.987486] 1f01 4096 mtdblock1 (driver?)
[ 0.992481] 1f02 519168 mtdblock2 (driver?)
[ 0.997482] No filesystem could mount root, tried:
[ 1.002395] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Any idea/suggestion welcome!
Thanks,
--
Loïc Minier
Reply to: