pxa300 - DDRAM base value
I am working on pxa300 based development board and using Linux 2.6.34. This Linux kernel already has support for following boards
1. zylonite_pxa300
2. cm-x300
3. colibri-pxa300
4. littleton
My doubt is that pxa300 based boards are using "0xa0000000" as DDRAM base and PHYS_OFFSET is also defined in "arch/arm/mach-pxa/include/mach/memory.h" as 0xa0000000. But in our board DDR is mapped in 0x80000000. Does it make any problem?. Because after mmu is turned ON, my board is hanging.
"zreladdr-y := 0x80008000" is defined in
"arch/arm/mach-pxa/Makefile.boot" file .
my machine_desc is as follows
.phys_io = 0x40000000, .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, .boot_params = 0x80000100,
With Thanks
J.Balakrishnan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100601/dd4a8178/attachment-0001.htm>
Dne ?t 1. ?ervna 2010 07:44:18 balakrishnan napsal(a):
Quoted 13 lines
I am working on pxa300 based development board and using Linux 2.6.34. This Linux kernel already has support for following boards
1.zylonite_pxa300
2. cm-x300
3. colibri-pxa300
4. littletonMy doubt is that pxa300 based boards are using "
0xa0000000" as DDRAM base andPHYS_OFFSETis also defined in "arch/arm/mach-pxa/include/mach/memory.h" as0xa0000000. But in our board DDR is mapped in0x80000000. Does it make any problem?. Because after mmu is turned ON, my board is hanging.
Quoted 7 lines
"zreladdr-y :=
0x80008000" is defined in
"arch/arm/mach-pxa/Makefile.boot" file .
mymachine_descis as follows.phys_io = 0x40000000, .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, .boot_params = 0x80000100,
Try editing both arch/arm/mach-pxa/Makefile.boot and arch/arm/mach/pxa/include/mach/memory.h
Quoted 2 lines
With Thanks
J.Balakrishnan
The 0x80000000 should be aliased to 0xa0000000, but looking into the PXA docs, it is only on pxa320. Eric, any ideas on this ?
Quoted 22 lines · Marek Vasut
Dne ?t 1. ?ervna 2010 07:44:18 balakrishnan napsal(a):
Quoted 13 lines
I am working on pxa300 based development board and using Linux 2.6.34. This Linux kernel already has support for following boards
1.zylonite_pxa300
2. cm-x300
3. colibri-pxa300
4. littletonMy doubt is that pxa300 based boards are using "
0xa0000000" ?as DDRAM base andPHYS_OFFSETis also defined in "arch/arm/mach-pxa/include/mach/memory.h" as0xa0000000. But in our board ?DDR is mapped in0x80000000. Does it make any problem?. Because after mmu is turned ON, my board is hanging.Quoted 7 lines
"zreladdr-y ? :=
0x80008000" is defined in "arch/arm/mach-pxa/Makefile.boot" file .
mymachine_descis as follows
.phys_io ? ? ? ?=0x40000000,
.io_pg_offst ? ?= (io_p2v(0x40000000)>> 18) &0xfffc, .boot_params ? ?=0x80000100,
Quoted 9 lines
Try editing both
arch/arm/mach-pxa/Makefile.bootandarch/arm/mach/pxa/include/mach/memory.hQuoted 2 lines
With Thanks
J.BalakrishnanThe
0x80000000should be aliased to0xa0000000, but looking into the PXA docs, it is only on pxa320. Eric, any ideas on this ?
Should be working on pxa300/310 as well. If it doesn't, check you bootloader to make sure the mapping is OK, and memory doesn't exceed (0xa000_0000 - 0x8000_0000).
Dne Ne 6. ?ervna 2010 10:17:00 Eric Miao napsal(a):
Quoted 28 lines · Marek Vasut
Quoted 27 lines
Dne ?t 1. ?ervna 2010 07:44:18 balakrishnan napsal(a):
Quoted 13 lines
I am working on pxa300 based development board and using Linux 2.6.34. This Linux kernel already has support for following boards
1.zylonite_pxa300
2. cm-x300
3. colibri-pxa300
4. littletonMy doubt is that pxa300 based boards are using "
0xa0000000" as DDRAM base andPHYS_OFFSETis also defined in "arch/arm/mach-pxa/include/mach/memory.h" as0xa0000000. But in our board DDR is mapped in0x80000000. Does it make any problem?. Because after mmu is turned ON, my board is hanging.Quoted 6 lines
"zreladdr-y :=
0x80008000" is defined in
"arch/arm/mach-pxa/Makefile.boot" file .
mymachine_descis as follows.phys_io = 0x40000000, .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, .boot_params = 0x80000100,Try editing both
arch/arm/mach-pxa/Makefile.bootandarch/arm/mach/pxa/include/mach/memory.hQuoted 2 lines
With Thanks
J.Balakrishnan
Quoted 6 lines
Quoted 2 lines
The
0x80000000should be aliased to0xa0000000, but looking into the PXA docs, it is only on pxa320. Eric, any ideas on this ?Should be working on pxa300/310 as well. If it doesn't, check you bootloader to make sure the mapping is OK, and memory doesn't exceed (0xa000_0000 - 0x8000_0000).
It worked last time I used the pxa310 littleton board, but I can't check on the pxa300 zylonite board just yet.
Could you give us your bootloader details ?
Quoted 32 lines · Marek Vasut
Dne Ne 6. ?ervna 2010 10:17:00 Eric Miao napsal(a):
Quoted 31 lines · Marek Vasut
Quoted 29 lines
Dne ?t 1. ?ervna 2010 07:44:18 balakrishnan napsal(a):
Quoted 13 lines
I am working on pxa300 based development board and using Linux 2.6.34. This Linux kernel already has support for following boards
1.zylonite_pxa300
2. cm-x300
3. colibri-pxa300
4. littletonMy doubt is that pxa300 based boards are using "
0xa0000000" as DDRAM base andPHYS_OFFSETis also defined in "arch/arm/mach-pxa/include/mach/memory.h" as0xa0000000. But in our board DDR is mapped in0x80000000. Does it make any problem?. Because after mmu is turned ON, my board is hanging.Quoted 6 lines
"zreladdr-y :=
0x80008000" is defined in
"arch/arm/mach-pxa/Makefile.boot" file .
mymachine_descis as follows.phys_io = 0x40000000, .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, .boot_params = 0x80000100,Try editing both
arch/arm/mach-pxa/Makefile.bootandarch/arm/mach/pxa/include/mach/memory.hQuoted 2 lines
With Thanks
J.BalakrishnanThe
0x80000000should be aliased to0xa0000000, but looking into the PXA docs, it is only on pxa320. Eric, any ideas on this ?
Quoted 8 lines
Quoted 3 lines
Should be working on pxa300/310 as well. If it doesn't, check you bootloader to make sure the mapping is OK, and memory doesn't exceed (0xa000_0000 - 0x8000_0000).
It worked last time I used the pxa310 littleton board, but I can't check on the pxa300 zylonite board just yet.
Could you give us your bootloader details ?
hi,
Now, I can able to boot after editing following filesarch/arm/mach-pxa/Makefile.boot and arch/arm/mach/pxa/include/mach/memory.h (0x80000000 changed to 0xa0000000). My doubt is
1.why 0x80000000 (DDR phy address) is aliased to 0xa0000000 in pxa architecture?
2.In my development board two DDRAMs mapped at 0x80000000-0x88000000 and 0xc0000000-0xc8000000, how can I inform to kernel about this different bank and size?.
My Boot loader details,
------------------------------
=>bdiarch_number = 0x00000B04env_t = 0x00000000boot_params = 0x80000100
DRAM bank = 0x00000000 -> start = 0x80000000 -> size = 0x08000000 DRAM bank = 0x00000001 -> start = 0xC0000000 -> size = 0x08000000 ethaddr = 08:00:3e:26:0a:5b ip_addr = 192.168.0.21 baudrate = 115200 bps
=>ver
U-Boot 2010.03 (Jun 01 2010 - 14:27:43)
With Thanks
J.Balakrishnan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100607/539edde2/attachment.html>
Dne Po 7. ?ervna 2010 08:29:51 balakrishnan napsal(a):
Quoted 40 lines · Marek Vasut
Quoted 39 lines
Dne Ne 6. ?ervna 2010 10:17:00 Eric Miao napsal(a):
Quoted 28 lines · Marek Vasut
Quoted 27 lines
Dne ?t 1. ?ervna 2010 07:44:18 balakrishnan napsal(a):
Quoted 13 lines
I am working on pxa300 based development board and using Linux 2.6.34. This Linux kernel already has support for following boards
1.zylonite_pxa300
2. cm-x300
3. colibri-pxa300
4. littletonMy doubt is that pxa300 based boards are using "
0xa0000000" as DDRAM base andPHYS_OFFSETis also defined in "arch/arm/mach-pxa/include/mach/memory.h" as0xa0000000. But in our board DDR is mapped in0x80000000. Does it make any problem?. Because after mmu is turned ON, my board is hanging.Quoted 6 lines
"zreladdr-y :=
0x80008000" is defined in
"arch/arm/mach-pxa/Makefile.boot" file .
mymachine_descis as follows.phys_io = 0x40000000, .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, .boot_params = 0x80000100,Try editing both
arch/arm/mach-pxa/Makefile.bootandarch/arm/mach/pxa/include/mach/memory.hQuoted 2 lines
With Thanks
J.BalakrishnanQuoted 6 lines
Quoted 2 lines
The
0x80000000should be aliased to0xa0000000, but looking into the PXA docs, it is only on pxa320. Eric, any ideas on this ?Should be working on pxa300/310 as well. If it doesn't, check you bootloader to make sure the mapping is OK, and memory doesn't exceed (0xa000_0000 - 0x8000_0000).
It worked last time I used the pxa310 littleton board, but I can't check on the pxa300 zylonite board just yet.
Quoted 7 lines
Quoted 1 line
Could you give us your bootloader details ?
hi,
Now, I can able to boot after editing following filesarch/arm/mach-pxa/Makefile.bootandarch/arm/mach/pxa/include/mach/memory.h(0x80000000changed to0xa0000000). My doubt is
It was always set to 0xa0000000, both of them.
Quoted 2 lines
1.why
0x80000000(DDR phy address) is aliased to0xa0000000in pxa architecture?
Because that's how the HW guys did it and because it's written in TRM (which is the holy bible(substitute any other holy object) of the CPU) ;-)
Quoted 3 lines
2.In my development board two DDRAMs mapped at 0x80000000-0x88000000 and 0xc0000000-0xc8000000, how can I inform to kernel about this different bank and size?.
Check LAKML and look for:
"[PATCH] pxa/vpac270: Enable SparseMEM for 256 MB of RAM"
This might give you an idea ... though it's a hack. All this goo about PHYS_OFFSET etc. will be gone in hopefully near future.
Cheers!
Quoted 22 lines
My Boot loader details,
------------------------------
=>bdiarch_number=0x00000B04env_t=0x00000000boot_params=0x80000100DRAM bank = 0x00000000 -> start = 0x80000000 -> size = 0x08000000 DRAM bank = 0x00000001 -> start = 0xC0000000 -> size = 0x08000000 ethaddr = 08:00:3e:26:0a:5b ip_addr = 192.168.0.21 baudrate = 115200 bps=>ver
U-Boot 2010.03 (Jun 01 2010 - 14:27:43)With Thanks
J.Balakrishnan
Quoted 9 lines
hi,
????? Now, I can able to boot after editing following filesarch/arm/mach-pxa/Makefile.bootandarch/arm/mach/pxa/include/mach/memory.h(0x80000000changed to0xa0000000). My doubt is
1.why0x80000000(DDR phy address) is aliased to0xa0000000in pxa architecture?
2.In my development board two DDRAMs mapped at 0x80000000-0x88000000 and 0xc0000000-0xc8000000, how can I inform to kernel about this different bank and size?.
enable CONFIG_HIGHMEM
Quoted 27 lines
My Boot loader details,
------------------------------
=>bdiarch_number=0x00000B04env_t?????? =0x00000000boot_params=0x80000100
DRAM bank?? =0x00000000
-> start??? =0x80000000
-> size???? =0x08000000
DRAM bank?? =0x00000001
-> start??? =0xC0000000
-> size???? =0x08000000
ethaddr???? = 08:00:3e:26:0a:5bip_addr???? = 192.168.0.21
baudrate??? = 115200 bps
=>ver
U-Boot 2010.03 (Jun 01 2010 - 14:27:43)With Thanks
J.Balakrishnan
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Signature · 2 lines
Sincerely Yours, Mike.
Dne Po 7. ?ervna 2010 21:37:16 Mike Rapoport napsal(a):
Quoted 11 lines
Quoted 10 lines
hi,
Now, I can able to boot after editing following filesarch/arm/mach-pxa/Makefile.bootandarch/arm/mach/pxa/include/mach/memory.h(0x80000000changed to0xa0000000). My doubt is
1.why0x80000000(DDR phy address) is aliased to0xa0000000in pxa architecture?
2.In my development board two DDRAMs mapped at 0x80000000-0x88000000 and 0xc0000000-0xc8000000, how can I inform to kernel about this different bank and size?.
Quoted 1 line
enable
CONFIG_HIGHMEM
Mike, that wont help him as he has PHYS_OFFSET=0xa0000000 . Selecting CONFIG_HIGHMEM will only cause the pages for RAM below 0xa0000000 to have incorrectly computated descriptor addresses (or maybe will be ignored).
The page descriptors for RAM at PA 0xa0000000 are at VA 0xc0000000 + some offset (there's an easy linear formula to compute their offset). Now if you feed that formula with 0x80000000, the page descriptors will end below 0xc0000000, which isn't a valid VA, therefore the descriptors will not be valid either (in the better case, but it will hang the kernel at early stage anyway).
Therefore there are two ways -- either use what I suggested earlier or wait until the PHYS_OFFSET is dynamically computated (check Eric's patchset).
Cheers
Quoted 26 lines
Quoted 26 lines
My Boot loader details,
------------------------------
=>bdiarch_number=0x00000B04env_t=0x00000000boot_params=0x80000100DRAM bank = 0x00000000 -> start = 0x80000000 -> size = 0x08000000 DRAM bank = 0x00000001 -> start = 0xC0000000 -> size = 0x08000000 ethaddr = 08:00:3e:26:0a:5b ip_addr = 192.168.0.21 baudrate = 115200 bps=>ver
U-Boot 2010.03 (Jun 01 2010 - 14:27:43)With Thanks
J.Balakrishnan
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 17 lines · Marek Vasut
Dne Po 7. ?ervna 2010 21:37:16 Mike Rapoport napsal(a):
Quoted 11 lines
Quoted 10 lines
hi,
Now, I can able to boot after editing following filesarch/arm/mach-pxa/Makefile.bootandarch/arm/mach/pxa/include/mach/memory.h(0x80000000changed to0xa0000000). My doubt is
1.why0x80000000(DDR phy address) is aliased to0xa0000000in pxa architecture?
2.In my development board two DDRAMs mapped at 0x80000000-0x88000000 and 0xc0000000-0xc8000000, how can I inform to kernel about this different bank and size?.enable
CONFIG_HIGHMEMMike, that wont help him as he has PHYS_OFFSET=0xa0000000 . Selecting
CONFIG_HIGHMEMwill only cause the pages for RAM below0xa0000000to have incorrectly computated descriptor addresses (or maybe will be ignored).
Quoted 8 lines
The page descriptors for RAM at PA
0xa0000000are at VA0xc0000000+ some offset (there's an easy linear formula to compute their offset). Now if you feed that formula with0x80000000, the page descriptors will end below0xc0000000, which isn't a valid VA, therefore the descriptors will not be valid either (in the better case, but it will hang the kernel at early stage anyway).Therefore there are two ways -- either use what I suggested earlier or wait until the
PHYS_OFFSETis dynamically computated (check Eric's patchset).
Not quite. I have it working with CONFIG_HIGHMEM, I've just forgotten about cm_x300_fixup:
static void __init cm_x300_fixup(struct machine_desc *mdesc, struct tag *tags,
char **cmdline, struct meminfo *mi)
{
/* Make sure that mi->bank[0].start = PHYS_ADDR */
for (; tags->hdr.size; tags = tag_next(tags))
if (tags->hdr.tag == ATAG_MEM &&
tags->u.mem.start == 0x80000000) {
tags->u.mem.start = 0xa0000000;
break;
}
}Quoted 31 lines
Cheers
Quoted 19 lines
Quoted 19 lines
My Boot loader details,
------------------------------
=>bdiarch_number=0x00000B04env_t=0x00000000boot_params=0x80000100DRAM bank = 0x00000000 -> start = 0x80000000 -> size = 0x08000000 DRAM bank = 0x00000001 -> start = 0xC0000000 -> size = 0x08000000 ethaddr = 08:00:3e:26:0a:5b ip_addr = 192.168.0.21 baudrate = 115200 bps=>ver
U-Boot 2010.03 (Jun 01 2010 - 14:27:43)Quoted 6 lines
Quoted 6 lines
With Thanks
J.Balakrishnan
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Signature · 2 lines
Sincerely yours, Mike.
Quoted 29 lines · Eric Miao
Quoted 28 lines · Marek Vasut
Dne ?t 1. ?ervna 2010 07:44:18 balakrishnan napsal(a):
Quoted 13 lines
I am working on pxa300 based development board and using Linux 2.6.34. This Linux kernel already has support for following boards
1.zylonite_pxa300
2. cm-x300
3. colibri-pxa300
4. littletonMy doubt is that pxa300 based boards are using "
0xa0000000" ?as DDRAM base andPHYS_OFFSETis also defined in "arch/arm/mach-pxa/include/mach/memory.h" as0xa0000000. But in our board ?DDR is mapped in0x80000000. Does it make any problem?. Because after mmu is turned ON, my board is hanging.Quoted 7 lines
"zreladdr-y ? :=
0x80008000" is defined in "arch/arm/mach-pxa/Makefile.boot" file .
mymachine_descis as follows
.phys_io ? ? ? ?=0x40000000,
.io_pg_offst ? ?= (io_p2v(0x40000000)>> 18) &0xfffc, .boot_params ? ?=0x80000100,Try editing both
arch/arm/mach-pxa/Makefile.bootandarch/arm/mach/pxa/include/mach/memory.hQuoted 2 lines
With Thanks
J.Balakrishnan
Quoted 7 lines
Quoted 3 lines
The
0x80000000should be aliased to0xa0000000, but looking into the PXA docs, it is only on pxa320. Eric, any ideas on this ?Should be working on pxa300/310 as well. If it doesn't, check you bootloader to make sure the mapping is OK, and memory doesn't exceed (0xa000_0000 - 0x8000_0000).
works on CM-X300 with both pxa300 and pxa310
Quoted 6 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo at vger.kernel.org
More majordomo info at ?http://vger.kernel.org/majordomo-info.html Please read the FAQ at ?http://www.tux.org/lkml/
Signature · 2 lines
Sincerely Yours, Mike.