5 Last Update: January 2, 2004
6 ====================================================================
8 This file contains information regarding U-Boot and the Altera
9 Nios Development Kit, Cyclone Edition (DK-1C20). For general Nios
10 information see doc/README.nios.
12 For those interested in contributing ... see HELP WANTED section
18 2. Memory Organization
20 4. Programming U-Boot into FLASH with GERMS
21 5. Active Serial Memory Interface (ASMI) Support
23 ====================================================================
28 include/configs/DK1C20.h
30 2. Memory Organization
31 =======================
33 -The heap is placed below the monitor (U-Boot code).
34 -Global data is placed below the heap.
35 -The stack is placed below global data (&grows down).
40 The hello_world example works fine. The default load address
41 is 0x0100_0000 (the start of SDRAM).
44 4. Programming U-Boot into FLASH with GERMS
45 ============================================
46 The current version of the DK-1C20 port with the default
47 configuration settings occupies about 81 KBytes of flash.
48 A minimal configuration occupies less than 60 KByte (asmi
49 and network support disabled).
51 To program U-Boot into the DK-1C20 flash using GERMS do the
54 1. From the command line, download U-Boot using the nios-run:
56 $ nios-run -r u-boot.srec
58 This takes about 45 seconds (GERMS is not very speedy here).
59 After u-boot is downloaded it will be executed. You should
62 U-Boot 1.0.0-pre (Oct 4 2003 - 07:39:24)
64 CPU: Nios-32 Rev. 3.3 (0x3038)
65 Reg file size: 256 LO_LIMIT/HI_LIMIT: 2/14
66 Board: Altera Nios 1C20 Development Kit
73 2. Quit nios-run and start your terminal application (e.g. start
74 Hyperterminal or minicom).
76 3. Download the u-boot code to RAM. When using Hyperterminal, do the
79 a. From the u-boot command prompt start a binary download to SRAM:
83 b. Download u-boot.bin using kermit.
85 4. From the U-Boot command prompt, erase flash 0x40000 to 0x5ffff:
89 5. Copy the binary image from SRAM to flash:
91 ==> cp.b 800000 40000 10000
93 U-Boot will now automatically start when the board is powered on or
94 reset using the Standard-32 configuration. To start U-Boot with the
95 Safe-32 configuration, enter the following GERMS command:
99 5. Active Serial Memory Interface (ASMI) Support
100 ================================================
101 ASMI is fully supported in U-Boot. Please note that ASMI is supported
102 only on Cyclone devices. Do not expect ASMI to work with Stratix or
105 ************* IMPORTANT *************
106 ===================================================
107 IN ORDER FOR THE NIOS ASMI TO OPERATE PROPERLY, THE
108 CYCLONE DEVICE MUST BE CONFIGURED USING JTAG OR ASMI.
110 There are two techniques you can use to bootstrap the ASMI. The
111 first is to use the program_epcs utility that is part of Altera's SDK.
112 But I've found program_epcs to be slow and cumbersome at best.
114 An undocumented alternative is to use the Quartus device programing
117 1. Select "Active Serial" mode.
119 2. Choose the xxx.pof file. For example, for the standard_32
120 configuration use the "standard_32.pof" file.
122 3. Attach your ByteBlaster to J28. Make sure you have the
123 cable attached properly -- the orientation of J28 is
124 different than J24 (the JTAG header). On J28, pin 1 is on
125 the bottom row, left-most pin.
127 4. Press and hold the "Power-On Reset" switch (SW10). You will
128 see the green "Loading" and red "Error" LEDs (LED3 and LED4)
131 5. While holding down the "Power-On Reset" switch, start the
132 programming sequence. This only takes about 10 seconds.
134 6. After programming is complete, release the "Power-On Reset"
135 switch. The Cyclone device should now load its configuration
136 from the EPCS4 (U59). The green "User" LED (LED 1) should be
137 blinking if the device was successfully loaded via ASMI.
139 7. Remove the ByteBlaster cable. The cable must be removed to
140 allow the Nios ASMI access to the EPCS4 device.
142 After you have successfully programmed a configuration into the
143 EPCS4, the ASMI will be used to load the Cyclone configuration
144 unless the "Force Safe" switch (SW9) is pressed.
146 NOTE: To maximize the amount of space available for program use,
147 you can enable configuration compression in Quartus. With compression
148 enabled, the size of the standard_32 configuration data is
149 approximately 192 KBytes.
151 To use the U-Boot ASMI commands, try typing "help asmi" at the
152 command prompt. The command "asmi info" will show the current