!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

353 Members
111 Servers

Load older messages


SenderMessageTime
26 Jun 2022
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how * you can also nix build .#images.visionfive-cross-x86 if you want to cross compile the nixos image from this flake, resulting in an sd image you can flash and boot on the board 01:16:39
28 Jun 2022
@ma27:nicht-so.sexyma27 changed their profile picture.11:38:56
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how j-k: managed to do anything cool with the board yet? The above comments from me might be helpful for you! :D 14:39:16
@j-k:matrix.orgj-kI've been sorting house stuff so not much. I tried flashing uboot but didn't manage to so looking forward to trying the flash script14:42:02
30 Jun 2022
@dramforever:matrix.orgdramforever joined the room.07:21:29
@dramforever:matrix.orgdramforever
In reply to @matthewcroughan:defenestrate.it
Zhaofeng Li: Is it possible to flash the file with screen instead of xmodem on Windows?
You can send the file with anything that does 'send xmodem', like sx from lrzsz
07:58:36
@dramforever:matrix.orgdramforever

advantages of xmodem over just cat:

  • it knows when transfer starts and ends
  • there's a crc checksum for each packet and if it doesn't work the board can request a resend
  • that's about it
08:00:37
@dramforever:matrix.orgdramforever note: the load command in the bootrom doesn't work with lrzsz. it just doesn't. 08:01:17
@dramforever:matrix.orgdramforever * note: the load command in the bootrom doesn't work with lrzsz. it just doesn't. use JH7100-tools 08:01:37
@dramforever:matrix.orgdramforever

You can also use something like picocom which does the sending inside the terminal

picocom --send-cmd "sx -X -vv" -b {9600 or 115200} /dev/tty{...}
08:04:00
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how dramforever: Yes I wrote an expect script here that allows flashing to the board with picocom+sx like this https://github.com/MatthewCroughan/visionfive-nix/blob/master/flake.nix 08:13:58
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how
  1. Do not apply power to the board
  2. Attach the board via serial to your system, ensuring power is still not applied
  3. Ensure the serial shows up in /dev/ttyUSB*
  4. nix run github:matthewcroughan/visionfive-nix#flashBootloader /dev/ttyUSB0
  5. Apply power to the board
08:14:29
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how fufexan: used it successfully like that to flash the board yesterday 08:15:20
@dramforever:matrix.orgdramforeverYou just pushed that right? Pretty sure it wasn't there a few minutes ago08:15:23
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howI accidentally force pushed a thing over it yesterday, silly me.08:15:39
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howso I force pushed the correct code just now, realizing I had accidentally force pushed the wrong thing last night.08:16:01
@dramforever:matrix.orgdramforeveroh okay, glad you figured it out08:16:13
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how There's also nix run .#flashOriginal which uses jh7100-tools to do the same thing, but I was very unsuccessful in doing anything useful with that, since it appears that jh7100-tools just nukes the original u-boot that's on the board 08:17:27
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how

even though I'm doing

                    -r ${jh7100_recovery_binary} \
                    -b ${jh7100_secondBoot} \
                    -d ${jh7100_ddrinit}

Which really does flash the original binaries from their releases, it just nukes whatever uboot proper you happen to have on the board

08:17:57
@fufexan:matrix.orgfufexanhi guys, just booted nixos on the visionfive08:18:01
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how:D 08:18:05
@fufexan:matrix.orgfufexantrying to connect it to wifi08:18:07
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howyeah the wifi seems not to work at the moment based on https://github.com/NixOS/nixpkgs/pull/16882608:18:32
@fufexan:matrix.orgfufexan
[0;nixos@nixos: ~nixos@nixos:~]$ rfkill

[0;nixos@nixos: ~nixos@nixos:~]$ systemctl status wpa_supplicant.service 
● wpa_supplicant.service - WPA Supplicant instance
     Loaded: loaded (8;;file://nixos/etc/systemd/system/wpa_supplicant.service/etc/systemd/system/wpa_supplicant.service8;;; linked; vendor8;;>
     Active: active (running) since Thu 2021-12-23 20:11:44 UTC; 2min 49s ago
   Main PID: 907 (wpa_supplicant-)
         IP: 0B in, 0B out
         IO: 252.0K read, 0B written
      Tasks: 4 (limit: 7844)
     Memory: 2.3M
        CPU: 158ms
     CGroup: /system.slice/wpa_supplicant.service
             ├─907 /nix/store/h8xcpjsipl1hvzz6bnkwmdlgajzclj77-bash-5.1-p16-ris>
             ├─911 grep -q ^ACTION=add
             ├─912 /nix/store/h8xcpjsipl1hvzz6bnkwmdlgajzclj77-bash-5.1-p16-ris>
             └─913 udevadm monitor -s net/wlan -pu

Dec 23 20:11:44 nixos systemd[1]: Started WPA Supplicant instance.
Dec 23 20:11:44 nixos wpa_supplicant-start[907]: Waiting for wireless interfaces
08:18:32
@fufexan:matrix.orgfufexanah, alright08:18:41
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how just do ifconfig -a, you'll see that the interface doesn't even exist 08:18:49
@fufexan:matrix.orgfufexanyeah, rfkill reports no devices08:19:02
@fufexan:matrix.orgfufexanIMG20220630111934.jpg
Download IMG20220630111934.jpg
08:19:59
@fufexan:matrix.orgfufexanhave you guys had similar issues? 😆08:20:06
@fufexan:matrix.orgfufexanseems like tty looks like this, but the GUI actually looks fine08:20:18

Show newer messages


Back to Room ListRoom Version: 6