LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > slarm64
User Name
Password
slarm64 This forum is for the discussion of slarm64.

Notices


Reply
  Search this Thread
Old 10-30-2021, 11:22 PM   #1
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,862

Rep: Reputation: Disabled
Nezha D1 (slarm64, riscv64)


information board:
  • SoC – Allwinner D1 single-core XuanTie C906 64-bit RISC-V processor @ 1.0 GHz with HiFi4 DSP, G2D 2D graphics accelerators
  • Memory – 1GB DDR3 memory
  • Storage – 256MB SPI NAND flash, MicroSD card slot
  • Video
    Output – HDMI 1.4 port up to 4Kp30, MIPI DSI & touch panel interface up to 1080p60
    Decoding – H.265 up to 1080p60 or 4Kp30, H.264 up to 1080p60 or 4Kp24, MPEG-1/2/4, JPEG, VC1 up to 1080p60
    Encoding – JPEG/MJPEG up to 1080p60
  • Audio – 3.5mm audio jack, digital audio output via HDMI, a connector for microphone board
  • Connectivity – Gigabit Ethernet via RTL8211F PHY, 2.4GHz WiFi 4 & Bluetooth module via XR829 module
  • USB – 1x USB 2.0 host port, 1x USB Type-C OTG portport
  • Expansion – 40-pin GPIO connector
  • Debugging – 4-pin UART header, USB ADB debugging supported
  • Misc – Power LED, tri-color user LED, OK & FEL buttons
  • Power Supply – 5V/2A via one of the two USB-C ports
  • Dimensions – 85 x 56 mm (6-layer PCB)

Allwinner D1 specifications:
  • CPU – Alibaba XuanTie C906 64bit RISC-V core with 32 KB I-cache + 32 KB D-cache
  • DSP – HiFi4 DSP 600MH with 32 KB I-cache + 32 KB D-cache, 64 KB I-ram + 64 KB D-ram
  • Memory I/F – Up to 2GB DDR2/DDR3
  • Storage I/F – SD3.0, eMMC 5.0, SPI Nor/Nand Flash
  • Video Engine
  • Video decoding
    H.265 up to 1080p@60fps, or 4K@30fps
    H.264 up to 1080p@60fps, or 4K@24fps
    MPEG-1/2/4, JPEG, VC1 up to 1080p@60fps
  • Video encoding – JPEG/MJPEG up to 1080p@60fps
    Supports input picture scaler up/down
  • Video OUT
    RGB LCD output interface up to 1920 x 1080@60fps
    Dual link LVDS interface up to 1920 x 1080@60fps
    4-lane MIPI DSI interface up to 1920 x 1080@60fps
    HDMI V1.4 output interface up to 4K@30fps
    CVBS OUT interface, supporting NTSC and PAL format
  • Video IN
    8-bit parallel CSI interface
    CVBS IN interface, supporting NTSC and PAL format
  • Audio
    2x DAC’s and 3x ADC’s
    Analog audio interfaces – MICIN1P/N, MICIN2P/N, MICIN3P/N, FMINL/R, LINEINL/R, LINEOUTLP/N, LINEOUTRP/N, HPOUTL/R
    Digital audio interfaces – I2S/PCM, DMIC, OWA IN/OUT
  • Networking – 10/100/1000M EMAC with RMII and RGMII interfaces
  • USB – USB2.0 OTG, USB2.0 Host
  • Other peripherals
    SDIO 3.0, SPI x 2, UART x 6, TWI x 4
    PWM (8-ch), GPADC (2-ch), LRADC (1-ch), TPADC (4-ch), IR TX&RX
  • Package – LFBGA BGA13*13/0.35/0.65mm,337 PINS
  • Manufacturing process – 22nm
Attached Thumbnails
Click image for larger version

Name:	nezha-allwinner-d1-front.jpg
Views:	34
Size:	53.2 KB
ID:	37606  
 
Old 12-12-2021, 06:17 PM   #2
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,862

Original Poster
Rep: Reputation: Disabled
added support, discussion here
 
1 members found this post helpful.
Old 01-06-2022, 09:18 AM   #4
lucabon
Member
 
Registered: Oct 2021
Location: Italy
Distribution: Slackware
Posts: 102

Rep: Reputation: 74
There are a couple of things that should be changed to permit the board to boot:
1) Since the CPU does not recognized the amount of memory, you should limit it by device tree:
memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x40000000>; /* 1 GB */
};
2) You should pass the parameter "clk_ignore_unused", otherwise the board will hang up.

Attached you can find updated kernel .config, that also allow to boot directly from MMC without an initrd.

For debugging, it will be also better to add "earlyprintk=sunxi-uart,0x02500000 earlycon=sbi" parameters to immediately see where the boot process hangs.

For D1-Nezha, I think it will be better to following Fedora instructions, that allow also to build grub:
https://fedoraproject.org/wiki/Archi...SC-V/Allwinner

The following link contains additional information/resources:
https://ovsienko.info/D1/
Attached Files
File Type: txt config_5.16-rc1_d1-nezha.txt (191.3 KB, 5 views)
 
Old 01-06-2022, 12:53 PM   #5
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,862

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lucabon View Post
There are a couple of things that should be changed to permit the board to boot:
1) Since the CPU does not recognized the amount of memory, you should limit it by device tree:
memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x40000000>; /* 1 GB */
};
2) You should pass the parameter "clk_ignore_unused", otherwise the board will hang up.

Attached you can find updated kernel .config, that also allow to boot directly from MMC without an initrd.

For debugging, it will be also better to add "earlyprintk=sunxi-uart,0x02500000 earlycon=sbi" parameters to immediately see where the boot process hangs.

For D1-Nezha, I think it will be better to following Fedora instructions, that allow also to build grub:
https://fedoraproject.org/wiki/Archi...SC-V/Allwinner

The following link contains additional information/resources:
https://ovsienko.info/D1/
Thank you, when the board is on hand, the issue of loading will be better studied with a fix for subsequent builds.

1G memory patch for u-boot is already there, also added boot options.

Last edited by sndwvs; 01-07-2022 at 06:01 AM.
 
Old 07-04-2022, 02:22 PM   #8
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,862

Original Poster
Rep: Reputation: Disabled
kernel 5.19-rc4
installation README.TXT

output to HDMI does not work, only via UART

slarm64-current-riscv64-server-nezha-5.19.0-rc4-build-20220703.img.zst
slarm64-current-riscv64-server-nezha-5.19.0-rc4-build-20220703.img.zst.sha256
 
Old 08-13-2022, 11:36 PM   #9
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,862

Original Poster
Rep: Reputation: Disabled
installation README.TXT
kernel 5.19.1

output to HDMI does not work, only via UART

slarm64-current-riscv64-server-nezha-5.19.1-build-20220814.img.zst
slarm64-current-riscv64-server-nezha-5.19.1-build-20220814.img.zst.sha256
 
  


Reply

Tags
allwinner, d1, riscv64, slarm64


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware porting to arm[v5/v7/v8], ppc[32be/64be/64le], mips[32eb/32el/64el], riscv64, s390x lucabon Slackware 16 02-10-2023 06:51 PM
[SOLVED] Slackware RISC-V (riscv64) sndwvs Slackware - ARM 20 12-16-2021 07:18 AM
Riscv64 Slackware mcatudal Slackware 5 03-26-2021 07:51 PM
RISC V Based project with Xilinx Vivado on Ubuntu Linux(riscv64-unknown-elf-gcc: error: unrecognized command line option '-V') sagarkasrung Linux - Newbie 11 06-28-2019 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > slarm64

All times are GMT -5. The time now is 09:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration