board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / board / csky / readme.txt
blobdaf7185910a68e19253624d1b962ff52f0d5c828
1 C-SKY Development Kit
3 Intro
4 =====
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'.
9 gx6605s develop board is made by Hangzhou Nationalchip and C-SKY.
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.
19 How to build it
20 ===============
22 Configure Buildroot
23 -------------------
25 The csky_gx6605s_defconfig configuration is a sample configuration with
26 all that is required to bring the gx6605s Development Board:
28   $ make csky_gx6605s_defconfig
30 Build everything
31 ----------------
33 Note: you will need to have access to the network, since Buildroot will
34 download the packages' sources.
36   $ make
38 Result of the build
39 -------------------
41 After building, you should obtain this tree:
43     output/images/
44     ├── vmlinux
45     ├── rootfs.ext2
46     └── <board name>.dtb
48 How to run it
49 =============
51 Prepare Jtag-Server
52 -------------------
54   Download the Jtag-Server here:
56   https://github.com/c-sky/tools/raw/master/DebugServerConsole-linux-x86_64-V4.2.00-20161213.tar.gz
58   Go to the unpacked directory:
60   $./DebugServerConsole -ddc -rstwait 1000 -prereset -port 1025
62   Perhaps you need to use "sudo", which need libusb to detect c510:b210
64   $ sudo ./DebugServerConsole -ddc -rstwait 1000 -prereset -port 1025
66 Prepare USB drive
67 -----------------
69   You sould determine which device associated to the usb drive
70   carefully. eg:
72   $ cat /proc/partitions
73    8       48    1971712 sdd
74    8       49     976720 sdd1
76   $ sudo dd if=rootfs.ext2 of=/dev/sdd1
77   $ sudo sync
79 Run
80 ---
82   Plug the usb drive on gx6605s dev board.
84   Setup the Console with the rate 115200/8-N-1.
86   $ cd output/images
87   $ ../host/usr/bin/csky-linux-gdb -x ../../board/csky/gx6605s/gdbinit vmlinux