相关链接: 刚收到货的 诛仙剑 C-SKY Linux 开发板
https://c-sky.github.io/docs/quick-compile.html
下载源码,选择配置,make!
git clone https://github.com/c-sky/buildroot.git
cd buildroot
make csky_gx6605s_defconfig
make
芯片手册: CK610_spec.pdf
离线
一番折腾之后Linux跑起来了:
X笜RUNts_port=2 not support, please input 1.
Partition Version : 102
Partition Count : 7
Write Protect : TRUE
CRC32 Enable : TRUE
Table CRC32 : 646B2E8D
==============================================================================================
ID NAME FS CRC32 START TOTAL_SIZE MAIN_SIZE USED_SIZE Use% RES_SIZE
==============================================================================================
0 BOOT RAW 0FC882F2 00000000 128 KB 128 KB 75332 B 57% 0 MB
1 TABLE RAW 00020000 512 B 512 B 512 B 100% 0 MB
2 LOGO RAW 4CEDB02C 00020200 65024 B 65024 B 29801 B 45% 0 MB
3 KERNEL RAW C2246841 00030000 2176 KB 2176 KB 2168 KB 99% 0 MB
4 ROOT CRAMFS 4046AEB9 00250000 512 KB 512 KB 8 KB 1% 0 MB
5 THEME CRAMFS 00BCA597 002d0000 832 KB 832 KB 792 KB 95% 0 MB
6 DATA MINIFS FF000000 003a0000 384 KB 384 KB 1 B 0% 0 MB
----------------------------------------------------------------------------------------------GxLoader v1.9 20140509
cpu family : CSKY
chip model : gx6605s
board type : 6605s
memory size : 64 MB
Flash type : w25q32
Flash size : 4 MB
error: can't support 60HZ with PAL.
warning: board-init not call function enable_dac, will open cvbs & ypbpr default.
Hit any key to stop autoboot: 3 3 2 1USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
1 Storage Device(s) found
reading gx6605s.dtb
get file gx6605s.dtb, size : 2664
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
1 Storage Device(s) found
reading uImage
get file uImage, size : 3360173
uImage_load_kernel.Decompress kernel ...ok[ 0.000000] Linux version 4.9.56 (hexing@ubuntu) (gcc version 6.3.0 (C-SKY Tools V3.2.1-Beta-4.9.56 Glibc-2.25 Linux-4.9.56 abiv1 B20171030) ) #1 Wed Nov 1 22:04:12 CST 2017
[ 0.000000] C-SKY: https://c-sky.github.io
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,115200 init=/sbin/init root=/dev/sda2 rw rootwait
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Sorting __ex_table...
[ 0.000000] Memory: 58768k/65536k available (3758k kernel code, 6768k reserved, 2112k data, 120k init, 0k highmem)
[ 0.000000] SLUB: HWalign=16, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:128
[ 0.000000] Nationalchip Timer Init, reg: c000a000, irq: 10, freq: 1000000.
[ 0.000000] clocksource: nationalchip-clksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[ 0.000020] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[ 0.000337] Console: colour dummy device 80x25
[ 0.000410] Calibrating delay loop... 280.16 BogoMIPS (lpj=1400832)
[ 0.084627] pid_max: default: 32768 minimum: 301
[ 0.084790] Security Framework initialized
[ 0.084820] Yama: becoming mindful.
[ 0.084949] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.084983] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.089606] devtmpfs: initialized
[ 0.093580] evm: security.ima
[ 0.093617] evm: security.capability
[ 0.094054] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.094105] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.095130] NET: Registered protocol family 16
[ 0.116813] SCSI subsystem initialized
[ 0.117611] usbcore: registered new interface driver usbfs
[ 0.117831] usbcore: registered new interface driver hub
[ 0.118030] usbcore: registered new device driver usb
[ 0.118283] Linux video capture interface: v2.00
[ 0.122199] clocksource: Switched to clocksource nationalchip-clksource
[ 0.122566] VFS: Disk quotas dquot_6.6.0
[ 0.122717] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.152728] NET: Registered protocol family 2
[ 0.154301] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.154362] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.154397] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.154615] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.154658] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.155053] NET: Registered protocol family 1
[ 0.156070] RPC: Registered named UNIX socket transport module.
[ 0.156109] RPC: Registered udp transport module.
[ 0.156121] RPC: Registered tcp transport module.
[ 0.156132] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.157888] audit: initializing netlink subsys (disabled)
[ 0.158040] audit: type=2000 audit(0.150:1): initialized
[ 0.158519] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.179003] ntfs: driver 2.1.32 [Flags: R/O].
[ 0.179726] romfs: ROMFS MTD (C) 2007 Red Hat, Inc.
[ 0.195546] jitterentropy: Initialization failed with host not compliant with requirements: 2
[ 0.196091] Key type asymmetric registered
[ 0.196130] Asymmetric key parser 'x509' registered
[ 0.196637] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 0.196677] io scheduler noop registered
[ 0.196693] io scheduler deadline registered (default)
[ 0.196797] io scheduler cfq registered
[ 0.198490] ipmi message handler version 39.2
[ 0.389797] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.392680] console [ttyS0] disabled
[ 0.392874] 403000.serial: ttyS0 at MMIO 0x403000 (irq = 15, base_baud = 1843200) is a 16550A
[ 0.757472] console [ttyS0] enabled
[ 0.819570] brd: module loaded
[ 0.840062] loop: module loaded
[ 0.844342] libphy: Fixed MDIO Bus: probed
[ 0.848655] usbcore: registered new interface driver rtl8187
[ 0.854658] usbcore: registered new interface driver rtl8xxxu
[ 0.860587] usbcore: registered new interface driver rtl8150
[ 0.866612] usbcore: registered new interface driver r8152
[ 0.872449] usbcore: registered new interface driver asix
[ 0.878029] usbcore: registered new interface driver ax88179_178a
[ 0.884415] usbcore: registered new interface driver cdc_ether
[ 0.890425] usbcore: registered new interface driver net1080
[ 0.896375] usbcore: registered new interface driver cdc_subset
[ 0.902598] usbcore: registered new interface driver zaurus
[ 0.908458] usbcore: registered new interface driver cdc_ncm
[ 0.914249] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.920805] ehci-platform: EHCI generic platform driver
[ 0.926395] ehci-platform 900000.ehci-hcd: EHCI Host Controller
[ 0.932601] ehci-platform 900000.ehci-hcd: new USB bus registered, assigned bus number 1
[ 0.940995] ehci-platform 900000.ehci-hcd: irq 59, io mem 0x00900000
[ 0.972306] ehci-platform 900000.ehci-hcd: USB 2.0 started, EHCI 1.00
[ 0.980787] hub 1-0:1.0: USB hub found
[ 0.984831] hub 1-0:1.0: 2 ports detected
[ 0.989832] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.996218] ohci-platform: OHCI generic platform driver
[ 1.001765] ohci-platform a00000.ohci-hcd0: Generic Platform OHCI controller
[ 1.009099] ohci-platform a00000.ohci-hcd0: new USB bus registered, assigned bus number 2
[ 1.017610] ohci-platform a00000.ohci-hcd0: irq 58, io mem 0x00a00000
[ 1.096463] hub 2-0:1.0: USB hub found
[ 1.100381] hub 2-0:1.0: 1 port detected
[ 1.105409] ohci-platform b00000.ohci-hcd1: Generic Platform OHCI controller
[ 1.112763] ohci-platform b00000.ohci-hcd1: new USB bus registered, assigned bus number 3
[ 1.121199] ohci-platform b00000.ohci-hcd1: irq 57, io mem 0x00b00000
[ 1.196162] hub 3-0:1.0: USB hub found
[ 1.200079] hub 3-0:1.0: 1 port detected
[ 1.205616] usbcore: registered new interface driver usb-storage
[ 1.213025] mousedev: PS/2 mouse device common for all mice
[ 1.219735] usbcore: registered new interface driver uvcvideo
[ 1.225638] USB Video Class driver (1.1.1)
[ 1.229804] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.236518] usbcore: registered new interface driver usbhid
[ 1.242121] usbhid: USB HID core driver
[ 1.246071] oprofile: hardware counters not available
[ 1.251143] oprofile: using timer interrupt.
[ 1.255963] NET: Registered protocol family 17
[ 1.265164] Key type trusted registered
[ 1.273498] Key type encrypted registered
[ 1.277564] ima: No TPM chip found, activating TPM-bypass!
[ 1.283544] evm: HMAC attrs: 0x1
[ 1.288169] Waiting for root device /dev/sda2...
[ 1.342324] usb 1-2: new high-speed USB device number 2 using ehci-platform
[ 1.543660] usb-storage 1-2:1.0: USB Mass Storage device detected
[ 1.550731] scsi host0: usb-storage 1-2:1.0
[ 2.565338] scsi 0:0:0:0: Direct-Access Generic- SD/MMC 1.00 PQ: 0 ANSI: 0 CCS
[ 3.166263] sd 0:0:0:0: [sda] 3842048 512-byte logical blocks: (1.97 GB/1.83 GiB)
[ 3.175464] sd 0:0:0:0: [sda] Write Protect is off
[ 3.181839] sd 0:0:0:0: [sda] No Caching mode page found
[ 3.187362] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 3.197541] random: fast init done
[ 3.206989] sda: sda1 sda2
[ 3.217139] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 3.225493] EXT4-fs (sda2): couldn't mount as ext3 due to feature incompatibilities
[ 3.646217] EXT4-fs (sda2): recovery complete
[ 3.766163] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[ 3.774126] VFS: Mounted root (ext4 filesystem) on device 8:2.
[ 3.787460] devtmpfs: mounted
[ 3.790745] Freeing unused kernel memory: 120k freed
[ 3.795851] This architecture does not have kernel memory protection.
[ 4.079243] EXT4-fs (sda2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting network: OKWelcome to Buildroot
buildroot login: root
#
离线
离线
按键走标准linux gpio 驱动,你可以在 /sys/class/gpio 看到,如果想要 /dev/input/event 可以使用linux 标准 gpio_key_poll 驱动。
你是希望默认就有 /dev/input/event*吗?
离线
让我欣慰的是,你编译和烧录,好像挺顺利的
离线
温度高,是因为 bootloader 把所有 IP的 clk都开了,这个可以优化。
离线
离线
奇怪了, 进入boot HDMI显示正常, 进入Linux电视机黑屏.
有网友遇到同样的问题,官方技术支持说另外一个配置文件可以
https://github.com/c-sky/forum/issues/20
可是我认为:
我也是一样的问题,
用的是csky_gx6605s_defconfig,
问题是串口输出log,
操作/dev/fb0 (cat /dev/urandom > /dev/fb0) 显示器也木有输出
离线
是的 USB键盘鼠标,还可以插usb-hub 比如 rlt8135b 那种带网口的hub
标准usb-ehci+ohci控制器,想用什么都可以,但是要内核里把驱动开起来。
离线
csky_gx6605s_fbcon_defconfig csky_gx6605s_defconfig 里的内核配置是不同的,一个带了framebuffer驱动,一个没有,所以要重新组装内核。
建议每个配置都是独立干净的重新编译,我是这样操作。
cd buildroot
make O=gx6605sfb csky_gx6605s_fbcon_defconfig
cd gx6605sfb
make 或者 make menuconfig 或者 make linux-menuconfig 或者 make busybox-menuconfig 或者 make linux-rebuild (你可以看buildroot手册)
这样编译和配置都在gx6605sfb这个目录完成
我在buildroot 目录下有很多这样的<build>目录,每一个build目录对应一个配置
离线
买了这个板子,一直都还没弄起来
离线
板子都买了那就加油弄被,我看着1111
离线
板子都买了那就加油弄,看是否能跑起来
离线
这个芯片是做卫星盒子的,国家禁止后,原厂就转型卖开发板了
离线
这个芯片是做卫星盒子的,国家禁止后,原厂就转型卖开发板了
他的亮点是视频硬解吧
离线
不知道为什么fb驱动没有加入到主线
离线
@晕哥
手册链接失效了。。。
离线
这个板子的系统盘和无线网卡一起插,系统有一定概率就会奔溃。
离线
我也入手了,可官网资料实在太少太少了,手册都没有,只有个编译的教程,剩下就是摸索了
离线
我有三块板子, 一直没弄, 资料太少。 官方的DEMO 芯片不发热, 放视频还不错。
离线