Hello,
I’m just a new user for microblaze, just a few weeks experienced. I successfully set up a Spartan2DSP1800 board with Petalinux v0.30. But due to Xilinx_IIC driver problems, I had to migrate to petalinux v0.40 release.
I configured the v0.40 kernel exactly with the same features as for v0.30, checked line by line during the kernel configuration, but when starting up, it gets hang after showing: “Unable to allocate RAM for process text/data, errno 12”
This is the Serial port information when the Petalinux v0.40 kernel is loaded:
Booting...Done!
Done!
Found romfs @ 0x881e308c (0x00147000)
#### klimit 881fd000 ####
Moving 0x00147000 bytes from 0x881e308c to 0x881fcd04
New klimit: 0x88344000
Linux version 2.6.20-uc0 (avnet@CentOS) (gcc version 3.4.1 ( PetaLinux 0.20 Build -rc1 050607 )) #14 PREEMPT Wed May 27 12:54:24 UTC 2009setup_cpuinfo: initialisingsetup_cpuinfo: No PVR support in CPU. Using static compile-time infoset_cpuinfo_static:
Using static CPU info.setup_memory: max_mapnr: 0x8ffffsetup_memory: min_low_pfn: 0x88000setup_memory: max_low_pfn: 0x8000On node 0 totalpages: 32768 DMA zone: 256 pages used for memmap DMA zone: 0 pages reserved DMA zone: 32512 pages, LIFO batch:7 Normal
zone: 0 pages used for memmapBuilt 1 zonelists. Total pages: 32512Kernel command line: ¹ôÿ¼hOPB INTC #0 at 0x81800000PID hash table entries: 512 (order: 9, 2048 bytes)TIMER at 0x83C00000disabling early consoleDentry cache hash table entries: 16384 (order:
4, 65536 bytes)Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)Memory: 126464k/131072k availableCalibrating delay loop... 30.82 BogoMIPS (lpj=154112)Mount-cache hash table entries: 512NET: Registered protocol family 16NET: Registered protocol family
2IP route cache hash table entries: 1024 (order: 0, 4096 bytes)TCP established hash table entries: 4096 (order: 2, 16384 bytes)TCP bind hash table entries: 2048 (order: 1, 8192 bytes)TCP: Hash tables configured (established 4096 bind 2048)TCP reno registeredio
scheduler noop registeredio scheduler anticipatory registeredio scheduler deadline registeredio scheduler cfq registered (default)xgpio0 #0 at 0x81400000 mapped to 0x81400000 device: 10,185 not using IRQxgpio1 #1 at 0x81420000 mapped to 0x81420000 device: 10,186
not using IRQuartlite.0: ttyUL0 at MMIO 0x84000000 (irq = 2) is a uartliteuartlite.1: ttyUL1 at MMIO 0x84010000 (irq = 0) is a uartliteRAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksizenbd: registered device at major 43eth0: using fifo mode.eth0:
No PHY detected. Assuming a PHY at address 0.eth0: Xilinx EMACLite #0 at 0x81000000 mapped to 0x81000000, irq=4uclinux[mtd]: RAM probe address=0x881fcd04 size=0x147000Creating 1 MTD partitions on "RAM":0x00000000-0x00147000 : "ROMfs"uclinux[mtd]: set ROMfs
to be root filesystem index=0TCP cubic registeredNET: Registered protocol family 1NET: Registered protocol family 17VFS: Mounted root (cramfs filesystem) readonly.Freeing unused kernel memory: 84k freedAllocation of length 1216776 from process 12 failedDMA
per-cpu:CPU 0: Hot: hi: 42, btch: 7 usd: 20 Cold: hi: 14, btch: 3 usd: 0Active:0 inactive:28 dirty:0 writeback:0 unstable:0 free:31216 slab:370 mapped:0 pagetables:0DMA free:124864kB min:1440kB low:1800kB high:2160kB active:0kB inactive:112kB
present:130048kB pages_scanned:0 all_unreclaimable? nolowmem_reserve[]: 0 0DMA: 0*4kB 0*8kB 0*16kB 0*32kB 1*64kB 1*128kB 1*256kB 1*512kB 1*1024kB 2*2048kB 29*4096kB = 124864kBUnable to allocate RAM for process text/data, errno 12
This was the Serial port information when the Petalinux v0.30 kernel is loaded:
Booting...Done!
Done!
Found romfs @ 0x881e2000 (0x0015b000)
#### klimit 881fb000 ####
Moving 0x0015b000 bytes from 0x881e2000 to 0x881facf8
New klimit: 0x88356000
Linux version 2.6.20-uc0 (avnet@CentOS) (gcc version 3.4.1 ( PetaLinux 0.20 Build -rc1 050607 )) #33 PREEMPT Wed May 27 12:54:02 UTC 2009
setup_cpuinfo: initialising
setup_cpuinfo: No PVR support in CPU. Using static compile-time info
set_cpuinfo_static: Using static CPU info.
setup_memory: max_mapnr: 0x8ffff
setup_memory: min_low_pfn: 0x88000
setup_memory: max_low_pfn: 0x8000
On node 0 totalpages: 32768
DMA zone: 256 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 32512 pages, LIFO batch:7
Normal zone: 0 pages used for memmap
Built 1 zonelists. Total pages: 32512
Kernel command line: ¹ôÿ¼h
OPB INTC #0 at 0x81800000
PID hash table entries: 512 (order: 9, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 126364k/131072k available
Calibrating delay loop... 30.82 BogoMIPS (lpj=154112)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 4096 bind 2048)
TCP reno registered
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
xgpio0 #0 at 0x81400000 mapped to 0x81400000 device: 10,185 not using IRQ
xgpio1 #1 at 0x81420000 mapped to 0x81420000 device: 10,186 not using IRQ
uartlite.0: ttyS0 at MMIO 0x84000000 (irq = 2) is a uartlite
uartlite.1: ttyS1 at MMIO 0x84010000 (irq = 0) is a uartlite
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
nbd: registered device at major 43
eth0: using fifo mode.
eth0: No PHY detected. Assuming a PHY at address 0.
eth0: Xilinx EMACLite #0 at 0x81000000 mapped to 0x81000000, irq=4
uclinux[mtd]: RAM probe address=0x881facf8 size=0x15b000
Creating 1 MTD partitions on "RAM":
0x00000000-0x0015b000 : "ROMfs"
uclinux[mtd]: set ROMfs to be root filesystem index=0
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
VFS: Mounted root (cramfs filesystem) readonly.
Freeing unused kernel memory: 88k freed
Mounting proc:
Mounting var:
Populating /var:
Running local start scripts.
Mounting /etc/config:
Populating /etc/config:
flatfsd: Nonexistent or bad flatfs (-48), creating new one...
flatfsd: Failed to write flatfs (-48): No such device
flatfsd: Created 5 configuration files (366 bytes)
Mounting sysfs:
Setting hostname:
Setting up interface lo:
Setting up interface eth0:
Starting portmap:
Starting thttpd:
uclinux login:
I don’t know where to find out the solution…
Thank you in advance!
Sergi