#16844: AsiaRF AWM003 (ramips) memory detection problem, finds 32meg instead of
64meg
------------------------+-------------------------------------
  Reporter:  russell@…  |      Owner:  developers
      Type:  defect     |     Status:  reopened
  Priority:  normal     |  Milestone:  Barrier Breaker (trunk)
 Component:  packages   |    Version:  Trunk
Resolution:             |   Keywords:
------------------------+-------------------------------------

Comment (by russell@…):

 With this patch:
 {{{
 diff --git a/target/linux/ramips/patches-3.10/0900-debug_memsize.patch
 b/target/linux/ramips/patches-3.10/0900-debug_memsize.patch
 new file mode 100644
 index 0000000..b525b9a
 --- /dev/null
 +++ b/target/linux/ramips/patches-3.10/0900-debug_memsize.patch
 @@ -0,0 +1,13 @@
 +--- a/arch/mips/ralink/rt305x.c
 ++++ b/arch/mips/ralink/rt305x.c
 +@@ -102,8 +102,10 @@ static unsigned long rt5350_get_mem_size
 +       u32 t;
 +
 +       t = __raw_readl(sysc + SYSC_REG_SYSTEM_CONFIG);
 ++      printk("SYSC_REG_SYSTEM_CONFIG: %08x (pre-shift)\n", t);
 +       t = (t >> RT5350_SYSCFG0_DRAM_SIZE_SHIFT) &
 +               RT5350_SYSCFG0_DRAM_SIZE_MASK;
 ++      printk("SYSC_REG_SYSTEM_CONFIG: %08x (post-shift)\n", t);
 +
 +       switch (t) {
 +       case RT5350_SYSCFG0_DRAM_SIZE_2M:
 }}}

 I see this at the start of the boot:
 {{{
 [...]
 ## Transferring control to Linux (at address 80000000) ...
 ## Giving linux memsize in MB, 64

 Starting kernel ...

 [    0.000000] Linux version 3.10.44 (openwrt@iris) (gcc version 4.8.3
 (OpenWrt/Linaro GCC 4.8-2014.04 r41055) ) #1 Sun Jun 29 04:22:24 PDT 2014
 [    0.000000] SYSC_REG_SYSTEM_CONFIG: 00103000 (pre-shift)
 [    0.000000] SYSC_REG_SYSTEM_CONFIG: 00000003 (post-shift)
 [    0.000000] SoC Type: Ralink RT5350 id:1 rev:3
 [    0.000000] bootconsole [early0] enabled
 [    0.000000] CPU revision is: 0001964c (MIPS 24KEc)
 [    0.000000] MIPS: machine is AsiaRF AWM002 EVB
 [    0.000000] Determined physical RAM map:
 [    0.000000]  memory: 02000000 @ 00000000 (usable)
 [    0.000000] Initrd not found or empty - disabling initrd
 [    0.000000] Zone ranges:
 [    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
 [    0.000000] Movable zone start for each node
 [    0.000000] Early memory node ranges
 [    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
 [...]
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/16844#comment:4>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to