public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* UBI error on 64bit Machine
@ 2006-12-15 13:59 Shiner Chen
  2006-12-15 14:07 ` Artem Bityutskiy
  2007-01-03 17:18 ` Artem Bityutskiy
  0 siblings, 2 replies; 4+ messages in thread
From: Shiner Chen @ 2006-12-15 13:59 UTC (permalink / raw)
  To: linux-mtd

Dear all,

Recently, I get the source code on the ubi-2.6.git tree. I compiled
the kernel on x86-32 arch and erverything is ok,but on x86-64,I met
some problems as follows
Environment
operation system:Red hat Enterprise Server 4.3(kernel 2.6.19 including
the UBI,gcc 3.5)
hardware:x86-64

Command
[linux-ubi$] modprobe nandsim second_id_byte=0x36
[linux-ubi$] modprobe ubi mtd=0

the result in the /var/log/messages
Dec 15 04:45:33 localhost kernel:flash size:64 MiB
Dec 15 04:45:33 localhost kernel:page size:512 bytes
Dec 15 04:45:33 localhost kernel:OOB area size:16 bytes
Dec 15 04:45:33 localhost kernel:sector size:16 KiB
Dec 15 04:45:33 localhost kernel:pages number:131072
Dec 15 04:45:33 localhost kernel:pages per sector:32
Dec 15 04:45:33 localhost kernel:bus width:8
Dec 15 04:45:33 localhost kernel:bits in sector size:14
Dec 15 04:45:33 localhost kernel:bits in page size:9
Dec 15 04:45:33 localhost kernel:bits in OOB size:4
Dec 15 04:45:33 localhost kernel:flash size with OOB:67584 KiB
Dec 15 04:45:33 localhost kernel:page address bytes:4
Dec 15 04:45:33 localhost kernel:sector address bytes:3
Dec 15 04:45:33 localhost kernel:options:0x62
Dec 15 04:45:33 localhost kernel:Scanning device for bad blocks
Dec 15 04:45:33 localhost kernel:Creating 1 MTD partitions on "NAND 64
MiB 1,8V 8-bit":
Dec 15 04:45:33 localhost kernel:0x00000000-0x04000000:"NAND simulator
partition"
Dec 15 04:45:33 localhost kernel:UBI:background thread "ubi_bgt0d"
started,PID 431
Dec 15 04:45:33 localhost kernel:UBI:empty MTD device detected
Dec 15 04:45:33 localhost kernel:UBI:create volume table(copy #1)
Dec 15 04:45:33 localhost kernel:UBI:create volume table(copy #2)
Dec 15 04:45:33 localhost kernel:UBI:create volume table(copy #2)
Dec 15 04:45:33 localhost kernel:UBI:error:ubi_scan_add_volume:two
LEBs with same version 0

I think it's not the problem of the source code . I am not sure if it
is caused by the gcc version or the setting of configure options of
kernel on the x86-64 or something else?

Is anyone who met this kind of problem? Please could you tell me how
to deal with it,thanks a lot!

Your quick reply will be highly appreciated.

Best regards,
shiner

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: UBI error on 64bit Machine
  2006-12-15 13:59 UBI error on 64bit Machine Shiner Chen
@ 2006-12-15 14:07 ` Artem Bityutskiy
       [not found]   ` <f9fe74a60612150616h4b423eabr2678eb78d8bdfb35@mail.gmail.com>
  2007-01-03 17:18 ` Artem Bityutskiy
  1 sibling, 1 reply; 4+ messages in thread
From: Artem Bityutskiy @ 2006-12-15 14:07 UTC (permalink / raw)
  To: Shiner Chen; +Cc: linux-mtd

On Fri, 2006-12-15 at 21:59 +0800, Shiner Chen wrote:
> Dec 15 04:45:33 localhost kernel:UBI:empty MTD device detected
> Dec 15 04:45:33 localhost kernel:UBI:create volume table(copy #1)
> Dec 15 04:45:33 localhost kernel:UBI:create volume table(copy #2)
> Dec 15 04:45:33 localhost kernel:UBI:create volume table(copy #2)
> Dec 15 04:45:33 localhost kernel:UBI:error:ubi_scan_add_volume:two
> LEBs with same version 0

Hmm, this is weird. Why I see 2 "create volume table(copy #2)" messages?
May you please write how you load UBI? as a module? which commands you
use?

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: UBI error on 64bit Machine
       [not found]   ` <f9fe74a60612150616h4b423eabr2678eb78d8bdfb35@mail.gmail.com>
@ 2006-12-15 14:26     ` Artem Bityutskiy
  0 siblings, 0 replies; 4+ messages in thread
From: Artem Bityutskiy @ 2006-12-15 14:26 UTC (permalink / raw)
  To: Shiner Chen; +Cc: linux-mtd

On Fri, 2006-12-15 at 22:16 +0800, Shiner Chen wrote:
> thank you for your quick reply,
> the ubi was loaded as a kernel module and the load command is
> modprobe ubi mtd=0
> (mtd0 device is nandsim module simulate)
> 
> I also found the problem is very strange. I debug the part code and
> found it create volume table twice. the problem occured only on 64bit
> machine!

Probably there is some bug related to 64bit machine. I have no 64bit
setup to test this, but I will try to dig this later anyway

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: UBI error on 64bit Machine
  2006-12-15 13:59 UBI error on 64bit Machine Shiner Chen
  2006-12-15 14:07 ` Artem Bityutskiy
@ 2007-01-03 17:18 ` Artem Bityutskiy
  1 sibling, 0 replies; 4+ messages in thread
From: Artem Bityutskiy @ 2007-01-03 17:18 UTC (permalink / raw)
  To: Shiner Chen, K G Srivastava; +Cc: linux-mtd

Hello,

On Fri, 2006-12-15 at 21:59 +0800, Shiner Chen wrote:
> Dear all,
> 
> Recently, I get the source code on the ubi-2.6.git tree. I compiled
> the kernel on x86-32 arch and erverything is ok,but on x86-64,I met
> some problems as follows
> Environment
> operation system:Red hat Enterprise Server 4.3(kernel 2.6.19 including
> the UBI,gcc 3.5)
> hardware:x86-64

On Fri, 2006-12-15 at 18:58 +0530, K G Srivastava wrote: 
> Hi,
>   I am trying to setup UBI over mtdram/nandsim on a AMD 64-bit (1.66
> MHz) Turion Dual core machine. The MTD device is of size 128 MB and
> the UBI volume is of size 111 MB. I have tried it on Intel P-4 CPU
> 2.66GHz and it works fine. But as soon as i do a modprobe for ubi
> module, the kernel gives an oops. Can you please tell me if UBI works
> fine on 64-bit architecture or if there are any known issues and if
> there are any fixes available. The trace of the same is as follows -

May you please try the newest UBI? There is a chance that it will work
better on 64-bit machines now.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-01-03 17:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-15 13:59 UBI error on 64bit Machine Shiner Chen
2006-12-15 14:07 ` Artem Bityutskiy
     [not found]   ` <f9fe74a60612150616h4b423eabr2678eb78d8bdfb35@mail.gmail.com>
2006-12-15 14:26     ` Artem Bityutskiy
2007-01-03 17:18 ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox