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/

 

forum MangoPI

https://forum.mangopi.org/

Link to comment
Share on other sites

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

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

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

1 час назад, Ricecracker сказал:

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.

Judging by the description, you could not confirm the change of permission, of course it was not changed. Try to use the forced setting of the maximum resolution through the settings in extlinux.conf (look for information on the Internet, as they do).

Link to comment
Share on other sites

9 minutes ago, balbes150 said:

Judging by the description, you could not confirm the change of permission, of course it was not changed. Try to use the forced setting of the maximum resolution through the settings in extlinux.conf (look for information on the Internet, as they do).

Yes, I could not confirm it after clicking apply, the screen was going black. I put in extlinux.conf "video=HDMI-1:1920x1080@60" but that only changed the virtual terminal resolution to 1080p, when it booted to XFCE4 it went back to 4k. Any more advices? Thanks alot for your help btw.

Link to comment
Share on other sites

1 час назад, Ricecracker сказал:

Yes, I could not confirm it after clicking apply, the screen was going black. I put in extlinux.conf "video=HDMI-1:1920x1080@60" but that only changed the virtual terminal resolution to 1080p, when it booted to XFCE4 it went back to 4k. Any more advices?

I am not a specialist in XFCE, but try immediately after writing the image to the SD card (before the first launch), immediately add the desired resolution to extlinux.conf, so that all the primary XFCE settings would immediately pass with this resolution.

Link to comment
Share on other sites

1 minute ago, balbes150 said:

I am not a specialist in XFCE, but try immediately after writing the image to the SD card (before the first launch), immediately add the desired resolution to extlinux.conf, so that all the primary XFCE settings would immediately pass with this resolution.

Ah okay thanks, thats very smart. I will try it :)

Link to comment
Share on other sites

6 hours ago, balbes150 said:

New ver 20220622 for D1 (Nezha Lichee RV Mango MQ pro etc) and StarFive V1 (u740)

add image Debian Sid (server and DE XFCE).

Thank you for all of your work on this! You've made a lot of MangoPi board holders happy 😄

Link to comment
Share on other sites

51 minutes ago, Bret said:

Thank you for all of your work on this! You've made a lot of MangoPi board holders happy 😄

 

Out of curiosity:

- does network work? If so, via wifi, or with a ethernet-usb-module?

- is the MangoPI pro still for sale? Sold out on Ali, AFAIK

Link to comment
Share on other sites

22 hours ago, Superkoning said:

 

Out of curiosity:

- does network work? If so, via wifi, or with a ethernet-usb-module?

- is the MangoPI pro still for sale? Sold out on Ali, AFAIK


Yup, both WiFi and Ethernet via a USB Ethernet adapter I have here. HDMI output works on them too, it's a great starting point and the best option at the moment owners of the MQ Pro to get up and running.

 

They're sold out now but there should be another run coming at some point soon given how quickly they've sold out of each run so far. They also have a quad core ARM board coming soon too.

Link to comment
Share on other sites

15.06.2022 в 23:22, Rich Neese сказал:

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

Can I see a link to this build system ?

By the way, I used your settings to add ICEWM support and am now finishing the build and testing, after checking I will upload the images (dir 20220624) and update my GIT branch with IceWM support. :)

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

Important Information

Terms of Use - Privacy Policy - Guidelines