t-head-semi / riscv-aosp Goto Github PK
View Code? Open in Web Editor NEWPatches & Script for AOSP to run on Xuantie RISC-V CPU
License: Apache License 2.0
Patches & Script for AOSP to run on Xuantie RISC-V CPU
License: Apache License 2.0
./reproduce.sh
[100% 46/46] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp
error: test/suite_harness/common/host-side/util/Android.bp:15:1: "compatibility-host-util" depends on undefined module "cts_error_prone_rules"
18:45:07 soong bootstrap failed with: exit status 1
Anyone have the WiFI and Bluetooth drivers working on T-HEAD c910 ice hardware with Android ?
Hi,
I just build the AOSP with main_2023_7_7
tagged manifest.
Following the instructions, I can flash most of the partitions with their corresponding images without problems.
Yet while flashing boot
partition, it gives out the error :
fastboot: error: boot partition is smaller than boot image
And on the console, I can witness the flashing process slipped :
Flashing Raw Image
........ wrote 8388608 bytes to 'bootpart_a'
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
Starting download of 33554432 bytes
request 00000000fbb4e180 was not queued to ep1in-bulk
..........................................................................
..........................................................................
..........................................................................
..................................
downloading of 33554432 bytes finished
request 00000000fbb4e180 was not queued to ep1in-bulk
cmd_parameter: vendor_boot_a, imagesize: 33554432
Flashing Raw Image
........ wrote 33554432 bytes to 'vendor_boot_a'
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
Starting download of 117436592 bytes
request 00000000fbb4e180 was not queued to ep1in-bulk
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
.......
downloading of 117436592 bytes finished
request 00000000fbb4e180 was not queued to ep1in-bulk
cmd_parameter: super, imagesize: 117436592
Flashing sparse image at offset 462848
Flashing Sparse Image
........ wrote 117456896 bytes to 'super'
Besides, during the first round of U-boot flash-and-reboot, I saw GPT table was written :
U-Boot 2020.01-g7794d97f84-dirty (Aug 05 2023 - 04:03:55 +0800)
CPU: rv64imafdcvsu
Model: T-HEAD c910 light
DRAM: 4 GiB
C910 CPU FREQ: 750MHz
AHB2_CPUSYS_HCLK FREQ: 250MHz
AHB3_CPUSYS_PCLK FREQ: 125MHz
PERISYS_AHB_HCLK FREQ: 250MHz
PERISYS_APB_PCLK FREQ: 62MHz
GMAC PLL POSTDIV FREQ: 1000MHZ
DPU0 PLL POSTDIV FREQ: 1188MHZ
DPU1 PLL POSTDIV FREQ: 1188MHZ
MMC: sdhci@ffe7080000: 0, sd@ffe7090000: 1
Loading Environment from MMC... OK
Error reading output register
Warning: cannot get lcd-en GPIO
LCD panel cannot be found : -121
splash screen startup cost 13 ms
In: serial
Out: serial
Err: serial
## Resetting to default environment
ethaddr=76:1b:b2:01:f2:0b
eth1addr=76:1b:b2:01:f2:0c
Saving Environment to MMC... Writing to MMC(0)... OK
Writing GPT: success!
dwc3_gadget_start maximum_speed:5 revision:0x5533330b
dwc3_gadget_start DWC3_DCFG:0x80804
dwc3_gadget_conndone_interrupt speed:4 dwc3_dsts:0x2021c
dwc3_gadget_conndone_interrupt speed:4 dwc3_dsts:0x2593c
Writing GPT: success!
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
request 00000000fbb4e180 was not queued to ep1in-bulk
Starting download of 1032184 bytes
request 00000000fbb4e180 was not queued to ep1in-bulk
.......
Thus I am wondering shall I tweak the GPT table / size on the U-boot side ?
The boot.img
I generated from the AOSP is around 32/33 megabytes :
[ruinland-x1c beaglev_ahead]# ls -la ./boot.img
-rwxrwxrwx 1 ruinland ruinland 33554432 Mar 11 11:32 ./boot.img
Hello folks,
I want to build android OS to real RISC-V target Machine, can anyone help me out, How can build android OS.
Thanks in advance,
Ghalib khan c.
hi, I tried to build and failed, error log attached, anybody else see the similar issue?
error.log
machine info, FYI:
LSB Version: core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
Hello,
I have cloned and build aosp-riscv, Currently there was 2 issues like,
$ emulator -selinux permissive -qemu -smp 2 -m 3800M -bios /home/performance-server/ghalib-khan/android/aosp-riscv/aosp-riscv/aosp/prebuilts/qemu-kernel/riscv64/ranchu/fw_jump.bin
emulator: WARNING: encryption is off
emulator: ERROR: VkCommonOperations.cpp:537: Failed to create Vulkan instance.
ProbeKVM: This user doesn't have permissions to use KVM (/dev/kvm).
The KVM line in /etc/group is: [LINE_NOT_FOUND]
If the current user has KVM permissions,
the KVM line in /etc/group should end with ":" followed by your username.
If we see LINE_NOT_FOUND, the kvm group may need to be created along with permissions:
sudo groupadd -r kvm
# Then ensure /lib/udev/rules.d/50-udev-default.rules contains something like:
# KERNEL=="kvm", GROUP="kvm", MODE="0660"
# and then run:
sudo gpasswd -a $USER kvm
If we see kvm:... but no username at the end, running the following command may allow KVM access:
sudo gpasswd -a $USER kvm
You may need to log out and back in for changes to take effect.
kernel@80200000, initrd@88200000
qemu-system-riscv64: plic: invalid register write: 000001fc
qemu-system-riscv64: plic: invalid register read: 00002090
qemu-system-riscv64: plic: invalid register write: 00002090
qemu-system-riscv64: plic: invalid register read: 00002190
qemu-system-riscv64: plic: invalid register write: 00002190
Segmentation fault (core dumped)
Can any help me out resolve this issue.
Thanks in advance,
Ghalib khan c.
Hi,
I have build and trying to boot ramdisk. system & vendor images. while booting am hitting the following Error, can anyone resolve this issue to get till ADB shell.
Is there any problem with oss buckets of https://rosp-riscv.oss-cn-hangzhou.aliyuncs.com/prebuilts/* ?
Seems it cant be access.
Thanks a lot.
$ git lfs pull
batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.
error: failed to fetch some objects from 'https://github.com/T-head-Semi/aosp-riscv.git/info/lfs'
Hi,
While I am finding a way to workaround the partition size for #16 ,
I tried to find out the source for U-boot - - which, according to the log, writes the GPT table to flash.
Could you provide me the source, configs and build instructions for the shipped binaries, namely :
Thanks in advance.
I was facing an issue while downloading android10 sources from https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest URL as follow's,
$ cd ${AOSP_RISCV_BUILD_TOP}
$ repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest -b android10-release
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
platform/prebuilts/misc:
remote: Counting objects: 1582, done.
remote: Compressing objects: 100% (1118/1118), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
remote: Counting objects: 1582, done. MiB | 44.00 KiB/s
remote: Compressing objects: 100% (1118/1118), done.
remote: Total 12081 (delta 6032), reused 10083 (delta 5385)
Receiving objects: 100% (12081/12081), 108.40 MiB | 55.00 KiB/s, done.
Resolving deltas: 100% (6032/6032), done.
remote: Counting objects: 25, done. 7 MiB | 74.00 KiB/s objects: 96% (9959/10289), 821.60 MiB | 86.00 KiB/s
remote: Compressing objects: 100% (20/20), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
platform/prebuilts/misc:
remote: Counting objects: 1582, done.
remote: Compressing objects: 100% (1118/1118), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Can any one help me out to reslove this issue.
Thanks in advance
Ghalib khan.
Hello,
Am trying to reproduce build of aosp-riscv on x86 Machine, i have cloned https://github.com/T-head-Semi/aosp-riscv.git and run the reproduce script there it was failing to clone prebuilt sources as follows.
Can any one know why this was happen and help me to resolve this issue.
$ ./reproduce.sh
--2021-02-01 17:41:19-- https://rosp-riscv.oss-cn-hangzhou.aliyuncs.com/prebuilts/android-emulator/linux-x86_64.zip
Resolving rosp-riscv.oss-cn-hangzhou.aliyuncs.com (rosp-riscv.oss-cn-hangzhou.aliyuncs.com)... failed: Name or service not known.
wget: unable to resolve host address ‘rosp-riscv.oss-cn-hangzhou.aliyuncs.com’
--2021-02-01 17:41:20-- https://rosp-riscv.oss-cn-hangzhou.aliyuncs.com/prebuilts/clang-tools/linux-x86.zip
Resolving rosp-riscv.oss-cn-hangzhou.aliyuncs.com (rosp-riscv.oss-cn-hangzhou.aliyuncs.com)... failed: Name or service not known.
wget: unable to resolve host address ‘rosp-riscv.oss-cn-hangzhou.aliyuncs.com’
--2021-02-01 17:41:20-- https://rosp-riscv.oss-cn-hangzhou.aliyuncs.com/prebuilts/clang/host/linux-x86/clang-dev.zip
Resolving rosp-riscv.oss-cn-hangzhou.aliyuncs.com (rosp-riscv.oss-cn-hangzhou.aliyuncs.com)... failed: Name or service not known.
wget: unable to resolve host address ‘rosp-riscv.oss-cn-hangzhou.aliyuncs.com’
--2021-02-01 17:41:20-- https://rosp-riscv.oss-cn-hangzhou.aliyuncs.com/prebuilts/gcc/linux-x86/riscv64/riscv64.zip
Resolving rosp-riscv.oss-cn-hangzhou.aliyuncs.com (rosp-riscv.oss-cn-hangzhou.aliyuncs.com)... failed: Name or service not known.
wget: unable to resolve host address ‘rosp-riscv.oss-cn-hangzhou.aliyuncs.com’
--2021-02-01 17:41:20-- https://rosp-riscv.oss-cn-hangzhou.aliyuncs.com/prebuilts/misc/riscv64.zip
Resolving rosp-riscv.oss-cn-hangzhou.aliyuncs.com (rosp-riscv.oss-cn-hangzhou.aliyuncs.com)... failed: Name or service not known.
wget: unable to resolve host address ‘rosp-riscv.oss-cn-hangzhou.aliyuncs.com’
--2021-02-01 17:41:20-- https://rosp-riscv.oss-cn-hangzhou.aliyuncs.com/prebuilts/ndk/r20.zip
Resolving rosp-riscv.oss-cn-hangzhou.aliyuncs.com (rosp-riscv.oss-cn-hangzhou.aliyuncs.com)... failed: Name or service not known.
wget: unable to resolve host address ‘rosp-riscv.oss-cn-hangzhou.aliyuncs.com’
--2021-02-01 17:41:20-- https://rosp-riscv.oss-cn-hangzhou.aliyuncs.com/prebuilts/qemu-kernel/riscv64.zip
Resolving rosp-riscv.oss-cn-hangzhou.aliyuncs.com (rosp-riscv.oss-cn-hangzhou.aliyuncs.com)... failed: Name or service not known.
wget: unable to resolve host address ‘rosp-riscv.oss-cn-hangzhou.aliyuncs.com’
--2021-02-01 17:41:20-- https://rosp-riscv.oss-cn-hangzhou.aliyuncs.com/prebuilts/vndk/v28/riscv64.zip
Resolving rosp-riscv.oss-cn-hangzhou.aliyuncs.com (rosp-riscv.oss-cn-hangzhou.aliyuncs.com)... failed: Name or service not known.
wget: unable to resolve host address ‘rosp-riscv.oss-cn-hangzhou.aliyuncs.com’
Thanks in advance.
Ghalib khan.
Where can we buy the ICE EVB shown in the demo video? I was unable to find on AliExpress or TaoBao.
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.