From: my lists Date: Thu, 21 Jun 2007 09:18:39 -0700 (PDT) Subject: [U-Boot-Users] CONFIG_MMC: mapping the device to physical memoryfor sharp ZAURUS In-Reply-To: Message-ID: <56457.87841.qm@web57305.mail.re1.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Thanks ... I'll ne having a look at that tonignt. So if I keep using access to MMC only via fs all I need is define CONFIG_MMC 1 in my include/configs/corgi.h ? What would I then need to use in the CONFIG_BOOTCOMMAND to boot from a kernel in MMC filesystem ? Currently I'm loading kernel from flash with specific nand logical reads (common/cmd_nand.c has been patched with extra code for the nand read.logical functionality) nand read.logical 0xa0800000 0x005a0000 0x00160000 and then booting from memory bootm I was also wondering if I can get ext2 filesystem support for MMC ... I like to format my mmc for Zaurus as ext2/3 when I keep system stuff on there. My goal would be to have kernel loaded from an ext2/3 formatted MMC .... so that I could have a totally different system booting from MMC ... and keep a working and stable complete system (including different kernel) on the onboard flash totally untouched. Regards David --- Joey Oravec wrote: > "my lists" wrote in message > news:187928.85495.qm at web57312.mail.re1.yahoo.com... > > CFG_MMC_BASE: is this the base address where MMC is mapped ? > > > > include/configs/pxa255_idp.h:#define CFG_MMC_BASE 0xF0000000 > > is this usable gererically for pxa255 or only for that specific board ? > > if not how can I find out where it is mapped (if there is no tech > > documentation > > avalible for sharp Zaurus) ? > > Take a look at cpu/pxa/mmc.c. This adds a few functions like > mmc_block_read(), mmc_block_write(), and mmc_init() which interact with the > media card. Typically init will register the card as a FAT filesystem, and > you'll let those functions interact with the card. > > In my version of the code, CFG_MMC_BASE mainly affects the "cp" command in > common/cmd_mem.c. Some functions like that will let you interact with the > card as a raw device, as if it were mapped into unused memory. They'll call > mmc2info() to decide if the address is within that assigned range. I don't > find this feature very useful and always interact with the card as a > filesystem. > > -joey > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > U-Boot-Users mailing list > U-Boot-Users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/u-boot-users > ____________________________________________________________________________________ Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting