GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Natanael Copa (ncopa@fosstodon.org)'s status on Tuesday, 07-Jan-2025 06:29:15 JST Natanael Copa Natanael Copa

    How to create a bootable #AlpineLinux SD-card for VisionFive2 #RISCV:

    1) Partition the card. In this example I use /dev/sde. WARNING: Make sure you have the right device.

    doas parted /dev/sde --script mklabel gpt \
    mkpart primary 2MiB 4MiB set 1 bios_grub on \
    mkpart primary 4MiB 6MiB \
    mkpart primary 6MiB 100% set 3 boot on

    In conversation about 5 months ago from fosstodon.org permalink
    • Embed this notice
      Natanael Copa (ncopa@fosstodon.org)'s status on Tuesday, 07-Jan-2025 06:29:14 JST Natanael Copa Natanael Copa
      in reply to

      2) Create vfat filesystem on 3rd partition:

      doas mkfs.vfat /dev/sde3

      In conversation about 5 months ago permalink
    • Embed this notice
      Natanael Copa (ncopa@fosstodon.org)'s status on Tuesday, 07-Jan-2025 06:29:14 JST Natanael Copa Natanael Copa
      in reply to

      3) Mount the boot partition and extract Alpine tarball:

      doas mount /dev/sde3 /mnt
      curl -s https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/riscv64/alpine-uboot-3.21.1-riscv64.tar.gz | doas tar -C /mnt -zxv

      In conversation about 5 months ago permalink

      Attachments


      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Natanael Copa (ncopa@fosstodon.org)'s status on Tuesday, 07-Jan-2025 06:38:22 JST Natanael Copa Natanael Copa
      in reply to

      4) Install U-Boot

      Write SPL to partition 1 and ITB to partition 2:

      doas dd if=/mnt/u-boot/starfive_visionfive2/u-boot-spl.bin.normal.out of=/dev/sde1
      doas dd if=/mnt/u-boot/starfive_visionfive2/u-boot.itb of=/dev/sde2

      In conversation about 5 months ago permalink
    • Embed this notice
      Natanael Copa (ncopa@fosstodon.org)'s status on Tuesday, 07-Jan-2025 06:38:22 JST Natanael Copa Natanael Copa
      in reply to

      5) Unmount the SD card and boot it.

      doas umount /mnt

      You should be able to see it boot from a debug UART

      #Linux #VisionFive2 #RISC-V #AlpineLinux

      In conversation about 5 months ago permalink
      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Tuesday, 07-Jan-2025 06:45:52 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      @ncopa Maybe this should be in the wiki or something like install.txt file in https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/riscv64/ ?

      Meanwhile I reused the script at https://arvanta.net/alpine/alpine-on-visionfive/ as a base because I didn't want some kind of installer dance as I don't have a spare eMMC or M.2 SSD (although I guess the installer could be booted from USB).
      In conversation about 5 months ago permalink

      Attachments

      1. No result found on File_thumbnail lookup.
        Index of /alpine/v3.21/releases/riscv64/
      2. No result found on File_thumbnail lookup.
        Milan P. Stanić personal page
    • Embed this notice
      Jarkko Sakkinen (jarkko@social.kernel.org)'s status on Tuesday, 07-Jan-2025 07:47:16 JST Jarkko Sakkinen Jarkko Sakkinen
      in reply to
      The very first thing with this board is set the pins to SDIO mode ;-) Figure 4-10 in https://doc-en.rvspace.org/VisionFive2/PDF/VisionFive2_QSG.pdf
      In conversation about 5 months ago permalink

      Attachments


      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Natanael Copa (ncopa@fosstodon.org)'s status on Tuesday, 14-Jan-2025 20:53:50 JST Natanael Copa Natanael Copa
      in reply to
      • Jarkko Sakkinen

      @jarkko it is the only board I know that runs nicely with vanilla 6.12 kernel, which is also why we officially can support it

      In conversation about 4 months ago permalink
      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Jarkko Sakkinen (jarkko@social.kernel.org)'s status on Tuesday, 14-Jan-2025 20:53:51 JST Jarkko Sakkinen Jarkko Sakkinen
      in reply to
      • Jarkko Sakkinen
      @ncopa It's really my recommended board for testing RISC-V kernel. And the reason for this is that it is aging ;-) Also BuildRoot upstream boots it nicely.
      In conversation about 4 months ago permalink
    • Embed this notice
      Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Tuesday, 14-Jan-2025 21:00:39 JST Haelwenn /элвэн/ :triskell: Haelwenn /элвэн/ :triskell:
      in reply to
      • Haelwenn /элвэн/ :triskell:
      @ncopa Also not sure if stock boards have OpenSBI+u-boot flashed but that allows to skip flashing u-boot to SD/eMMC (and NVMe when u-boot is properly configured).

      So in the installer case just using one partition that u-boot can read (fat/ext3/ext4) is fine.
      In conversation about 4 months ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.