Jump to content

going

Members
  • Posts

    818
  • Joined

  • Last visited

Everything posted by going

  1. This is a simple check on the kernel source code. See if the necessary driver is compiled? grep -n 'FB_TFT_SSD1306' /boot/conf* grep -n 'DRM_SSD130X' /boot/conf* If the necessary drivers are present in the kernel, it remains for you to correctly write the overlay for the device tree. You can use the existing code from the search as a basis: > grep -nri SSD1306 arch/arm/boot/dts/* arch/arm/boot/dts/am335x-icev2.dts arch/arm/boot/dts/imx28-cfa10036.dts In order for the driver to be loaded automatically, there must be a line in the described node: compatible = "solomon,ssd1306" When your work is successful and you have a properly working overlay, just post it here and call me @going. I will add this overlay for everyone in the Armbian patches. If you need more help, try looking for it in similar topics on the forum. Well good luck. P.S. Your question is not related to a specific Banana Pi. This is rather a general question of connecting the device via the SPI to the board. Maybe it makes sense to rename the name to attract interested users?
  2. @KlGrom This patch is for a different architecture. Maybe you want to tell me more details? HardWare Specification of Banana pi BPI-M2 Berry SocAllwinner A40i/R40/V40 ? What are you connecting to SPI. Master\Slave ? How was the verification carried out?
  3. Please publish the output to a file under the spoiler: grep -n DMA /boot/conf*6.2.12-sunxi >> DEBUG-CONF.txt grep -n SPI /boot/conf*6.2.12-sunxi >> DEBUG-CONF.txt
  4. Try using an external toolchain by setting variables as described in the documentation. https://docs.armbian.com/Developer-Guide_Build-Options/#hidden-options-for-advanced-users-default-values-are-marked-bold
  5. Just tell the user how to properly install headers from this particular kernel. There is one core for the entire sunxi (arm) family. That's all he needs.
  6. Is there a CPU H3 or H2 on your device? @Anthony Walter If I understand correctly, do you need a kernel with support for the Lima driver and headers for this kernel?
  7. And what is the reason for this?
  8. @Artem Shakirov Please publish the output of the command on your device: grep -n POWER_RESET_GPIO /boot/conf* I have a suspicion that the kernel is built without this gpio-poweroff module and you will see: config:3457:# CONFIG_POWER_RESET_GPIO is not set
  9. The buttons on the device are designed for the system's response to external influences. The button was pressed and the system did something. This also applies to the power off button. The driver reads the pin status and, when it changes, sends a signal to the system to shut down. It is assumed that the pin should be configured as an input and a button connection scheme and a device that responds to pressing the button with a delay should be implemented in order to physically turn off the supply voltage. If the button is not pressed, but there will be a signal to the system to turn off the power (sudo poweroff), then the driver emulates pressing the button. I.e., it will switch the pin as an output on its own and change the state three times. To start debugging, check whether the driver has been loaded: lsmod | grep power dmesg | grep power dmesg | grep -i warn This functionality assumes the system's response to its internal state. The device is working the LED is on. You did everything right. This is not a workaround, but the right solution. In my opinion. I'll try to check on the weekend what I wrote here for you.
  10. Good health! I think I may misunderstand because of the translation. Please state the problem in simpler phrases and only text, and give the overlay code that does not work for you in its entirety. That's before compilation. P.S. @Artem Shakirov Artem, The problem may be inversion. It is necessary to look at how the power button should be connected on the device.
  11. @GoGerriko To get started, check out this patch: patch/kernel/archive/rockchip64-5.15/drv-spi-spidev-remove-warnings.patch And then do it by analogy with sunxi64
  12. The most interesting thing about this is that the Armbian build system (what is in the lib folder) becomes unnecessary. Only settings and patch folders are needed. If I have OBS, then I need filling in the working directory to build packages. And only this: build> tree packages/deb-build/ packages/deb-build/ ├── htop │ └── debian │ ├── changelog │ ├── control │ ├── copyright │ ├── docs │ ├── install │ ├── rules │ ├── source │ │ └── format │ ├── upstream │ │ └── metadata │ └── watch ...... └── README.md The "watch" file contains all the necessary information to download the source code archive. One line of code is needed and the source package is ready in its expanded form. One more line of code to collect the entire collection of binary and debian source packages. Ricardo thanks for the tip.
  13. The first problem is to make the source package and this must be done in the OS build environment. When there is a properly working source package, and for debian these are several files, we can send them to any service for assembly. It does not matter in principle. No one will do the manual work for us. I am talking about providing the user with tools to work on creating source packages and then assembling them in the native environment, i.e. in the OS in which the binary package will be installed. @rpardini We are talking about the process of developing a package from source texts, and not about which service to build it on. this mechanism can exist completely independently, and can be invoked independently. The build system can use some parts of it for its tasks, but not vice versa. Can we start discussing the algorithm? I'm already doing something and I've done something.
  14. Hi Ricardo. This is my favorite service. Do you suggest making a package in it for Armbian?
  15. Before the mechanism is implemented and moves to the assembly system, it is necessary to ask a question, and who needs it and why. If only to collect a small collection of packages for internal consumption by Armbian as the organization that distributes these packages, then this is one option. This option existed before. If we plan to give the user the opportunity to build any package in a chroot environment or natively, then this is another goal. And it involves assembling several packages for internal consumption. But as part of a more general capability. It was little used because it was hard coded to build multiple packages using configuration files. And it was always the same version of the package. Igor, you know that I have redone it a little, and it is now in the master branch collecting packages in a clean environment every time. Why is this the case? Because all the distributions I know do exactly that. The build system, by its very nature, should provide some customization options and tools for the developer's work. If this is not the case, the developer will find an alternative or redo the algorithm of the build script. There will always be poorly or not very well functioning packages that can be fixed. And for this , there must be a mechanism for building in the chroot environment. I am developing it and it is becoming more functional.
  16. sudo mount /dev/mmcblk0p1 /mnt ls /mnt/boot ..... sudo nano /mnt/boot/armbianEnv.txt edit text -> bootlogo=false console=both <ctrl>&<o> - save <ctrl>&<x> - exit sudo poweroff Remove the SD card Boot
  17. There should be a switch on this device to select the download option. Are you using it?
  18. The developers of Armbian abandoned the old mechanism, why? What is the main reason? It worked well and is working today for me. It will be very interesting for me to look at the new algorithm in a descriptive way before it is implemented programmatically.
  19. Do you need an Armbian image for you? Did you take this from Ubuntu? 8 часов назад, Smartyn34 сказал: in dtb file, I now have: i2c2_ph_pins: i2c2-ph-pins { pins = "PH4","PH5"; function = "i2c2"; }; i2c@1c2b400 { compatible = "allwinner,sun8i-a83t-i2c\0allwinner,sun6i> reg = <0x1c2b400 0x400>; interrupts = <0x00 0x07 0x04>; clocks = <0x02 0x34>; resets = <0x02 0x27>; pinctrl-names = "default"; pinctrl-0 = <&i2c2_ph_pins>; status = "okay"; #address-cells = <0x01>; #size-cells = <0x00>; };
  20. Two things are needed for this to work. The driver is in the kernel. UDEV rules for switching usb modeswitch. Reboot as a command on the command line or from a button? One inattentive developer made changes to the build system, but did not check other development lines and this made the uboot package broken for the record. This is fixed.
  21. uboot I fixed in my branch. Fixed it in the sense that if you assemble the image then it will load. DTB for uboot or for kernel? Does dtb work for kernel? @sgjava I can probably make some changes to the dts, but I won't be able to check them. I don't have this device and this fact makes it very difficult. You can just check for EDGE to get the CLI image: ./compile.sh BUILD_ONLY="default" BUILD_MINIMAL=yes Before starting the build system, please clear the "output/debs/*" folder. In my branch, the directory structure for future package files will be slightly different.
  22. If you're interested, I'm just continuing to develop this master branch here.
  23. I'm sorry, @sgjava are you still doing this?
  24. @yamah Thanks for the investigation.
  25. I found where it can be found. please show me: igor@honeypot:/usr/src/linux-headers-6.1.15-sunxi$ find ./ -name special.h
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines