Jump to content

Armbian image and build support for RISC-V.


balbes150

Recommended Posts

Added alpha version of image build support for RISC-V.

So far, this is an early version and some of the functions do not work in it.

Currently, support has been added for the StarFive model.

 

https://rvspace.org/

 

Details can be seen in this topic.

 

https://forum.rvspace.org/t/armbian-for-starfive-build-system-ubuntu-debian/468

 

 

Added support for Nezha D1 and Lichee RV (Dock) with Allwinner D1 RISC-V chip. To start the system. Download the image, unpack it, burn it to the SD card.  Connect the SD card to the device and turn on the power. Further steps for initial setup are similar for all Armbian systems.

 

For the Nezha D1 model, HDMI, LAN, USB, analog audio via 3.5 jack works.

For Lichee RV Dock  works HDMI WiFi USB USB-LAN

 

Link to download images.

https://disk.yandex.ru/d/da8qJ8wyE1hhcQ

 

https://www.cnx-software.com/2021/12/30/sipeed-lichee-rv-risc-v-module-gets-5-carrier-board-with-hdmi-and-usb-ports-optional-wifi/

Link to comment
Share on other sites

Donate your old hardware to community. Start a giveaway Raffle!

14 часов назад, Rich Neese сказал:

is this a uefi or non uefi build / are you flashiing the spi to boot ?

There is no UEFI for StarFive yet. The regular\factory u-boot is used in SPI (no u-boot is needed as part of the image).

Link to comment
Share on other sites

19 часов назад, Rich Neese сказал:

might ask why put in tvbox and not its own branch and do you plan to nerge into the armbian-next so we can use the updatedd builder ?

I use a separate branch to build RISC-V (it's called risc-v). To be included in the general build system, two conditions are needed, 1. debug the current state and remove temporary hacks. 2. coordinate the addition of a new architecture with the developer community (there are those who do not like when you add something new).

 

19 часов назад, Rich Neese сказал:

BTW Nice work . Have you tested with Sid? I would like to see a debian Sid image for testing .

To add Debian, we need to solve a number of problems with creating an additional repository, at the moment I am doing a number of works and after that I may be able to add Debian.

Link to comment
Share on other sites

Biggest issue I see is people will say Risc-v is not armhf/arm64 and should not be in the arm builder. 

 

I am the desktop dev .. I have spent time making alot of the desktops work and hope soon to add then to a riscv build. 

 

Currently I have been testing them on a build on the beagleV

 

the bit thing is I can build images but they are not extlinux so I have to work on fixing this in the builder I have been working with that more of a straight bootstrap

 

 

Link to comment
Share on other sites

12 часов назад, Rich Neese сказал:

Biggest issue I see is people will say Risc-v is not armhf/arm64 and should not be in the arm builder. 

Since the Armbian system build images for RPi and x86, it no longer matters, I have already written that "Arm_bian" does not mean ARM devices, but an "automated workplace (arm)" based on Ubuntu\Debian.

 

 

For everyone. Good news, added initial support for building Armbian image versions for RISC-V models based on Allwinner D1 (Lichee RV, Nezha etc).

Link to comment
Share on other sites

Added support for Nezha D1 and Lichee RV (Dock) with Allwinner D1 RISC-V chip. To start the system. Download the image, unpack it, burn it to the SD card. Download the bootloader file and burn it to the SD card (a prerequisite, you need to record the bootloader strictly, after recording the system image). Connect the SD card to the device and turn on the power. Further steps for initial setup are similar for all Armbian systems. For the Nezha D1 model, HDMI, LAN, USB, analog audio via 3.5 jack works.

 

https://disk.yandex.ru/i/fNXBTZx4XrgvHw

Link to comment
Share on other sites

11 часов назад, Rich Neese сказал:

where is the os img?

In the first message of the topic there is a link to a shared directory with images for all RISC-V. The language depends on what you choose when you first set it up.

Link to comment
Share on other sites

New version 20220617 for all D1 models (Nuzha D1, LiheeRV dock etc).

Added support for USB-LAN (tested working with rt8152 module).

 

Important. Now there is no need to write the bootloader to the SD card separately, everything you need is already included in the image, it is enough to download, unpack and burn the image to the SD card, the system is universal and works well on all proven models with D1.

 

Surprisingly, the system works quite smartly for a single-core processor and very modest resources (LicheeRV Dock with 512 MB of RAM) even with XFCE. At a low price for a set of LicheRV + Dock, this is a very promising direction. By the way, versions with 1 GB of RAM for Licher and 2 GB of RAM for Nezha have already been released.

 

https://www.cnx-software.com/2021/12/30/sipeed-lichee-rv-risc-v-module-gets-5-carrier-board-with-hdmi-and-usb-ports-optional-wifi/

Link to comment
Share on other sites

Added primary support for building Debian images (sid). I also uploaded a test image (20220618) of Armbian Debian Sid for Starfive to the site.

There is a bug, the automatic locale setting does not work at the first start, the US locale is enabled by default, to enable others, you need to manually install and configure.

Link to comment
Share on other sites

10 часов назад, Rich Neese сказал:

so when will the sid xfce be ready

It may be in a couple of days (but I don't guarantee it).

 

10 часов назад, Rich Neese сказал:

icewm

:)  This is the main DE that I usually use.

https://disk.yandex.ru/d/vdK8lvH0kUNcjw

 

 

9 часов назад, Rich Neese сказал:

The sd card autoresize did not do its job .for the rootfs

Interestingly, I didn't pay attention to it. Can you show the errors that occur if you run the script to automatically expand the partition ?

Link to comment
Share on other sites

Oh, wow, it just works!

 

I downloaded Armbian_22.08.0-trunk_Nezha_jammy_current_5.19.0_xfce_desktop.img.xz, burned it to a SD-card with balena-Etcher, put it into my Lichee Dock D1, booted it ... and it worked. Amazing!

 

I connected a 10+ year old USB-to-ethernet adapter, and ethernet was working.

 

Really impressive. Thank you!

 

root@nezha:~# uname -a
Linux nezha 5.19.0-rc1-d1 #trunk Fri Jun 17 14:51:17 MSK 2022 riscv64 riscv64 riscv64 GNU/Linux

 

and
 

root@nezha:~# lsusb 
Bus 004 Device 008: ID 0fe6:9700 ICS Advent DM9601 Fast Ethernet Adapter
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


 

Link to comment
Share on other sites

With "apt update", I get:

N: Skipping acquire of configured file 'main/binary-riscv64/Packages' as repository 'http://cli.github.com/packages stable InRelease' doesn't support architecture 'riscv64'
N: Skipping acquire of configured file 'main/binary-riscv64/Packages' as repository 'http://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs vscodium InRelease' doesn't support architecture 'riscv64'


... is it safe to disable these two repo's?

 

 

 

root@nezha:~# apt update
Hit:2 http://ports.ubuntu.com jammy InRelease                                                       
Hit:3 http://ports.ubuntu.com jammy-security InRelease                                              
Hit:4 http://ports.ubuntu.com jammy-updates InRelease                                               
Hit:5 http://ports.ubuntu.com jammy-backports InRelease                                             
Hit:6 http://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu jammy InRelease                 
Hit:1 https://cli.github.com/packages stable InRelease                                              
Hit:7 https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs vscodium InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
N: Skipping acquire of configured file 'main/binary-riscv64/Packages' as repository 'http://cli.github.com/packages stable InRelease' doesn't support architecture 'riscv64'
N: Skipping acquire of configured file 'main/binary-riscv64/Packages' as repository 'http://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs vscodium InRelease' doesn't support architecture 'riscv64'

 

Link to comment
Share on other sites

 

E: specified keyring file (/usr/share/keyrings/debian-ports-archive-keyring.gpg) not found

[ error ] ERROR in function create_rootfs_cache [ main.sh:588 -> main.sh:549 -> debootstrap.sh:58 -> debootstrap.sh:226 -> general.sh:0 ]

[ error ] Debootstrap base system for edge starfive sid browsers chat desktop_tools editors email internet multimedia office programming remote_desktop icewm no first stage failed

[ o.k. ] Process terminated

[ error ] unmount_on_exit() called! [ main.sh:1 -> image-helpers.sh:0 ]

[ o.k. ] Unmounting [ /home/rneese/build/.tmp/rootfs-5e7f5666-a292-457d-8b9e-472c54591db6/ ]

[ error ] ERROR in function unmount_on_exit [ main.sh:1 -> image-helpers.sh:94 -> general.sh:0 ]

[ error ] debootstrap-ng was interrupted

 

so keyrings are missing for the repo

Link to comment
Share on other sites

14 часов назад, Rich Neese сказал:

do you have a list for all the parts you put in icewn so we can match ?

This is the build system that is used for altlinux (grep icewm)

http://git.altlinux.org/people/balbes150/packages/?p=mkimage-profiles.git;a=summary

 

13 часов назад, Rich Neese сказал:

now I wish they wout get jit9 working so we can have a propper web browser and other apps

Altlinux has a MIDORI browser, I haven't checked, but it should work.

 

13 часов назад, Rich Neese сказал:

I think it would be cool since we are also working on a riscv pc600 case for the board.

sorry, I use a translator and I didn't understand exactly what it was about

 

10 часов назад, Rich Neese сказал:

so keyrings are missing for the repo

I haven't had time to add the installation of this package to the build system yet (add it to the list of installed packages when the build system is first started). Just install it through for now (to host)

 

apt install debian-ports-archive-keyring

Link to comment
Share on other sites

14 minutes ago, balbes150 said:

You have not specified the full steps, no one will help without it.

I ran the app xfce4-display-settings , I selected the main display (the only display connected) and set it to 1920x1080, then the system showed the wallpaper, then it went black and nothing displayed again. When restarted it showed 4k resolution instead of the 1920x1080 resolution I set.

Edited by Ricecracker
Changed
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...