Giter Site home page Giter Site logo

buildroot's People

Contributors

guoren83 avatar jamesbeyond avatar maohan002 avatar mardteabk201 avatar nezha-d1 avatar yuanfei-gk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

buildroot's Issues

How to enable framebuffer ?

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.

No compiler in target system

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?

I can't follow the Readme.md

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..

Failing to compile csky_gx6605s_defconfig

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)
                                                               ^

USB.image is not generated

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/imagesdirectory.
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?

buildroot configuration is lost!

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?

关于综合的问题

玄铁内核能够拿来跑综合吗?请问具体如何操作?以及memory的拼接替换有没有具体点的教程?

buildroot如何挂载一个QCOW2的文件系统

执行如下命令,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

请问是什么问题?应该怎么解决

Failed to compile on 18.10, freadahead and rpl_fseeko need to be ported.

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.

Adding Qt support to buildroot for cross compiling.

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?

Segmentation fault when building host-python

$ 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

ck810 futex error?

在CPU CK810时(软件使用的是buildroot v1.0.3)遇到了futex返回错误的问题,希望能得到您的解答或者建议!
遇到该问题时也尝试将版本更新至buildroot v1.0.9.5,问题依旧。

具体问题见:
ck810 futex.pdf

When compiling toolchain with buildroot - gcc ubsan compilation error: ubsan.c: In function ‘bool ubsan_use_new_style_p(location_t)’: ../../gcc/ubsan.c:1474:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]

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

Where to buy c-sky gx6650 board

Hi dear, i have question,
Where to buy c-sky gx6650 board. Taobao link.
And can do it install linphone to conect voip server?

Any crypto library support?

Is there any buildroot recipe for something like openssl, mbedtls or gcrypto? Unfortunately I didn't find any.

dvb s2

Sir,
This build support dvb s2 to watch tv also want to know about webif package please reply any expert
Thank You

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.