* [U-Boot-Users] CONFIG_MMC: mapping the device to physical memory for sharp ZAURUS
@ 2007-06-20 20:32 my lists
2007-06-21 13:00 ` [U-Boot-Users] CONFIG_MMC: mapping the device to physical memoryfor " Joey Oravec
0 siblings, 1 reply; 5+ messages in thread
From: my lists @ 2007-06-20 20:32 UTC (permalink / raw)
To: u-boot
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: <200706141818.LAA15126@unix.telasic.com>
References: <20070613230937.22983352681@atlas.denx.de>
<200706141818.LAA15126@unix.telasic.com>
Message-ID: <200706202055.NAA21665@unix.telasic.com>
Arun Biyani wrote:
> 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
> /c/home/wrk/u-boot-1.2.0/board/m5272c3/u-boot.lds -Ttext 0xffe00000
> -n $UNDEF_SYM cpu/mcf52x2/start.o \
> --start-group lib_generic/libgeneric.a
> board/m5272c3/libm5272c3.a cpu/mcf52x2/libmcf52x2.a lib_m68k/libm68k.a
> fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a
> fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
> net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a
> drivers/libdrivers.a drivers/nand/libnand.a
> drivers/nand_legacy/libnand_legacy.a drivers/sk98lin/libsk98lin.a
> post/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.c 1974
> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] CONFIG_MMC: mapping the device to physical memoryfor sharp ZAURUS
2007-06-20 20:32 [U-Boot-Users] CONFIG_MMC: mapping the device to physical memory for sharp ZAURUS my lists
@ 2007-06-21 13:00 ` Joey Oravec
2007-06-21 16:18 ` my lists
0 siblings, 1 reply; 5+ messages in thread
From: Joey Oravec @ 2007-06-21 13:00 UTC (permalink / raw)
To: u-boot
"my lists" <lists_my@yahoo.com> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] CONFIG_MMC: mapping the device to physical memoryfor sharp ZAURUS
2007-06-21 13:00 ` [U-Boot-Users] CONFIG_MMC: mapping the device to physical memoryfor " Joey Oravec
@ 2007-06-21 16:18 ` my lists
2007-06-21 17:33 ` [U-Boot-Users] CONFIG_MMC: mapping the device to physicalmemoryfor " Joey Oravec
2007-06-25 21:57 ` [U-Boot-Users] pxa255: ZAURUS boards my lists
0 siblings, 2 replies; 5+ messages in thread
From: my lists @ 2007-06-21 16:18 UTC (permalink / raw)
To: u-boot
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 <joravec@drewtech.com> wrote:
> "my lists" <lists_my@yahoo.com> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] CONFIG_MMC: mapping the device to physicalmemoryfor sharp ZAURUS
2007-06-21 16:18 ` my lists
@ 2007-06-21 17:33 ` Joey Oravec
2007-06-25 21:57 ` [U-Boot-Users] pxa255: ZAURUS boards my lists
1 sibling, 0 replies; 5+ messages in thread
From: Joey Oravec @ 2007-06-21 17:33 UTC (permalink / raw)
To: u-boot
"my lists" <lists_my@yahoo.com> wrote in message
news:56457.87841.qm at web57305.mail.re1.yahoo.com...
> 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.
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] pxa255: ZAURUS boards
2007-06-21 16:18 ` my lists
2007-06-21 17:33 ` [U-Boot-Users] CONFIG_MMC: mapping the device to physicalmemoryfor " Joey Oravec
@ 2007-06-25 21:57 ` my lists
1 sibling, 0 replies; 5+ messages in thread
From: my lists @ 2007-06-25 21:57 UTC (permalink / raw)
To: u-boot
I'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/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-06-25 21:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-20 20:32 [U-Boot-Users] CONFIG_MMC: mapping the device to physical memory for sharp ZAURUS my lists
2007-06-21 13:00 ` [U-Boot-Users] CONFIG_MMC: mapping the device to physical memoryfor " Joey Oravec
2007-06-21 16:18 ` my lists
2007-06-21 17:33 ` [U-Boot-Users] CONFIG_MMC: mapping the device to physicalmemoryfor " Joey Oravec
2007-06-25 21:57 ` [U-Boot-Users] pxa255: ZAURUS boards my lists
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox