Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12603 Discussions

About the uclinux starter and memory allocation

Altera_Forum
Honored Contributor II
979 Views

dear all, 

 

when i do uclinux according to hippo, now i can run uclinux in my target board(nios2,FLASH8MB(0X000000-0X7FFFFF),SDRAM(8MB)0X800000-0XFFFFFF),but i still don't understand where the zImage file download to,and how does the uclinux work and how does the memory space use? 

 

 

in my target board: 

0x000000|------------------| 

------------| ----------------- | 

------------|8MB FLASH ---- | 

0x7FFFFF |-------------------| 

0x800000|-------------------| 

-----------|8MB SDRAM ----| 

0xd00000|-------------------| <-----kernal config 0x500000+0x800000,why ?? 

------------|--------------------| 

0x0FFFFFF|-------------------| 

0x1000000|-- NIOS II ------|  

0x10007FF |------------------|  

---- 

 

IN THE SYSTEM THE RESET ADDRESS 0X000000,EXECPTION ADDRESS 0X800020 

 

 

COULD YOU TELL ME HOW DOES THE UCLINUX WORK WHEN THE SYSTEM POWER ON?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
283 Views

You didn&#39;t program the flash at 0x000000 yet. You can program the flash, so that will start after power-on without data blaster download/cable.  

http://nioswiki.jot.com/wikihome/operating...flashprogrammer (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/flashprogrammer

NOTE, you should not use jtag uart in this case, or it will hang until you run nios2-terminal. you should use serial uart instead. 

 

The nios2-download will load the zImage to (0x800000 + 0x500000), and start exec at this address, ie 0xd00000. 

The zImage will uncompress the linux kernel (gziped in zImage) to 0x800000. And start exec at 0x800000.
0 Kudos
Reply