Modify

Opened 3 years ago

Closed 3 years ago

#17600 closed defect (invalid)

WP18 board only 16MiB RAM detected

Reported by: mreeve Owned by: developers
Priority: high Milestone: Chaos Calmer 15.05
Component: kernel Version: Trunk
Keywords: Cc:

Description

I have a Compex WP18 (IXP425 CPU) with 64MiB RAM, but Linux only detects 16MiB. This leads to having so little RAM available that it is not possible to allocate DMA for any PCI devices.

Tested with both Attitude Adjustment 12.04, as well as Chaos Calmer r42174 and r42212

Trying NPE-B...success. Using NPE-B with switch.
Ethernet eth0: MAC address (redacted)
IP: 192.168.0.254/255.255.255.0, Gateway: 192.168.0.1
Default server: 192.168.0.1

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Red Hat certified release, version 2.04 - built 09:48:17, Jun  6 2007

Platform: WP18/WP188/WPM188/NP18 Development Platform (IXP42X 533MHz) BE
Copyright (C) 2000, 2001, 2002, 2003, 2004, 2007 Free Software Foundation, Inc.

RAM: 0x00000000-0x04000000, [0x0006c2b0-0x03fc1000] available
FLASH: 0x50000000 - 0x50800000, 64 blocks of 0x00020000 bytes each.
== Executing boot script in 3.000 seconds - enter ^C to abort
RedBoot> fis load zImage
RedBoot> go
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.10.49 (matt@ubuntu) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r42212) ) #1 Mon Aug 18 23:45:59 UTC 2014
[    0.000000] CPU: XScale-IXP42x Family [690541c1] revision 1 (ARMv5TE), cr=000039ff
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Compex WP18 / NP18A
[    0.000000] Warning: Neither atags nor dtb found
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
[    0.000000] Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 64 (order: -4, 256 bytes)
[    0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Memory: 16MB = 16MB total
[    0.000000] Memory: 13088k/13088k available, 3296k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc1800000 - 0xff000000   ( 984 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc1000000   (  16 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc029fd5c   (2656 kB)
[    0.000000]       .init : 0xc02a0000 - 0xc02bcb9c   ( 115 kB)
[    0.000000]       .data : 0xc02be000 - 0xc02dcde4   ( 124 kB)
[    0.000000]        .bss : 0xc02dcde4 - 0xc0307800   ( 171 kB)
[    0.000000] NR_IRQS:64
[    0.000000] sched_clock: 32 bits at 66MHz, resolution 15ns, wraps every 64425ms
[    0.000197] Calibrating delay loop... 531.66 BogoMIPS (lpj=2658304)
[    0.050103] pid_max: default: 32768 minimum: 301
[    0.050352] Mount-cache hash table entries: 512
[    0.051492] CPU: Testing write buffer coherency: ok
[    0.052318] Setting up static identity map for 0xc000fe58 - 0xc000fea8
[    0.055339] NET: Registered protocol family 16
[    0.056956] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.061706] IXP4xx: Using 16MiB expansion bus window size
[    0.064337] PCI: IXP4xx is host
[    0.064372] PCI: IXP4xx Using direct access for memory space
[    0.064987] PCI host bridge to bus 0000:00
[    0.065046] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.065072] pci_bus 0000:00: root bus resource [mem 0x48000000-0x4bffffff]
[    0.065100] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.065202] PCI: bus0: Fast back to back transfers enabled
[    0.080994] bio: create slab <bio-0> at 0
[    0.088123] Switching to clocksource OSTS
[    0.094896] NET: Registered protocol family 2
[    0.095983] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.096042] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.096071] TCP: Hash tables configured (established 512 bind 512)
[    0.096295] TCP: reno registered
[    0.096319] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.096358] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.096793] NET: Registered protocol family 1
[    0.097368] IXP4xx Queue Manager initialized.
[    0.102317] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.102361] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.102912] msgmni has been set to 25
[    0.103750] io scheduler noop registered
[    0.103783] io scheduler deadline registered (default)
[    0.386506] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.391434] serial8250.0: ttyS0 at MMIO 0xc8000000 (irq = 15) is a XScale
[    0.728072] console [ttyS0] enabled
[    0.733509] serial8250.0: ttyS1 at MMIO 0xc8001000 (irq = 13) is a XScale
[    0.746110] IXP4XX-Flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chip ID 0x000017
[    0.756586] Intel/Sharp Extended Query Table at 0x0031
[    0.761787] Intel/Sharp Extended Query Table at 0x0031
[    0.766964] Using buffer write method
[    0.770638] cfi_cmdset_0001: Erase suspend on write enabled
[    0.776397] Searching for RedBoot partition table in IXP4XX-Flash.0 at offset 0x7e0000
[    0.899773] 5 RedBoot partitions found on MTD device IXP4XX-Flash.0
[    0.906062] Creating 5 MTD partitions on "IXP4XX-Flash.0":
[    0.911654] 0x000000000000-0x000000080000 : "RedBoot"
[    0.920090] 0x000000080000-0x0000001a0000 : "zImage"
[    0.928340] 0x0000001a0000-0x0000007e0000 : "rootfs"
[    0.936565] mtd: partition "rootfs_data" created automatically, ofs=0x360000, len=0x480000
[    0.944961] 0x000000360000-0x0000007e0000 : "rootfs_data"
[    0.953593] 0x0000007e0000-0x0000007ff000 : "FIS directory"
[    0.962558] 0x0000007ff000-0x000000800000 : "RedBoot config"
[    0.991713] libphy: IXP4xx MII Bus: probed
[    0.997952] eth0: MII PHY 32 on NPE-B
[    1.003892] eth1: MII PHY 3 on NPE-C
[    1.010982] i2c /dev entries driver
[    1.017454] ixp4xx_wdt: timer heartbeat 60 sec
[    1.024165] TCP: cubic registered
[    1.027506] NET: Registered protocol family 17
[    1.032206] 8021q: 802.1Q VLAN Support v1.8
[    1.036533] XScale DSP coprocessor detected.
[    1.043076] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    1.060337] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.068017] Freeing unused kernel memory: 112K (c02a0000 - c02bc000)
procd: Console is alive
procd: - watchdog -
procd: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
kmod: ran 1 iterations
[   12.206366] jffs2: notice: (780) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 7 of xref (0 dead, 2 orphan) found.
block: extroot: no root or overlay mount defined
jffs2 is ready
jffs2 is ready
[   20.376752] jffs2: notice: (777) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 7 of xref (0 dead, 2 orphan) found.
switching to overlay
procd: - early -
procd: - watchdog -
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[   30.578678] NET: Registered protocol family 10
[   30.638961] zram: Created 1 device(s) ...
[   30.658758] nf_conntrack version 0.5.0 (206 buckets, 824 max)
[   30.698813] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   30.738719] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
[   30.746664] Backport generated by backports.git backports-20140320-37-g5c33da0
[   30.782167] ip_tables: (C) 2000-2006 Netfilter Core Team
[   30.951195] xt_time: kernel timezone is -0000
[   31.021182] cfg80211: Calling CRDA to update world regulatory domain
[   31.038459] cfg80211: World regulatory domain updated:
[   31.043628] cfg80211:  DFS Master region: unset
[   31.047982] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   31.057796] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   31.065818] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   31.073836] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   31.081855] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
[   31.089961] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   31.098053] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   31.106154] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   31.114173] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   31.195516] PPP generic driver version 2.4.2
[   31.204953] NET: Registered protocol family 24
[   36.885141] Adding 6140k swap on /dev/zram0.  Priority:-1 extents:1 across:6140k SS
procd: - init complete -
[   47.952187] NPE-B: firmware's license can be found in /usr/share/doc/LICENSE.IPL
[   47.959736] NPE-B: firmware functionality 0x2, revision 0x2:1
[   47.978949] device eth0 entered promiscuous mode
[   47.985422] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by kaloz

  • Resolution set to invalid
  • Status changed from new to closed

You have to use "exec" instead of "go", otherwise the bootloader won't fill the ATAGS for the kernel.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.