{"id":22880811,"url":"https://github.com/xuantie-rv/buildroot","last_synced_at":"2025-08-10T23:38:50.943Z","repository":{"id":114567180,"uuid":"418303932","full_name":"XUANTIE-RV/buildroot","owner":"XUANTIE-RV","description":"Buildroot customized for Xuantie™ RISC-V CPU","archived":false,"fork":false,"pushed_at":"2022-01-17T06:20:10.000Z","size":65764,"stargazers_count":44,"open_issues_count":4,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-08T00:49:02.550Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Roff","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XUANTIE-RV.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-18T01:33:24.000Z","updated_at":"2025-04-01T01:47:16.000Z","dependencies_parsed_at":"2023-03-13T13:07:56.756Z","dependency_job_id":null,"html_url":"https://github.com/XUANTIE-RV/buildroot","commit_stats":null,"previous_names":["xuantie-rv/buildroot"],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XUANTIE-RV%2Fbuildroot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XUANTIE-RV%2Fbuildroot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XUANTIE-RV%2Fbuildroot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XUANTIE-RV%2Fbuildroot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XUANTIE-RV","download_url":"https://codeload.github.com/XUANTIE-RV/buildroot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252978685,"owners_count":21834913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-13T17:27:24.167Z","updated_at":"2025-05-08T00:49:07.943Z","avatar_url":"https://github.com/XUANTIE-RV.png","language":"Roff","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Buildroot\nFor Xuantie CPU Series Kernel build\n\n# Introduction\nBuildroot is a tool that simplifies and automates the process of building a complete Linux system for an embedded system, using cross-compilation. In order to achieve this, Buildroot is able to generate a cross-compilation toolchain, a root filesystem, a Linux kernel image and a bootloader for your target. Buildroot can be used for any combination of these options, independently (you can for example use an existing cross-compilation toolchain, and build only your root filesystem with Buildroot).\n\nThis repositery is based on buildroot official repo and project-specific customization is made for Xuantie CPU Series' opensource ecosystem.\n\n# Quick Start\n\n## Chip \u0026 Board\nICE is a Xuantie C910 based high-performance SoC board developed by T-Head. The ICE SoC has integrated 3 Xuantie C910 cores (RISC-V 64) and 1 GPU core, featuring speed and intelligence with a high cost-effective ratio. The chip can provide 4K@60 HEVC/AVC/JPEG decoding ability and varieties of high-speed interfaces and peripherals for controlling and data exchange; suits for 3D graphics, visual AI, and multimedia processing.\n\n![ice.png](https://github.com/T-head-Semi/aosp-riscv/blob/main/resources/ice.jpg?raw=true)\n\nGraph 2. ICE chip\n\nFor more information about Xuantie 910 CPU core IP, please check: [**Xuantie C910 introduction**](https://occ.t-head.cn/vendor/cpu/index?spm=a2cl5.14294226.0.0.6700df2098XZyN\u0026id=3806788968558108672)\n\nMore detials ref to: [**RVB-ICE**](https://occ.t-head.cn/community/risc_v_en/detail?id=RVB-ICE)\n\n## Build boot.ext4 (kernel + opensbi + dtb) \u0026 rootfs\n\n(Tested enviornment - ubuntu 16.04 amd64)\n\n```bash\n git clone https://gitlab.com/c-sky/buildroot.git\n cd buildroot\n make CONF=thead_9xxf_enhanced_5.10_glibc_br_defconfig\n export PATH=$PATH:`pwd`/host/opt/ext-toolchain/bin\n```\n\nThen you will get:\n```bash\n ls -l thead_9xxf_enhanced_5.10_glibc_br_defconfig/images/boot.ext4\n ls -l thead_9xxf_enhanced_5.10_glibc_br_defconfig/images/rootfs.ext2\n```\n\n## Build u-boot\n\n```bash\ngit clone \"https://gitee.com/thead-linux/u-boot.git\" -b master\nmake ice_rvb_c910_defconfig\nmake -j ARCH=riscv CROSS_COMPILE=riscv64-unknown-linux-gnu-\n```\n\nThen you will get:\n```bash\nu-boot-with-spl.bin\n```\n\n## Prepare flash tools in host\n\nUsing pip command install thead-tools into your system. (Please using python2)\n```bash\nsudo apt install python-pip\nsudo apt install fastboot\n\nsudo pip install thead-tools\nsudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple thead-tools\n```\n\n## Flash the u-boot\n\nConnect RVB-ICE UART with USB-Type-C to your host PC, ref:\n[RVB-ICE Type-C UART](https://occ.t-head.cn/community/risc_v_en/detail?id=RVB-ICE)\n\n```bash\nroot@linux \u003e thead cct uart\nuart device list:\n   /dev/ttyUSB0 - USB-Serial Controller\n   /dev/ttyUSB1 - USB-Serial Controller\n\nroot@linux \u003e thead cct -u /dev/ttyUSB0 list\nWait .....................\nCCT Version: 2\nmemory device list:\n  dev = ram0   , size =  256.0KB\n  dev = emmc0  , size =    2.0MB\n  dev = emmc1  , size =    2.0MB\n  dev = emmc2  , size =    3.7GB\n```\n\nWe will put uboot into the emmc0:\n\n```bash\nthead cct -u /dev/ttyUSB0 download -f u-boot-with-spl.bin -d emmc0\nCCT Version: 2\nSend file 'u-boot-with-spl.bin' to 21:0 ...\nWriting at 0x00009800... (3%)\n\nReset the board, and you will see:\n\nU-Boot 2020.01-g6cc5d59b0d (Dec 20 2020 - 08:37:37 +0000)\n\nCPU:   rv64imafdcvsu\nModel: T-HEAD c910 ice\nDRAM:  4 GiB\nGPU ChipDate is:0x20151217\nGPU Frequency is:500000KHz\nNPU ChipDate is:0x20190514\nDPU ChipDate is:0x20161213\nMMC:   mmc0@3fffb0000: 0\nLoading Environment from MMC... OK\nIn:    serial@3fff73000\nOut:   serial@3fff73000\nErr:   serial@3fff73000\nNet:\nWarning: ethernet@3fffc0000 (eth0) using random MAC address - e6:e2:ea:7a:30:ce\neth0: ethernet@3fffc0000\nHit any key to stop autoboot:  1\n```\n\n## Prepare u-boot env setting\n\nIn u-boot UART console to setup fastboot UDP server.\n\n```bash\nenv default -a\n\nsetenv uuid_rootfs \"80a5a8e9-c744-491a-93c1-4f4194fd690b\"\nsetenv partitions \"name=table,size=2031KB\"\nsetenv partitions \"$partitions;name=boot,size=60MiB,type=boot\"\nsetenv partitions \"$partitions;name=root,size=-,type=linux,uuid=$uuid_rootfs\"\ngpt write mmc 0 $partitions\n\nsetenv ethaddr 00:a0:a0:a0:a0:a1\nsetenv ipaddr 192.168.1.100 (Your IP)\nsetenv netmask 255.255.255.0\nsaveenv\n\nfastboot udp\n```\n\n## Using fastboot install boot.ext4 \u0026 rootfs\n\n```bash\nfastboot -s udp:192.168.1.100 flash boot boot.ext4\n\nfastboot -s udp:192.168.1.100 flash root rootfs.ext2\n```\n\n## Reset the board\n\nPower on the board, you will get:\n```bash\n[    1.635084] VFS: Mounted root (ext4 filesystem) readonly on device 254:0.\n[    1.638991] devtmpfs: mounted\n[    1.671150] Freeing unused kernel memory: 252K\n[    1.729521] Run /sbin/init as init process\n[    1.861620] EXT4-fs (vda): warning: mounting unchecked fs, running e2fsck is recommended\n[    1.866438] EXT4-fs (vda): re-mounted. Opts: (null)\nStarting syslogd: OK\nStarting klogd: OK\nRunning sysctl: OK\nStarting mdev... OK\nInitializing random number generator: OK\nSaving random seed: [    5.720512] random: dd: uninitialized urandom read (512 bytes read)\nOK\nStarting network: OK\nStarting telnetd: OK\nprocessor       : 0\nhart            : 0\nisa             : rv64imafdcsu\nmmu             : sv39\nmodel name      : T-HEAD C910\nfreq            : 1.2GHz\nicache          : 64kB\ndcache          : 64kB\nl2cache         : 2MB\ntlb             : 1024 4-ways\ncache line      : 64Bytes\naddress sizes   : 40 bits physical, 39 bits virtual\nvector version  : 0.7.1\n\nprocessor       : 1\nhart            : 1\nisa             : rv64imafdcsu\nmmu             : sv39\nmodel name      : T-HEAD C910\nfreq            : 1.2GHz\nicache          : 64kB\ndcache          : 64kB\nl2cache         : 2MB\ntlb             : 1024 4-ways\ncache line      : 64Bytes\naddress sizes   : 40 bits physical, 39 bits virtual\nvector version  : 0.7.1\n\nSkip the ci test\n\nWelcome to Buildroot\nbuildroot login:\n```\n\n# Resources\n - [https://occ.t-head.cn/community/risc_v_en/detail?id=RVB-ICE](https://occ.t-head.cn/community/risc_v_en/detail?id=RVB-ICE)\n - [https://occ.t-head.cn/community/risc_v](https://occ.t-head.cn/community/risc_v)\n - [https://occ.t-head.cn/vendor/cpu/cpuList](https://occ.t-head.cn/vendor/cpu/cpuList)\n - [https://github.com/T-head-Semi/u-boot](https://github.com/T-head-Semi/u-boot)\n - [https://github.com/T-head-Semi/opensbi](https://github.com/T-head-Semi/opensbi)\n - [https://github.com/T-head-Semi/linux](https://github.com/T-head-Semi/linux)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuantie-rv%2Fbuildroot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxuantie-rv%2Fbuildroot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuantie-rv%2Fbuildroot/lists"}