LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   slarm64 (https://www.linuxquestions.org/questions/slarm64-132/)
-   -   Nezha D1 (slarm64, riscv64) (https://www.linuxquestions.org/questions/slarm64-132/nezha-d1-slarm64-riscv64-4175702864/)

sndwvs 10-30-2021 10:22 PM

Nezha D1 (slarm64, riscv64)
 
1 Attachment(s)
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

sndwvs 12-12-2021 05:17 PM

added support, discussion here

sndwvs 12-17-2021 04:44 PM

kernel 5.16.0-rc1

not tested on live board
slarm64-current-riscv64-server-nezha-5.16.0-rc1-build-20211213.img.zst
slarm64-current-riscv64-server-nezha-5.16.0-rc1-build-20211213.img.zst.sha256

lucabon 01-06-2022 08:18 AM

1 Attachment(s)
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/

sndwvs 01-06-2022 11:53 AM

Quote:

Originally Posted by lucabon (Post 6315643)
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.

sndwvs 02-12-2022 06:39 AM

kernel 5.16.0

installation README.TXT

output to HDMI does not work, only via UART

slarm64-current-riscv64-server-nezha-5.16.0-build-20220212.img.zst
slarm64-current-riscv64-server-nezha-5.16.0-build-20220212.img.zst.sha256
slarm64-current-riscv64-xfce-nezha-5.16.0-build-20220212.img.zst
slarm64-current-riscv64-xfce-nezha-5.16.0-build-20220212.img.zst.sha256

sndwvs 02-19-2022 05:00 PM

1 Attachment(s)
installation README.TXT

legacy kernel 5.4.61

work:
  • hdmi
  • wifi
  • ethernet

slarm64-current-riscv64-server-nezha-5.4.61-build-20220220.img.zst
slarm64-current-riscv64-server-nezha-5.4.61-build-20220220.img.zst.sha256
slarm64-current-riscv64-xfce-nezha-5.4.61-build-20220220.img.zst
slarm64-current-riscv64-xfce-nezha-5.4.61-build-20220220.img.zst.sha256

sndwvs 07-04-2022 01:22 PM

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

sndwvs 08-13-2022 10:36 PM

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

sndwvs 11-04-2022 04:55 AM

installation README.TXT
kernel 6.1.0-rc3

slarm64-current-riscv64-server-nezha-6.1.0-rc3-build-20221104.img.zst
slarm64-current-riscv64-server-nezha-6.1.0-rc3-build-20221104.img.zst.sha256
slarm64-current-riscv64-xfce-nezha-6.1.0-rc3-build-20221104.img.zst
slarm64-current-riscv64-xfce-nezha-6.1.0-rc3-build-20221104.img.zst.sha256

sndwvs 02-17-2023 04:58 AM

installation README.TXT
kernel 6.1.12

slarm64-current-riscv64-core-nezha-6.1.12-build-20230215.img.zst
slarm64-current-riscv64-core-nezha-6.1.12-build-20230215.img.zst.sha256
slarm64-current-riscv64-server-nezha-6.1.12-build-20230215.img.zst
slarm64-current-riscv64-server-nezha-6.1.12-build-20230215.img.zst.sha256
slarm64-current-riscv64-xfce-nezha-6.1.12-build-20230215.img.zst
slarm64-current-riscv64-xfce-nezha-6.1.12-build-20230215.img.zst.sha256

sndwvs 06-10-2023 12:03 PM

installation README.TXT
kernel 6.1.33

slarm64-current-riscv64-core-nezha-6.1.33-build-20230610.img.zst
slarm64-current-riscv64-core-nezha-6.1.33-build-20230610.img.zst.sha256
slarm64-current-riscv64-server-nezha-6.1.33-build-20230610.img.zst
slarm64-current-riscv64-server-nezha-6.1.33-build-20230610.img.zst.sha256
slarm64-current-riscv64-xfce-nezha-6.1.33-build-20230610.img.zst
slarm64-current-riscv64-xfce-nezha-6.1.33-build-20230610.img.zst.sha256

sndwvs 09-18-2023 11:38 AM

installation README.TXT
kernel 6.1.53

slarm64-current-riscv64-core-nezha-6.1.53-build-20230917.img.zst
slarm64-current-riscv64-core-nezha-6.1.53-build-20230917.img.zst.sha256
slarm64-current-riscv64-server-nezha-6.1.53-build-20230917.img.zst
slarm64-current-riscv64-server-nezha-6.1.53-build-20230917.img.zst.sha256
slarm64-current-riscv64-xfce-nezha-6.1.53-build-20230917.img.zst
slarm64-current-riscv64-xfce-nezha-6.1.53-build-20230917.img.zst.sha256

sndwvs 03-15-2024 03:12 PM

installation README.TXT
kernel 6.1.81

irradium-3.7-riscv64-core-nezha-6.1.81-build-20240314.img.zst
irradium-3.7-riscv64-core-nezha-6.1.81-build-20240314.img.zst.sha256
irradium-3.7-riscv64-xfce-nezha-6.1.81-build-20240314.img.zst
irradium-3.7-riscv64-xfce-nezha-6.1.81-build-20240314.img.zst.sha256


All times are GMT -5. The time now is 01:21 PM.