Jump to content

bozden

Members
  • Posts

    101
  • Joined

  • Last visited

Posts posted by bozden

  1. In my case, I have 10+ of OPi boards in the drawer, which I wanted to put to some good use. I started with the single one in use.

     

    I said "23.8.1" worked, but with a single apt update/upgrade it gets stuck on boot. I spent a day debugging the issue to no avail, so I put that away.

    I'm with no firewall and PiHole now, ads really suck. I'll revisit the issue when my current project is over. ... or just put an RPi 3 there...

     

    @Moklev, thank you for the pointers.

     

    I wonder: If the kernel is broken, why does the community create new image versions?

     

  2. Pardon me for asking here. I need to re-install OPi PC 2 -which I use as a firewall/router- because the old Ubuntu from 2020 is EOL.

     

    - Is the kernel problem stated here still an issue? Latest DL is Armbian_community_24.5.0-trunk.667_Orangepipc2_jammy_current_6.6.31_gnome_desktop.img.xz

    - I also have Armbian_23.8.1_Orangepipc2_jammy_current_6.1.47_xfce_desktop.img.xz from the archives.

     

    Which one is to go? When I start, I'll probably lose my Internet connection...

     

  3. Follow-up:

     

    After compiling the kernel with usbtouchscreen as module and enabling it + apt-get xinput & xinput-calibrator , my touchscreen worked.

    Axis were inverted, so a transformation matrix is needed on /etc/X11/xorg.conf.d/99-calibration.conf:

     

            Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
     

    On the other hand it needs some scaling as I cannot reach the screen's edges. As far as I can see it can only be done by trial-error - a very tedious task.

     

    By looking into /var/log/Xorg.0.log I can see the TransformationMatrix is read, but not other parameters suggested by xinput_calibrator mentioned in the log, so I'm not sure if they are relevant (modifying them had no effect).

     

    That's it for now...

     

  4. 7 hours ago, lanefu said:

     

    So a cheat to let customize image see the board would be for the script to source sdcard/etc/armbian-release

     

    Then you'll have a board var etc.  Sorry typing on my phone otherwise if provide a better example 

     

    Thank you for the tip. I currently solved this without cheating:

    1) I use a shared folder on VirtualBox

    2) On the main bash I'm running, after the compilation is done I create MyApp folder, and move from the output/images folder renaming 3 files generated.

    Simple solution for my dumb question :/

     

     

  5. I fully understand this, that quote was attribute to "No end-user support: built from trunk" wording in motd :)

     

    I learned linux playing with these SBC's, mainly Armbian and it is a hobby for me. I have several installations at my home-office as hobby projects. If I ever earn some money from these stuff I'll donate it. But for this or helping others on the forums, I need to learn first :) 

     

    Things like chroot environment, kernel parameters, kernel compiling are very new to me. The build script is very high quality code from my perspective. Last week, by examining it I learned a lot. For example the "wait_for_package_manager" function in general.sh provides solution for some of my problems. Kudos for @Igor and everybody contributed.

     

    I'll try to "document" my adventure for other newbies.

     

  6. OK, after a weeks effort, I (quick-)examined the code, found some related posts and got help from @Werner, thank you for breaking the "you are on your own" rule :beer:.

     

    The structure above needs major revising, if we go step by step:

     

    1) I have to write the variables in the outher bash to some .sh file (e.g. under userpatches/overlay/myapp) to be copied to chroot environment to be sourced.

    2 & 3) I cannot do this, because in "image-helpers.sh" customize_image routine only one file, "customize-image.sh" is copied to $SDCARD. So I must combine everything into that file.

    3) In customize-image.sh, I need to source the file I've saved in step 1 to get my variables back

    4) Is ok, but can only be used for setting variables.

     

    And finally how I can include my own files... See:

    Now I have to test this whole thing.

    Cheers

     

  7. 2 hours ago, Werner said:

    Maybe this help:

     

     

    Thank you Werner, that helps.

     

    I had a misconception with the namin. "Userpatch" mixed with kernel pathing, "overlay" with overlayfs.

     

    After examining the code I found correct keywords for search and found this:

    I also recognized from the code that only customize-image.sh is copied to destination and my other files (which I call from it) do not.

     

    Now the post you shared comes into play...

     

    Thank you again.

     

  8. OK, learning...

     

    I just recognized customize-image.sh is run in chroot, so direct access to host OS is not possible, maybe there is a variable for host binding which I couldn't find.

    On the other hand lib.config is run on host. Although it seems to be used for setting variables, it is source'd, so I can run anything there. So, this might work:

     

    cp "${SRC}""${MY_PRODUCT_DIR}" "${SDCARD}""${MY_SETUP_DIR}"

     

    And in customize-image.sh, I can move files around and do whatever I like with them.

     

    Can somebody please confirm? It takes too long to test...

     

  9. I have several files I want to embed into the compiled image, such as logos, desktop backgrounds, some public keys, scripts etc.

    I can put them in correct place (e.g. /usr/local/bin) or put it in a directory at root (e.g. /MyAppSetup) and run a script to handle/move them.

    In the past I was using a private git repo on my server to clone these, but if I'm compiling, I'd like to get rid of this extra layer.

     

    I could not find a way to do that. Could someone please advise?

     

  10. I have several applications running on different boards. After reading documents/forum posts and checking the code here and there, I came to the following setup and I'll be very pleased if someone confirms it.

     

    Application A1, A2,..An

    Board B1, B2,...Bn

     

    1) Create multiple compile_Ax_By.sh, containing:

     

    #!/bin/bash
    # Define my application
    MYAPP=A1
    # Call ./compile.sh with predefined parameters
    ./compile.sh BOARD="orangepipcplus" BRANCH="current" RELEASE="focal" BUILD_DESKTOP="yes" KERNEL_ONLY="no" KERNEL_CONFIGURE="no"

     

    2) In userpatches/customize-image.sh add a single line to my custom my-custom-image.sh (in case original got overwritten by update)

     

    3) In userpatches/my-custom-image.sh put my main logic with case and/or common functions:

     

    # MY VARIABLES
    ...
    # MY MAIN
    main() {
     case $MYAPP in
     App1)
      ...
     App2)
      ...
     esac
    }
    # MY SUBS
    ...

     

    4) Create userpatches/lib.config and form a similar case structure for variables

     

    case $HKBOX_TYPE in
    App1)
      PACKAGE_LIST_ADDITIONAL="$PACKAGE_LIST_ADDITIONAL ..."
      ;;
    App2)
    ...
    esac
    
    # common ones here

     

     

    One thing I couldn't find is the name of the final image. Something like Armbian_MyApp_MyBoard_....img would be nice. Otherwise it overwrites the original...

     

     

     

  11. Thank you Igor, I already had examined them briefly. Very nice work indeed... But not applicable for my case (I think)... I'm not bulk-producing...

     

    What I'm trying to do (for now) is simply adding some drivers, adding some scripting to customize-image.sh, such as additions to motd, several users/groups/rights management, pre-installing some additional software through apt-get, adding some custom scripts under /usr/local/bin etc.

     

    Testing this would require installation of the customized Armbian and checking the logs etc.

     

    Is there a working armhf emulator for x32-64? That would ease the burden alot... I found QEMU just now, did you try it?

    My development environment is on Win 10 and I don't mind speed loss caused by emulation.

     

    Or I'm really missing the point :/

     

  12. I was afraid to hear that...  It is hard to learn what tech they are using on specific drives.

    I'll buy larger-than-necessary USB flash drives hoping the controller would distribute the wearing...

    At that time I used USB-2 Flash'es, this time I'll get USB-3's, hoping to get better performance...

     

    But to be able to put the device in a case, the "Fit" labeled devices (Sandisk or Samsung) are best, and this will narrow my chances...

     

  13. Yep :) For years I ran away from that, too much detail for me - and I was afraid to fail, Linux is my second language :P. I spent last night on reading and applying, as of now I already have build all default images for all my boards.

     

    I was using scripting to modify the default setup, probably I will be able to create special purpose images (I think, I hope, ...).

     

  14. They do not provide armhf version for client and armbian-config installs the server.

     

    If I try to compile from source I get an error in sqlite part, which I couldn't resolve.

     

    sqlite/sqlite3.c: In function ‘sqlite3VdbeExec’:
    sqlite/sqlite3.c:90236:1: internal compiler error: Bus error
    90236 | }
          | ^
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.
    make[2]: *** [Makefile:2168: sqlite/urbackupclientbackend-sqlite3.o] Error 1

     

    Did anyone succeed in this?

     

  15. I had a untested touchscreen device lying in its box , presenting itself as:

     

    Bus 006 Device 002: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen

     

    The driver provided on their site (https://www.eeti.com/drivers_Linux.html) complains that the controller is non-HID and reverts back the installation. I tried it manually with no success. I'm using an OPi PC Plus to build a Home Assistant machine.

     

    Does anyone have pointers for this for Armbian?

    Something like https://lennarkivistik.com/cat/misc/hacu/13 (this one is for RPi)

     

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines