Kris Modrak | 1 Jul 2010 01:37
Picon
Favicon

Problem accessing 16MB PCI memory mapped to user space


Hi,

I am developing a driver for a custom PCIe device that makes a 16MB PCI memory space available to user space
via mmap.

Wolfgang Denk | 1 Jul 2010 09:56
Picon
Picon
Favicon

Problem accessing 16MB PCI memory mapped to user space

Dear Kris Modrak,

In message <BAY145-w2B56FCBCDBF441C6C7135D2CC0 at phx.gbl> you wrote:
>
> 
> I am developing a driver for a custom PCIe device that makes a 16MB
> PCI memory space available to user space via mmap.
> 
> From user space I can access only some of the mapped memory, from 8MB
> onwards. Reads to the memory 0-0x7FFFFF never return.
> 
> However, from kernel space I am able to access the memory range
> 0-0x7FFFFF, so it doesn't seem to be an issue with my hardware.
> 
> I connected my PCIe device to a desktop PC running ubuntu, with the
> same driver, same PCIe device and same user space test applications I
> was able to access the whole of the PCI memory from user space.
> 
> I'm using ELDK 4.2, kernel 2.6.33.1 on a P2020RDB target.

We don't know your hardware, we don;t know your kenrel port to your
hardware, we don't know your custom PCIe device, we don't know your
driver for it, we don't know your changes to the device tree to
describe this hardware, we don;t see your kernel's log messages, we
don't see your system's output of the "lspci" command with suitable
options - we don't know nothing.

How do you expect us to help without any of the relevant information?

Also, your question has nothing to do with the ELDK, so you are off
(Continue reading)

Detlev Zundel | 1 Jul 2010 11:47
Picon
Picon
Picon
Favicon

[PATCH][RFSB] Expand mkfs.jffs2 options

Hi Ron,

> This patch will add the options for page size, image padding, clean markers,
> and clean marker size.  This patch also sets the default for
> JFFS2_ERASE_BLOCKSIZE to zero and checks that all appropriate values have been
> set.

Thanks for the respin.  I have one question however:

[...]

> +config JFFS2_CLEANMARKER_SIZE
> +       depends JFFS2_CLEANMARKER
> +       int "CLEANMARKER size"
> +       default 0
> +       help
> +         Write 'CLEANMARKER' nodes with the size specified. It is not normally
> +	 appropriate to specify a size other than the default 12 bytes.

I never used that option so I'm unsure about this.  Do we ever want to
change this value?  I really would like to only offer options that are
sensible to change.

If it is sensible to have this option, then from what I read in the
documentation, 12 is indeed a good default as it does not seem to depend
on the actual device.  Am I right?

If we agree on how to proceed, I can fix up the patch myself.

Thanks
(Continue reading)

Ron Madrid | 5 Jul 2010 18:46
Picon
Favicon

[PATCH][RFSB] Expand mkfs.jffs2 options

--- On Thu, 7/1/10, Detlev Zundel <dzu at denx.de> wrote:

> From: Detlev Zundel <dzu at denx.de>
> Subject: Re: [ELDK] [PATCH][RFSB] Expand mkfs.jffs2 options
> To: "Ron Madrid" <ron_madrid at sbcglobal.net>
> Cc: eldk at lists.denx.de
> Date: Thursday, July 1, 2010, 2:47 AM
> > +config JFFS2_CLEANMARKER_SIZE
> > +? ? ???depends
> JFFS2_CLEANMARKER
> > +? ? ???int "CLEANMARKER
> size"
> > +? ? ???default 0
> > +? ? ???help
> > +? ? ? ???Write
> 'CLEANMARKER' nodes with the size specified. It is not
> normally
> > +?????appropriate to specify
> a size other than the default 12 bytes.
> 
> I never used that option so I'm unsure about this.? Do
> we ever want to
> change this value?? I really would like to only offer
> options that are
> sensible to change.

Probably not.  I put it in since it is an option.  Leaving
it out all together and assuming the default would probably
be best.

(Continue reading)

Marc Scherer | 6 Jul 2010 10:20
Picon

Unkomprimiertes uImage für PPC

Zwei Fragen:

1) Gibt es auf der DENX-Seite ein Archiv dieser Mailingliste? Ich habe
innerhalb meines pers?nlichen Timeouts von 5 Minuten keines gefunden.

2) wie kann ich dem Linux-Kernel sagen, dass er mein uImage nicht
komprimieren soll (TQM5200, PPC, U-BOOT)?

Danke und Gr??e,

Marc Scherer

Wolfgang Denk | 6 Jul 2010 11:34
Picon
Picon
Favicon

Unkomprimiertes uImage für PPC

Dear Marc Scherer,

In message <4C32E747.5030506 at mp-ndt.de> you wrote:
> 
> 1) Gibt es auf der DENX-Seite ein Archiv dieser Mailingliste? Ich habe
> innerhalb meines pers?nlichen Timeouts von 5 Minuten keines gefunden.

Ja, das gibt es. Und es ist gabz leicht zu finden - jede ?ber diese
Liste versandte Mail enth?lt einen deutlich sichtbaren Footer:

	eldk mailing list
	eldk at lists.denx.de
	http://lists.denx.de/mailman/listinfo/eldk

Wenn man auf den angegebenen Link klickt, steht gleich in der ersten
Textzeile:

	To see the collection of prior postings to the list, visit the
	eldk Archives. ==> http://lists.denx.de/pipermail/eldk/

Und dort findet man "The eldk Archives".

Au?erdem enth?lt jede ?ber diese Liste versandte Mail einen
Mail-Header:

List-id: DENX Embedded Linux Development Kit discussion <eldk.lists.denx.de>
List-unsubscribe: <http://lists.denx.de/mailman/listinfo/eldk>,
	<mailto:eldk-request at lists.denx.de?subject=unsubscribe>
List-archive: <http://lists.denx.de/pipermail/eldk>
List-post: <mailto:eldk at lists.denx.de>
(Continue reading)

António Silva | 6 Jul 2010 18:08
Picon

Problem installing ELDK 4.2 on Ubuntu 10.04 over VirtualBox

Hi all,
I am trying to install ELDK 4.2 into UBuntu 10.04 running over
VirtualBox but when I perform the installation here's what I get:

../ppc/install ppc85xxDP

Do you really want to install into /home/richard/workDir/eldk directory[y/n]?: y

Creating directories
rpmdb: mmap: Invalid argument
error: db4 error(22) from dbenv->open: Invalid argument
error: cannot open Packages index using db3 - Invalid argument (22)
Done
Installing cross RPMs

rpmdb: mmap: Invalid argument
error: db4 error(22) from dbenv->open: Invalid argument
error: cannot open Packages index using db3 - Invalid argument (22)
error: cannot open Packages database in /home/richard/workDir/eldk/var/lib/rpm

Does anyone has any ideia about what the problem may be?

Thanks

Wolfgang Denk | 6 Jul 2010 20:51
Picon
Picon
Favicon

Problem installing ELDK 4.2 on Ubuntu 10.04 over VirtualBox

Dear =?ISO-8859-1?Q?Ant=F3nio_Silva?=,

In message <AANLkTingbNTOPiOFs1cE3px2qiGB0U3SSMQAWU3WvnwW at mail.gmail.com> you wrote:
>
> I am trying to install ELDK 4.2 into UBuntu 10.04 running over
> VirtualBox but when I perform the installation here's what I get:
> 
> ../ppc/install ppc85xxDP

This cannot work. the correct name is "ppc_85xxDP" (mind the
underscore).

> Creating directories
> rpmdb: mmap: Invalid argument
> error: db4 error(22) from dbenv->open: Invalid argument
> error: cannot open Packages index using db3 - Invalid argument (22)

Hm.. I have never seen such a failure mode, though.

Please try again using correct arguments.

Best regards,

Wolfgang Denk

--

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Do not follow where the path may lead....go instead where there is no
(Continue reading)

Marc Scherer | 7 Jul 2010 09:15
Picon

XIP und Suche im Mailarchiv

Hallo,

1) Ich versuche gerade, die Boot-Zeit eines TQM5200 zu optimieren. Im
aktuellen Kernel (aus dem Denx-Git-Repository) scheint es allerdings
keine Unterst?tzung f?r XIP beim MPC5200 zu geben. Stimmt das?

2) Es w?re sehr sch?n (komfortabel), wenn man im Mailinglisten-Archiv
nach einem Stichwort suchen k?nnte oder wenn wenigstens das gesamte
Archiv (alle Monate) als eine Seite oder eine Datei zur Verf?gung
st?nde. Ich mach's jetzt mit wget und cat, aber das m?sste ja nicht sein.

Wolfgang Denk | 7 Jul 2010 10:16
Picon
Picon
Favicon

XIP und Suche im Mailarchiv

Dear Marc Scherer,

please post in English.

In message <4C34298F.30908 at mp-ndt.de> you wrote:
> 
> 1) Ich versuche gerade, die Boot-Zeit eines TQM5200 zu optimieren. Im
> aktuellen Kernel (aus dem Denx-Git-Repository) scheint es allerdings
> keine Unterst?tzung f?r XIP beim MPC5200 zu geben. Stimmt das?

Correct. There is no XIP support in recent versions for Power
Architecture.

Also, from what I have seen so far, XIP will usually not save any time
(often it makes the systems slower instead). It will save RAM, that's
all.

> 2) Es w?re sehr sch?n (komfortabel), wenn man im Mailinglisten-Archiv
> nach einem Stichwort suchen k?nnte oder wenn wenigstens das gesamte
> Archiv (alle Monate) als eine Seite oder eine Datei zur Verf?gung
> st?nde. Ich mach's jetzt mit wget und cat, aber das m?sste ja nicht sein.

Agreed.

Best regards,

Wolfgang Denk

--

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
(Continue reading)


Gmane