Hello,
I am trying to boot the kernel from Nand on the OMAP-L138 EVM board. I am using the kernel image from the image directory in the 03.21.00.04 psp, and the arago##.gz file downloaded for filesystem. (all images are without any changes of my own)
It seems that the kernel starts OK, but then it failes on filesystem: "RAMDISK: gzip image found at block 0
swapper invoked oom-killer: gfp_mask=0x200d0, order=0, oom_adj=0, oom_score_adj=0" (complete log is shown below).
I have checked and rechecked the steps, the size and the arguments, tried several things, but nothing helped...
I would appreciate your help,
Regards,
Ran
OMAP-L138 initialization passed!
Booting TI User Boot Loader
UBL Version: 1.65
UBL Flashtype: SPI
Starting SPI Memory Copy...
Valid magicnum, 0x55424CBB, found at offset 0x00010000.
DONE
Jumping to entry point at 0xC1080000.
calling NS16550_init on COM1 (UART2 - console)
U-Boot 2009.11.01.08DD (Jul 11 2011 - 13:18:25)
I2C: ready
DRAM: 64 MB
NAND: 512 MiB
In: serial
Out: serial
Err: serial
ARM Clock : 300000000 Hz
DDR Clock : 150000000 Hz
Net: phy_id=7c0f1
Ethernet PHY: GENERIC @ 0x00
Hit any key to stop autoboot: 0
U-Boot > pri
bootdelay=3
baudrate=115200
bootfile="uImage"
ethaddr=11:12:13:14:15:16
filesize=B5842F
fileaddr=C1180000
ipaddr=192.168.3.11
serverip=192.168.3.10
bootcmd=nand read.e 0xc1180000 0xa00000 0xc00000; nboot.e 0xc0700000 0 0x200000;bootm
bootargs=mem=32M console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0xc1180000,12M eth=11:12:13:14:15:16 ip=192.168.3.11:192.168.3.10:192.168.3.10:255.255.0.0:XXX:eth0:on rootdelay=10
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2009.11.01.08DD (Jul 11 2011 - 13:18:25)
Environment size: 508/65532 bytes
U-Boot >
U-Boot >
U-Boot >
U-Boot >
U-Boot > tftp 0xc0700000 uImage
Using device
TFTP from server 192.168.3.10; our IP address is 192.168.3.11
Filename 'uImage'.
Load address: 0xc0700000
Loading: #################################################################
#################################################################
##############
done
Bytes transferred = 2105768 (2021a8 hex)
U-Boot > nand erase 0x600000 0x220000
NAND erase: device 0 offset 0x600000, size 0x220000
Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
nand_read_bbt: Bad block at 0x000008d40000
nand_read_bbt: Bad block at 0x000014c20000
nand_read_bbt: Bad block at 0x000017520000
nand_read_bbt: Bad block at 0x000017640000
nand_read_bbt: Bad block at 0x000017b40000
nand_read_bbt: Bad block at 0x000019480000
nand_read_bbt: Bad block at 0x00001b2e0000
Erasing at 0x800000 -- 100% complete.
OK
U-Boot > nand write.e 0xc0700000 0x600000 0x220000
NAND write: device 0 offset 0x600000, size 0x220000
2228224 bytes written: OK
U-Boot > tftp 0xc1180000 arago-demo-image-da850-omapl138-evm.tar.gz
Using device
TFTP from server 192.168.3.10; our IP address is 192.168.3.11
Filename 'arago-demo-image-da850-omapl138-evm.tar.gz'.
Load address: 0xc1180000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###############################
done
Bytes transferred = 11895855 (b5842f hex)
U-Boot > nand erase 0xa00000 0xc00000
NAND erase: device 0 offset 0xa00000, size 0xc00000
Erasing at 0x15e0000 -- 100% complete.
OK
U-Boot > nand write.e 0xc1180000 0xa00000 0xc00000
NAND write: device 0 offset 0xa00000, size 0xc00000
12582912 bytes written: OK
U-Boot > NAND erase: device 0 offset 0xa00000, size 0xc00000
Unknown command 'NAND' - try 'help'
U-Boot > setenv bootcmd 'nand read.e 0xc1180000 0xa00000 0xc00000; nboot.e 0xc0700000 0 0x200000;bootm'
U-Boot > setenv bootargs 'mem=32M console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0xc1180000,12M eth=11:12:13:14:15:16 ip=192.168.3.11:192.168.3.10:192.168.3.10:255.255.0.0:XXX:eth0:on rootdelay=10'
U-Boot > saveenv
Saving Environment to SPI Flash...
Erasing SPI flash...Writing to SPI flash...done
U-Boot > boot
NAND read: device 0 offset 0xa00000, size 0xc00000
12582912 bytes read: OK
Loading from NAND 512MiB 3,3V 8-bit, offset 0x200000
Image Name: Linux-2.6.37+
Created: 2011-04-21 13:39:32 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2105704 Bytes = 2 MB
Load Address: c0008000
Entry Point: c0008000
## Booting kernel from Legacy Image at c0700000 ...
Image Name: Linux-2.6.37+
Created: 2011-04-21 13:39:32 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2105704 Bytes = 2 MB
Load Address: c0008000
Entry Point: c0008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Linux version 2.6.37+ (x0029463@psplinux051) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #1 PREEMPT Thu Apr 21 19:09:31 IST 2011
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: DaVinci DA850/OMAP-L138/AM18x EVM
Memory policy: ECC disabled, Data cache writeback
DaVinci da850/omap-l138 variant 0x0
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: mem=32M console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0xc1180000,12M eth=11:12:13:14:15:16 ip=192.168.3.11:192.168.3.10:192.168.3.10:255.255.0.0:XXX:eth0:on rootdelay=10
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 15688k/15688k available, 17080k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xff000000 - 0xffe00000 ( 14 MB)
vmalloc : 0xc2800000 - 0xfea00000 ( 962 MB)
lowmem : 0xc0000000 - 0xc2000000 ( 32 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc002e000 ( 152 kB)
.text : 0xc002e000 - 0xc0415000 (3996 kB)
.data : 0xc0416000 - 0xc043ca80 ( 155 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptable hierarchical RCU implementation.
RCU-based detection of stalled CPUs is disabled.
Verbose stalled-CPUs detection is disabled.
NR_IRQS:245
Console: colour dummy device 80x30
Calibrating delay loop... 149.50 BogoMIPS (lpj=747520)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
DaVinci: 144 gpio irqs
regulator: core version 0.5
regulator: dummy:
NET: Registered protocol family 16
WARNING: both McASP and McBSP are enabled, but they share pins.
Only McASP will work. If you want McBSP support, disable McASP.
da850_evm_init: eHRPWM module 0 cannot be used since it is being used by MII interface
da850_evm_init: eHRPWM module1 outputA cannot be used since it is being used by LCD
da850_evm_init: eHRPWM module1 outputB cannot be used since it is being used by spi1
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pca953x 1-0020: interrupt support not compiled in
DA850/OMAP-L138 EVM UI card detected
pca953x 1-0021: interrupt support not compiled in
regulator: VDCDC1: 3200 <--> 3300 mV at 3300 mV
regulator: VDCDC2: 1750 <--> 3300 mV at 3300 mV
regulator: VDCDC3: 950 <--> 1350 mV at 1200 mV
regulator: LDO1: 1800 mV
regulator: LDO2: 1150 <--> 1300 mV at 1200 mV
i2c-gpio i2c-gpio.1: using pins 20 (SDA) and 21 (SCL)
Advanced Linux Sound Architecture Driver Version 1.0.23.
Switching to clocksource timer0_1
musb-hdrc: version 6.0, host, debug=0
musb-hdrc musb-hdrc: dma type: dma-cppi41
Waiting for USB PHY clock good...
musb-hdrc musb-hdrc: MUSB HDRC host driver
musb-hdrc musb-hdrc: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
musb-hdrc musb-hdrc: USB Host mode controller at fee00000 using DMA, IRQ 58
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 12288K
EMAC: MII PHY configured, RMII PHY will not be functional
McBSP:Probed McBSP1
JFFS2 version 2.2. (NAND) ?© 2001-2006 Red Hat, Inc.
msgmni has been set to 54
io scheduler noop registered (default)
da8xx_lcdc da8xx_lcdc.0: GLCD: Found Sharp_LK043T1DG01 panel
Console: switching to colour frame buffer device 60x34
Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a AR7
serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a AR7
serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a AR7
console [ttyS2] enabled
brd: module loaded
at24 1-0050: 32768 byte 24c256 EEPROM (writable)
ahci ahci: forcing PORTS_IMPL to 0x1
ahci ahci: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
ahci ahci: flags: ncq sntf pm led clo only pmp pio slum part ccc
scsi0 : ahci_platform
ata1: SATA max UDMA/133 mmio [mem 0x01e18000-0x01e19fff] port 0x100 irq 67
spi_davinci spi_davinci.1: DMA: supported
spi_davinci spi_davinci.1: DMA: RX channel: 18, TX channel: 19, event queue: 0
m25p80 spi1.0: m25p64 (8192 Kbytes)
Creating 6 MTD partitions on "m25p80":
0x000000000000-0x000000010000 : "UBL"
0x000000010000-0x000000090000 : "U-Boot"
0x000000090000-0x0000000a0000 : "U-Boot-Env"
0x0000000a0000-0x000000320000 : "Kernel"
0x000000320000-0x000000720000 : "Filesystem"
0x0000007f0000-0x000000800000 : "MAC-Address"
Read MAC addr from SPI Flash: ff:ff:ff:ff:ff:ff
spi_davinci spi_davinci.1: Controller at 0xfef0e000
davinci_mdio davinci_mdio.0: davinci mdio revision 1.5
davinci_mdio davinci_mdio.0: detected phy mask fffffffe
davinci_mdio.0: probed
davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver SMSC LAN8710/LAN8720
console [netcon0] enabled
netconsole: network logging started
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci ohci.0: DA8xx OHCI
ohci ohci.0: new USB bus registered, assigned bus number 2
Waiting for USB PHY clock good...
ohci ohci.0: irq 59, io mem 0x01e25000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
input: gpio-keys-polled as /devices/platform/gpio-keys-polled.0/input/input0
input: gpio-keys-polled as /devices/platform/gpio-keys-polled.1/input/input1
input: TPS6507x Touchscreen as /devices/platform/i2c-gpio.1/i2c-1/1-0048/input/input2
ata1: SATA link down (SStatus 0 SControl 300)
omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
omap_rtc: RTC power up reset detected
i2c /dev entries driver
watchdog watchdog: heartbeat 60 sec
cpuidle: using governor ladder
cpuidle: using governor menu
davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
1-0018 supply IOVDD not found, using dummy regulator
1-0018 supply DVDD not found, using dummy regulator
1-0018 supply AVDD not found, using dummy regulator
1-0018 supply DRVDD not found, using dummy regulator
asoc: tlv320aic3x-hifi <-> davinci-mcasp.0 mapping ok
ALSA device list:
#0: DA850/OMAP-L138 EVM
TCP cubic registered
NET: Registered protocol family 17
regulator_init_complete: incomplete constraints, leaving LDO2 on
regulator_init_complete: incomplete constraints, leaving LDO1 on
regulator_init_complete: incomplete constraints, leaving VDCDC3 on
regulator_init_complete: incomplete constraints, leaving VDCDC2 on
regulator_init_complete: incomplete constraints, leaving VDCDC1 on
davinci_emac_probe: using random MAC addr: 7e:dd:23:41:93:1a
omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
davinci_mdio davinci_mdio.0: resetting idled controller
net eth0: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=0:00, id=7c0f1)
IP-Config: Complete:
device=eth0, addr=192.168.3.11, mask=255.255.0.0, gw=192.168.3.10,
host=XXX, domain=, nis-domain=(none),
bootserver=192.168.3.10, rootserver=192.168.3.10, rootpath=
Waiting 10sec before mounting root device...
PHY: 0:00 - Link is Up - 100/Full
RAMDISK: gzip image found at block 0
swapper invoked oom-killer: gfp_mask=0x200d0, order=0, oom_adj=0, oom_score_adj=0
Backtrace:
[<c003271c>] (dump_backtrace+0x0/0x114) from [<c0320be0>] (dump_stack+0x18/0x1c)
r7:00000000 r6:00000000 r5:c0418fe8 r4:c0c24000
[<c0320bc8>] (dump_stack+0x0/0x1c) from [<c007fc40>] (dump_header+0x88/0x198)
[<c007fbb8>] (dump_header+0x0/0x198) from [<c008058c>] (out_of_memory+0x260/0x38c)
[<c008032c>] (out_of_memory+0x0/0x38c) from [<c0083b08>] (__alloc_pages_nodemask+0x424/0x51c)
[<c00836e4>] (__alloc_pages_nodemask+0x0/0x51c) from [<c007d5e8>] (grab_cache_page_write_begin+0x58/0x98)
[<c007d590>] (grab_cache_page_write_begin+0x0/0x98) from [<c00d64e4>] (block_write_begin+0x28/0x80)
[<c00d64bc>] (block_write_begin+0x0/0x80) from [<c00db92c>] (blkdev_write_begin+0x38/0x44)
r6:00b6d000 r5:000012c5 r4:00001000
[<c00db8f4>] (blkdev_write_begin+0x0/0x44) from [<c007c5e4>] (generic_file_buffered_write+0xe8/0x230)
[<c007c4fc>] (generic_file_buffered_write+0x0/0x230) from [<c007e72c>] (__generic_file_aio_write+0x4c8/0x51c)
[<c007e264>] (__generic_file_aio_write+0x0/0x51c) from [<c00dac00>] (blkdev_aio_write+0x44/0xa4)
[<c00dabbc>] (blkdev_aio_write+0x0/0xa4) from [<c00ae254>] (do_sync_write+0xa0/0xec)
r8:c06b0000 r7:c0c25eb0 r6:c0c25eb0 r5:c0567400 r4:c0c25de0
[<c00ae1b4>] (do_sync_write+0x0/0xec) from [<c00aecd8>] (vfs_write+0xb8/0x144)
r6:c06b0000 r5:00008000 r4:c0567400
[<c00aec20>] (vfs_write+0x0/0x144) from [<c00aee28>] (sys_write+0x44/0x70)
r8:c06b0000 r7:00008000 r6:c0567400 r5:00000000 r4:00b6bd3b
[<c00aede4>] (sys_write+0x0/0x70) from [<c00093a8>] (compr_flush+0x24/0x64)
r8:00000000 r7:c06b8000 r6:00000000 r5:c043cae8 r4:00008000
[<c0009384>] (compr_flush+0x0/0x64) from [<c001874c>] (gunzip+0x28c/0x35c)
r5:c05515c0 r4:00008000
[<c00184c0>] (gunzip+0x0/0x35c) from [<c0009698>] (rd_load_image+0x2b0/0x594)
[<c00093e8>] (rd_load_image+0x0/0x594) from [<c0009a94>] (initrd_load+0x40/0x330)
[<c0009a54>] (initrd_load+0x0/0x330) from [<c00091a8>] (prepare_namespace+0xcc/0x1c8)
r5:c0025f24 r4:c0025f34
[<c00090dc>] (prepare_namespace+0x0/0x1c8) from [<c00084c0>] (kernel_init+0x114/0x154)
r5:c00083ac r4:c043ca80
[<c00083ac>] (kernel_init+0x0/0x154) from [<c0047054>] (do_exit+0x0/0x6e0)
r5:c00083ac r4:00000000
Mem-info:
DMA per-cpu:
CPU 0: hi: 0, btch: 1 usd: 0
active_anon:0 inactive_anon:0 isolated_anon:0
active_file:0 inactive_file:14 isolated_file:0
unevictable:3072 dirty:9 writeback:1 unstable:0
free:180 slab_reclaimable:32 slab_unreclaimable:329
mapped:0 shmem:0 pagetables:0 bounce:0
DMA free:720kB min:720kB low:900kB high:1080kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:56kB unevictable:12288kB isolated(anon):0kB isolated(file):0kB present:32512kB mlocked:0kB dirty:36kB writeback:4kB mapped:0kB shmem:0kB slab_reclaimable:128kB slab_unreclaimable:1316kB ker
nel_stack:280kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:96 all_unreclaimable? yes
lowmem_reserve[]: 0 0 0
DMA: 14*4kB 1*8kB 3*16kB 1*32kB 3*64kB 3*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 720kB
3086 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap = 0kB
Total swap = 0kB
8192 pages of RAM
215 free pages
1198 reserved pages
262 slab pages
24 pages shared
0 pages swap cached
[ pid ] uid tgid total_vm rss cpu oom_adj oom_score_adj name
Kernel panic - not syncing: Out of memory and no killable processes...
Backtrace:
[<c003271c>] (dump_backtrace+0x0/0x114) from [<c0320be0>] (dump_stack+0x18/0x1c)
r7:00000000 r6:00000000 r5:c0418fe8 r4:c043d050
[<c0320bc8>] (dump_stack+0x0/0x1c) from [<c0320c5c>] (panic+0x78/0x19c)
[<c0320be4>] (panic+0x0/0x19c) from [<c00805bc>] (out_of_memory+0x290/0x38c)
r3:00000000 r2:00000000 r1:c04272c4 r0:c03c0b9a
[<c008032c>] (out_of_memory+0x0/0x38c) from [<c0083b08>] (__alloc_pages_nodemask+0x424/0x51c)
[<c00836e4>] (__alloc_pages_nodemask+0x0/0x51c) from [<c007d5e8>] (grab_cache_page_write_begin+0x58/0x98)
[<c007d590>] (grab_cache_page_write_begin+0x0/0x98) from [<c00d64e4>] (block_write_begin+0x28/0x80)
[<c00d64bc>] (block_write_begin+0x0/0x80) from [<c00db92c>] (blkdev_write_begin+0x38/0x44)
r6:00b6d000 r5:000012c5 r4:00001000
[<c00db8f4>] (blkdev_write_begin+0x0/0x44) from [<c007c5e4>] (generic_file_buffered_write+0xe8/0x230)
[<c007c4fc>] (generic_file_buffered_write+0x0/0x230) from [<c007e72c>] (__generic_file_aio_write+0x4c8/0x51c)
[<c007e264>] (__generic_file_aio_write+0x0/0x51c) from [<c00dac00>] (blkdev_aio_write+0x44/0xa4)
[<c00dabbc>] (blkdev_aio_write+0x0/0xa4) from [<c00ae254>] (do_sync_write+0xa0/0xec)
r8:c06b0000 r7:c0c25eb0 r6:c0c25eb0 r5:c0567400 r4:c0c25de0
[<c00ae1b4>] (do_sync_write+0x0/0xec) from [<c00aecd8>] (vfs_write+0xb8/0x144)
r6:c06b0000 r5:00008000 r4:c0567400
[<c00aec20>] (vfs_write+0x0/0x144) from [<c00aee28>] (sys_write+0x44/0x70)
r8:c06b0000 r7:00008000 r6:c0567400 r5:00000000 r4:00b6bd3b
[<c00aede4>] (sys_write+0x0/0x70) from [<c00093a8>] (compr_flush+0x24/0x64)
r8:00000000 r7:c06b8000 r6:00000000 r5:c043cae8 r4:00008000
[<c0009384>] (compr_flush+0x0/0x64) from [<c001874c>] (gunzip+0x28c/0x35c)
r5:c05515c0 r4:00008000
[<c00184c0>] (gunzip+0x0/0x35c) from [<c0009698>] (rd_load_image+0x2b0/0x594)
[<c00093e8>] (rd_load_image+0x0/0x594) from [<c0009a94>] (initrd_load+0x40/0x330)
[<c0009a54>] (initrd_load+0x0/0x330) from [<c00091a8>] (prepare_namespace+0xcc/0x1c8)
r5:c0025f24 r4:c0025f34
[<c00090dc>] (prepare_namespace+0x0/0x1c8) from [<c00084c0>] (kernel_init+0x114/0x154)
r5:c00083ac r4:c043ca80
[<c00083ac>] (kernel_init+0x0/0x154) from [<c0047054>] (do_exit+0x0/0x6e0)
r5:c00083ac r4:00000000