Comments (9)
@pblxptr any ideas please? I didn't try yet to build opi zero 2 but will try and let you know. Thanks.
I will have a look at this
from meta-sunxi.
@pblxptr any ideas please? I didn't try yet to build opi zero 2 but will try and let you know. Thanks.
from meta-sunxi.
Hmm it seems that something went wrong with file permissions in patches - the second patch with bugfixes I took from Xunlong, the mismatch in file permissions (644/755) is probably related to 'x' bit in permissions. Anyway, @jakub-kozlowicz can you have a look at this https://github.com/pblxptr/meta-sunxi/tree/opiz2-kernel6x-fix
Could you check out this branch and see if it works? I tested it locally and it compiled properly, also booted it on board, and it seems to be working fine.
from meta-sunxi.
Hmm it seems that something went wrong with file permissions in patches, @jakub-kozlowicz can you have a look at this https://github.com/pblxptr/meta-sunxi/tree/opiz2-kernel6x-fix
Could you check out this branch and see if it works? I tested it locally and it compiled properly, also booted it on board, and it seems to be working fine.
Yeah, I will test it today and let you know :)
from meta-sunxi.
@pblxptr I have managed to successfully build image with langdale version of poky and your branch with fix. I've encountered different problem. This image is not bootable. Red led on the board is on but the green led do not light on. I used a dd
program to create SD card with the sunxi-sdimg
, but I do not know if I should use some different switches.
from meta-sunxi.
@pblxptr I have managed to successfully build image with langdale version of poky and your branch with fix. I've encountered different problem. This image is not bootable. Red led on the board is on but the green led do not light on. I used a
dd
program to create SD card with thesunxi-sdimg
, but I do not know if I should use some different switches.
Hmm, are you sure that it's not booting? What's the output on a serial port?
The red led is not automatically turned on when you plug in the power supply. It's managed by the Kernel, and enabled when the kernel parses the device tree and enables drivers.
Btw. personally I do not use dd, I prefer bmaptool: sudo bmaptool copy --nobmap core-image-minimal-orange-pi-zero2.sunxi-sdimg /dev/mmcblk0
``
leds {
compatible = "gpio-leds";
led-0 {
function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pio 2 12 GPIO_ACTIVE_HIGH>; /* PC12 */
default-state = "on";
};
led-1 {
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pio 2 13 GPIO_ACTIVE_HIGH>; /* PC13 */
};
};
from meta-sunxi.
@jakub-kozlowicz any update?
from meta-sunxi.
@jakub-kozlowicz any update?
Yep, I've managed to boot and using serial port test Ethernet connectivity. Now I am working on wifi connection.
CORE_IMAGE_EXTRA_INSTALL:append = " ethtool networkmanager-nmcli kernel-modules linux-firmware uwe5622-firmware wpa-supplicant"
KERNEL_MODULE_AUTOLOAD += "sprdwl_ng"
DISTRO_FEATURES:append = " systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
This code with new version of poky requires meta-networking layer from meta-openembedded. Also there are two network-manager services installed (/etc/init.d/network-manager
, /lib/systemd/system/NetworkManager.service
). This cause conflicts and I cannot configure wifi connectivity. Another problem is that there is missing networkmanager-wifi plugin.
* network-manager.service - LSB: network connection manager
Loaded: loaded (/etc/init.d/network-manager; generated)
Active: active (running) since Fri 2023-03-31 14:32:26 UTC; 26min ago
Docs: man:systemd-sysv-generator(8)
Process: 216 ExecStart=/etc/init.d/network-manager start (code=exited, status=0/SUCCESS)
Tasks: 3 (limit: 1153)
Memory: 7.6M
CGroup: /system.slice/network-manager.service
`-218 /usr/sbin/NetworkManager
Mar 31 14:32:28 orange-pi-zero2 NetworkManager[218]: <info> [1680273148.1685] ifupdown: No dns-nameserver configured in /etc/network/interfaces
Mar 31 14:32:28 orange-pi-zero2 NetworkManager[218]: <info> [1680273148.1707] ifupdown: guessed connection type (bnep0) = 802-3-ethernet
Mar 31 14:32:28 orange-pi-zero2 NetworkManager[218]: <info> [1680273148.2024] dhcp: init: Using DHCP client 'internal'
Mar 31 14:32:28 orange-pi-zero2 NetworkManager[218]: <info> [1680273148.2033] device (lo): carrier: link connected
Mar 31 14:32:28 orange-pi-zero2 NetworkManager[218]: <info> [1680273148.2085] manager: (lo): new Generic device (/org/freedesktop/NetworkManager/Devices/1)
Mar 31 14:32:28 orange-pi-zero2 NetworkManager[218]: <info> [1680273148.2178] manager: (wlan0): 'wifi' plugin not available; creating generic device
Mar 31 14:32:28 orange-pi-zero2 NetworkManager[218]: <info> [1680273148.2307] manager: (wlan0): new Generic device (/org/freedesktop/NetworkManager/Devices/2)
Mar 31 14:32:28 orange-pi-zero2 NetworkManager[218]: <info> [1680273148.2488] manager: (eth0): new Ethernet device (/org/freedesktop/NetworkManager/Devices/3)
Mar 31 14:32:28 orange-pi-zero2 NetworkManager[218]: <info> [1680273148.2694] manager: startup complete
Mar 31 14:32:31 orange-pi-zero2 NetworkManager[218]: <info> [1680273151.8718] device (eth0): carrier: link connected
x NetworkManager.service - Network Manager
Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Fri 2023-03-31 14:32:28 UTC; 26min ago
Duration: 62ms
Docs: man:NetworkManager(8)
Process: 244 ExecStart=/usr/sbin/NetworkManager --no-daemon (code=exited, status=1/FAILURE)
Main PID: 244 (code=exited, status=1/FAILURE)
Mar 31 14:32:28 orange-pi-zero2 systemd[1]: NetworkManager.service: Scheduled restart job, restart counter is at 5.
Mar 31 14:32:28 orange-pi-zero2 systemd[1]: Stopped Network Manager.
Mar 31 14:32:28 orange-pi-zero2 systemd[1]: NetworkManager.service: Start request repeated too quickly.
Mar 31 14:32:28 orange-pi-zero2 systemd[1]: NetworkManager.service: Failed with result 'exit-code'.
Mar 31 14:32:28 orange-pi-zero2 systemd[1]: Failed to start Network Manager.
Changes from your branch fixes problems with building image for langdale version of poky. I will post a minimal version of local.conf file with working wifi and ethernet when I finish it.
from meta-sunxi.
@jakub-kozlowicz any update?
Yep, I've managed to boot and using serial port test Ethernet connectivity. Now I am working on wifi connection.
CORE_IMAGE_EXTRA_INSTALL:append = " ethtool networkmanager-nmcli kernel-modules linux-firmware uwe5622-firmware wpa-supplicant" KERNEL_MODULE_AUTOLOAD += "sprdwl_ng" DISTRO_FEATURES:append = " systemd" DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit" VIRTUAL-RUNTIME_init_manager = "systemd" VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
This code with new version of poky requires meta-networking layer from meta-openembedded. Also there are two network-manager services installed (
/etc/init.d/network-manager
,/lib/systemd/system/NetworkManager.service
). This cause conflicts and I cannot configure wifi connectivity. Another problem is that there is missing networkmanager-wifi plugin.* network-manager.service - LSB: network connection manager Loaded: loaded (/etc/init.d/network-manager; generated) Active: active (running) since Fri 2023-03-31 14:32:26 UTC; 26min ago Docs: man:systemd-sysv-generator(8) Process: 216 ExecStart=/etc/init.d/network-manager start (code=exited, status=0/SUCCESS) Tasks: 3 (limit: 1153) Memory: 7.6M CGroup: /system.slice/network-manager.service `-218 /usr/sbin/NetworkManager Mar 31 14:32:28 orange-pi-zero2 NetworkManager[218]: <info> [1680273148.1685] ifupdown: No dns-nameserver configured in /etc/network/interfaces Mar 31 14:32:28 orange-pi-zero2 NetworkManager[218]: <info> [1680273148.1707] ifupdown: guessed connection type (bnep0) = 802-3-ethernet Mar 31 14:32:28 orange-pi-zero2 NetworkManager[218]: <info> [1680273148.2024] dhcp: init: Using DHCP client 'internal' Mar 31 14:32:28 orange-pi-zero2 NetworkManager[218]: <info> [1680273148.2033] device (lo): carrier: link connected Mar 31 14:32:28 orange-pi-zero2 NetworkManager[218]: <info> [1680273148.2085] manager: (lo): new Generic device (/org/freedesktop/NetworkManager/Devices/1) Mar 31 14:32:28 orange-pi-zero2 NetworkManager[218]: <info> [1680273148.2178] manager: (wlan0): 'wifi' plugin not available; creating generic device Mar 31 14:32:28 orange-pi-zero2 NetworkManager[218]: <info> [1680273148.2307] manager: (wlan0): new Generic device (/org/freedesktop/NetworkManager/Devices/2) Mar 31 14:32:28 orange-pi-zero2 NetworkManager[218]: <info> [1680273148.2488] manager: (eth0): new Ethernet device (/org/freedesktop/NetworkManager/Devices/3) Mar 31 14:32:28 orange-pi-zero2 NetworkManager[218]: <info> [1680273148.2694] manager: startup complete Mar 31 14:32:31 orange-pi-zero2 NetworkManager[218]: <info> [1680273151.8718] device (eth0): carrier: link connected
x NetworkManager.service - Network Manager Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Fri 2023-03-31 14:32:28 UTC; 26min ago Duration: 62ms Docs: man:NetworkManager(8) Process: 244 ExecStart=/usr/sbin/NetworkManager --no-daemon (code=exited, status=1/FAILURE) Main PID: 244 (code=exited, status=1/FAILURE) Mar 31 14:32:28 orange-pi-zero2 systemd[1]: NetworkManager.service: Scheduled restart job, restart counter is at 5. Mar 31 14:32:28 orange-pi-zero2 systemd[1]: Stopped Network Manager. Mar 31 14:32:28 orange-pi-zero2 systemd[1]: NetworkManager.service: Start request repeated too quickly. Mar 31 14:32:28 orange-pi-zero2 systemd[1]: NetworkManager.service: Failed with result 'exit-code'. Mar 31 14:32:28 orange-pi-zero2 systemd[1]: Failed to start Network Manager.
Changes from your branch fixes problems with building image for langdale version of poky. I will post a minimal version of local.conf file with working wifi and ethernet when I finish it.
As for the systemd wifi related services you have install and configure them by your own. Suport for opi zero 2 for kernel 6x was tested using mostly sysvitnit (less configuration) but it should work with systemd as well.
@nandra I will prepare PR today evening so you could review and submit it as it seems it solves problems with compilation.
from meta-sunxi.
Related Issues (20)
- ATF Build failed for OrangePi PC2 HOT 4
- Bad qtwebengine performance with lima HOT 7
- wic for sunxi64 HOT 9
- USB not working on BananaPi M2 Zero HOT 4
- Question: DT Overlays HOT 3
- Patch errors when baking HOT 1
- Should this generate an SD card image? HOT 18
- Ethernet not working on Orange Pi One Plus (H6) HOT 5
- Support for OrangePI zero 3 HOT 49
- Upcoming mainline kernels support HOT 9
- meta-sunxi depends on meta-sunxi error HOT 6
- Can't boot Orange PI Zero 2W HOT 1
- i2c kernel panic on A20-OLinuXino-LIME during poweroff HOT 6
- orange-pi-zero2 build no longer works HOT 5
- [OrangePi PC2] Wrong place for dtb in boot partition HOT 3
- please create scarthgap branch. thx HOT 4
- nanopi-r1 machine fails to build in u-boot for kirkstone (missing dts) HOT 7
- Legacy sunxi Kernel/U-Boot HOT 4
- olinuxino-a20lime2-emmc: pya20 SRC_URI entry mapping.h: file could not be found HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meta-sunxi.