README.dk1c20 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. Nios Development Kit
  2. Cyclone Editions
  3. Last Update: October 4, 2003
  4. ====================================================================
  5. This file contains information regarding U-Boot and the Altera
  6. Nios Development Kit, Cyclone Edition (DK-1C20). For general Nios
  7. information see doc/README.nios.
  8. For those interested in contributing ... see HELP WANTED section
  9. in doc/README.nios.
  10. Files
  11. ------
  12. board/dk1c20/*
  13. include/configs/DK1C20.h
  14. Memory Organization
  15. --------------------
  16. -The heap is placed below the monitor (U-Boot code).
  17. -Global data is placed below the heap.
  18. -The stack is placed below global data (&grows down).
  19. Misc
  20. -----
  21. The hello_world example works fine.
  22. Programming U-Boot into FLASH with GERMS
  23. -----------------------------------------
  24. The current version of the DK-1C20 port occupies less than
  25. 60 KByte. So everything will fit into a single Flash sector.
  26. To program U-Boot into the DK-1C20 flash using GERMS do the
  27. following:
  28. 1. From the command line, download U-Boot using the nios-run:
  29. $ nios-run -r u-boot.srec
  30. This takes about 45 seconds (GERMS is not very speedy here).
  31. After u-boot is downloaded it will be executed. You should
  32. see the following:
  33. U-Boot 1.0.0-pre (Oct 4 2003 - 07:39:24)
  34. CPU: Nios-32 Rev. 3.08 (0x3018)
  35. Reg file size: 256 LO_LIMIT/HI_LIMIT: 2/14
  36. Board: Altera Nios 1C20 Development Kit
  37. In: serial
  38. Out: serial
  39. Err: serial
  40. ==>
  41. 2. Quit nios-run and start your terminal application (e.g. start
  42. Hyperterminal or minicom).
  43. 3. From the U-Boot command prompt, erase a sector of flash at 0x40000:
  44. ==> erase 40000 4ffff
  45. 4. Download the u-boot code to RAM. When using Hyperterminal, do the
  46. following:
  47. --From the u-boot command prompt start a binary download to SRAM:
  48. ==> loadb 800000
  49. --Download u-boot.bin using kermit.
  50. 5. Copy the binary image from SRAM to flash:
  51. ==> cp.b 800000 40000 10000
  52. U-Boot will now automatically start when the board is powered on or
  53. reset using the Standard-32 configuration. To start U-Boot with the
  54. Safe-32 configuration, enter the following GERMS command:
  55. + g 40000