Difference between revisions of "Riscv-nezha"

From Embedded Xinu
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 73: Line 73:
 
3. Make U-Boot
 
3. Make U-Boot
 
      
 
      
     make CROSS_COMPILE=riscv64-linux-gnu- OPENSBI=../opensbi/build/platform/generic/firmware/fw_dynamic.bin
+
     make CROSS_COMPILE=riscv64-linux-gnu-
 +
 
 +
4. Write U-Boot to SD card. Note, change "x" to the drive of the SD card.
 +
    sudo dd if=nboot/boot0_sdcard_sun20iw1p1.bin of=/dev/sdX bs=8192 seek=16
 +
    sudo dd if=nboot/boot0_sdcard_sun20iw1p1.bin of=/dev/sdX bs=8192 seek=256
 +
 
 +
5. The SD card shall now have the WIP version of U-Boot.  Insert the SD-card back into the Nezha.
  
 
== See also ==
 
== See also ==
 
* [[WRT54G]]
 
* [[WRT54G]]

Latest revision as of 01:17, 22 March 2024

This page lists details about the Sipeed Nezha .

Hardware Info

General

As report by Linux Sunxi

Device Note
SOC Allwinner D1 @1.0Ghz
DRAM 512MiB/1GiB/2GiB DDR3 @ 792MHz, 2×
H5TQ4G63EFR
NAND 256MB, MX35LF2GE4AD
Power DC 5V @ 2A (via OTG or dedicated USB Type-C connector)
Video HDMI (Type A - full), LVDS
Audio 3.5mm headphone plug, HDMI, microphone array board connector, I2S
Network WiFi 802.11 b/g/n (XRadioTech XR829), 10/100/1000Mbps Ethernet (Realtek RTL8211F)
Storage µSD, SPI NAND
USB 1 USB2.0 Host, 1 USB Type-C OTG
Other Power LED, RGB LED, OK & FEL buttons
Headers 40-pin GPIO, DEBUG

Serial Header

The Sipeed Nezha follows the Raspberry Pi line in terms of the pins for the serial header. The serial header pins are 5V power (pin 4), ground (pin 6), TXD (pin 8), and RXD (pin 10).

The following setting can be used to connect to the Sipeed Nezha. The serial terminal shall be enabled by default.

  • Speed (baud rate): 115200
  • Bits: 8
  • Parity: None
  • Stop Bits: 1
  • Flow Control: None

Software Info

By default, Nezhas ship with Debian or a Debian-like operating system called [TinaLinux] on the SD card. A version of the operating system also exists in the device's NAND memory. Embedded Xinu will not overwrite the operating system in NAND, however the SD card will need to be overwritten to boot Embedded Xinu.

Nezhas ship with a version of U-Boot preinstalled. This version of U-Boot, however, does not support network booting. We recommended network booting as it doesn't require students to write their operating system the SD cards (which can wear them out). See here for more information on TFTP in a Xinu lab.

To install an updated version of U-Boot on the SD card:

1. Get the WIP U-Boot code for the Nezha

   git clone https://github.com/smaeul/u-boot -b d1-wip
   pushd u-boot

2. Make the configuration file

   make CROSS_COMPILE=riscv64-linux-gnu- nezha_defconfig

3. Make U-Boot

   make CROSS_COMPILE=riscv64-linux-gnu-

4. Write U-Boot to SD card. Note, change "x" to the drive of the SD card.

   sudo dd if=nboot/boot0_sdcard_sun20iw1p1.bin of=/dev/sdX bs=8192 seek=16
   sudo dd if=nboot/boot0_sdcard_sun20iw1p1.bin of=/dev/sdX bs=8192 seek=256

5. The SD card shall now have the WIP version of U-Boot. Insert the SD-card back into the Nezha.

See also