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

[microblaze-uclinux] Successfully booted



Hi all,
I've solved the problem related to the serial prort: now I'm able to boot the system and type the first commands.
In attachment there's a bootlog similar to the one reported on the itee site: I reproduced the exact sequence of commands in order to underline differences.

Now a couple of things must be better understood:
- why "cat /proc/interrupts" reports the "ERR: 0" line
- why "cat /proc/tty/driver/serial" reports two serial ports while the board I'm working with has only one (I think the JTAG chain is responsible for that)

Next objectives are to recompile the kernel, better exploring its features, and to extend the hw platform with custom peripherals, trying to exploit them in a demo program.

Best regards
------------------------
Roberto Farina
ESD Researcher - CEFRIEL
Milan, Italy
------------------------
Linux version 2.4.22-uc0 (farina@zen.cefriel.it) (gcc version 2.95.3-4 Xilinx ED                                                                                
K 6.1 Build EDK_G.11) #3 Wed Dec 3 09:25:43 CET 2003                                                    
On node 0 totalpages: 4096                          
zone(0): 4096 pages.                    
zone(1): 0 pages.                 
zone(2): 0 pages.                 
CPU: MICROBLAZE               
Console: xmbserial on UARTLite                              
Kernel command line:                    
Calibrating delay loop... 3.86 BogoMIPS                                       
Memory: 14912K/16384K available (594K kernel code, 195K data)                                                             
Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)                                                             
Inode cache hash table entries: 1024 (order: 1, 8192 bytes)                                                           
Mount cache hash table entries: 512 (order: 0, 4096 bytes)                                                          
Buffer cache hash table entries                             
Page-cache hash table entries: 4096 (order: 2, 16384 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(0x800c6988,512000,4): 7d000 at 800c6988                                                           
Creating 1 MTD partitions on "RAM":                                   
0x00000000-0x0007d000 : "Romfs"                               
VFS: Mounted root (romfs filesystem) readonly.                                              
Freeing unused kernel memory: 32K freed                                       
Shell invoked to run file: /etc/rc                                  
Command: hostname mbvanilla                           
Command: /bin/expand /etc/ramfs.img /dev/ram0                                             
Command: /bin/expand /etc/ramfs.img /dev/ram1                                             
Command: mount -t proc proc /proc                                 
Command: mount -t ext2 /dev/ram0 /var                                     
Command: mount -t ext2 /dev/ram1 /usr                                     
Command: mkdir /var/tmp                       
Command: mkdir /var/log                       
Command: mkdir /var/run                       
Command: mkdir /var/lock                        
Command: #/bin/flatfsd -r                         
Command: cat /etc/motd                      
Welcome to          
           ____ _ _                   
    _   _ / ___| (_)_ __  _   _ _  _                                    
   | | | | |   | | | '_ \| | | < \/ >                                     
   | |_| | |___| | | | | | |_| |>  <                                    
   | __,_|\____|_|_|_| |_|\__,_/_/\_>                                     
   |_)      

on Microblaze.              

http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux                                                   

Execution Finished, Exiting                           

Sash command shell (version 1.1.1)                                  
/> ps     
  PID TTY     Uid        Size State Command                                           
    1         root          0   S   init                                        
    2         root          0   S   [keventd]                                             
    3         root          0   R   [ksoftirqd_CPU0]                                                    
    4         root          0   S   [kswapd]                                            
    5         root          0   S   [bdflush]                                             
    6         root          0   S   [kupdated]                                              
    7         root          0   S   [mtdblockd]                                               
   15 ttyS0   root                                 
   16 ttyS1   root          0   S   /bin/getty ttyS1 115200                                                           
   17 ttyS0   root          0   R   ps                                      
/> sh     

Sash command shell (version 1.1.1)                                  
/> ps     
  PID TTY     Uid        Size State Command                                           
    1         root          0   S   init                                        
    2         root          0   S   [keventd]                                             
    3         root          0   R   [ksoftirqd_CPU0]                                                    
    4         root          0   S   [kswapd]                                            
    5         root          0   S   [bdflush]                                             
    6         root          0   S   [kupdated]                                              
    7         root          0   S   [mtdblockd]                                               
   15 ttyS0   root          0   S   /bin/sh                                           
   16 ttyS1   root          0   S   /bin/getty ttyS1 115200                                                           
   18 ttyS0   root          0   S   sh                                      
   19 ttyS0   root          0   R   ps                                      
/> exit       
/> ps     
  PID TTY     Uid        Size State Command
    1         root          0   S   init
    2         root          0   S   [keventd]
    3         root          0   R   [ksoftirqd_CPU0]
    4         root          0   S   [kswapd]
    5         root          0   S   [bdflush]
    6         root          0   S   [kupdated]
    7         root          0   S   [mtdblockd]
   15 ttyS0   root          0   S   /bin/sh
   16 ttyS1   root          0   S   /bin/getty ttyS1 115200
   20 ttyS0   root          0   R   ps
/> cat /proc/uptime
58.69 46.29
/> cat /proc/interrupts
           CPU0
  0:       7372           XINTC  timer
  1:        274           XINTC  Microblaze UARTlite
  2:          0           XINTC  Microblaze UARTlite
ERR:          0
/> cat /proc/tty/driver/serial
Microblaze UARTlite serial driver version 1.00
0: port:ffff2000 irq=1 baud:0 tx:2763 rx:83
1: port:ffff4000 irq=2 baud:0
/>