Open distolma opened 6 months ago
@CodeChenL please check if you can reproduce this issue.
Got it
BTW, my before.txt looks something like that:
# ==============================
# Radxa First Boot Configuration
# ==============================
# Allow config to continue even when some commands fail
no_fail
log "Running before.txt as first boot configuration"
# Create default accounts
# Commands:
# add_user <user name> <password>
# user_append_group <user name> <group>
#
add_user radxa radxa
user_append_group radxa sudo
user_append_group radxa audio
user_append_group radxa video
user_append_group radxa plugdev
user_append_group radxa render
user_append_group radxa gpio
user_append_group radxa i2c
user_append_group radxa spidev
user_append_group radxa pwm
add_user rock rock
user_append_group rock sudo
user_append_group rock audio
user_append_group rock video
user_append_group rock plugdev
user_append_group rock render
user_append_group rock gpio
user_append_group rock i2c
user_append_group rock spidev
user_append_group rock pwm
# Resize root partition at the filesystem level
#
resize_root
# Disable services
# Command:
# disable_service <systemd unit name>
#
# disable_service ssh
# disable_service smbd
# disable_service nmbd
# Generate unique hardware fingerprint
#
regenerate_ssh_hostkey
# Configure locale
# Command:
# update_locale <locale>
#
update_locale en_US.UTF-8
# Connect to Wi-Fi
# Command:
# connect_wi-fi <network name> [password]
#
connect_wi-fi "WiFi 2.4GHz" 12345678
# Enable SSH on headless first boot
# Keyword:
# if|if_not <condition> <command>
# Condition:
# headless: When no display connector is connected
# Command:
# enable_service <systemd unit name>
#
enable_service ssh
# Remove first-boot package
# Command:
# remove_packages <package names>
#
remove_packages rsetup-config-first-boot
I see that you've done some work, what's next? should I expect a new build?
Currently we do now have plan to release a new ZERO 3 image. If you have a Linux computer you can use our bsp
tool to install prebuilt deb packages to a uncompressed system image. The command is ./bsp install xxx.img yyy.deb
.
Please try this rsetup
release.
It looks like I almost succeeded, but do you know what could have gone wrong?
$ ./bsp install ./radxa-zero3_debian_bullseye_xfce_b6.img ./rsetup_0.3.46_all.deb
Target is a file. Trying to find rootfs partition...
umount: /mnt: not mounted
Spawning container mnt on /mnt.
Press ^] three times within 1s to kill container.
(Reading database ... 70887 files and directories currently installed.)
Preparing to unpack /rsetup_0.3.46_all.deb ...
Unpacking rsetup (0.3.46) over (0.3.46) ...
Setting up rsetup (0.3.46) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for man-db (2.9.4-2) ...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
rsetup-config-aic8800-ttys1 : Depends: rsetup (= 0.3.43) but 0.3.46 is installed
rsetup-config-first-boot : Depends: rsetup (= 0.3.43) but 0.3.46 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Container mnt failed with error code 100.
You should download and install those 2 packages from the same rsetup release.
I installed these packages, but I still have a problem with the device not connecting to WiFi.
I decided to try a different image, and I found one that is not official. I flashed it to an SD Card and after some manipulations with netplan
, I managed to launch the device, and it successfully connected to WiFi.
$ neofetch
.-/+oossssoo+/-. ubuntu@ubuntu
`:+ssssssssssssssssss+:` -------------
-+ssssssssssssssssssyyssss+- OS: Ubuntu 22.04.4 LTS aarch64
.ossssssssssssssssssdMMMNysssso. Host: Radxa ZERO 3
/ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 5.10.160-rockchip
+ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 2 mins
/sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 703 (dpkg)
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: bash 5.1.16
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ Terminal: /dev/pts/0
ossyNMMMNyMMhsssssssssssssshmmmhssssssso CPU: (4) @ 1.800GHz
ossyNMMMNyMMhsssssssssssssshmmmhssssssso Memory: 165MiB / 7686MiB
+sssshhhyNMMNyssssssssssssyNMMMysssssss+
.ssssssssdMMMNhsssssssssshNMMMdssssssss.
/sssssssshNMMMyhhyyyyhdNMMMNhssssssss/
+sssssssssdmydMMMMMMMMddddyssssssss+
/ssssssssssshdmNNNNmyNMMMMhssssss/
.ossssssssssssssssssdMMMNysssso.
-+sssssssssssssssssyyyssss+-
`:+ssssssssssssssssss+:`
.-/+oossssoo+/-.
For some reason, it turns out that the problem is in the official image. I'm going to use the non-official one from now on.
@distolma Hi, I’m using the image you recommended, but I’m unable to connect to WiFi during boot. Unfortunately, since I’m running it headless, I have no clue what might be wrong. Could you please share your network configuration file? Additionally, I’d appreciate it if you could guide me on enabling SSH.
The contents of my network-config
are:
network:
version: 2
wifis:
wlan0:
dhcp4: true
optional: true
access-points:
SaharWiFi:
password: "abcde12345"
regulatory-domain: "GB"
Hi! It looks like I have a WIFI problem with radxa-zero3_debian_bullseye_xfce_b6.img. Unfortunately, I have only a headless option, so I can't see any logs. I entered a Wi-Fi SSID and password in the before.txt file, booted Zero 3W, and the indicator started blinking with the same interval, but I couldn't find any new network client through the LAN scan. My router is configured to have different SSIDs for 2.4 and 5 GHz, and using WPA2-PSK. Maybe some one already saw this issue?