buildroot/board/csky
Guo Ren 6e359e26e3 configs/csky_gx6605s: bump kernel to 5.0 and use buildroot toolchain
The most important change is to use the toolchain compiled by
buildroot itself. We also bump kernel to 5.0 with kernel.org.

Gx6605s' PHYS_OFFSET if 0x10000000 and we make qemu and gx6605s the
same to ease maintaince. This PHYS_OFFSET is also OK for 610 qemu.

In this patch we add gx6605s.dts in board/csky, because linux-5.0
doesn't contain gx6605s.dts in its tree.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-08-02 23:42:51 +02:00
..
gx6605s configs/csky_gx6605s: bump kernel to 5.0 and use buildroot toolchain 2019-08-02 23:42:51 +02:00
readme.txt board/csky: replace utf-8 graphic sympols by ascii characters 2019-05-18 23:34:36 +02:00

readme.txt

C-SKY Development Kit

Intro
=====

C-SKY is a CPU Architecture from www.c-sky.com and has it own instruction set.
Just like arm and mips in linux/arch, it named as 'csky'.

gx6605s develop board is made by Hangzhou Nationalchip and C-SKY.

Hardware Spec:
  * CPU: ck610 up to 594Mhz
  * Integrate with 64MB ddr2 in SOC.
  * Integrate with hardware Jtag.
  * Integrate with usb-to-serial chip.
  * USB ehci controller in SOC.
  * Power Supply: DC 5V from two micro-usb.

How to build it
===============

Configure Buildroot
-------------------

The csky_gx6605s_defconfig configuration is a sample configuration with
all that is required to bring the gx6605s Development Board:

  $ make csky_gx6605s_defconfig

Build everything
----------------

Note: you will need to have access to the network, since Buildroot will
download the packages' sources.

  $ make

Result of the build
-------------------

After building, you should obtain this tree:

    output/images/
    +-- vmlinux
    +-- rootfs.ext2
    +-- <board name>.dtb

How to run it
=============

Prepare Jtag-Server
-------------------

  Download the Jtag-Server here:

  https://github.com/c-sky/tools/raw/master/DebugServerConsole-linux-x86_64-V4.2.00-20161213.tar.gz

  Go to the unpacked directory:

  $./DebugServerConsole -ddc -rstwait 1000 -prereset -port 1025

  Perhaps you need to use "sudo", which need libusb to detect c510:b210

  $ sudo ./DebugServerConsole -ddc -rstwait 1000 -prereset -port 1025

Prepare USB drive
-----------------

  You sould determine which device associated to the usb drive
  carefully. eg:

  $ cat /proc/partitions
   8       48    1971712 sdd
   8       49     976720 sdd1

  $ sudo dd if=rootfs.ext2 of=/dev/sdd1
  $ sudo sync

Run
---

  Plug the usb drive on gx6605s dev board.

  Setup the Console with the rate 115200/8-N-1.

  $ cd output/images
  $ ../host/bin/csky-linux-gdb -x ../../board/csky/gx6605s/gdbinit vmlinux