cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
linux_newbie
Visitor
Visitor
4,907 Views
Registered: ‎07-07-2010

ML605 Microblaze initramfs hanging

Hi, I am struggling to find out the reason why iniramfs hanging as this:

 

early_printk_console is enabled at 0x84000000
Ramdisk addr 0x00000003, Compiled-in FDT at 0xb00f8b68
Linux version 2.6.34-00671-g91e2c43-dirty (xying@magellan) (gcc version 4.1.2) #
24 Fri Jul 9 11:56:35 EST 2010
setup_cpuinfo: initialising
setup_cpuinfo: No PVR support. Using static CPU info from FDT
cache: wt_msr_noirq
setup_memory: max_mapnr: 0x10000
setup_memory: min_low_pfn: 0xb0000
setup_memory: max_low_pfn: 0xc0000
On node 0 totalpages: 65536
free_area_init_node: node 0, pgdat b015750c, node_mem_map b025c000
  Normal zone: 512 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 65024 pages, LIFO batch:15
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: console=ttyUL0 root=/dev/ram
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 257216k/262144k available
Hierarchical RCU implementation.
NR_IRQS:32
xlnx,xps-intc-1.00.a #0 at 0xc0000000, num_irq=3, edge=0x3
xlnx,xps-timer-1.00.a #0 at 0xc0004000, irq=1
Heartbeat GPIO at 0xc0008000
microblaze_timer_set_mode: shutdown
microblaze_timer_set_mode: periodic
Calibrating delay loop... 49.15 BogoMIPS (lpj=245760)
Mount-cache hash table entries: 512
XGpio: /plb@0/gpio@81460000: registered
XGpio: /plb@0/gpio@81440000: registered
XGpio: /plb@0/gpio@81420000: registered
XGpio: /plb@0/gpio@81400000: registered
Switching to clocksource microblaze_clocksource
Skipping unavailable RESET gpio -2 (reset)
GPIO pin is already allocated
msgmni has been set to 502
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
84000000.serial: ttyUL0 at MMIO 0x84000003 (irq = 0) is a uartlite
console [ttyUL0] enabled
Freeing unused kernel memory: 873k freed

 

I am using ML605 board and microblaze linux plus prebuilt initramfs_minimal.cpio.gz by xilinx.

 

I attached the zip file for  the .config for microblaze linux, .dts, .mhs files.


Could someone give me clue?

Tags (1)
0 Kudos
Reply
4 Replies
jpl@xiphos.ca
Adventurer
Adventurer
4,906 Views
Registered: ‎10-28-2007

I've not seen the ram disk address displayed on the command line before. Are you building with initramfs support in the kernel? How are you booting the kernel? Xmd? I haven't looked at your config file yet, but I'll have a peek tomorrow.


Here is the line that I find strange, because 0x03 is the last byte of the reset memory address for the microblaze, AND it is not 32-bit aligned. Do you know where this address might be coming from?


Ramdisk addr 0x00000003, Compiled-in FDT at 0xb00f8b68
0 Kudos
Reply
linux_newbie
Visitor
Visitor
4,902 Views
Registered: ‎07-07-2010

I loaded kernel image from XMD. Yes. The kernel is built with initramfs support.

 

The strange bit is if I config the kernel without 'Set custom kernel base address'. It just hangs at beginning like this:

 

early_printk_console is enabled at 0x84000000
Ramdisk addr 0x00000003, Compiled-in FDT at 0xb00f8b68

 

But if I set the custom kernel base address the same address as Physical address where Linux Kernel is (0xb0000000), then what I got is as mentioned in the initial question like this:

 

early_printk_console is enabled at 0x84000000
Ramdisk addr 0x00000003, Compiled-in FDT at 0xb00f8b68
Linux version 2.6.34-00671-g91e2c43-dirty (xying@magellan) (gcc version 4.1.2) #
24 Fri Jul 9 11:56:35 EST 2010
setup_cpuinfo: initialising
setup_cpuinfo: No PVR support. Using static CPU info from FDT
cache: wt_msr_noirq
setup_memory: max_mapnr: 0x10000
setup_memory: min_low_pfn: 0xb0000
setup_memory: max_low_pfn: 0xc0000
On node 0 totalpages: 65536
free_area_init_node: node 0, pgdat b015750c, node_mem_map b025c000
  Normal zone: 512 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 65024 pages, LIFO batch:15
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: console=ttyUL0 root=/dev/ram
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 257216k/262144k available
Hierarchical RCU implementation.
NR_IRQS:32
xlnx,xps-intc-1.00.a #0 at 0xc0000000, num_irq=3, edge=0x3
xlnx,xps-timer-1.00.a #0 at 0xc0004000, irq=1
Heartbeat GPIO at 0xc0008000
microblaze_timer_set_mode: shutdown
microblaze_timer_set_mode: periodic
Calibrating delay loop... 49.15 BogoMIPS (lpj=245760)
Mount-cache hash table entries: 512
XGpio: /plb@0/gpio@81460000: registered
XGpio: /plb@0/gpio@81440000: registered
XGpio: /plb@0/gpio@81420000: registered
XGpio: /plb@0/gpio@81400000: registered
Switching to clocksource microblaze_clocksource
Skipping unavailable RESET gpio -2 (reset)
GPIO pin is already allocated
msgmni has been set to 502
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
84000000.serial: ttyUL0 at MMIO 0x84000003 (irq = 0) is a uartlite
console [ttyUL0] enabled
Freeing unused kernel memory: 873k freed

 

 

0 Kudos
Reply
linnj
Xilinx Employee
Xilinx Employee
4,883 Views
Registered: ‎09-10-2008

It seems like you're not configuring the kernel right.

 

Have u reviewed http://xilinx.wikidot.com/microblaze-linux?

 

You shouldn't mess with 'Set custom kernel base address' as that may be your problem.

 

Thanks.

0 Kudos
Reply
linux_newbie
Visitor
Visitor
4,835 Views
Registered: ‎07-07-2010

I do following the instruction as in http://xilinx.wikidot.com/microblaze-linux?

 

I haven't found anything wrong so far.

0 Kudos
Reply