Name Date Size #Lines LOC

..--

gx6605s/H05-Jun-2025-182150

readme.txtH A D05-Jun-20251.9 KiB8957

readme.txt

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