Altera_Forum
Honored Contributor
15 years agoDownload image ok, but boot fail
Hi Guys,
I need help... maybe someone have passed for this trouble. I try to run Linux on Nios II, obviously. My project is based on DE2_NET. Now I used a CYCLONE II EP2C8F256C8 in a custom board. First, I build the project for uCLinux and ran with sucess. After that, I add the TCMs in the SOPC and uClinux ran with success. So, after the system was validated, I went to LINUX with MMU. After some days, I can to program/download the image in a Flash with sucess. But the Linux don't boot. The stdout is a jtag_uart. When I run the “nios2-terminal”, nothing happen. Don't show error or some information... the terminal was blank, like this: [NiosII EDS]$ nios2-terminal nios2-terminal: connected to hardware target using JTAG UART on cable nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0 nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate) Well, the Address Map is this: cpu.jtag_debug_module 0x08000000 - 0x080007fftimer_0 0x08400000 - 0x0840001f
sysid 0x08004d40 - 0x08004d47
jtag_uart_0 0x08004d50 - 0x08004d57
timer1 0x08004d00 - 0x08004d1f
sdram_0 0x02000000 - 0x02ffffff
epcs_controller 0x00100000 - 0x001007ff
tri_state_bridge_0
ext_flash 0x00000000 - 0x000fffff
onchip_memory2_0.s1 0x08000800 - 0x08000bff
onchip_memory2_0.s2 0x08400400 - 0x084007ff
the sdram have 8mbyte (pn: is42s16800d).
the flash memory have 8mbyte (pn: mp25p64).
the pll on the sopc builder is 100mhz for all peripherals. This is my script for download/program: ------------------------------------------------------------------------------------------------- nios2-configure-sof mylinux_top.sof
sof2flash --verbose --epcs --input=mylinux_top.sof --output=mylinux.flash
nios2-flash-programmer --mmu --epcs --base=0x00100000 mylinux.flash
elf2flash --mmu --epcs --after=mylinux.flash --input=zimage.initramfs.gz --output=epcs_controller.flash --boot=$sopc_kit_nios2/components/altera_nios2/boot_loader_epcs.srec
nios2-flash-programmer --mmu --epcs --base=0x00100000 epcs_controller.flash ------------------------------------------------------------------------------------------------- The result after run the “script” is: ------------------------------------------------------------------------------------------------ NiosII EDS]$ ./script Searching for SOF file: in . myLinux_top.sof Info: ******************************************************************* Info: Running Quartus II Programmer Info: Command: quartus_pgm --no_banner --mode=jtag -o p; myLinux _top.sof Info: Using programming cable "USB-Blaster [USB-0]" Info: Started Programmer operation at Wed May 26 09:35:39 2010 Info: Configuring device index 1 Info: Device 1 contains JTAG ID code 0x020B20DD Info: Configuration succeeded -- 1 device(s) configured Info: Successfully performed operation(s) Info: Ended Programmer operation at Wed May 26 09:35:40 2010 Info: Quartus II Programmer was successful. 0 errors, 0 warnings Info: Peak virtual memory: 55 megabytes Info: Processing ended: Wed May 26 09:35:40 2010 Info: Elapsed time: 00:00:05 Info: Total CPU time (on all processors): 00:00:03 26/05/2010 09:35:41 - (FINE) sof2flash: Starting Info: ******************************************************************* Info: Running Quartus II Convert_programming_file Info: Command: quartus_cpf --no_banner --convert --device=EPCS128 --option= myLinux.opt myLinux _top.sof myLinux.pof Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings Info: Peak virtual memory: 69 megabytes Info: Processing ended: Wed May 26 09:35:48 2010 Info: Elapsed time: 00:00:07 Info: Total CPU time (on all processors): 00:00:05 Info: ******************************************************************* Info: Running Quartus II Convert_programming_file Info: Command: quartus_cpf --no_banner --convert myLinux.pof myLinux.rpd Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings Info: Peak virtual memory: 67 megabytes Info: Processing ended: Wed May 26 09:35:54 2010 Info: Elapsed time: 00:00:06 Info: Total CPU time (on all processors): 00:00:05 26/05/2010 09:35:55 - (FINE) sof2flash: Done --mmu option was set true, EPCS virtual address is base + offset of 0xC0000000 Using cable "USB-Blaster [USB-0]", device 1, instance 0x00 Resetting and pausing target processor: OK Checksummed/read 60kB in 1.7s Erased 192kB in 2.0s (96.0kB/s) programmed 133kb +59kb in 5.1s (37.6kb/s) Did not attempt to verify device contents Leaving target processor paused --mmu option was set true, EPCS virtual address is base + offset of 0xC0000000 Using cable "USB-Blaster [USB-0]", device 1, instance 0x00 Resetting and pausing target processor: OK Checksummed/read 58kB in 1.5s Erased 3712kB in 38.2s (97.1kB/s) programmed 3655kb +57kb in 128.4s (28.9kb/s) Did not attempt to verify device contents Leaving target processor paused --------------------------------------------------------------------------------------- After power off/on custom board, I call the terminal: [NiosII EDS]$ nios2-terminal nios2-terminal: connected to hardware target using JTAG UART on cable nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0 nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate) Please, suggestions... Thanks in advance. Fernando Andrade