tommy | 1 Jul 2009 02:54

Re: about ubiformat mtdblock

No
root <at> localhost:/# mount
rootfs on / type rootfs (rw)
ubi0:ubifs1 on / type ubifs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
ubi0:ubifs1 on /dev/.static/dev type ubifs (rw)
tmpfs on /dev type tmpfs (rw)
ubi1:data on /media type ubifs (rw)
tmpfs on /var type tmpfs (rw)
root <at> localhost:/# 

On 二, 2009-06-30 at 17:51 +0300, Artem Bityutskiy wrote:
> On Mon, 2009-06-29 at 10:14 +0800, tommy wrote:
> > HI,Dear sir !
> > 
> > i have a question!
> > 
> > I have patched your 2.6.24-ubifs-git on my ARM11 platform !
> > 
> > it have succeed run and stable !
> > 
> > My rootfs have a /etc/fstab file !
> > 
> > # stock fstab - you probably want to override this with a machine
> > specific one
> > 
> > rootfs               /                    auto       defaults
> > 1  1
> > proc                 /proc                proc       defaults
(Continue reading)

Artem Bityutskiy | 1 Jul 2009 11:50
Favicon

Re: about ubiformat mtdblock

On Wed, 2009-07-01 at 08:54 +0800, tommy wrote:
> No
> root <at> localhost:/# mount
> rootfs on / type rootfs (rw)
> ubi0:ubifs1 on / type ubifs (rw)
> proc on /proc type proc (rw)
> sysfs on /sys type sysfs (rw)
> ubi0:ubifs1 on /dev/.static/dev type ubifs (rw)
> tmpfs on /dev type tmpfs (rw)
> ubi1:data on /media type ubifs (rw)
> tmpfs on /var type tmpfs (rw)
> root <at> localhost:/# 

I mean can you mount it if you do it by hand, not via
fstab. I.e., call mount -t ubifs ...

--

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
tommy | 1 Jul 2009 12:43

Re: about ubiformat mtdblock

my kernel command line is booting from ubif0_0 (rootfs),can't mount
again ,because ubifs0_0 is also in / 
On 三, 2009-07-01 at 12:50 +0300, Artem Bityutskiy wrote:
> On Wed, 2009-07-01 at 08:54 +0800, tommy wrote:
> > No
> > root <at> localhost:/# mount
> > rootfs on / type rootfs (rw)
> > ubi0:ubifs1 on / type ubifs (rw)
> > proc on /proc type proc (rw)
> > sysfs on /sys type sysfs (rw)
> > ubi0:ubifs1 on /dev/.static/dev type ubifs (rw)
> > tmpfs on /dev type tmpfs (rw)
> > ubi1:data on /media type ubifs (rw)
> > tmpfs on /var type tmpfs (rw)
> > root <at> localhost:/# 
> 
> I mean can you mount it if you do it by hand, not via
> fstab. I.e., call mount -t ubifs ...
> 

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
naveen yadav | 1 Jul 2009 05:31
Picon

UBIFS Crash with ubifs-v2.6.21-HEAD.tar

Hi all,

 I am using kernel 2.6.18. and i have backported from 2.6.21 to
2.6.18. when i add kernel command line parameter as ubi.mtd=exe
ubi.mtd=2 .

i got crash in core.c file in function int device_add(struct device
*dev). The reason for this i found is parent =
get_device(dev->parent); is null.

can any body suggest where dev->parent value gets assigned.

Regards
Naveen
Attachment (err.rtf): application/rtf, 38 KiB
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
Artem Bityutskiy | 1 Jul 2009 12:45
Favicon

Re: about ubiformat mtdblock

On Wed, 2009-07-01 at 18:43 +0800, tommy wrote:
> my kernel command line is booting from ubif0_0 (rootfs),can't mount
> again ,because ubifs0_0 is also in / 

Here you may find a way to mount UBIFS via kernel boot parameters:

http://www.linux-mtd.infradead.org/faq/ubifs.html#L_mount_ubifs

--

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
Artem Bityutskiy | 1 Jul 2009 12:47
Favicon

Re: UBIFS Crash with ubifs-v2.6.21-HEAD.tar

On Wed, 2009-07-01 at 09:01 +0530, naveen yadav wrote:
> Hi all,
> 
>  I am using kernel 2.6.18. and i have backported from 2.6.21 to
> 2.6.18. when i add kernel command line parameter as ubi.mtd=exe
> ubi.mtd=2 .
> 
> i got crash in core.c file in function int device_add(struct device
> *dev). The reason for this i found is parent =
> get_device(dev->parent); is null.
> 
> can any body suggest where dev->parent value gets assigned.

Not sure, this is ancient kernel and I doubt anyone is interested
digging it. You may try luck at lkml though, but I fear you'll
have to dig this yourself.

--

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
tommy | 1 Jul 2009 12:58

Re: about ubiformat mtdblock

Uncompressing
Linux.........................................................................................
Linux version 2.6.24.2 (root <at> tommy-desktop) (gcc version 4.1.2) #123 Wed
Jul 1 11:54:02 CST 2009
CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv7),
cr=00c5387f
Machine: SMDK6410
Ignoring unrecognised tag 0x00000000
Memory policy: ECC disabled, Data cache writeback
....................
CPU0: D VIPT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists in Zone order, mobility grouping on.  Total pages:
26924
Kernel command line: root=ubi0:rootfs rootfstype=ubifs ubi.mtd=2
console=ttySAC0,115200
Trying to install chained interrupt handler for IRQ0
Trying to install chained interrupt handler for IRQ1
Trying to install chained interrupt handler for IRQ32
Trying to install chained interrupt handler for IRQ33
PID hash table entries: 512 (order: 9, 2048 bytes)
timer tcon=00600d00, tcnt 103c3, tcfg 00000450,00000040, usec 00001340
Console: colour dummy device 80x30
console [ttySAC0] enabled
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 106MB = 106MB total
Memory: 103552KB available (3452K code, 307K data, 104K init)
Mount-cache hash table entries: 512
(Continue reading)

Artem Bityutskiy | 1 Jul 2009 13:06
Favicon

Re: about ubiformat mtdblock

On Wed, 2009-07-01 at 18:58 +0800, tommy wrote:
> ps:
> 
> if my board nfs boot ,not ubifs boot,following is ok!
> nfs <at> root:ubiattach /dev/ubi_ctrl -m 2
> nfs <at> root:mount -t ubifs ubi0_0 /mnt /
> it it ok!

Try adding:

ubi.mtd=0 root=ubi0_0 rootfstype=ubifs

to the kernel boot line.

--

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
tommy | 1 Jul 2009 13:13

Re: about ubiformat mtdblock

THANKS!~
Kernel command line: console=ttySAC0,115200 ubi.mtd=2 root=ubi0_0
rootfstype=ubifs

mount: mounting proc on /proc failed: Device or resource busy      
WARNING: Couldn't open directory /lib/modules/2.6.24.2: No such file or
directory
FATAL: Could not open /lib/modules/2.6.24.2/modules.dep.temp for
writing: No such file or directory
modprobe: FATAL: Could not load /lib/modules/2.6.24.2/modules.dep: No
such file or directory

modprobe: FATAL: Could not load /lib/modules/2.6.24.2/modules.dep: No
such file or directory

open_ubi name rootfs<3>UBIFS error (pid 576): ubifs_get_sb: cannot open
"rootfs", error -22 

root <at> localhost:/etc/rcS.d# vi S35mountall.sh
#
# Mount local filesystems in /etc/fstab. For some reason, people
# might want to mount "proc" several times, and mount -v complains
# about this. So we mount "proc" filesystems without -v.
#
test "$VERBOSE" != no && echo "Mounting local filesystems..."
mount -at nonfs,nosmbfs,noncpfs 2>/dev/null

root <at> localhost:/etc/rcS.d# cat ../fstab
# stock fstab - you probably want to override this with a machine
specific one
(Continue reading)

Subrata Modak | 1 Jul 2009 15:52
Picon

[PATCH Resend] Remove 'SBC8240 Wind River' Device Driver Code

Hi,

Linux next tree(20090626) produced the following build error:

CC [M]  drivers/mtd/maps/sbc8240.o
drivers/mtd/maps/sbc8240.c:31:1: warning: "DEBUG" redefined
In file included from drivers/mtd/maps/sbc8240.c:23:
include/linux/mtd/mtd.h:333:1: warning: this is the location of the previous definition
drivers/mtd/maps/sbc8240.c: In function 'init_sbc8240_mtd':
drivers/mtd/maps/sbc8240.c:172: warning: passing argument 1 of 'simple_map_init' from incompatible
pointer type
drivers/mtd/maps/sbc8240.c:177: error: 'struct mtd_info' has no member named 'module'
make[3]: *** [drivers/mtd/maps/sbc8240.o] Error 1
make[2]: *** [drivers/mtd/maps] Error 2
make[1]: *** [drivers/mtd] Error 2
make: *** [drivers] Error 2

I remember reporting this back in April, when it was suggested to remove
the code as it is no more used:
http://lkml.org/lkml/2009/4/21/476,

I tried to gather some more info about this driver from the link
mentioned in Kconfig:
http://www.windriver.com/products/sbc8240/,
without much success.

The original author of this driver code has no problem, as she has
expressed by the following mail:

>On Tue, 2009-06-30 at 09:37 -0700, carolyn.j.smith <at> tektronix.com wrote:
(Continue reading)


Gmane