Squonk--with your code suggested in post 160, I successfully compiled the firmware. I loaded it with tftp on the device without errors, but when I boot, it terminates with this:
[ 4.390000] Out of memory: Kill process 205 (hotplug2) score 0 or sacrifice child
[ 4.410000] Killed process 278 (hotplug2) total-vm:844kB, anon-rss:104kB, file-rss:0kB
Here is the whole boot log
U-Boot 1.1.7 (Dec 13 2011 - 13:49:42)
Board: Ralink APSoC DRAM: 8 MB
relocate_code Pointer at: 807b4000
spi_wait_nsec: 42
spi device id: 7f 9d 46 7f 9d (9d467f9d)
Warning: un-recognized chip ID, please update bootloader!
raspi_read: from:30000 len:1000
.raspi_read: from:30000 len:1000
.============================================
Ralink UBoot Version: 3.6.0.0
--------------------------------------------
ASIC 5350_MP (Port5<->None)
DRAM_CONF_FROM: Boot-Strapping
DRAM_TYPE: SDRAM
DRAM_SIZE: 64 Mbits
DRAM_WIDTH: 16 bits
DRAM_TOTAL_WIDTH: 16 bits
TOTAL_MEMORY_SIZE: 8 MBytes
Flash component: SPI Flash
Date:Dec 13 2011 Time:13:49:42
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:128, ways:4, linesz:32 ,total:16384
##### The CPU freq = 360 MHZ ####
estimate memory size =8 Mbytes
raspi_read: from:40028 len:6
.
raspi_read: from:0 len:30004
....*************Is_update = 0 plat = 1**************
Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP. 0
3: System Boot system code via Flash.
## Booting image at bc050000 ...
raspi_read: from:50000 len:40
. Image Name: MIPS OpenWrt Linux-3.6.11
Created: 2013-01-10 23:47:09 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 838146 Bytes = 818.5 kB
Load Address: 80000000
Entry Point: 80000000
raspi_read: from:50040 len:cca02
............. Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 8
Starting kernel ...
[ 0.000000] Linux version 3.6.11 (lb@lb-atom1) (gcc version 4.6.4 20121106 (prerelease) (Linaro GCC 4.6-2012.11) ) #1 Thu Jan 10 19:46:50 AST 2013
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 0001964c (MIPS 24KEc)
[ 0.000000] Ralink RT5350 id:1 rev:3 running at 360.00 MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 00800000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x007fffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x007fffff]
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping off. Total pages: 2032
[ 0.000000] Kernel command line: board=MPR-A1 console=ttyS1,57600 mtdparts=spi0.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,896k(kernel),2880k(rootfs),3776k@0x50000(firmware) rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 32 (order: -5, 128 bytes)
[ 0.000000] Dentry cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] __ex_table already sorted, skipping sort
[ 0.000000] Writing ErrCtl register=000492a0
[ 0.000000] Readback ErrCtl register=000492a0
[ 0.000000] Memory: 5452k/8192k available (1931k kernel code, 2740k reserved, 312k data, 176k init, 0k highmem)
[ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:48
[ 0.000000] console [ttyS1] enabled, bootconsole disabled
[ 0.000000] console [ttyS1] enabled, bootconsole disabled
[ 0.010000] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)
[ 0.080000] pid_max: default: 32768 minimum: 301
[ 0.080000] Mount-cache hash table entries: 512
[ 0.090000] NET: Registered protocol family 16
[ 0.100000] MIPS: machine is HAME MPR-A1
[ 0.130000] bio: create slab <bio-0> at 0
[ 0.140000] Switching to clocksource MIPS
[ 0.150000] NET: Registered protocol family 2
[ 0.160000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.180000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[ 0.190000] TCP: Hash tables configured (established 512 bind 512)
[ 0.200000] TCP: reno registered
[ 0.210000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.220000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.230000] NET: Registered protocol family 1
[ 0.280000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.290000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.320000] msgmni has been set to 16
[ 0.320000] io scheduler noop registered
[ 0.330000] io scheduler deadline registered (default)
[ 0.340000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.360000] serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A
[ 0.370000] serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
[ 0.390000] ramips-spi ramips-spi.0: master is unqueued, this is deprecated
[ 0.410000] m25p80 spi0.0: pm25lq032 (4096 Kbytes)
[ 0.420000] 6 cmdlinepart partitions found on MTD device spi0.0
[ 0.430000] Creating 6 MTD partitions on "spi0.0":
[ 0.440000] 0x000000000000-0x000000030000 : "u-boot"
[ 0.450000] 0x000000030000-0x000000040000 : "u-boot-env"
[ 0.460000] 0x000000040000-0x000000050000 : "factory"
[ 0.480000] 0x000000050000-0x000000130000 : "kernel"
[ 0.490000] 0x000000130000-0x000000400000 : "rootfs"
[ 0.510000] mtd: partition "rootfs" set to be root filesystem
[ 0.520000] mtd: partition "rootfs_data" created automatically, ofs=340000, len=C0000
[ 0.530000] 0x000000340000-0x000000400000 : "rootfs_data"
[ 0.550000] 0x000000050000-0x000000400000 : "firmware"
[ 0.570000] ramips-wdt ramips-wdt: timeout value must be 0 < timeout <= 35, using 35
[ 0.590000] TCP: cubic registered
[ 0.600000] NET: Registered protocol family 17
[ 0.610000] 8021q: 802.1Q VLAN Support v1.8
[ 0.640000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[ 0.660000] Freeing unused kernel memory: 176k freed
[ 3.730000] hotplug2 invoked oom-killer: gfp_mask=0x200da, order=0, oom_adj=0, oom_score_adj=0
[ 3.740000] Call Trace:[<801de3a8>] 0x801de3a8
[ 3.750000] [<801de3a8>] 0x801de3a8
[ 3.760000] [<801decbc>] 0x801decbc
[ 3.770000] [<8004df94>] 0x8004df94
[ 3.770000] [<80059f58>] 0x80059f58
[ 3.780000] [<8004e684>] 0x8004e684
[ 3.790000] [<800515ac>] 0x800515ac
[ 3.790000] [<8006398c>] 0x8006398c
[ 3.800000] [<800628e4>] 0x800628e4
[ 3.810000] [<8000a624>] 0x8000a624
[ 3.810000] [<80065688>] 0x80065688
[ 3.820000] [<800657f4>] 0x800657f4
[ 3.830000] [<8000a590>] 0x8000a590
[ 3.840000] [<80035e3c>] 0x80035e3c
[ 3.840000] [<80001a08>] 0x80001a08
[ 3.850000] [<800019c0>] 0x800019c0
[ 3.860000]
[ 3.860000] Mem-Info:
[ 3.860000] Normal per-cpu:
[ 3.870000] CPU 0: hi: 0, btch: 1 usd: 0
[ 3.880000] active_anon:200 inactive_anon:0 isolated_anon:0
[ 3.880000] active_file:8 inactive_file:17 isolated_file:0
[ 3.880000] unevictable:0 dirty:0 writeback:0 unstable:0
[ 3.880000] free:90 slab_reclaimable:60 slab_unreclaimable:521
[ 3.880000] mapped:0 shmem:0 pagetables:51 bounce:0
[ 3.930000] Normal free:360kB min:360kB low:448kB high:540kB active_anon:800kB inactive_anon:0kB active_file:32kB inactive_file:68kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:8128kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:240kB slab_unreclaimable:2084kB kernel_stack:320kB pagetables:204kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:4412 all_unreclaimable? yes
[ 4.010000] lowmem_reserve[]: 0 0
[ 4.010000] Normal: 0*4kB 1*8kB 0*16kB 1*32kB 1*64kB 0*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 360kB
[ 4.040000] 25 total pagecache pages
[ 4.040000] 0 pages in swap cache
[ 4.050000] Swap cache stats: add 0, delete 0, find 0/0
[ 4.060000] Free swap = 0kB
[ 4.070000] Total swap = 0kB
[ 4.070000] 2048 pages RAM
[ 4.080000] 641 pages reserved
[ 4.080000] 458 pages shared
[ 4.090000] 1080 pages non-shared
[ 4.100000] [ pid ] uid tgid total_vm rss nr_ptes swapents oom_score_adj name
[ 4.110000] [ 205] 0 205 211 26 3 0 0 hotplug2
[ 4.130000] [ 278] 0 278 211 26 3 0 0 hotplug2
[ 4.140000] [ 279] 0 279 143 1 2 0 0 hotplug-call
[ 4.160000] [ 280] 0 280 211 26 3 0 0 hotplug2
[ 4.180000] [ 281] 0 281 211 26 3 0 0 hotplug2
[ 4.190000] [ 282] 0 282 211 26 3 0 0 hotplug2
[ 4.210000] [ 283] 0 283 143 1 2 0 0 hotplug-call
[ 4.230000] [ 284] 0 284 143 1 2 0 0 hotplug-call
[ 4.240000] [ 285] 0 285 143 1 2 0 0 hotplug-call
[ 4.260000] [ 286] 0 286 211 26 3 0 0 hotplug2
[ 4.280000] [ 287] 0 287 211 26 3 0 0 hotplug2
[ 4.290000] [ 288] 0 288 211 26 3 0 0 hotplug2
[ 4.310000] [ 289] 0 289 211 26 3 0 0 hotplug2
[ 4.330000] [ 290] 0 290 211 26 3 0 0 hotplug2
[ 4.340000] [ 291] 0 291 211 26 3 0 0 hotplug2
[ 4.360000] [ 292] 0 292 211 26 3 0 0 hotplug2
[ 4.380000] [ 293] 0 293 211 26 3 0 0 hotplug2
[ 4.390000] Out of memory: Kill process 205 (hotplug2) score 0 or sacrifice child
[ 4.410000] Killed process 278 (hotplug2) total-vm:844kB, anon-rss:104kB, file-rss:0kB
This is similar to your post 87 boot log up to here
[ 0.650000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[ 0.660000] Freeing unused kernel memory: 176k freed
After this it goes off, with hotplug2 apparently detecting an error.
Any ideas about what may have gone wrong? (I'm awaiting my 8mb flash modules, so no great loss if this is a bust--it was experimental).
(Last edited by lizby on 11 Jan 2013, 21:11)