CONFIG_MMC: mapping the device to physical memory for sharp ZAURUS
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) ?
Regards
David
____________________________________________________________________________________
Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
From "abiyani at unix dot telasic dot com" at unix.telasic.com Wed Jun 20 22:55:08 2007
From: "abiyani at unix dot telasic dot com" at unix.telasic.com (Arun Biyani)
Date: Wed, 20 Jun 2007 13:55:08 -0700
Subject: [U-Boot-Users] Build u-boot on Cygwin failed - fixed
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
Message-ID: <[email protected]>
Quoted 11 lines · Arun Biyani
I tried to build u-boot under Cygwin. It failed with error message below. Although not critical since
I can always build it on Linux, I'd still like to find out how to fix error below . Looks like the compiles
were all successful. Only the last link step failed. Perhaps, I need newer cross compile toolchain.
Does anyone know where I can download a pre-built cross compile toolchain for 68k running
under Cygwin?cd /c/home/wrk/u-boot-1.2.0 && m68k-elf-ld -Bstatic -T
Quoted 16 lines
/c/home/wrk/u-boot-1.2.0/board/m5272c3/u-boot.lds -Ttext
0xffe00000-n $UNDEF_SYMcpu/mcf52x2/start.o\
--start-group lib_generic/libgeneric.a
board/m5272c3/libm5272c3.a cpu/mcf52x2/libmcf52x2.a lib_m68k/libm68k.afs/cramfs/libcramfs.afs/fat/libfat.afs/fdos/libfdos.afs/jffs2/libjffs2.afs/reiserfs/libreiserfs.afs/ext2/libext2fs.anet/libnet.adisk/libdisk.a rtc/librtc.a dtt/libdtt.adrivers/libdrivers.adrivers/nand/libnand.adrivers/nand_legacy/libnand_legacy.adrivers/sk98lin/libsk98lin.apost/libpost.a post/cpu/libcpu.a common/libcommon.a --end-group -L/bin/../lib/gcc-lib/m68k-elf/3.4.0/m5307-lgcc \
-Map u-boot.map -o u-boot
m68k-elf-ld: internal error/usr/src/xtools-3.4w/ld/ldlang.c1974
make: *** [u-boot] Error 1
[u-boot-1.2.0$:523]
I updated my cross compile tools (in Cygwin) to gcc 4.1.1. Now u-boot builds successfully under Cygwin.
[U-Boot-Users] CONFIG_MMC: mapping the device to physical memoryfor sharp ZAURUS
"my lists" <[email protected]> wrote in message news:187928.85495.qm at web57312.mail.re1.yahoo.com...
Quoted 7 lines
CFG_MMC_BASE: is this the base address where MMC is mapped ?include/configs/pxa255_idp.h:#define
CFG_MMC_BASE0xF0000000
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
[U-Boot-Users] CONFIG_MMC: mapping the device to physical memoryfor sharp ZAURUS
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 theCONFIG_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
Quoted 27 lines · --- Joey Oravec
"my lists" <[email protected]> wrote in message news:187928.85495.qm at web57312.mail.re1.yahoo.com...
Quoted 7 lines
CFG_MMC_BASE: is this the base address where MMC is mapped ?include/configs/pxa255_idp.h:#define
CFG_MMC_BASE0xF0000000
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 likemmc_block_read(),mmc_block_write(), andmmc_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_BASEmainly affects the "cp" command incommon/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 callmmc2info()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
Quoted 10 lines
-------------------------------------------------------------------------
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
[U-Boot-Users] CONFIG_MMC: mapping the device to physicalmemoryfor sharp ZAURUS
"my lists" <[email protected]> wrote in message news:56457.87841.qm at web57305.mail.re1.yahoo.com...
Quoted 3 lines
What would I then need to use in the
CONFIG_BOOTCOMMAND
to boot from a kernel in MMC filesystem ?
I'm calling bootmmc, and my definitions look like:
bootmmc = run initcard getmmckernel runsdram; initcard = mmcinit;
getmmckernel = fatload mmc 6 $(kernel_in_ram) uImage; runsdram = bootm $(kernel_in_ram);
Notice that I'm use the run command so it won't try to run a subsequent command if initcard fails.
Quoted 1 line
I was also wondering if I can get ext2 filesystem support for MMC ...
There's a common/cmd_ext2.c so there must be some support. I have no idea because I have never used it, so you're on your own there.
-joey
[U-Boot-Users] pxa255: ZAURUS boards
In reply to my listsI've applied (with some difficulty) the patches I used to use with version 2006-04-18-1106 in order to get sharp zaurus corgi board working, on current
....
I've got it building but when I try to boot I see nothing on the serial console. Normally (with version 2006-04-18-1106) I'd see the u-boot stuff, a timeout and the normal linux kernel stuff.
I was hoping I could get something to help me debug what was wrong .... but I've nothing to show :-(
What do I do now if I'm clueless ?
____________________________________________________________________________________
Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.
http://autos.yahoo.com/carfinder/