GithubHelp home page GithubHelp logo

riscv-aosp's People

Contributors

maohan002 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  avatar  avatar  avatar  avatar

riscv-aosp's Issues

seems that there is some issue when building the whole image

./reproduce.sh

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=aosp_riscv64
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=riscv64
TARGET_ARCH_VARIANT=riscv64
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-118-generic-x86_64-Ubuntu-16.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QP1A.191105.004
OUT_DIR=out

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=aosp_riscv64
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=riscv64
TARGET_ARCH_VARIANT=riscv64
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-118-generic-x86_64-Ubuntu-16.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QP1A.191105.004
OUT_DIR=out

[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

Wifi and Bluetooth

Anyone have the WiFI and Bluetooth drivers working on T-HEAD c910 ice hardware with Android ?

fastboot: error: boot partition is smaller than boot image

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

Building image for real Hardware.

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.

Build failed!

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

Emulator failing once it Lunched.

Hello,

I have cloned and build aosp-riscv, Currently there was 2 issues like,

  1. when i lunch emulator it's failing and throwing an Error as follows,

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

  1. In Emulator Graphical thinks are not visible.

Can any help me out resolve this issue.

Thanks in advance,
Ghalib khan c.

build instructions, configs and source for uboot and kernel

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 :

kernel and U-boot ?

Thanks in advance.

android10-release sources from https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest URL failing to download.

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.

reproduce.sh script is failing to clone sources.

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.

ICE EVB available?

Where can we buy the ICE EVB shown in the demo video? I was unable to find on AliExpress or TaoBao.

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.