c-sky / buildroot Goto Github PK
View Code? Open in Web Editor NEWBuildroot for T-HEAD XuanTie CPU Series
License: Apache License 2.0
Buildroot for T-HEAD XuanTie CPU Series
License: Apache License 2.0
How do i get a framebuffer and HDMI output on the GX6605s ?
The old buildroot had a defconfig for that, but in the latest release i have no idea how to do that.
生成的images目录中image/根文件系统/dtb文件如果打包成usb.img
I see that gcc was removed as a legacy option some time ago. Is there currently a supported way to have gcc on a c-sky system rather than only as a cross compiler?
When I git clone, like the readme.md said, I cd to the buildroot, and run the conmmand: "make CONF=thead_9xxf_enhanced_5.10_glibc_br_defconfig",but my terminal told me that it's wrong to run "make" command like this... I am a student beginner ,why the readme file is wrong..
When running:
make CONF=csky_gx6605s_defconfig
it fails with:
/usr/bin/make -j5 -C /storage/Projects/hellobox/buildroot/csky_gx6605s_defconfig/build/uclibc-bb379dc1fb1544998838e5a3451f1937ea66ab27 ARCH="csky" CROSS_COMPILE="/storage/Projects/hellobox/buildroot/csky_gx6605s_defconfig/host/bin/csky-buildroot-linux-uclibcabiv1-" UCLIBC_EXTRA_CFLAGS="" HOSTCC="/usr/bin/gcc"
Makefile.in:152: warning: overriding recipe for target 'include/bits/kernel_stat.h'
Makefile.in:148: warning: ignoring old recipe for target 'include/bits/kernel_stat.h'
CC ldso/ldso/ldso.oS
In file included from ./include/sys/syscall.h:33:0,
from ./ldso/include/dl-syscall.h:12,
from ./ldso/include/ldso.h:52,
from ldso/ldso/ldso.c:32:
./ldso/include/dl-syscall.h: In function '_dl_fstat':
./include/bits/syscalls-common.h:34:63: error: '__NR__dl_fstat' undeclared (first use in this function)
# define INLINE_SYSCALL(name, nr, args...) INLINE_SYSCALL_NCS(__NR_##name, nr, args)
^
how can i make uImage
Hi dear do you have wechat
I'm using exactly below commands to make my own image for GX6605s:
git clone https://github.com/c-sky/buildroot.git
cd buildroot
make CONF=thead_610_compat_next_glibc_br_defconfig
and based on the description on this page there must be an usb.img file to copy to the USB flash disk, but there is not such a file for me inside/buildroot/thead_610_compat_next_glibc_br_defconfig/images
directory.
this is whatever generated there:
-rw-r--r-- 1 mhd mhd 3.5K Jul 24 03:02 readme.txt
drwxr-xr-x 2 mhd mhd 4.0K Jul 24 03:19 hw
-rw-r--r-- 1 mhd mhd 61K Jul 24 03:30 linux-custom.patch.xz
-rw-r--r-- 1 mhd mhd 3.3M Jul 24 03:57 uImage
-rw-r--r-- 1 mhd mhd 6.0M Jul 24 03:57 Image
-rw-r--r-- 1 mhd mhd 73M Jul 24 05:08 toolchain_thead_610_compat_next_glibc_br_defconfig_.tar.xz
-rw-r--r-- 1 mhd mhd 300M Jul 24 05:08 rootfs.ext2
-rw-r--r-- 1 mhd mhd 19M Jul 24 05:08 rootfs.tar
As I checked there was not any problem during building process and every thing finished successfully!
Even I thought maybe gx6605s is not supported by the latest version, then I downloaded XuanTie Linux v1.0.8 version and tried with it but same result.
Then do you have any Idea whats the problem?
I'm trying to build a customized OS image using buildroot using exactly below provided commands:
git clone https://github.com/c-sky/buildroot.git
cd buildroot
make CONF=thead_610_compat_next_glibc_br_defconfig
make
before the last make in 4th line, everything is going well, but after running the last command make, I received:
This config is from origin buildroot:
make -C /home/user/workspace/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a O=/home/user/workspace/buildroot/
make[1]: Entering directory '/home/user/workspace/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a'
Makefile:926: *** Please configure Buildroot first (e.g. "make menuconfig"). Stop.
make[1]: Leaving directory '/home/user/workspace/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a'
Makefile:64: recipe for target 'all' failed
make: *** [all] Error 2
I'm using Ubuntu 18.04 (Ubuntu is a guest OS on Win10 Host using Virtual Box) and as I said before, in my previous commands it connected and downloaded all required resources successfully.
Also When I'm entering the buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a directory running
make menuconfig
there is no selected config and everything is in the default state.
Then do you have any idea what the problem is or is this possible for me to replace the appropriately configured config file with mine?
There does not seem to be any swap support. Is it possible to build this when compiling with buildroot?
Thanks in advance.
玄铁内核能够拿来跑综合吗?请问具体如何操作?以及memory的拼接替换有没有具体点的教程?
RT,想要让这个系统联网,ck610m,有线网卡是ax88772B,或是其他的推荐网卡,网上的联网教程好像不能用在这个系统上。
执行如下命令,buildroot能正常启动和登录
LD_LIBRARY_PATH=./host/lib ./host/csky-qemu/bin/qemu-system-riscv64 -M virt -kernel fw_jump.elf -device loader,file=Image,addr=0x80200000 -append "rootwait root=/dev/vda ro" -drive file=rootfs.ext2,format=raw,id=hd0 -device virtio-blk-device,drive=hd0 -nographic -smp 1
在上述命令后,添加如下参数,目的是能在/dev/disk/by-uuid下有相应磁盘进行后续mount,但实际上没有
-drive format=qcow2,file=lava-guest.qcow2,if=virtio,media=disk,id=lavates
相同的参数,在fedora上能挂载成功
qemu-system-riscv64 -machine virt -cpu rv64 -nographic -net nic,model=virtio,macaddr=52:54:00:12:34:59 -net user -m 1024 -monitor none -smp 4 -m 2048 -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-device,rng=rng0 -device virtio-blk-device,drive=hd0 -device virtio-net-device,netdev=usernet -netdev user,id=usernet,hostfwd=tcp::3333-:22 -bios Fedora-Developer-Rawhide-20200108.n.0-fw_payload-uboot-qemu-virt-smode.elf -drive format=raw,id=hd0,file=Fedora-Developer-Rawhide-20200108.n.0-sda.raw -drive format=qcow2,file=lava-guest.qcow2,media=disk,if=virtio,id=lavatest
执行命令:make csky_gx6605s_defconfig
报错:
make -C /home/czq/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a O=/home/czq/buildroot/
make[1]: Entering directory '/home/czq/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a'
Makefile:926: *** Please configure Buildroot first (e.g. "make menuconfig"). Stop.
make[1]: Leaving directory '/home/czq/buildroot/buildroot-ded3f9954f158b5d9cd08ae76749eade72fcca3a'
Makefile:52: recipe for target 'csky_gx6605s_defconfig' failed
make: *** [csky_gx6605s_defconfig] Error 2
请问是什么问题?应该怎么解决
Please answer i have gx6605s set top box can i boot .img using this satelite box or not?
do i need to flash this https://github.com/c-sky/tools/blob/master/gx6605s/loader-sflash.bin
please please answer its a china box 4mb 64 mb ram
thank you
按照以下操作: https://c-sky.gitlab.io/-/buildroot/-/jobs/346100688/artifacts/output/images/readme.txt
Build buildroot
===============
git clone https://gitlab.com/c-sky/buildroot.git
cd buildroot
git checkout 99c77abf9ead1f8b79585e61c8422c9f039e5496
make CONF=thead_860_compat_4.19_glibc_br_defconfig
请问大家有什么解决方案吗?
能否将这个功能移植到本开发板中
https://github.com/OpenHD/Open.HD
移植的大概流程是怎样的?
谢谢
如题。
Hi,
I tried to buid bare buildroot by just setting the platform to csky and type to 610 and it failed:
CC printf-parse.o
CC vasnprintf.o
CC vasprintf.o
freadahead.c: In function 'freadahead':
freadahead.c:92:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
#error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
^~~~~
make[4]: *** [Makefile:1915: freadahead.o] Error 1
make[4]: *** Waiting for unfinished jobs....
fseeko.c: In function 'rpl_fseeko':
fseeko.c:110:4: error: #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
#error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
^~~~~
I'm not sure what's causing this and how I can resolve it.
Can you help?
Thanks!
Edit:
I'm using the latest release, 1.0.4.
Building OS image using buildroot is working fine in the default configuration, but I want to add QT package support for cross-compilation for my c-sky board.
Then using menu-config I added Qt support( Qt 5.12) but during building Image, I have received
In file included from ../3rdparty/double-conversion/include/double-conversion/double-conversion.h:31:0,
from tools/qdoublescanprint_p.h:151,
from tools/qlocale_tools.cpp:42:
../3rdparty/double-conversion/include/double-conversion/utils.h:114:2: error: #error Target architecture was not detected as supported by Double-Conversion.
#error Target architecture was not detected as supported by Double-Conversion.
I checked the source file in
/home/user/workspace/buildroot/thead_610_compat_next_glibc_br_defconfig/build/qt5base-5.12.2/src/3rdparty/double-conversion/include
path and as expected supported architectures are:
defined(_M_X64) || defined(__x86_64__) || \
defined(__ARMEL__) || defined(__avr32__) || defined(_M_ARM) || defined(_M_ARM64) || \
defined(__hppa__) || defined(__ia64__) || \
defined(__mips__) || \
defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || \
defined(_POWER) || defined(_ARCH_PPC) || defined(_ARCH_PPC64) || \
defined(__sparc__) || defined(__sparc) || defined(__s390__) || \
defined(__SH4__) || defined(__alpha__) || \
defined(_MIPS_ARCH_MIPS32R2) || \
defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \
defined(__riscv) || defined(__EMSCRIPTEN__) || \
defined(__or1k__) || \
defined(__microblaze__)
defined(__mc68000__) || \
defined(__pnacl__) || defined(__native_client__)
defined(_M_IX86) || defined(__i386__) || defined(__i386)
defined(_WIN32)
defined(__ghs)
which GX6605S or RISC-V is not among them.
Then do you have any idea how we can patch and add GX6605S to it? or is there any other Qt version supporting this architecture?
$ make csky_gx6605s_fbcon_br_defconfig && make
<...>
>>> host-python 2.7.14 Building
PATH="/home/lineprinter/repos/csky-buildroot/output/host/bin:/home/lineprinter/repos/csky-buildroot/output/host/sbin:/home/lineprinter/.local/bin:/home/lineprinter/bin:/home/lineprinter/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" PKG_CONFIG="/home/lineprinter/repos/csky-buildroot/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/lineprinter/repos/csky-buildroot/output/host/lib/pkgconfig:/home/lineprinter/repos/csky-buildroot/output/host/share/pkgconfig" /usr/bin/make -j1 -C /home/lineprinter/repos/csky-buildroot/output/build/host-python-2.7.14/
make[1]: Entering directory '/home/lineprinter/repos/csky-buildroot/output/build/host-python-2.7.14'
<...>
LD_LIBRARY_PATH=/home/lineprinter/repos/csky-buildroot/output/build/host-python-2.7.14 ./python -E -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
echo "generate-posix-vars failed" ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Segmentation fault
generate-posix-vars failed
make[1]: *** [Makefile:516: pybuilddir.txt] Error 1
make[1]: Leaving directory '/home/lineprinter/repos/csky-buildroot/output/build/host-python-2.7.14'
make: *** [package/pkg-generic.mk:251: /home/lineprinter/repos/csky-buildroot/output/build/host-python-2.7.14/.stamp_built] Error 2
在CPU CK810时(软件使用的是buildroot v1.0.3)遇到了futex返回错误的问题,希望能得到您的解答或者建议!
遇到该问题时也尝试将版本更新至buildroot v1.0.9.5,问题依旧。
具体问题见:
ck810 futex.pdf
The commit message said:The release is for toolchain v3.8.x/3.10.x with linux-4.9.56 headers. (Ubuntu-16.04-64bit).
Then how to build the new version?
如何启用CK610M的无线连接,编译里面找到MT7601u的驱动了,但是编译以后装上以后无法使用。
Compiling on Gentoo, gcc 7.3.0:
/usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/g++ -fno-PIE -c -O2 -I/home/xvilka/radare/competition/csky/buildroot/output/host/include -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include
-I/home/xvilka/radare/competition/csky/buildroot/output/host/include -I/home/xvilka/radare/competition/csky/buildroot/output/host/include
-I/home/xvilka/radare/competition/csky/buildroot/output/host/include -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace -o
tree-call-cdce.o -MT tree-call-cdce.o -MMD -MP -MF ./.deps/tree-call-cdce.TPo ../../gcc/tree-call-cdce.c
In file included from ./tm.h:32:0,
from ../../gcc/backend.h:28,
from ../../gcc/tree-call-cdce.c:24:
../../gcc/config/csky/abiv1_csky.h:866:0: warning: "ASM_APP_ON" redefined
#define ASM_APP_ON "// inline asm begin\n"
In file included from ./tm.h:29:0,
from ../../gcc/backend.h:28,
from ../../gcc/tree-call-cdce.c:24:
../../gcc/config/gnu-user.h:33:0: note: this is the location of the previous definition
#define ASM_APP_ON "#APP\n"
In file included from ./tm.h:32:0,
from ../../gcc/backend.h:28,
from ../../gcc/tree-call-cdce.c:24:
../../gcc/config/csky/abiv1_csky.h:867:0: warning: "ASM_APP_OFF" redefined
#define ASM_APP_OFF "// inline asm end\n"
In file included from ./tm.h:29:0,
from ../../gcc/backend.h:28,
from ../../gcc/tree-call-cdce.c:24:
../../gcc/config/gnu-user.h:36:0: note: this is the location of the previous definition
#define ASM_APP_OFF "#NO_APP\n"
../../gcc/1
|| xloc.file == '\0' || xloc.file[0] == '\xff'
^~~~
make[2]: *** [Makefile:1085: ubsan.o] Error 1
make[2]: *** Waiting for unfinished jobs....
rm gcov-tool.pod cpp.pod gcov.pod gpl.pod gfdl.pod fsf-funding.pod gcc.pod
make[2]: Leaving directory '/home/xvilka/radare/competition/csky/buildroot/output/build/host-gcc-initial-080eee5e337301372ee587b8e7938629fe5e3fb8/build/gcc'
make[1]: *** [Makefile:4113: all-gcc] Error 2
make[1]: Leaving directory '/home/xvilka/radare/competition/csky/buildroot/output/build/host-gcc-initial-080eee5e337301372ee587b8e7938629fe5e3fb8/build'
make: *** [package/pkg-generic.mk:251: /home/xvilka/radare/competition/csky/buildroot/output/build/host-gcc-initial-080eee5e337301372ee587b8e7938629fe5e3fb8/.stamp_built] Error 2
Hi dear, i have question,
Where to buy c-sky gx6650 board. Taobao link.
And can do it install linphone to conect voip server?
Is there any buildroot recipe for something like openssl, mbedtls or gcrypto? Unfortunately I didn't find any.
在硬件平台上移植Linux操作系统,内核代码运行完call setup_vm ,设置satp后,处理器就不取指了,打开内存映射,发现原来的代码从0x40000000映射到0xffffffffe0000000,我们的硬件平台上opensbi的起始加载位置为0x40000000。是什么原因呢?
Sir,
This build support dvb s2 to watch tv also want to know about webif package please reply any expert
Thank You
Please cherry-pick buildroot/buildroot@373ac58 and buildroot/buildroot@c48f8a6.
如标题所示,按照https://c-sky.github.io/docs/quick-compile.html教程所示无法成功,make CONF=thead_610_compat_next_glibc_br_defconfig 完成后打开thead_610_compat_next_glibc_br_defconfig文件夹并进行编译成功了,但是写入u盘使用却没有成功开机。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.