]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - board/csky/readme.txt
lrzsz: install symlinks for XMODEM and YMODEM
[coffee/buildroot.git] / board / csky / readme.txt
1 C-SKY Development Kit
2
3 Intro
4 =====
5
6 C-SKY is a CPU Architecture from www.c-sky.com and has it own instruction set.
7 Just like arm and mips in linux/arch, it named as 'csky'.
8
9 gx6605s develop board is made by Hangzhou Nationalchip and C-SKY.
10
11 Hardware 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
19 How to build it
20 ===============
21
22 Configure Buildroot
23 -------------------
24
25 The csky_gx6605s_defconfig configuration is a sample configuration with
26 all that is required to bring the gx6605s Development Board:
27
28   $ make csky_gx6605s_defconfig
29
30 Build everything
31 ----------------
32
33 Note: you will need to have access to the network, since Buildroot will
34 download the packages' sources.
35
36   $ make
37
38 Result of the build
39 -------------------
40
41 After building, you should obtain this tree:
42
43     output/images/
44     ├── vmlinux
45     ├── rootfs.ext2
46     └── <board name>.dtb
47
48 How to run it
49 =============
50
51 Prepare 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
66 Prepare 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
79 Run
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