readme.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. C-SKY Development Kit
  2. Intro
  3. =====
  4. C-SKY is a CPU Architecture from www.c-sky.com and has it own instruction set.
  5. Just like arm and mips in linux/arch, it named as 'csky'.
  6. gx6605s develop board is made by Hangzhou Nationalchip and C-SKY.
  7. Hardware Spec:
  8. * CPU: ck610 up to 594Mhz
  9. * Integrate with 64MB ddr2 in SOC.
  10. * Integrate with hardware Jtag.
  11. * Integrate with usb-to-serial chip.
  12. * USB ehci controller in SOC.
  13. * Power Supply: DC 5V from two micro-usb.
  14. How to build it
  15. ===============
  16. Configure Buildroot
  17. -------------------
  18. The csky_gx6605s_defconfig configuration is a sample configuration with
  19. all that is required to bring the gx6605s Development Board:
  20. $ make csky_gx6605s_defconfig
  21. Build everything
  22. ----------------
  23. Note: you will need to have access to the network, since Buildroot will
  24. download the packages' sources.
  25. $ make
  26. Result of the build
  27. -------------------
  28. After building, you should obtain this tree:
  29. output/images/
  30. ├── vmlinux
  31. ├── rootfs.ext2
  32. └── <board name>.dtb
  33. How to run it
  34. =============
  35. Prepare Jtag-Server
  36. -------------------
  37. Download the Jtag-Server here:
  38. https://github.com/c-sky/tools/raw/master/DebugServerConsole-linux-x86_64-V4.2.00-20161213.tar.gz
  39. Go to the unpacked directory:
  40. $./DebugServerConsole -ddc -rstwait 1000 -prereset -port 1025
  41. Perhaps you need to use "sudo", which need libusb to detect c510:b210
  42. $ sudo ./DebugServerConsole -ddc -rstwait 1000 -prereset -port 1025
  43. Prepare USB drive
  44. -----------------
  45. You sould determine which device associated to the usb drive
  46. carefully. eg:
  47. $ cat /proc/partitions
  48. 8 48 1971712 sdd
  49. 8 49 976720 sdd1
  50. $ sudo dd if=rootfs.ext2 of=/dev/sdd1
  51. $ sudo sync
  52. Run
  53. ---
  54. Plug the usb drive on gx6605s dev board.
  55. Setup the Console with the rate 115200/8-N-1.
  56. $ cd output/images
  57. $ ../host/bin/csky-linux-gdb -x ../../board/csky/gx6605s/gdbinit vmlinux