UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor evgsn
Visitor
3,286 Views
Registered: ‎03-23-2011

I have trouble with boot Linux from CF

Hello all!
I have trouble with boot Linux from CF
I have Spartan 3adsp 3400A.

I made ​​a Linux kernel on Mikroblaze (Linux root filesystem on xsa2), and it works well when booting from JTAG.

I generate ACE file as it is written on the wiki:
xmd -tcl genace.tcl -jprog -target mdm -hw ~/implementation/system.bit-elf ~/simpleImage1.xilinx-ace systemace.ace

 

#######################################################################
XMD GenACE utility. Generate SystemACE File from bit/elf/data Files
#######################################################################
Parsing genace option: -jprog -target mdm -hw /opt/Xilinx/12.4/ISE_DS/projects/testmy4/implementation/system.bit -elf /opt/simpleImage1.elf -ace systemace.ace
GenACE Options:
        Board      : ml507                                #Determined auto
        Jtag Devs  : xc5vfx70t_u
        FPGA pos   : 1
        JPROG      : true
        HW File    : /opt/Xilinx/12.4/ISE_DS/projects/testmy4/implementation/system.bit
        ACE File   : systemace.ace
        nCPUs      : 1

        Processor mdm_1 Information
                Debug opt : -debugdevice devicenr 1 cpunr 1
                ELF files : /opt/simpleImage1.elf
                Start PC Address : 0x50000000
Open SVF file

############################################################
Converting Bitstream '/opt/Xilinx/12.4/ISE_DS/projects/testmy4/implementation/system.bit' to SVF file '/opt/Xilinx/12.4/ISE_DS/projects/testmy4/implementation/system.svf'
Executing 'impact -batch bit2svf.scr'

Copying /opt/Xilinx/12.4/ISE_DS/projects/testmy4/implementation/system.svf File to  systemace.svf File


############################################################
Converting ELF file '/opt/simpleImage1.elf' to SVF file '/opt/simpleImage1.svf'
Downloading Program -- /opt/simpleImage1.elf
        section, .text: 0x50000000-0x5025d5d7
        section, .init.text: 0x50375000-0x5038db67
        section, .init.ivt: 0x5038fc7c-0x5038fca3
        section, __fdt_blob: 0x5025d5d8-0x502615d7
        section, .rodata: 0x50262000-0x5034bc4f
        section, __ksymtab: 0x5034bc50-0x503502ff
        section, __ksymtab_gpl: 0x50350300-0x50351f5f
        section, __ksymtab_strings: 0x50351f60-0x5035f6f3
        section, __init_rodata: 0x5035f6f4-0x5035fac7
        section, __param: 0x5035fac8-0x5035ffff
        section, __ex_table: 0x50360000-0x50360f0f
        section, .sdata2: 0x50360f10-0x50360fff
        section, .data: 0x50361000-0x5037389f
        section, .init.data: 0x5038db68-0x5038fc79
        section, .init.setup: 0x5038fca4-0x5038ff2b
        section, .initcall.init: 0x5038ff2c-0x5039023b
        section, .con_initcall.init: 0x5039023c-0x50390243
        section, .init.ramfs: 0x50391000-0x50391003
        section, .bss: 0x50392000-0x503bc493
Setting PC with Program Start Address 0x50000000

Copying /opt/simpleImage1.svf File to  systemace.svf File


############################################################
Writing Processor JTAG "continue" command to SVF file 'sw_suffix.svf'
Processor started. Type "stop" to stop processor

RUNNING> Processor started. Type "stop" to stop processor

RUNNING>
############################################################
Converting SVF file 'systemace.svf' to SystemACE file 'systemace.ace'
Executing 'impact -batch svf2ace.scr'

SystemACE file 'systemace.ace' created successfully

 

I put the file on the ACE CF partition FAT16. FPGA configuration is loaded, but no Linux  :(

 

Tested in xmd:

conect mb mdm:
MicroBlaze Processor Configuration :
-------------------------------------
Version............................8.00.b
Optimization.......................Performance
Interconnect.......................PLB_v46
MMU Type...........................Full_MMU
No of PC Breakpoints...............5
No of Read Addr/Data Watchpoints...0
No of Write Addr/Data Watchpoints..0
Instruction Cache Support..........on
Instruction Cache Base Address.....0x50000000
Instruction Cache High Address.....0x5fffffff
Data Cache Support.................on
Data Cache Base Address............0x50000000
Data Cache High Address............0x5fffffff
Exceptions  Support................on
FPU  Support.......................off
Hard Divider Support...............on
Hard Multiplier Support............on - (Mul64)
Barrel Shifter Support.............on
MSR clr/set Instruction Support....on
Compare Instruction Support........on
PVR Supported......................on
PVR Configuration Type.............Full
Data Cache Write-back Support......off


 

But boot Linux does not run.  Minicom be was silent. On the COM port does not come.

 

And if load Linux from JTAG:

XMD% dow /opt/simpleImage1.xilinx
Downloading Program -- /opt/simpleImage1.elf
        section, .text: 0x50000000-0x5025d5d7
        section, .init.text: 0x50375000-0x5038db67
        section, .init.ivt: 0x5038fc7c-0x5038fca3
        section, __fdt_blob: 0x5025d5d8-0x502615d7
        section, .rodata: 0x50262000-0x5034bc4f
        section, __ksymtab: 0x5034bc50-0x503502ff
        section, __ksymtab_gpl: 0x50350300-0x50351f5f
        section, __ksymtab_strings: 0x50351f60-0x5035f6f3
        section, __init_rodata: 0x5035f6f4-0x5035fac7
        section, __param: 0x5035fac8-0x5035ffff
        section, __ex_table: 0x50360000-0x50360f0f
        section, .sdata2: 0x50360f10-0x50360fff
        section, .data: 0x50361000-0x5037389f
        section, .init.data: 0x5038db68-0x5038fc79
        section, .init.setup: 0x5038fca4-0x5038ff2b
        section, .initcall.init: 0x5038ff2c-0x5039023b
        section, .con_initcall.init: 0x5039023c-0x50390243
        section, .init.ramfs: 0x50391000-0x50391003
        section, .bss: 0x50392000-0x503bc493
Setting PC with Program Start Address 0x50000000
System Reset .... DONE


XMD% run

 

Minicom:

 

early_printk_console is enabled at 0x84000000                                                                                   
Ramdisk addr 0x00000003, Compiled-in FDT at 0x5025d5d8                                                                          
[    0.000000] Linux version 2.6.37-00715-gf5f5376-dirty (root@es) (gcc version 4.1.2) #1 Wed Apr 20 11:22:12 MSD 2011          
[    0.000000] setup_cpuinfo: initialising                                                                                      
[    0.000000] setup_cpuinfo: Using full CPU PVR support                                                                        
[    0.000000] cache: wt_msr_noirq                                                                                              
[    0.000000] setup_memory: max_mapnr: 0x10000                                                                                 
[    0.000000] setup_memory: min_low_pfn: 0x50000                                                                               
[    0.000000] setup_memory: max_low_pfn: 0x60000                                                                               
[    0.000000] On node 0 totalpages: 65536                                                                                      
[    0.000000] free_area_init_node: node 0, pgdat 50372124, node_mem_map 503bf000                                               
[    0.000000]   Normal zone: 512 pages used for memmap                                                                         
[    0.000000]   Normal zone: 0 pages reserved                                                                                  
[    0.000000]   Normal zone: 65024 pages, LIFO batch:15                                                                        
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768                                                                    
[    0.000000] pcpu-alloc: [0] 0                                                                                                
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024                                       
[    0.000000] Kernel command line: console=ttyUL0 root=/dev/xsa2 rw                                                            
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)                                                              
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)                                                  
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)                                                    
[    0.000000] Memory: 255760k/262144k available                                                                                
[    0.000000] NR_IRQS:32                                                                                                       
[    0.000000] xlnx,xps-intc-1.00.a #0 at 0x60000000, num_irq=7, edge=0x41                                                      
[    0.000000] xlnx,xps-timer-1.00.a #0 at 0x60004000, irq=0                                                                    
[    0.000000] microblaze_timer_set_mode: shutdown                                                                              
[    0.000000] microblaze_timer_set_mode: periodic                                                                              
[    0.001304] Calibrating delay loop... 30.92 BogoMIPS (lpj=154624)                                                            
[    0.190658] pid_max: default: 32768 minimum: 301                                                                             
[    0.192893] Mount-cache hash table entries: 512                                                                              
[    0.249604] devtmpfs: initialized                                                                                            
[    0.254490] NET: Registered protocol family 16                                                                               
[    0.274608] bio: create slab <bio-0> at 0                                                                                    
[    0.278683] XGpio: /plb@0/gpio@81440000: registered                                                                          
[    0.280049] XGpio: /plb@0/gpio@81420000: registered                                                                          
[    0.281502] XGpio: /plb@0/gpio@81400000: registered                                                                          
[    0.288918] Switching to clocksource microblaze_clocksource                                                                  
[    0.303476] NET: Registered protocol family 2                                                                                
[    0.304875] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)                                                   
[    0.309015] TCP established hash table entries: 8192 (order: 4, 65536 bytes)                                                 
[    0.313079] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)                                                        
[    0.315543] TCP: Hash tables configured (established 8192 bind 8192)                                                         
[    0.315721] TCP reno registered                                                                                              
[    0.315943] UDP hash table entries: 256 (order: 0, 4096 bytes)                                                               
[    0.316379] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)                                                          
[    0.318548] NET: Registered protocol family 1                                                                                
[    0.337373] Skipping unavailable RESET gpio -2 (reset)                                                                       
[    0.337532] GPIO pin is already allocated                                                                                    
[    0.349120] NTFS driver 2.1.29 [Flags: R/W DEBUG].                                                                           
[    0.350780] msgmni has been set to 499                                                                                       
[    0.355776] io scheduler noop registered                                                                                     
[    0.355948] io scheduler deadline registered                                                                                 
[    0.356635] io scheduler cfq registered (default)                                                                            
[    2.134031] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled                                                         
[    2.157046] 84000000.serial: ttyUL0 at MMIO 0x84000000 (irq = 6) is a uartlite                                               
[    2.428928] console [ttyUL0] enabled                                                                                         
[    2.506119] brd: module loaded                                                                                               
[    2.510217] of:xsysace a0000000.sysace: Xilinx SystemACE revision 1.0.12                                                     
[    2.519012] of:xsysace a0000000.sysace: capacity: 1000944 sectors                                                            
[    2.536682]  xsa: xsa1 xsa2                                                                                                  
[    2.546244] Xilinx SystemACE device driver, major=254                                                                        
[    2.554191] of:xilinx_emaclite 81000000.ethernet: Device Tree Probing                                                        
[    2.559687] of:xilinx_emaclite 81000000.ethernet: no IRQ found                                                               
[    2.565611] of:xilinx_emaclite: probe of 81000000.ethernet failed with error -1                                              
[    2.575439] i2c /dev entries driver                                                                                          
[    2.579636] Device Tree Probing 'i2c'                                                                                        
[    2.586970] xilinx-iic #0 at 0x81600000 mapped to 0x60080000, irq=2                                                          
[    2.593236] Linux telephony interface: v1.00                                                                                 
[    2.597521] TCP cubic registered                                                                                             
[    2.599635] NET: Registered protocol family 17                                                                               
[    2.633569] EXT3-fs: barriers not enabled                                                                                    
[    3.373998] kjournald starting.  Commit interval 5 seconds                                                                   
[    3.378943] EXT3-fs (xsa2): warning: maximal mount count reached, running e2fsck is recommended                              
[    3.472760] EXT3-fs (xsa2): using internal journal                                                                           
[    3.476386] EXT3-fs (xsa2): recovery complete                                                                                
[    3.569670] EXT3-fs (xsa2): mounted filesystem with writeback data mode                                                      
[    3.575395] VFS: Mounted root (ext3 filesystem) on device 254:2.                                                             
[    3.587550] devtmpfs: mounted                                                                                                
[    3.589819] Freeing unused kernel memory: 112k freed                                                                         
Starting rcS...                                                                                                                 
++ Creating device points                                                                                                       
++ Mounting filesystem                                                                                                          
mount: mounting none on /tmp failed: Invalid argument                                                                           
++ Loading system loggers                                                                                                       
++ Starting telnet daemon                                                                                                       
/etc/init.d/rcS: line 19: /sbin/telnetd: not found                                                                              
rcS Complete                                                                                                                    
/bin/sh: can't access tty; job control turned off
#

 


 

Help me please. Why do FPGA  loaded with CF, but Linux will not boot, what could be the problem?
Thanks!

 


0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
3,244 Views
Registered: ‎09-10-2008

Re: I have trouble with boot Linux from CF

It looks like this is not a specific Linux issue. I would probably take a small stand alone program and try it also. It's not clear to me what's wrong as I haven't used that in a long time.

Have you tried to connect to the processor with JTAG and see where the PC is and what's in memory? You should probably dig around on xilinx.com for app notes.

Sorry.
0 Kudos
Visitor evgsn
Visitor
3,241 Views
Registered: ‎03-23-2011

Re: I have trouble with boot Linux from CF

Hello John, thanks for reply!

 

I will try to understand that in the memory.
And me was advised to boot Linux using Botloader in XPS. If the results are, I will write.
If there is any more a thought from someone, answer please.

Thanks!

0 Kudos