Giter Site home page Giter Site logo

nixos-rockchip's Introduction

NixOS Images for Rockchip Based Computers

Flake to build images for Rockhip based computers that require custom uboot firmware. Utilizes sd-card installer build infrastructure from nixpkgs.

Image Building

Installer

Check out flake.nix for the list of supported configurations. To build an installer sd-card image for desired platform using flake execute nix build github:nabam/nixos-rockchip#Quartz64A or nix build .#Quartz64A (Quartz 64 A in this example).

$ nix build github:nabam/nixos-rockchip#Quartz64A
$ sfdisk --dump result/sd-image/nixos-sd-image-*.img
label: dos
label-id: 0x2178694e
device: result/sd-image/nixos-sd-image-22.11.20230302.96e1871-aarch64-linux.img
unit: sectors
sector-size: 512

result/sd-image/nixos-sd-image-22.11.20230302.96e1871-aarch64-linux.img1 : start=       16384, size=       16384, type=da
result/sd-image/nixos-sd-image-22.11.20230302.96e1871-aarch64-linux.img2 : start=       32768, size=     5585984, type=83, bootable

Built image then can be copied to sdcard or other memory:

$ sudo dd if=./result/sd-image/nixos-sd-image-*.img of=/dev/mmcblk0 iflag=direct oflag=direct bs=16M status=progress

To build all images run:

nix build .#Quartz64A .#Quartz64B .#SoQuartzModelA .#SoQuartzCM4 .#SoQuartzBlade .#Rock64 .#RockPro64 .#ROCPCRK3399 .#PinebookPro .#PineTab2

Custom Image

Check out the example to see how custom images can be built with this flake. To build the example run: (cd example && nix flake update && nix build).

Cache

Build cache is available on Cachix: nabam-nixos-rockchip. Use it to speed up builds.

Exported Modules

nixosModules.sdImageRockchip

Configures custom image build.

nixosModules.sdImageRockchipInstaller

Configures installer image build.

nixosModules.dtOverlayQuartz64ASATA

Applies device tree overlay to enable SATA port on Quartz64A.

Supported Boards

Board Attribute Status
Quartz64 Model A Quartz64A Tested & Works
Quartz64 Model B Quartz64A Tested & Works
SoQuartz Model A SoQuartzModelA Tested & Works
SoQuartz CM4 SoQuartzCM4 Tested & Works
SoQuartz Blade SoQuartzBlade Tested & Works
PineTab2 PineTab2 Tested & Works
Rock64 Rock64 Untested
RockPro64 RockPro64 Untested
ROC PC RK3399 ROCPCRK3399 Untested
Pinebook Pro PinebookPro Untested

nixos-rockchip's People

Contributors

asonix avatar nabam avatar raboof avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nixos-rockchip's Issues

Instalation too hard.

I did have problem with installation of version for pinetab2. I did ask cousin, that was using Linux for a long time, and he also couldn't do it. The problem was, that installation is too hard. I suspect, that some people can do it, bus can there be an option to have graphical installation or guided installation?

PineTab2: Display keeps black

i booted the recent pinetab2 sd-card release but my display doesn't seem to work.

https://github.com/nabam/nixos-rockchip/releases/tag/v24.05.20240531.805a384

only keyboard backlight turns on as a sign of life

internally its booting fine, and command line can be used over the UART adapter (minicom or screen, see https://pine64.org/documentation/PineTab2/Development/UART_adapter/)

boot log

U-Boot 2023.07.02-00095-g81dac0348f (Sep 24 2023 - 13:04:24 +0000)

Model: Pine64 PineTab2 v2.0
DRAM:  8 GiB (effective 7.7 GiB)
PMIC:  RK8170 (on=0x80, off=0x04)
Core:  341 devices, 29 uclasses, devicetree: separate
MMC:   mmc@fe2b0000: 1, mmc@fe2c0000: 2, mmc@fe310000: 0
Loading Environment from nowhere... OK
In:    serial@fe660000
Out:   serial@fe660000
Err:   serial@fe660000
Model: Pine64 PineTab2 v2.0
Net:   No ethernet found.
Hit any key to stop autoboot:  0 
** Booting bootflow '[email protected]_2' with extlinux
------------------------------------------------------------
1hoice: 1:      NixOS - Default
Retrieving file: /boot/extlinux/../nixos/1g513zs692a52ddgnchysrncv0y822s1-d
append: init=/nix/store/w3w3w34xa34q1faqxnly032dnny80lnq-nixos-system-nixo7
Retrieving file: /boot/extlinux/../nixos/1g5h64-unknown-linux-gnu-6.8.0-da0
## Flattened Device Tree blob at 0a100000
   Booting using the fdt blob at 0xa100000
Working FDT set to a100000
   Loading Rabef ... OK
   Loading Device Tree to 00000000eb7e6000, end 00000000eb80644b ... OK
Working FDT set to eb7e6000

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[    0.000000] Linux version 6.8.0-danctnix1 (nixbld@locd (GNU Binutils) 2d
[    0.000000] Machine model: Pine64 PineTab2 v2.0
[  onfiguration found
[    0.000000] NUMA: Faking a node at [mem 0 NODE_DATA [mem 0x1feddd8c0-0x]
[    0.000000] Zone ra0000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]  000]   Device   empty
[    0.000000] Movable zone start for eac00-0x00000000efffffff]
able ranges00]   node   0: [mem 0x000000nitmem setup node 0 [mem 0x0000000]
[    0.000000] cma: Reserved 32 MiB at 0x00000000eefrom DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[00000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] ps008 r8192 d116888 u217088
[    0.000000] Detected VIPT I-cache IC system register CPU interface
[    0.000000] CPU features: ds: detected: Qualcomm erratum 1009, or ARM e3
[    0.000000] alternatives: applying boot alter4xa34q1faqxnly032dnny80lnq)
[    0.000000] Inoear)
[    0.000000] Fallback order for Node 0: 0 
[    0.000000] Policy zone: Normal
[    0.000000] mem auto-init: stack:all(IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem0] Memory: 7770764K/8124416K av)
[    0.000000] SLUB: HWalign=64, Order=0-6 entries in 289 pages
[    0.000000] ftrace: allocated 289 pagled
[    0.000000] rcu: Hierarchical RCU implementation.
[    cu:        RCU restricting CPUs from NR_CPUS=384 to nr_cpu_ids=4.
[       Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU.000000] rcu: Adjusting geometry for rcu_fanout_lea_
                                                                          e
[  nded SPIs implemented
[    0.000000] GICv3: MBI range [296:319][    0.000000] Root IRQ handler: q
[    0.000000] d redistributor 0 region 0:0x00000000fd460000
[    0.000000] ITt: Setting srcu_struct sizes based on contention.
[    0.000000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff ma)
[    0.egacy console [tty0] enabled
[    0.009087] Calibrating delay lMIPS (lpj=96000)
[    0.009129] pid_max: default: 32768 minimum,yama,bpf,integrity
[    0.018162] landlock: Up and running.
[or eBPF active
[    0.019782] Mount-cache hash table entries: 1che hash table entries: 16)
PU 0
[    0.027100] RCU Tasks Rude: Setting shift to 2 and lim g shift to 2 and.
[    0.028049] se no-delay instances is 1000.
[    0.040710] EFI services will.042676] Detected VIPT I-cache on CPU1
[    0.042769] GICv3: CP[    0.042835] CPU1: Booted secondary processor 0x]
[    0.045468] Detected VIPT I-cache on CPU3
[
[    0.045601] CPU3: Booted secondary processor 0x0000000300 [PUs
[    0.045905] SMP: Total of 4 processors activated.
[    res: detected: 32-bit EL0 Support
[    0.045952] CPU features: ata cache clean to the PoU not required for Ie
[       0.046004] CPU features: detected: CRC32 instructions
[    0. 0.046041] CPU features: detected: LSE atomic instructions
[   .046072] CPU features: detected: RAS Extension Support
[    0.0S)
[    0.046187] alternatives: applying system-wide alternativce: jiffies: m)
[    0.094243] pinctrl core: invalid.
[    0.103062] NET: Registered PF_NETLINK/PF_ROUTE protoool for atomic alls
[    0.104879] DMA: preallocated 102KiB GFP_KERNEL|GFP_DMA32 pool for atoms
[    0.105isabled)
[    0.105927] audit: type=2000 audit(0.092:1): state=ered thermal governo'
[    0.108533] thermal_sys: Rle: using governor ladder
[    0.108779] cpuidle: using governopoint registers.
[    0.109484] ASID allocator initialised with[    0.142556] platform fe040
[    0.142755] platfor.144001] platform fe040000.vop: Fixed dependency cyc0
[    0.192399] gpio gpiochip0: .
[    0.192975] rockchip-gpio fdd60000.gpio: probed /pinctrl/gGPIO base is .
[    0.194190] 0.194871] gpio gpiochip2: Static allocation of GPIO base is0
[    0.195903] gpio gpioccation.
[    0.196236] rockchip-gpio fe760000.gpio: probed /pinon of GPIO base is .
[    0.1[    0.203325] platform fe0a0000.hdmi: Fixed dependency cycle(s)d 0
[    0.217038] Module: 506256 pages in range for PLT usage
[    0.219284] HugeTLB: rugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiBe
[    0.2
[    0.219373] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 -allocated 0s
[    0.219408] HugeTLB: 0 KiB vmemmap can be0 KiB page size, pre-allocateds
[    0.219442] HugeTLB: on: Taking over console
: registered new interface driver usbfs.236326] iommu: DMA domain TLB invae
[    0.239500] usbcore:stered new device driver usb
[    0.242769] pps_core: LinuxPPS  Copyright 2005-2007 Rodolfo Giometti <g>
[     3.0.0
[    0.245045] scmi_core: SCMI protocol bus registered
nux Sound Architecture Driver Initialized.
[    0.250511] vgaarch_sys_counter
[    1.379616] VFS: Disk quotas dquot_6.6.0
[  bytes)
[    1.380355] netfs: FS-Cache loaded
[    1.380898] pncol family
[    1.398032] IP idents hash table entries: 131072 dr_hash hash table ent)
[    1.514244] TCP established hash tCP bind hash table entries: 65536 (or)
[    1.517851] MPTCP token hash table entries: 8192 (order:ies: 4096 (orde)
[    1.518452] UDP-L   1.519012] NET: Registered PF_UNIX/PF_LOCAL protocoly
[.520341] RPC: Registered udp transport module.
[    1.520358] RRegistered tcp-with-tls transport module.
[    1.520387] RPC: R NET: Registered PF_XDP protocol family
[    1.520454] PCI: CLS as initramfs...
[    1.524020] kvm [1]: IPA Size Limit: 40 bit24150] kvm [1]: disabling GIn
[    1.524189] kvm [1: vgic interrupt IRQ9
[    1.524351] kvm [1]: VHE mode initialis
[    1.528089] workingset: timestamp_bits=42 max_order=21 bucp Lougher
[    1.541086] NFS: Registering the id_resolver key t1] Key type id_legacyd
[    1.541413] nfs4filelayout_xfilelayout_init: NFSv4 Flexfile Layout Driv.
[ 1.616183] Key type asymmetric registered
[    1.616243] Asymme SCSI generic (bsg) driver version 0.4 loaded (major )
[    duler kyber registered
[    1.679439] EINJ: ACPI disabled.
[  L330 DMAC-241330
[    1.744010] dma-pl330 fe530000.dma-controll 1.747554] dma-pl330 fe550006
[    1.   1.798643] fe660000.serial: ttyS2 at MMIO 0xfe660000 (irq = 25nsod
[    1.922920] msm_serial: driver initialized
[    1.924862] SuperH (H)SCI(F) driver initialized
[    1.926095] STM32 USART driver initialized
[    1.955038] loop: module loaded
[    1.959460] megasas: 07.727.03.00-rc1
[    1.982655] tun: Universal TUN/TAP device driver, 1.6
[    1.987224] thunder_xcv, ver 1.0
[    1.987621] thunder_bgx, ver 1.0
[    1.988037] nicpf, ver 1.0
[    1.994087] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - n
[    1.994778] hns3: Copyright (c) 2017 Huawe
[    1.995386] hclge is initializing
[    1.995828] e1000: Iniver
[    1.996281] e1000: Copyright (c) 1999-2006 Intel Corporetwork Driver
[    1.997348] e1000e: Copyright(c) 1999 - 2015 I Ethernet Network Driver
[    1.998427] igb: Copyright (c) 2007: Intel(R) Gigabit Virtual Function r
[    1.99962[    2.002170] sky2: driver version 1.30
[    2.022349] usbcore: registered new interface driver usb-storage
[    2.023137] usbcore: registered new interface driver usbserial_generic
[    2.023837] usbserial: USB Serial support regtered for generic
[    2.037545] i2c_dev: i2c /dev entries driver
[    2.045131] i2c 0-0020: Fixed dependency cycle(s) with /i2c@fdd40000/pmT
[    2.046104] fan53555-regulator 0-001c: FAN53555 Option[12] Rev[15] Dete!
[    2.065650] rk808-regulator rk808-regulator.1.auto: there is no dvs0 gpo
[    2.066339] rk808-regulator rk808-regulator.1.auto: there is no dvs1 gpo
[    2.091748] boost: Bringing 4700000uV into 5000000-5000000uV
[    2.103377] rk808-rtc rk808-rtc.3.auto: registered as rtc0
[    2.104860] rk808-rtc rk808-rtc.3.auto: setting system clock to 2024-06)
[    2.171170] sdhci: Secure Digital Host Controller Interface driver
[    2.171808] sdhci: Copyright(c) Pierre Ossman
[    2.176490] Synopsys Designware Multimedia Card Interface Driver
[    2.182423] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.193164] ledtrig-cpu: registered to indicate activity on CPUs
[    2.198425] scmi_protocol scmi_dev.1: Enabled polling mode TX channel -6
[    2.199641] arm-scmi firmware:scmi: SCMI Notifications - Core Enabled.
[    2.200397] arm-scmi firmware:scmi: SCMI Protocol v2.0 'rockchip:' Firm0
[    2.204715] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    2.209057] hid: raw HID events driver (C) Jiri Kosina
[    2.210278] usbcore: registered new interface driver usbhid
[    2.210812] usbhid: USB HID core d[    2.227603] hw perfevents: enablede
[    2.254013] drop_monitor: Initializing network drop monitor service
[    2.256308] NET: Registered PF_INET6 protocol family
[    2.988352] Freeing initrd memory: 23344K
[    2.990874] Segment Routing with IPv6
[    2.991326] In-situ OAM (IOAM) with IPv6
[    2.991879] NET: Registered PF_PACKET otocol family
[    2.992910] 9pnet: Installing 9P2000 support
[    2.993419] Key type dns_resolver registered
[    3.016850] registered taskstats version 1
[    3.017700] Loading compiled-in X.509 certificates
[    3.051991] Key type .fscrypt registered
[    3.052389] Key type fscrypt-provisioning registered
[    3.112759] vcc3v3-sd-regulator enforce active low on GPIO handle
[    3.135436] rockchip-dw-pcie 3c0000000.pcie: host bridge /pcie@fe260000:
[    3.136441] rockchip-dw-pcie 3c0000000.pcie:       IO 0x00f4100000..0x00
[    3.137270] rockchip-dw-pcie 3c0000000.pcie:      MEM 0x00f4200000.. rop
[    4.249312] rockchip-dw-pcie 3c0000000.pcie: PCI host bridge to bus 0000
[    4.249956] pci_bus 0000:00: root bus resource [bus 00-0f]
[    4.250467] pci_bus 0000:00: root bus ss [0xf4100000-0xf41fffff])
[    4.251325] pci_bus 0000:00: roo52012] pci_bus 0000:00: root bus resour]
[    4.254249] pci 0000:00:00.0: PCridge window [io  0x0000-0x0fff]
[    4.255290] pci 0000:00:00.55942] pci 0000:00:00.0:   bridge window [me2
[    4.257117] pci 0000:00:00.0: PME# supported from [    4.267897] pci_bu)
[    4.269343] pci 0000:00:00.0: ROM [mem 0xf4200000-0xf420ffff pref[    4]
[    4.273649] pcieport 0000:00:00.0: PME: Signaling with IRQ 66
[    4.274691] pcieport 0000:00:00.0: AER: enabled with IRQ 66
[    4.294387] xhci-hcd xhci-hcd.7.auto: xHCI Host Controller
[    4.294946] xhci-hcd xhci-hcd.7.auto: new USB bus registered, assigned 1
[    4.296197] xhci-hcd xhci-hcd.7.auto: hcc params 0x0220fe64 hci versio[r
[    4.ed bus number 2
[    4.299194] xhci-hcd xhci-hcd.7.auto: Host s[    4.301358] hub 1-0:1.0:d
[    4.301895] hub 1-0:1.0: 1 port detected
[    4.302979] usb usb2: We don't know the algorithms for LPM for this hos.
[    4.304703] hub 2-0:1.0: USB hub found
[    4.305109] hub 2-0:1.0: 1 port detected
[    4.314761] ehci-platform fd800000.usb: EHCI Host Controller
[    4.315019] ohci-platform fd840000.usb: Generic Platform OHC3] ehci-pla4
[    4.317002] ehci-platformform fd840000.usb: irq 70, io mem 0xfd840000
[    4.323711] dwmmc_rockchip fe2b0000.mmc: IDMAC supports 32-bit address .
[    4.324485] dwmmc_rockchip fe2b0000.mmc: Usicontroller.
[    4.325125] dwmmc_rockchip fe2b0000.mmc: Versionkchip fe2c0000.mmc: IDM.
[    4.bit host data width,256 deep fifo
28493] dwmmc_rockchip fe2c0000.mmc: Version ID is 270aevices/platform/gpio0
[    4.332 bit host data width,256 deep fifo
[    4.331392] dwmmc_rockchip fe2c0000.mmc: allocated mmc-pwrseq
[    4.331758] ehci-platform fd800000.usb: USB 2.0 started, EHCI 1.00
[    4.331948] mm[    4.333404] hub 3-0:1.0: USB hub found
[    4.333890] hub 3-0:1.0: 1 port detected
[    4.339820] mmc_host mmc1: Bus speed (slot 0) = 375000Hz (slot req 4000)
[    4.342998] clk: Disabling unused clocks
[    4.343964] ALSA device list:
[    4.344241]   No soundcards found.
[    4.344778] dw-apb-uart fe660000.serial: forbid DMA for kernel console
[    4.355729] mmc0: SDHCI controller on fe310000.mmc [fe310000.mmc] usingA
[    4.380338] hub 4-0:1.0: USB hub found
[    4.380718] hub 4-0:1.0: 1 port detected
[    4.444768] mmc_host mmc1: Bus speed (slot 0) = 150000000Hz (slot req 1)
[    4.466637] mmc0: new HS200 MMC card at address 0001
[    4.467889] mmcblk0: mmc0:0001 SPeMMC 116 GiB
[    4.472398]  mmcblk0: p1 p2 p3
[    4.473483] mmcblk0boot0: mmc0:0001 SPeMMC 4.00 MiB
[    4.475321] mmcblk0boot1: mmc0:0001 SPeMMC 4.00 MiB
[    4.477022] mmcblk0rpmb: mmc0:0001 SPeMMC 4.00 MiB, chardev (234:0)
[    4.551790] mmc_host mmc2: Bus speed (slot 0) = 375000Hz (slot req 4000)
[    4.574657] dwmmc_rockchip fe2b0000.mmc: Successfully tuned phase to 226
[    4.575295] mmc1: new ultra high speed SDR104 SD[    4.577506] mmcblk1:B
[    4.583469]  mmcblk1: p1 p2
[    4.588636] Freeing unused kernel memory: 17408K
[    4.589224] Run /init as init process

<<< NixOS Stage 1 >>>

loading module dm_mod...
[    4.748452] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialisedm
running udev...
Starting systemd-udevd version 255.6
[    4.919735] usb 4-1: new full-speed USB device number 2 using ohci-platm
[    5.153218] input: HID 1018:1006 as /devices/platform/fd840000.usb/usb41
[    5.216176] hid-generic 0003:1018:1006.0001: input,hidraw0: USB HID v1.0
[    5.242612] input: HID 1018:1006 Mouse as /devices/platform/fd840000.us2
[    5.244253] input: HID 1018:1006 Touchpad as /devices/platform/4-1:1.1/3
[    5.245632] input:m Control as /devices/platform/fd840000.usb/usb4/4-1/0
[    5.279482] dw-mipi-dsi-rockchip fe060000.dsi: Fixed dependency cycle(s0
[    5.280597] mipi-dsi fe060000.dsi.0: Fixed dependency cycle(s) with /ds0
[    5.300860] mc: Linux media interface: v0.10
[    5.304253] input: HID 1018:1006 Consumer Control as /devices/platform/5
[    5.306051] hid-generic 0003:1018:1006.0002: input,hiddev96,hidraw1: US1
[    5.342401] videodev: Linux video capture interface: v2.00
[    5.366493] rockchip-rga fdeb0000.rga: HW Version: 0x03.02
[    5.368955] rockchip-rga fdeb0000.rga: Registered rockchip-rga as /dev/0
kbd_mode: KDSKBMODE: Inappropriate ioctl for device
Gstarting device mapper and LVM...
[    7.018906] mmc2: Skipping voltage switch
[    7.027516] mmc_host mmc2: Bus speed (slot 0) = 50000000Hz (slot req 50)
[    7.030020] mmc2: new high speed SDIO card at address 0001
[   15.031706] random: crng init done
checking /dev/disk/by-label/NIXOS_SD...
fsck (busybox 1.36.1)
[fsck.ext4 (1) -- /mnt-root/] fsck.ext4 -a /dev/disk/by-label/NIXOS_SD
NIXOS_SD: clean, 140495/185104 files, 674871/747219 blocks
mounting /dev/disk/by-label/NIXOS_SD on /...
[   15.178852] EXT4-fs (mmcblk1p2): mounted filesystem 44444444-4444-4444-.

<<< NixOS Stage 2 >>>

[   16.195786] EXT4-fs (mmcblk1p2): re-mounted 44444444-4444-4444-8888-888.
[   16.199483] booting system configuration /nix/store/w3w3w34xa34q1faqxnl4
running activation script...
setting up /etc...
++ /nix/store/bm6ijd9ngfxc6b0sllgprkq3z4ckxrwz-util-linux-2.40.1-bin/bin/f/
+ rootPart=/dev/disk/by-label/NIXOS_SD
++ lsblk -npo PKNAME /dev/disk/by-label/NIXOS_SD
+ bootDevice=/dev/mmcblk1
+ partNum=2
+ echo ,+,
+ sfdisk -N2 --no-reread /dev/mmcblk1
Disk /dev/mmcblk1: 29.53 GiB, 31708938240 bytes, 61931520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512
Disklabel type: dos
Disk identifier: 0x2178694e

Old situatv/mmcblk1p1      16384   32767   16384    8M da Non-FS data
/de2: 
New situation:
Disklabel type: dos
Disk identifier: 0x217/mmcblk1p1      16384    32767    16384    8M da Nona
/dn table has been altered.
Calling ioctl() to re-read partition usy
The kernel still uses the old table. The new table will be ncing disks.
+ /nix/store/vb62l0mkyih73rgf3yqvdc3rh50l9w0h-part+ /nix/store/ckdydl0p649D
resize2fs 1.47.0 (5-Feb-2023)
[   18.491946] EXT4-fs (mmcblk1p2): resizing filesystem from 747219 to 773s
[   19.764837] EXT4-fs (mmcblk1p2): resized filesystem to 7737344
Filesystem at /dev/disk/by-label/NIXOS_SD is mounted on /; on-line resizind
old_desc_blocks = 1, new_desc_blocks = 4
The filesystem on /dev/disk/by-label/NIXOS_SD is now 7737344 (4k+ /nix/stoS
+ /nix/store/fq0y5sgg2kdkgdmcch06wjhs3r41bqmi-nix-2.18.2/bin/nix-env -p /nm
+ rm -f /nix-path-registration
+ mkdir -p /mnt
+ '[' -e /var/lib/nixos/did-channel-init ']'
+ echo 'unpacking the NixOS/Nixpkgs sources...'
unpacking the NixOS/Nixpkgs sources...
+ mkdir -p /nix/var/nix/profiles/per-user/root
+ /nix/store/fq0y5sgg2kdkgdmcch06wjhs3r41bqmi-nix-2.18.2/bin/nix-env -p /ne
+ mkdir -m 0700 -p /root/.nix-defexpr
+ ln -s /nix/var/nix/profiles/per-user/root/channels /root/.nix-defexpr/chs
ln: failed to create symbolic link '/root/.nix-defexpr/channels/channels':m
starting systemd...
[   22.778438] systemd[1]: systemd 255.6 running in system mode (+PAM +AUD.

Welcome to NixOS 24.05 (Uakari)!

[   22.802131] systemd[1]: Hostname set to <nixos>.
[   22.806131] systemd[1]: Initializing machine ID from random generator.
[   23.339776] systemd[1]: bpf-lsm: LSM BPF program attached
[   24.103913] systemd[1]: Queued start job for default target Multi-User .
[   24.169295] systemd[1]: Created slice Slice /system/getty.
[  OK  ] Created slice Slice /system/getty.
[   24.183001] systemd[1]: Created slice Slice /system/modprobe.
[  OK  ] Created slice Slice /system/modprobe.
[   24.204633] systemd[1]: Created slice Slice /system/serial-getty.
[  OK  ] Created slice Slice /system/serial-getty.
[   24.210518] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[   24.228744] systemd[1]: Started Dispatch Password Requests to Console D.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[   24.240878] systemd[1]: Started Forward Password Requests to Wall Direc.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[   24.252250] systemd[1]: Expecting device /dev/ttyS2...
         Expecting device /dev/ttyS2...
[   24.264156] systemd[1]: Reached target Local Encrypted Volumes.
[  OK  ] Reached target Local Encrypted Volumes.
[   24.266089] systemd[1]: Reached target Containers.
[  OK  ] Reached target Containers.
[   24.276451] systemd[1]: Reached target Path Units.
[  OK  ] Reached target Path Units.
[   24.288232] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[   24.290044] systemd[1]: Reached target Slice Units.
[  OK  ] Reached target Slice Units.
[   24.291864] systemd[1]: Reached target Swaps.
[  OK  ] Reached target Swaps.
[   24.324157] systemd[1]: Listening on Process Core Dump Socket.
[  OK  ] Listening on Process Core Dump Socket.
[   24.328296] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[   24.332346] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[   24.336790] systemd[1]: Listening on Userspace Out-Of-Memory (OOM) Kill.
[  OK  ] Listening on Userspace Out-Of-Memory (OOM) Killer Socket.
[   24.352067] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[   24.355880] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[   24.396149] systemd[1]: Mounting Huge Pages File System...
         Mounting Huge Pages File System...
[   24.401409] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[   24.414729] systemd[1]: Mounting Kernel Debug File System...
         Mounting Kernel Debug File System...
[   24.430246] systemd[1]: Starting Create List of Static Device Nodes...
         Starting Create List of Static Device Nodes...
[   24.439475] systemd[1]: Starting Load Kernel Module configfs...
         Starting Load Kernel Module configfs...
[   24.447885] systemd[1]: Starting Load Kernel Module drm...
         Starting Load Kernel Module drm...
[   24.473007] systemd[1]: Starting Load Kernel Module efi_pstore...
         Starting Load Kernel Module efi_pstore...
[   24.480170] systemd[1]: Starting Load Kernel Module fuse...
         Starting Load Kernel Module fuse...
[   24.500716] systemd[1]: Starting mount-pstore.service...
         Starting mount-pstore.service...
[   24.506496] systemd[1]: Starting Create SUID/SGID Wrappers...
         Starting Create SUID/SGID Wrappers...
[   24.524076] systemd[1]: File System Check on Root Device was skipped be.
         Starting Journal Service...
[   24.545452] fuse: init (API version 7.39)
[   24.551118] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[   24.572515] systemd[1]: Starting Remount Root and Kernel File Systems...
         Starting Remount Root and Kernel File Systems...
[   24.584596] systemd[1]: Starting Coldplug All udev Devices...
         Starting Coldplug All udev Devices...
[   24.614514] systemd[1]: Mounted Huge Pages File System.
[  OK  ] Mounted Huge Pages File System.
[   24.616570] systemd[1]: Mounted POSIX Message Queue File System.
[  OK  ] Mounted POSIX Message Queue File System.
[   24.630731] systemd[1]: Mounted Kernel Debug File System.
[  OK  ] Mounted Kernel Debug File System.
[   24.633682] systemd[1]: Finished Create List of Static Device Nodes.
[  OK  ] Finished Create List of Static Device Nodes.
[   24.645712] systemd[1]: [email protected]: Deactivated successf.
[   24.647324] systemd[1]: Finished Load Kernel Module configfs.
[  OK  ] Finished Load Kernel Module configfs.
[   24.652612] systemd-journald[429]: Collecting audit messages is disable.
[   24.655513] systemd[1]: [email protected]: Deactivated successfully.
[   24.658158] systemd[1]: Finished Load Kernel Module drm.
[  OK  ] Finished Load Kernel Module drm.
[   24.664188] systemd[1]: modprobe@efi_pstore.service: Deactivated succes.
[   24.666329] systemd[1]: Finished Load Kernel Module efi_pstore.
[  OK  ] Finished Load Kernel Module efi_pstore.
[   24.670416] systemd[1]: [email protected]: Deactivated successfully.
[   24.672695] systemd[1]: Finished Load Kernel Module fuse.
[  OK  ] Finished Load Kernel Module fuse.
[   24.677492] bridge: filtering via arp/ip/ip6tables is no longer availab.
[   24.720301] EXT4-fs (mmcblk1p2): re-mounted 44444444-4444-4444-8888-888.
[   24.730398] systemd[1]: Finished Load Kernel Modules.
[  OK  ] Finished Load Kernel Modules.
[   24.737420] systemd[1]: Finished Remount Root and Kernel File Systems.
[  OK  ] Finished Remount Root and Kernel File Systems.
[   24.753660] systemd[1]: Mounting FUSE Control File System...
         Mounting FUSE Control File System...
[   24.784239] systemd[1]: Mounting Kernel Configuration File System...
         Mounting Kernel Configuration File System...
[   24.796467] systemd[1]: Starting Firewall...
         Starting Firewall...
[   24.816678] systemd[1]: Starting Load/Save OS Random Seed...
         Starting Load/Save OS Random Seed...
[   24.828350] systemd[1]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
[   24.853258] systemd[1]: Starting Create Static Device Nodes in /dev gra.
         Starting Create Static Device Nodes in /dev gracefully...
[   24.876894] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Finished Load/Save OS Random Seed.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Finished Apply Kernel Variables.
[   25.035095] systemd-journald[429]: Received client request to flush run.
[  OK  ] Finished Create Static Device Nodes in /dev gracefully.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Finished Create Static Device Nodes in /dev.
[  OK  ] Reached target Preparation for Local File Systems.
[  OK  ] Reached target Local File Systems.
         Starting Rule-based Manager for Device Events and Files...
[  OK  ] Finished Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
[  OK  ] Finished Create Volatile Files and Directories.
         Starting Rebuild Journal Catalog...
         Starting Userspace Out-Of-Memory (OOM) Killer...
         Starting Network Time Synchronization...
         Starting Record System Boot/Shutdown in UTMP...
[  OK  ] Started Rule-based Manager for Device Events and Files.
[  OK  ] Finished Create SUID/SGID Wrappers.
[  OK  ] Finished Rebuild Journal Catalog.
         Starting Update is Completed...
[  OK  ] Finished Record System Boot/Shutdown in UTMP.
[  OK  ] Finished Update is Completed.
[  OK  ] Started Userspace Out-Of-Memory (OOM) Killer.
[  OK  ] Finished Firewall.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Finished Coldplug All udev Devices.
[  OK  ] Found device /dev/ttyS2.
[   26.447703] raid6: neonx8   gen()  3161 MB/s
[   26.515716] raid6: neonx4   gen()  3141 MB/s
[  OK  ] Finished mount-pstore.service.
[  OK  ] Reached target System Initialization.
[  OK  ] Started logrotate.timer.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timer Units.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on Nix Daemon Socket.
[  OK  ] Reached target Socket Units.
[  OK  ] Reached target Basic System.
[   26.583713] raid6: neonx2   gen()  2900 MB/s
[   26.651708] raid6: neonx1   gen()  2414 MB/s
[   26.719717] raid6: int64x8  gen()  2018 MB/s
[   26.787713] raid6: int64x4  gen()  2181 MB/s
[   26.855716] raid6: int64x2  gen()  2032 MB/s
[   26.923714] raid6: int64x1  gen()  1536 MB/s
[   26.924124] raid6: using algorithm neonx8 gen() 3161 MB/s
[   26.991708] raid6: .... xor() 2415 MB/s, rmw enabled
[   26.992180] raid6: using neon recovery algorithm
[   26.998795] xor: measuring software checksum speed
[   27.002019]    8regs           :  3675 MB/sec
[   27.005373]    32regs          :  3436 MB/sec
[   27.008510]    arm64_neon      :  3687 MB/sec
[   27.008931] xor: using function: arm64_neon (3687 MB/sec)
         Starting Kernel Auditing...
         Starting DHCP Client...
         Starting Logrotate configuration check...
         Starting Name Service Cache Daemon (nsncd)...
[  OK  ] Started Reset console on configuration changes.
[   27.126921] input: adc-keys as /devices/platform/adc-keys/input/input6
[   27.131772] input: HID 1018:1006 Mouse as /devices/platform/fd840000.us7
[   27.133335] input: HID 1018:1006 Touchpad as /devices/platform/4-1:1.1/8
[   27.136311] input: HID 1018:1006 System Control as /devices/platform/fd9
         Starting resolvconf update...
[  OK  ] Finished Kernel Auditing.
[   27.200210] input: HID 1018:1006 Consumer Control as /devices/platform/0
[   27.201999] hid-multitouch 0003:1018:1006.0002: input,hiddev96,hidraw1:1
[  OK  ] Finished Logrotate configuration check.
[  OK  ] Started Name Service Cache Daemon (nsncd).
[  OK  ] Reached target Host and Network Name Lookups.
[   27.274390] Btrfs loaded, zoned=yes, fsverity=no
[  OK  ] Reached target User and Group Name Lookups.
[   27.380782] 8021q: 802.1Q VLAN Support v1.8
[   27.386589] rockchip-drm display-subsystem: bound fe040000.vop (ops vop)
         Starting D-Bus System Message Bus...
[   27.400875] dwhdmi-rockchip fe0a0000.hdmi: Detected HDMI TX controller )
[   27.462401] panfrost fde60000.gpu: clock rate = 594000000
[   27.462979] panfrost fde60000.gpu: bus_clock rate = 500000000
[   27.469071] dwhdmi-rockchip fe0a0000.hdmi: registered DesignWare HDMI Ir
         Starting User Login Management...
[   27.526787] panfrost fde60000.gpu: mali-g52 id 0x7402 major 0x1 minor 00
[   27.527538] panfrost fde60000.gpu: f000cf7, issues: 00000000,00000400
[   27.528576] panfrost fde60der:0x00000002 Tiler:0x00000209 Mem:0x1 MMU:01
[   27.544992] rockchip-drm display-subsystem: bound fe0a0000.hdmi (ops dw)
[   27.546440] rockchip-drm display-subsystem: bound fe060000.dsi (ops dw_)
[   27.550062] cfg80211: Loading compiled-in X.509 certificates for regulae
[   27.552299] mousedev: PS/2 mouse device common for all mice
[   27.564209] [drm] Initialized rockchip 1.0.0 20140818 for display-subsy0
[   27.580836] input: rk805 pwrkey as /devices/platform/fdd40000.i2c/i2c-01
[   27.584137] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   27.585281] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db'
[   27.612346] [drm] Initialized panfrost 1.2.0 20180908 for fde60000.gpu 1
[   27.823291] hantro-vpu fdea0000.video-codec: Adding to iommu group 1
[   27.825363] hantro-vpu fdea0000.video-codec: registered rockchip,rk35681
[   27.839976] hantro-vpu fdee0000.video-codec: Adding to iomo-vpu fdee0000
[   27.950657] iio iio
[   27.959098] rockchip-drm display-subsystem: [drm] fb0: rock[  OK  ] Cre.
         Stopping Host and Network Name Lookups...
[  OK  ] Stopped target User and Group Name Lookups.
[   27.987356] input: rk817_ext Headphones as /devices/platform/rk817-soun2
         Stopping User and Group Name Lookups...
[   28.005565] Goodix-TS 1-005d: ID 911, version: 1060
[   28.006460] Goodix-TS 1-005d: Direct firmware load for goodix_911_cfg.b2
[   28.015049] input: Goodix Capacitive TouchScreen as /devices/platform/f3
         Stopping Name Service Cache Daemon (nsncd)...
         Starting Load/Save Screen Backligh…rightness of backlight:backlig.
[  OK  ] Started User Login Management.
[  OK  ] Stopped Name Service Cache Daemon (nsncd).
         Starting Name Service Cache Daemon (nsncd)...
[  OK  ] Finished Load/Save Screen Backlight Brightness of backlight:backl.
[  OK  ] Started Name Service Cache Daemon (nsncd).
[  OK  ] Reached target Host and Network Name Lookups.
[  OK  ] Reached target User and Group Name Lookups.
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Finished resolvconf update.
[  OK  ] Reached target Preparation for Network.
[   28.258299] Registered IR keymap rc-cec
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
         Starting Networking Setup...
[   28.316900] rc rc0: dw_hdmi as /devices/platform/fe0a0000.hdmi/rc/rc0
[   28.318154] input: dw_hdmi as /devices/platform/fe0a0000.hdmi/rc/rc0/in5
         Starting Virtual Console Setup...
[  OK  ] Reached target Sound Card.
[  OK  ] Finished Networking Setup.
         Starting Extra networking commands....
[  OK  ] Finished Extra networking commands..
[  OK  ] Reached target Network.
         Starting SSH Daemon...
         Starting Permit User Sessions...
[  OK  ] Finished Virtual Console Setup.
[  OK  ] Finished Permit User Sessions.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS2.
[  OK  ] Reached target Login Prompts.


<<< Welcome to NixOS 24.05.20240531.805a384 (aarch64) - ttyS2 >>>
The "nixos" and "root" accounts have empty passwords.

To log in over ssh yith `passwd` (prefix with `sudo` for "root"), or add yc
If you need a wireless connection, type
`sudo systemctl startOS manual for details.


Run 'nixos-help' for the NixOS manua
[0;nixos@nixos: ~nixos@nixos:~]$ lsmod
Module                  Size  Used by
snd_soc_hdmi_codec     24576  1
dw_hdmi_i2s_audio      12288  0
dw_hdmi_cec            12288  0
crct10dif_ce           12288  1
polyval_ce            1 polyval_ce
dw9714                 16384  0
v4l2_fwnode     cel_i2c           16384  0
snd_soc_simple_amplifier    12288  1   20480  0
st_accel               28672  1 st_accel_i2c
v4l2_le_card_utils    36864  1 snd_soc_simple_card
leds_regulator     16384  0
st_sensors             28672  3 st_accel_i2c,st_acce
                                                    hantro_vpu            0
spi_rockchip_sfc       20480  16384  1 hantro_vpu
rk805_pwrkey           12288  0
cfg80211             20480  0
panfrost               94208  0
rfkill    vpu
panel_boe_th101mb31ig002_28a    16384  0
gpu_sched                     20480  1 8021q
mrp                    20480  1 802blake2b_generic        20480  0
xor                    12288  106496  1 btrfs
hid_multitouch         32768  0
uio_pdrv_genirqnntrack           12288  2
nf_conntrack          188416  1 xt_cudp              16384  3
ip6t_rpfilter          12288  1
ipt_
    xt_pkttype             12288  2
nft_compat             20480    20480  1
libcrc32c              12288  3 nf_conntrack,btrfs,n672  0
bridge                319488  0
stp                    e                  159744  1
nfnetlink              20480  3 nf        49152  7 xt_conntrack,ip6t_rpfilp
                                                                          a
videobuf2_memops 9152  2 hantro_vpu,rockchip_rga
videobuf2_v4l2         40960  3   356352  8 v4l2_async,v4l2_fwnode,videobum
dw  1 rockchipdrm
drm_display_helper    204800  3 rockchipdrm,dw_                   69632  3l
dm_mod                184320  0
dax                    45
[0;nixos@nixos: ~nixos@nixos:~]$ lsmod | grep bes

[0;nixos@nixos: ~nixos@nixos:~]$ sudo su

[0;root@nixos: /home/nixosroot@nixos:/home/nixos]# modprobe bes2600
[  106.665779] bes2600: module is from the staging directory, the quality .
[  106.671110] ------Driver: bes2600.ko version :bes2600_0.3.5_2024.0116
[  106.671951] can't request reset_gpio (-2)
[  106.672359] can't request powerup_gpio (-2)
[  106.673132] bes2600_chrdev_init done
[  106.673502] bes2600_sdio_on enter
[  106.674077] Probe called:00000000f32afbe2,1
[  106.739829] reading /data/cfg/bes2600_factory.txt 
[  106.740441] BES2600 : can't open /data/cfg/bes2600_factory.txt
[  106ead and check /data/cfg/bes2600_factory.txt error
[  106.741596[  106.742111] BES2600 : can't open /lib/firmware/bes2600_facr
[  106.743321] factory cali data gefw_type:0.
[  106.744234] bes2600 download cali and wifi signal[  106.754713] ------Ft
[  106.920178] firmware is downloaded successfully and is already running
[  107.439923] bes2600 read dpd cali data.
[  110.368971] read dpd data size:15124
[  110.369560] bes2600 dpd cali pass.
[  110.577571] ------Firmware: bes2600/best2002_fw_sdio.bin version :Dec 2w
[  110.844129] firmware is downloaded successfully and is already running
[  111.375975] download finished ,wifi_state:1 result is 0
[  111.376855] Allocated hw_priv @ 00000000f73d3bec
[  111.378474] [BH] register.
[  111.378808] coex_init_mode coex_mode 0
[  111.382268] is registered as 'phy0'
[  111.382682] wakup proc on wq of probe_done.
[  111.383870] Probe called:00000000a4dddc2b,2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.