Jump to content

erew

Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by erew

  1. The 1st time I installed Openhab was a few years back and it was on a TV Box variant of Armbian. Either the option to install Openhab wasnt in the Armbian Config Util on that build/system, or I missed it being in the list and would/should have used that. I ended up for various reasons having to rebuild and customize my install multiple times, plus I couldnt see much mention of Armbian on the Openhab forums and suffered some problems with Openhabian's install routine (which I think may(?) be resolved now). So, at the time I wrote a guide there, partly so I could remember everything if I had to rebuild and also to share with others whom might hunt out the word Armbian. As for versions, yes I think there is a slightly later build.. 8.46.0.225 vs 8.40.0.178 Current Arm Build 64 - https://cdn.azul.com/zulu-embedded/bin/zulu8.46.0.225-ca-jdk8.0.252-linux_aarch64.tar.gz Current Arm Build 32 - https://cdn.azul.com/zulu-embedded/bin/zulu8.46.0.225-ca-jdk8.0.252-linux_aarch32hf.tar.gz Packages lists - https://www.azul.com/downloads/zulu-community/?version=java-8-lts&architecture=arm-64-bit&package=jdk Im happy to take a shot at updating it sometime, though Ive gotten myself caught up in 4 separate mini projects right now... so when I free up from one of those, if youve not made any updates yourself, Ill take a shot at it and let you know! Thanks
  2. @balbes150Re: Beelink GT-King, unstable when copying files etc... (sorry it took a while to get back to you). This is off a fresh imaged disk for "Armbian_20.05.4_Arm-64_bionic_current_5.7.0-rc4_desktop_20200510" Printenv Help Commands Thanks for taking a look.
  3. The commands I gave above... I found hidden away on Azul's website..... https://docs.azul.com/zulu/zuludocs/ZuluUserGuide/PrepareZuluPlatform/AttachAPTRepositoryUbuntuOrDebianSys.htm for these 3 lines: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9 sudo apt-add-repository 'deb http://repos.azulsystems.com/ubuntu stable main' sudo apt-get update and https://docs.azul.com/zulu/zuludocs/ZuluReleaseNotes/Troubleshooting.htm for this line (Azul Repository Tips section): sudo apt-get install zulu-embedded-8 They've worked for me on every build/rebuild Ive done of my ARM systems (3 different systems and probably about 10 rebuilds over time). Though, I will say that with this build of Java, its best to add some XMM and XMS memory settings to the Openhab EXTRA_JAVA_OPTS within Openhab after its installed, as the Embedded version does seem to like keeping low memory utilization.... but that would be a case by case basis depending on the board its installed on. These settings are also very well discussed on the Openhab community forums.
  4. Just noticed this... Re Java, you need to use Azul Zulu Embedded v8 at the moment... OpenJDK and things like that are sluggish/slow Full details here https://community.openhab.org/t/version-2-openhab-openhabian-on-an-android-tv-box-running-armbian-setting-it-up/76367 Actual commands here: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9 sudo apt-add-repository 'deb http://repos.azulsystems.com/ubuntu stable main' sudo apt-get update sudo apt-get install zulu-embedded-8
  5. I downloaded the images from here https://yadi.sk/d/_rQgn_FosYuW0g and the uart boot I show up in my post, is a freshly imaged Armbian on a USB SSD, using the meson-g12b-gtking.dtb that came with the image. (I tried multiple versions of Armbian and for a test, later, I tried the corelec DTB to see if it may work, which it didnt even boot Armbian).
  6. Is anyone running a Beelink GT-King and does your box remain stable OR lock-up/freeze when transferring data to/from SD/USB? Mine freezes completely when I transfer data around. My full post on it is here My system is a version 2.2 board the SA9X model. I also see an "Internal error: Oops: 96000004 [#1] PREEMPT SMP" in the UART logs (See spoiler for full logs) If your system is running stable... be it any revision, please let me know.... and if there are any tweaks/changes anyone can suggest to try.....??? Many thanks
  7. @balbes150 Thanks for the reply. I appreciate that you dont have one of these with you to test/look at. Could I ask however.... would you think that this is an issue with the drivers within Ubuntu ... OR.... settings within the DTB file (frequencies/drivers used)? I have added the UART output of both Armbian's and Coreelec's DTB files, when booting Armbian with them... if there is anything you can see in those? (if you have the time to look) Armbian meson-g12b-gtking.dtb UART output https://pastebin.com/QmFt7WGC Perhaps this is the relevant bit?? (as my issue is to do with high disk activity) [ 6.647386] EXT4-fs (sda2): re-mounted. Opts: commit=600,errors=remount-ro [ 6.922303] Unable to handle kernel NULL pointer dereference at virtual address 00000000000000f5 [ 6.927276] Mem abort info: [ 6.929986] ESR = 0x96000004 [ 6.932759] EC = 0x25: DABT (current EL), IL = 32 bits [ 6.939615] SET = 0, FnV = 0 [ 6.946536] EA = 0, S1PTW = 0 [ 6.947931] Data abort info: [ 6.949280] ISV = 0, ISS = 0x00000004 [ 6.949282] CM = 0, WnR = 0 [ 6.949287] user pgtable: 4k pages, 48-bit VAs, pgdp=00000000a220c000 [ 6.956371] [00000000000000f5] pgd=0000000000000000 [ 6.966305] Internal error: Oops: 96000004 [#1] PREEMPT SMP Also, I assume I can connect a serial cable to the TX/RX of the device during boot, look at the output, to try find why a DTB file might not start booting? Im happy to research. learn and give this a go, if you think that may be a good direction to try..... If you have any thoughts or suggestions on this, please let me know?
  8. If its worth anything, this is my dmesg output, when I have booted with the Armbian GTKing DTB file and I am at the desktop/workspace screen (before it freezes)
  9. @balbes150(sorry to @ you and hope youre keeping well!!) I have a Beelink GT King, which its motherboard lists as being version 2.2-S922X-4G-64G/A It has a terrible stability problem using meson-g12b-gtking.dtb (I have tried the pro file as well as others in case, but it wont boot with those). The problem I am experiencing is that when any high level of file transfers occur, the system freezes. The mouse etc locks up, the time/clock freezes at the time of the system hanging and the system drops off the network (stops responding to ping). Ive tried multiple revisions of Ubuntu that can be currently downloaded on Yandex, and been through Bionic, bullseye etc... and through 5.3 up to 5.7. All suffer the same issue. The system will stay stable as long as you dont do very much, however, examples of things that have caused the system to freeze are: 1) sudo apt update 2) ddbr 3) coping the test.mp4 file on the desktop multiple times 4) trying to install to emmc (never been able to get through an install to emmc) 5) running multiple tasks at the same time. 7) Trying to copy a 1GB file 8) etc In short, the issue is repeatable via various methods. Ive tried SD cards, USB flash drives and USB SSD'd... all have the same issue. Because the system freezes/locks up, I cant give any diagnostics.... though it runs 100% fine in Coreelec and Android. The only working DTB file I can find is the one thats coming with Armbian at the minute, and older revisions seem to be the same file. (50,214 bytes size on disk). The only thing I experienced in the past that locked a system up like this was the WIFI being used.... but Im on Ethernet. It does seem to be some buffer issue or similar with the disk access. Any suggestions? (as I cant find anything in the forums and see no issues with the boot process) My dmesg output is in a post below (if it helps) Many thanks If I use that DTB file with Armbian, it actually looks like my system is trying to boot... it does actually go to a black screen, though there is no scrolling text, though going to a black screen is further than other incorrect DTB files get to). Not sure if that helps in any way.
  10. I cant specifically speak for the debian build as Im mostly familiar with the Ubuntu build..... So ill talk about that and you can figure if Debian is similar. UBUNTU UPDATES On the Ubuntu version, you can either go into the Armbian configuration utility and the System menu and Firmware option OR you can at a terminal use: sudo apt-get update sudo apt-get upgrade Perhaps even sudo apt-get dist-upgrade (never tried it, but this probably WILL remove some packages). This should obviously update all your software AND the upgrade will pull later revision kernels. What this means is you should be able to upgrade point revisions by updating the kernel etc, but not major revisions. So in effect you could upgrade Ubuntu 18.6 to 18.7 through minor updates BUT NOT 18.6 to 19.x The major revisions would be a re-install as far as I know. Additionally, I have seen something about the fact that a recent issue with kernel updates (so please check that). This post also roughly explains that the TV box version updates arent stored in the Armbian repository, so that complicates making a major revision update process possible... well.. at least, thats my interpretation of it. OTHER PROCESS TO COPY BACK OTHER FILES etc. Actually... its something Ive thought about testing some time, but Ive never gotten around to it. In theory, Im reasonably sure this is possible, but I cant say how involved the process is and of course, that may vary depending on your customization. If someone has any suggestions on doing this, point me in the direction of anything you know and Im happy to test and write a guide.
  11. Hi, not sure.... Ive just opened a fresh install of Armbian on a USB stick and the Extlinux.conf there shows the # in the place I originally indicated (copy/paste below) LABEL Armbian LINUX /zImage INITRD /uInitrd FDTDIR /dtb # FDT /dtb/meson-gxl-s905x-khadas-vim.dtb APPEND root=LABEL=ROOTFS rootflags=data=writeback rw console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 The # may get changed/removed if/when you install to EMMC/NAND as the Extlinux.conf file is used for booting from EMMC/NAND storage and not off a USB card/SD/TF card.... so that file is only used in that instance of booting from internal storage. The # is typically used to say "dont use this line in the code" ..... so its possible something has been changed on the boot process too. Its not something Ive seen yet, but ill take a look sometime.
  12. Noticed this post with the question above... emmc to SD.... I wrote instructions on doing this+videos showing how to do it. Thought you might find them helpful if you wanted to do this for backups etc. Making a Backup of your emmc via the GUI https://www.ondroid.net/armbian-os-backing-up-emmc-nand-via-gui/ - What you will need - All the commands/screens to perform this - Includes 1 x video showing the whole process Making a Backup of your emmc via Command line https://www.ondroid.net/armbian-os-backing-up-emmc-nand-via-cli/ - What you will need - All the commands/screens to perform this - Includes 1 x video showing the whole process Thanks erew
  13. @Janaboy My rough (dont quote me) understanding of this is that its a mix of your DTB (Device Tree Blob) file and also actual driver files, hence trying different DTB files, with different results. The DTB file is basically telling the system which drivers to load at startup. I believe the Beelink Mini MXIII box has an Aigale AW-CM273SM and Qualcomm Atheros QCA9377 for WiFi/Bluetooth.... And I have no idea if anyone has ever written a driver or if one of the DTB files activates the driver, though I can seem some references around the internet to people trying. So, if you can find a driver or if one exists, you can write your own DTB file, which might work OR obviously test other DTB files.... (this is why Im thinking to create a database so that we can find the best combinations for which DTB to use with which box). The other alternative is to use an external usb dongle. Im not 100% confident which one would or wouldnt work, but have seen the CSR bluetooth dongles referenced before in ubuntu/armbian forums.... and they are cheap as $2 kind of thing.... Maybe someone else on here has experience with them. (If I had one to hand Id give it a go for you, but sadly dont) Search google for csr bluetooth dongle if you want to try this route. Im not yet at a stage to start writing about loading other drivers/editing DTB files etc.... as Ive still got my own research/experiments to do on that.
  14. @Janaboy Thanks, and glad it helped!! Im working on a slightly updated guide... and potentially going to collate a list/database of DTB files/boxes and what works/doesnt work (HDMI, WiFi etc) so its a bit easier to figure which DTB file to use... So Ill post something on that in the future!
  15. @imikei Youve not mentioned which box you have.... However I think you may end up needing to reset it back to factory (if its not even booting to the internal Android OS anymore), so Booting Problems section of this post. Once thats done, if youre sure your using the correct DTB for your box, Id suggest trying an earlier build of Armbian or one with a different kernel version to see if that gets you working. Im guessing you mean username/password at the initial text screen where you log in as root and change the passwords etc.
  16. @baku1413 My suggestion is this.... If as you say, you can get it to boot from an SD card, load that up and get into Armbian, load a terminal window up and run lsblk -o NAME,FSTYPE,LABEL,SIZE,MOUNTPOINT From the section of my original post Backing up if you are using SD card/USB stick for booting/running Armbian OS in step 7 and "Reveal hidden content" .... there is an image that shows what you should be seeing for mmcblk0 and mmcblk1 and the (one being an internal and an external drive).... and the partitions under them e.g. mmcblk0p1 (drive 0 partition 1) mmcblk0p2 (drive 0 partition 2) mmcblk1p1 (drive 1 partition 1) mmcblk1p2 (drive 1 partition 2) The ones with ROOTFS and BOOT on them are your SD card.... Any others are either the Android OS or ROOT_EMMC and BOOT_EMMC (the copied/installed Armbian OS). So maybe from that, you can figure IF it can see multiple drives? If its already copied once because ROOT_EMMC and BOOT_EMMC exist? If it cant see anything other than your SD card etc. Its not really something I can diagnose for you as I dont exactly know the install routine inside out, but perhaps this might lead you in the direction to figure what is occurring.
  17. @anonymox Are you trying to run this from a USB stick??? You need to run it from an SD card I believe.... because a USB stick will be called /dev/sda1 and SD card will be /dev/mmcblk1 and I think the script only works with /dev/mmcblk0 and 1 (one being the SD and the other emmc/nand) Either way, from what the log says, it cant see the SD card or the emmc. (Also check you only perhaps have the 1 SD card plugged in and no other external media .. usb stick/hard drive etc).
  18. @baku1413 I know that some TV boxes just wont boot off the emmc.... you are better asking on the specific TV Box forum e.g. "Armbian for Amlogic S9xxx kernel 4.1x (>= ver 5.55)" etc... and see if anyone else has experience or knowledge of your specific box. Beyond that, I cannot think of any reason why the script that copies your SD card over to the emmc would wipe your SD card..... though that script tries to guess which is your SD card and which is your emmc memory before it starts to make its changes, deletes/creates partitions, copies files over etc. So perhaps the script is detecting your SD card/emmc memory incorrectly..... I really dont know. What you can do, is a least when you have re-created and booted from your SD card, is to open Gparted and see if you can find a drive that has BOOT_EMMC and ROOT_EMMC on your TV box, that has data on it.... that would at least suggest that the install script did copy over your files to emmc, which might mean your box is one of those that doesnt boot. Also, did you check out the section called "LOST.DIR, System Volume Information and Android folders cause problems booting off eMMC/NAND." to ensure that if you have a BOOT_EMMC partition, that it doesnt have those folders on it!!! As they can cause this problem of not booting from emmc as well.
  19. Manual process to setup the partition at the command line - Backing up if you are using emmc/NAND for booting/running Armbian OS THIS HAS BEEN INCORPORATED INTO THE SPOILER/Reveal Hidden Contents on the main document.
  20. Ive written/posted it..... so see if that works for you! You need the section "Backing up if you are using emmc/NAND for booting/running Armbian OS" Its easier than it looks, but I wanted to make it very clear for people to use, so hopefully it is. Thanks!
  21. Ive updated the guide I wrote to cover these additional topics: Example of setting up a system Example Setup on a MeCool M8S PRO w (Change your DTB file in uEnv.ini and extlinux.conf for other boxes). - Hardware you need - Software/Downloads Setting it up - Steps to image your SD Card/USB stick from a Windows PC - Installing onto the MeCool M8S PRO w (Or any other box assuming youve changed the DTB) Congratulations - If you reach here you will have a working Armbian server. Booting Problems and getting your system to boot Booting off SD/USB problems. uEnv.ini and extlinux.conf (Required for booting Armbian) - Editing the files and picking the right DTB. - What do these 2 files do and why cant I boot off emmc internal ram? - What should the files look like? Installing onto emmc/NAND - The internal hard drive of the TV box. LOST.DIR, System Volume Information and Android folders cause problems booting off eMMC/NAND. What to do if you brick your device. Ive done something and now my box wont boot/stuck on a splash screen/is a brick what do I do? - Getting the system recovered - notes - Doing the recovery Bootable Backups (can be used to migrate to another TV Box too) Backing up if you are using SD card/USB stick for booting/running Armbian OS - You will need the following to do this - How to get things setup and do it (create/restore your image) Backing up if you are using emmc/NAND for booting/running Armbian OS - You will need the following to do this - Option A and Option B - How can I tell Ive booted from my Backup SD card? - What have we actually just done? - What can I do with my imaged SD card?
  22. I am about to write an article on doing this. are you on eMMC/NAND or an SD Card? I will be writing some answers in here, over the next few hours
  23. Yes, sorry I dont know of any way to get it working on that box. Id like it working too. I tried all the different DTB files just over 1 year ago and none of them got the WiFi working. If you do find any solution (either an updated DTB file on the latest Armbian, or a manual driver install somehow) please let me know! Thanks!
  24. I think there are 2 versions/revisions of the Mecool M8S Pro w box from what I picked up elsewhere on the internet. Mine wont install to emmc (well it copies, but wont boot off it, no matter what I try). My experience with it, is in the above article. Which does cover recovery of them (if you ever need it).
  25. For anyone getting stuck with their box, Ive written a guide, that covers the following: Example of setting up a system Example Setup on a MeCool M8S PRO w (Change your DTB file in uEnv.ini and extlinux.conf for other boxes). - Hardware you need - Software/Downloads Setting it up - Steps to image your SD Card/USB stick from a Windows PC - Installing onto the MeCool M8S PRO w (Or any other box assuming youve changed the DTB) Congratulations - If you reach here you will have a working Armbian server. Booting Problems and getting your system to boot Booting off SD/USB problems. uEnv.ini and extlinux.conf (Required for booting Armbian) - Editing the files and picking the right DTB. - What do these 2 files do and why cant I boot off emmc internal ram? - What should the files look like? Installing onto emmc/NAND - The internal hard drive of the TV box. LOST.DIR, System Volume Information and Android folders cause problems booting off eMMC/NAND. What to do if you brick your device. Ive done something and now my box wont boot/stuck on a splash screen/is a brick what do I do? - Getting the system recovered - notes - Doing the recovery Bootable Backups (can be used to migrate to another TV Box too) Backing up if you are using SD card/USB stick for booting/running Armbian OS - You will need the following to do this - How to get things setup and do it (create/restore your image) Backing up if you are using emmc/NAND for booting/running Armbian OS - You will need the following to do this - Option A and Option B - How can I tell Ive booted from my Backup SD card? - What have we actually just done? - What can I do with my imaged SD card? I dont expect to answer every question/solve every problem, but it perhaps centralizes a lot of questions/answers people seem to keep asking on the forum.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines