[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] uClinux works, but...



Hi everyone,

John, finally uClinux works in my board. The problem
was the use or hardware multiplier. Virtex-E don't
have embedded multipliers, so... :)

Also, i change the following kernel parameters:

SystemAce driver (CONFIG_XILINX_SYSACE) [N/y/?] (NEW)
--> N (but default)
Kernel cmdline support (needs new bootloader)
(CONFIG_MBVANILLA_CMDLINE) [N/y/?] (NEW) --> N (but
default)
Support for USB Gadgets (CONFIG_USB_GADGET) [N/y/?]
(NEW) --> N (but default)  

[ ] Hardware Multiplier 
(50000000) CPU CLOCK Frequency    

When i compile the kernel the following warning
message appear: 
"BFD:
/home/ivan/Aplicaciones/MicroBlaze/uClinux/uClinux-dist-20030909/images/image.elf:
aviso: la secci?n asignada `.romfs' no est? en el
segmento". In english is something like this:
"BFD:
/home/ivan/Aplicaciones/MicroBlaze/uClinux/uClinux-dist-20030909/images/image.elf:
warning: the asigned .romfs section is not in the
segment"  :P

Is normal, isn't it?

Well, and the kernel log is:

Linux version 2.4.24-uc0 (ivan@medea) (gcc version
2.95.3-4 Xilinx EDK 6.1 Buil4On node 0 totalpages: 512
zone(0): 512 pages.
zone(1): 0 pages.
zone(2): 0 pages.
CPU: MICROBLAZE
Console: xmbserial on UARTLite
Kernel command line:
Calibrating delay loop... 3.23 BogoMIPS
Memory: 732K/2048K available (597K kernel code, 192K
data)
Dentry cache hash table entries: 512 (order: 0, 4096
bytes)
Inode cache hash table entries: 512 (order: 0, 4096
bytes)
Mount cache hash table entries: 512 (order: 0, 4096
bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096
bytes)
Page-cache hash table entries: 1024 (order: 0, 4096
bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society
NET3.039
Microblaze UARTlite serial driver version 1.00
ttyS0 at 0xffff2000 (irq = 1) is a Microblaze UARTlite
ttyS1 at 0xffff4000 (irq = 2) is a Microblaze UARTlite
Starting kswapd
xgpio #0 at 0xFFFF5000 mapped to 0xFFFF5000
Xilinx GPIO registered
RAMDISK driver initialized: 16 RAM disks of 4096K size
1024 blocksize
MBVanilla flash probe(0xff000000,8388608,4): 800000 at
ff000000
CFI: Found no Flash device at location zero
Search for id:(00 00) interleave(2) type(2)
Search for id:(00 00) interleave(2) type(2)
Search for id:(00 00) interleave(2) type(2)
Search for id:(00 00) interleave(2) type(1)
Search for id:(00 00) interleave(2) type(1)
Search for id:(00 00) interleave(2) type(1)
Search for id:(00 00) interleave(4) type(2)
Search for id:(00 00) interleave(4) type(2)
Search for id:(00 00) interleave(4) type(2)
Search for id:(00 00) interleave(4) type(1)
Search for id:(00 00) interleave(4) type(1)
Search for id:(00 00) interleave(4) type(1)
JEDEC: Found no Flash device at location zero
MBVanilla ram probe(0x800c69cc,516096,4): 7e000 at
800c69cc
Creating 1 MTD partitions on "RAM":
0x00000000-0x0007e000 : "Romfs"
VFS: Mounted root (romfs filesystem) readonly.
Freeing unused kernel memory: 32K freed
Shell invoked to run file: /etc/rc
Command: hostname mbvanilla
__alloc_pages: 6-order allocation failed (gfp=0x1f0/0)
Allocation of length 232513 from process 9 failed
Buffer memory:       20kB
Cache memory:        0kB
Free pages:         268kB (     0kB HighMem)
Zone:DMA freepages:   268kB
Zone:Normal freepages:     0kB
Zone:HighMem freepages:     0kB
( Active: 0, inactive: 5, free: 67 )
11*4kB 6*8kB 3*16kB 2*32kB 1*64kB 0*128kB 0*256kB
0*512kB 0*1024kB 0*2048kB = 2)= 0kB)
= 0kB)
Unable to allocate RAM for process text/data, errno 12
hostname: Cannot allocate memory
Command: /bin/expand /etc/ramfs.img /dev/ram0
Command: /bin/expand /etc/ramfs.img /dev/ram1
Command: mount -t proc proc /proc
__alloc_pages: 6-order allocation failed (gfp=0x1f0/0)
Allocation of length 232528 from process 12 failed
Buffer memory:        0kB
Cache memory:       24kB
Free pages:         264kB (     0kB HighMem)
Zone:DMA freepages:   264kB
Zone:Normal freepages:     0kB
Zone:HighMem freepages:     0kB
( Active: 3, inactive: 3, free: 66 )
8*4kB 5*8kB 2*16kB 3*32kB 1*64kB 0*128kB 0*256kB
0*512kB 0*1024kB 0*2048kB = 26)= 0kB)
= 0kB)
Unable to allocate RAM for process text/data, errno 12
mount: Cannot allocate memory
Command: mount -t ext2 /dev/ram0 /var
__alloc_pages: 6-order allocation failed (gfp=0x1f0/0)
Allocation of length 232532 from process 13 failed
Buffer memory:        0kB
Cache memory:       24kB
Free pages:         264kB (     0kB HighMem)
Zone:DMA freepages:   264kB
Zone:Normal freepages:     0kB
Zone:HighMem freepages:     0kB
( Active: 2, inactive: 4, free: 66 )
6*4kB 4*8kB 3*16kB 3*32kB 1*64kB 0*128kB 0*256kB
0*512kB 0*1024kB 0*2048kB = 26)= 0kB)
= 0kB)
Unable to allocate RAM for process text/data, errno 12
mount: Cannot allocate memory
Command: mount -t ext2 /dev/ram1 /usr
__alloc_pages: 6-order allocation failed (gfp=0x1f0/0)
Allocation of length 232532 from process 14 failed
Buffer memory:        0kB
Cache memory:       24kB
Free pages:         264kB (     0kB HighMem)
Zone:DMA freepages:   264kB
Zone:Normal freepages:     0kB
Zone:HighMem freepages:     0kB
( Active: 2, inactive: 4, free: 66 )
6*4kB 4*8kB 3*16kB 3*32kB 1*64kB 0*128kB 0*256kB
0*512kB 0*1024kB 0*2048kB = 26)= 0kB)
= 0kB)
Unable to allocate RAM for process text/data, errno 12
mount: Cannot allocate memory
Command: mkdir /var/tmp
/var/tmp: %m
Command: mkdir /var/log
/var/log: %m
Command: mkdir /var/run
/var/run: %m
Command: mkdir /var/lock
/var/lock: %m
Command: #/bin/flatfsd -r
Command: cat /etc/motd
Welcome to
           ____ _ _
    _   _ / ___| (_)_ __  _   _ _  _
   | | | | |   | | | '_ \| | | < \/ >
   | |_| | |___| | | | | | |_| |>  <
   | __,_|\____|_|_|_| |_|\__,_/_/\_>
   |_)
                                                      
                         
on Microblaze.
                                                      
                         
http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
                                                      
                         
Execution Finished, Exiting
__alloc_pages: 5-order allocation failed (gfp=0x1f0/0)
Allocation of length 86600 from process 16 failed
Buffer memory:       12kB
Cache memory:       32kB
Free pages:         216kB (     0kB HighMem)
Zone:DMA freepages:   216kB
Zone:Normal freepages:     0kB
Zone:HighMem freepages:     0kB
( Active: 2, inactive: 9, free: 54 )
6*4kB 10*8kB 3*16kB 0*32kB 1*64kB 0*128kB 0*256kB
0*512kB 0*1024kB 0*2048kB = 2)= 0kB)
= 0kB)
Unable to allocate RAM for process text/data, errno 12
                                                      
                         
Sash command shell (version 1.1.1)
/> __alloc_pages: 5-order allocation failed
(gfp=0x1f0/0)
Allocation of length 86600 from process 17 failed
Buffer memory:        0kB
Cache memory:       24kB
Free pages:         248kB (     0kB HighMem)
Zone:DMA freepages:   248kB
Zone:Normal freepages:     0kB
Zone:HighMem freepages:     0kB
( Active: 2, inactive: 4, free: 62 )
4*4kB 5*8kB 2*16kB 1*32kB 0*64kB 1*128kB 0*256kB
0*512kB 0*1024kB 0*2048kB = 24)= 0kB)
= 0kB)
Unable to allocate RAM for process text/data, errno 12
.
.
.
.

Some messages are shown because i don't have flash
memory in my board, but the allocation messages, i
don't know why they are shown. I have 2 MBytes of RAM
mapped in address 0x80000000 - 0x801FFFFF, and i had
done the minimal changes is files:

Index: arch/microblaze/mbvanilla.ld
===================================================================
RCS file:
/var/cvs/uClinux-2.4.x/arch/microblaze/mbvanilla.ld,v
retrieving revision 1.7
diff -u -r1.7 mbvanilla.ld
--- arch/microblaze/mbvanilla.ld        2003/09/22
04:34:24     1.7
+++ arch/microblaze/mbvanilla.ld        2004/03/04
11:13:41
@@ -15,8 +15,8 @@
        /* 1MB of OPB SRAM */
        /* OPB  : ORIGIN = 0xFFE00000, LENGTH =
0x00100000 */
                                                      
                         
-       /* 16 MB of OBP SDRAM */
-       OPB  : ORIGIN = 0x80000000, LENGTH =
0x01000000
+       /* 2 MB of OBP SDRAM */
+       OPB  : ORIGIN = 0x80000000, LENGTH =
0x00200000
 }
                                                      
                         
 SECTIONS {
Index: include/asm-microblaze/mbvanilla.h
===================================================================
RCS file:
/var/cvs/uClinux-2.4.x/include/asm-microblaze/mbvanilla.h,v
retrieving revision 1.4
diff -u -r1.4 mbvanilla.h
--- include/asm-microblaze/mbvanilla.h  2003/08/12
01:55:07     1.4
+++ include/asm-microblaze/mbvanilla.h  2004/03/04
11:14:27
@@ -54,7 +54,7 @@
 /* #define ERAM_ADDR 0xFFE00000
 #define ERAM_SIZE 0x00100000 */
 #define ERAM_ADDR 0x80000000
-#define ERAM_SIZE 0x01000000
+#define ERAM_SIZE 0x00200000
                                                      
                         
 /* for <asm/page.h> */
 #define PAGE_OFFSET ERAM_ADDR


Any idea???

Ivan


___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/