Jump to content

Installation Guide and your questions answered for TV Boxes


Recommended Posts

Posted

Since I originally wrote this post Ive re-written bits and included quick videos to guide you through the steps (My original post is still below).

 

As Im writing other posts on other topics related to Armbian, but not relevant to install/setup, Im keeping them all on my new site, so all my updates will be on there. Id welcome any feedback (drop me a comment on here or on https://www.OnDROID.net). Also, if anyone has any specific topics they want me to take a look at, let me know. 

 

As always, thanks to balbes150 for his work getting Armbian on ARM boxes.

 

 

Ive not yet written anything on fully troubleshooting a linux/armbian system that was working but now fails to boot (TS card damaged/power cut or something like that happened), though these things do happen from time to time. If you are performing a lot of configuration, it took you a long time to setup your system or you want to make a major change to your system, I highly recommend taking a look at the backup videos/instructions Ive done. 

 

OnDROID is a new thing for me... and Armbian OS install is my first topic/guide on there, so if anyone wants to give me feedback or support you're welcome to drop me a message on here or OnDROID. 

 

Thanks

 

erew

https://www.ondroid.net

________________________________________________________________________________________________________________________________________________________________________________

 

 

Its based on setting up the Armbian that balbes150 created (Thanks @balbes150) and all the things I picked up/learned along the way/had to hunt around the forums to try understand. 

 

I use Amlogic based systems (905, 912 etc etc).... I assume things are pretty similar for Rockchip etc, but if anyone wants to post other useful information in this post!

 

Contents of this post:

 

  • Contents of this post
  • Intro

    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
     

Intro

I had written a previous article just over 1 year ago and things have moved on and its now far simpler/more efficient to do this… between 20 to 40 minutes depending on your speed. To get a basic working Armbian server, you only need to follow this guide. The example setup is for a MeCool M8S PRO w (4x cores, 2GB ram), though the procedure and information in here is relevant for all TV boxes.

 

To be clear, on the MeCool M8S PRO w, you have to plug it in via a network cable and run the OS off an SD card or USB stick. The Bluetooth and WiFi dont (at this moment) work. So, if that is a limitation for you, either keep an eye on the Armbian forum looking for later OS builds that may work, or on there you can also find other Android TV boxes that will work. (side note, I think there are 2 revisions of the MeCool M8S Pro w.. one you can install to emmc/NAND and one you cant).

 

Example Setup on a MeCool M8S PRO w


Hardware you will need:
 

  • MeCool M8S Pro W (or box of your choice…after researching which ones work).
  • A Windows PC/Laptop.
  • A micro SD card OR USB memory sick (16GB or larger recommended) 
  • A way to plug that SD card into your Windows computer to image the Armbian OS onto it.
  • A Cat 5 LAN cable to plug it into your Router/Switch/Network port.

 

NOTE - It looks like you will only see the option to install Armbian to eMMc memory, within Armbian Config, if you are running from an SD Card, NOT a USB stick. (As mentioned, you cannot do this with this MeCool M8S PRO w anyway, but you can with other boxes like the Beelink GT1 Mini).

 

As an additional note, if you want to UPS protect your device from power outages etc, most (Im not claiming all) of these Android TV boxes (and I assume maybe Pi’s but Ive never tested so research that before you try it) support being powered from the USB ports (and the main power socket simultaneously too if you like). The RAVPOWER RP-PB078 is a battery pack for charging USB devices like phones etc. Its special trick, is that it is like an online UPS style device, meaning it can be both charging and powering your device at the same time. So, if the power cuts out, it will keep powering your device through the USB port (or you can buy a USB to 5v adapter cable if you like and use the main power port). I dont know how long for sure, but my rough estimation is this will give you about 5 to 9 hours run-time on the battery pack without any problems, plenty for small power outages.

 

Software/Downloads:

 

  • Armbain from here
    https://yadi.sk/d/pHxaRAs-tZiei
    (Armbian_5.88_Aml-s905_Ubuntu_bionic_default_5.1.0_desktop_20190611) (Later builds should work fine!!)
     
  • Win32DiskImager from here 
    https://sourceforge.net/projects/win32diskimager/

     

Setting it up

 

Steps to image your SD Card/USB stick from a Windows PC:

 

  1. Download the above files.
  2. Unzip/Extract with Armbain image file (Use WinRAR or 7Zip).
  3. Install Win32DiskImager .
  4. Insert your micro SD card or USB Stick into your PC.
  5. Run Win32DiskImager as an Administrator.
  6. In Win32DiskImager , click the folder Icon and select your Armbian Image file.
  7. Check the Device field is pointing at your SD card/USB stick you just inserted and click the Write button.
  8. Wait about 5 minutes while the SD card/USB is imaged. (takes about 2 minutes at USB3 speed)

 

       1.jpg

 

 

The MeCool M8S PRO w and other Amlogic boards are often set to boot from external media first, however there is a simple process I will add at the bottom of this document to show you how to change the boot order if needed. The fix (as far as I know) only works on Amlogic based chipsets 905, 912, 922 etc. If you use a system based on Rockchip or something else, you will need to research the Armbian forums, which I would do ahead of time anyway if you decide to use an alternate TV Box.

 

For different Android TV boxes (other than the MeCool M8S PRO w), you may need to edit the uEnv.ini and extlinux.conf file on the SD card/USB stick, to choose a different DTB file. The DTB files are effectively for choosing what hardware drivers are needed when loading the OS and different Android TV boxes will have different chipsets e.g 905, 905X2, 912, RK3399 etc. I would suggest using Notepad++ for editing this file on a Windows computer, as the file is in UNIX file format, so much easier to read with Notepad++. I will add a short explanation of uEnv.ini and extlinux.conf at the bottom of this document (though they dont need changing with the above Armbian image, when used on the MeCool M8S PRO w.

 

Installing onto the MeCool M8S PRO w (Or any other box assuming youve changed the DTB)

 

  1. Place the SD card or into your MeCool box’s SD card slot, plug in a monitor, network cable to your switch/router, keyboard and mouse and then the power.
  2. Your Armbian box should now boot and will prompt you at a text command prompt to type in the Username and Password (default are root and 1234) . After this is done, it will ask you once again to type in the root password 1234 and change the root password to something else more secure.
  3. You will now be asked to create a user account, other than the root account. I created a user called openhab with a password. For the “Name” I called it openhab , ignore the other questions, leaving them blank and when asked if this is correct, say Y and press enter. (You will see references in here a user openhab, this is just the account I created. You can use any name you like)

    2.jpg           NOTE - if it doesnt boot to Armbian and you have the box I suggest, or an Amlogic based chipset, read the note at the bottom of this document.
     
  4. The box will now load the GUI, asking you for the password of the user account you created . Log in and you will now be at the Armbian desktop.

    3.jpg
     
  5. From here, we want to open the Application menu at the top left > Settings > Armbian Config. Type in your password when prompted.

    4.jpg
     
  6. In the config system that opens up, we are going to perform a few tasks pretty quickly. Setup our system keyboard locale, change the name of this computer on the network, setup SAMBA file sharing, setup Microsoft RDP for remote control access to the system.

    NOTE - On this build of Armbian with this MeCool box, Ive had a situation where it sometimes doesnt like detecting my monitor correctly when it boots, at the point it switches from the text boot to the GUI interface, meaning, you can get a black screen. So ensure RDP is enabled on your 1st boot, then you can always RDP from a windows machine to get to the GUI desktop OR, boot it with no monitor attached and after about 5 minutes, you can plug the monitor in and it usually works… As I say, only on THIS build of Armbian and THIS MeCool box, hence setting up RDP.

    You can use the keyboard cursor keys, TAB key to move around each screen and Escape will move you back a screen.

    5.jpg
     
  7. With your cursor keys, go down to the Personal menu, select Timezone and choose your region. then back and select Keyboard and select your correct keyboard layout.

    6.jpg
     
  8. Still on the Personal menu select Hostname. This allows you to change the name of the computer to whatever you want to call it on your network (Default is aml). After this, go back to the main Armbian Config main menu.
  9. Back at the main menu, select Software and scroll down to RDP - Enable remote desktop from windows and select it. (THIS IS OPTIONAL) This will allow you to use Remote Desktop (mstsc) to this computer ON your LOCAL network from a Windows computer by connecting to the server’s network name or local network IP address. It will not be internet accessible via RDP unless you create a rule in your router/firewall for port 3389 to point to your server, which, please research security concerns if you want to go down the route of allowing the internet to RDP your server.
  10. Exit back out of Armbian config and............
     

          7.jpg

        (Yes, I know my screen grab says disable, I had already installed RDP)

 

CONGRATULATIONS - You now have a working Armbian Server.

 

BOOTING OFF SD/USB PROBLEMS - (ALL the Below sections all cover boot problems)

If you cant boot an Amlogic based system off external media

 

  1. Once you have completed steps 1 through to 8, of the Installing onto the MeCool M8S PRO w at the top of this guide. Boot your Amlogic based system into the Android OS that is installed on the box.
  2. When you are booted in to Android, plug in your newly created Armbian SD card or USB stick to the system.
  3. Somewhere in the Android interface, perhaps the applications folder, you will find a program called Update OR Update&Backup (you can also hunt the Settings menu and find an update in there). Open this application.

    8.jpg
     
  4. It should give you the choice to update OTA (Over the Air) or from a Local File. Select Local and browse to your SD card/USB stick.
  5. You will find a file called aml_autoscript.zip select that and confirm the upgrade.
  6. The system should reboot, most likely twice. After which it may either boot into your Android OS or it may start booting into Armbian. Its also possible it may just do the reboots and then sit at a splash screen for a while. In short, if its not booting an OS within 3 minutes, give it 2 more minutes, then pull the power and try rebooting (with your SD card/USB stick in).
  7. If it doesnt work (meaning it doesnt boot Armbian off your SD card/USB stick), try again with this process and also check you are using the right DTB files in uEnv.ini (as below) as they can cause a system to hang at a splash screen.

 

To explain what aml_autoscript.zip is doing..... The file is from here:

 

https://github.com/150balbes/Amlogic_s905/wiki/s905_multi_boot

 

What it does, is tell the boot partition of the Android TV box, that it has multi-boot (can boot from any device, internal/external) and sets external devices as being the 1st thing to try booting off.

 

If youve copied your Armbian OS to the emmc/NAND chip and it wont boot off the internal memory, read up below on uEnv.ini and extlinux.conf as that may be the problem… though some boxes just cant/wont boot off emmc/NAND

 

uEnv.ini and extlinux.conf 

 

When you set up Armbian on a Android TV box, you need to tell Armbian what drivers/setup to use for the chipset in your box. This is done through matching the best DTB file to your TV Box’s hardware. To do this, there are 2 files on the SD card or USB stick you create.

 

In the root of the BOOT partition, you will find uEnv.ini and in /extlinux directory, you will find extlinux.conf.

 

Editing the files and picking the right DTB
These files are best edited in Notepad++ on Windows, or some program that happily edits Unix format text files.

 

If you just use Windows Notepad, they wont look correct when edited (as shown below) and you can screw the formatting up, resulting in your system NOT booting. Use Notepad++ or a Unix text file editor!!

 

 

Within these files you will specify a DTB file, from the dtb folder on the BOOT partition.. Your TV Box might be a 905x2 chipset, or an 912 etc, so you need to find the DTB that works for your chipset. Lets say you have an S912 based system, you can look in the DTB folder and you will see various DTB files with 912 in their name, you can try each one of those, one at a time and see which one works, though not all DTB files are labeled as clearly as this. As an example, I have a Beelink GT1 Mini which is based on the 905x2 chipset, and for that unit, the X96 DTB file is recommended, though I only found that out through hunting the forums/finding out what other people had used.

 

In short, look at the Armbian forums to find the best one, or just pick one that you think, list it in the uEnv.ini and extlinux.conf, see if the box will boot (try a different DTB file if not) and see if all the hardware works (Try a different DTB file if not, or some boxes its possible to find there is no bluetooth driver or something. Best to research the Armbian forums first to see what boxes people have success with. 

 

There is no harm in just trying different DTB files, one at a time. Your box will either boot or not boot and either some or all of the features of your box will work.

 

If you are just at a stage of testing your booting process from an SD card or USB stick, you only need to edit the uEnv.ini file for now, as your system will boot from that, however, when you find the DTB you want to use, update the extlinux.conf file too, so you can install to emmc/NAND.

 

What do these 2 files do and why cant I boot off emmc internal ram?
My understanding is that uEnv.ini takes care of the boot information when you are booting off SD card or USB Stick and the extlinux.conf takes care of the boot sequence if you load the OS onto the internal eMMC memory (the internal hard drive ram chip thing).

 

So long and short… if you boot off external media, transfer the OS to the internal eMMC and you HAVNT updated the extlinux.conf, dont expect it to boot off the internal eMMC, it will just sit at the box’s spashscreen. (though you can boot off an external SD/USB and edit those files).


In short… just update BOTH files to ensure you can boot off external SD card/USB stick and internal emmc (if you copy the OS over).

 

What should the files look like?

NOTE - If they dont look/arent formatted like this when you open them, you arent using a Unix file editor like Notepad++

 

uEnv.ini

 

dtb_name=/dtb/meson-gxl-s905x-khadas-vim.dtb
bootargs=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

 

extlinux.conf

 

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 

 

You would be replacing meson-gxl-s905x-khadas-vim.dtb with the DTB file that matches your box, in BOTH these files.

 

Also, DONT delete the # out of the extlinux.conf file, its meant to be there!

 

Installing onto emmc/NAND - The internal hard drive of the TV box.

 

This is pretty simple to do, though its worth re-mentioning not every box will support this, for one reason or another. If you want to try however:

 

  1. Boot your system from your Armbian OS SD Card (I think it HAS to be an SD card, or at least the menu option wont show up in my tests using a USB stick, only on SD card).
  2. Make sure you have edited BOTH your uEnv.ini AND extlinux.conf files as above.
  3. In the OS, go to Armbian config (Step 5 onwards from Installing onto the MeCool M8S PRO w above).
  4. Go into the system option.
  5. In there, the first option should be Install to SATA, emmc, NAND or USB and select that.
  6. It will now copy over your files (wiping your Android OS off your box). This takes 3 to 8 minutes approximately.
  7. While this is copying, read the section below LOST.DIR, System Volume Information and Android and follow that process if needed.
  8. Assuming you configured your extlinux.conf file with the correct DTB, you can shut your system down, take out your SD card, switch it back on, and it should boot.

 

You can always boot off your SD card again, to edit the BOOT_NAND (on the desktop.. I think its called that) which is the copied over boot volume, where you can find the extlinux.conf file, to update the DTB file it uses.

 

Worst case, check through the bits in this document and the forums. I dont know much about Rockchip based systems and how they differ (most of what Ive put in here was based on my Amlogic chipset TV boxes), Id assume its pretty similar.

 

LOST.DIR, System Volume Information and Android folders cause problems booting off eMMC/NAND.

If your SD card or USB stick had been in an Android or Windows box BEFORE you copied your OS over to eMMC/NAND, you may find out that your system WONT boot off the eMMC/NAND memory, but will still boot off your external card. These folders, as far as I can tell ONLY interfere with booting from the internal emmc/NAND and seem to cause no problem when booting from an SD card/USB stick.... but of course, if you copy Armbian to emmc/NAND, they seem to then cause a problem booting from emmc/NAND.

 

I dont know why these folders seem to create an issue, but in my tests, deleting them before you copy over to your eMMC/NAND, OR after you have copied the OS over to eMMC/NAND, boot the system off your original SD Card/USB stick and on the Desktop of your system, go to the BOOT_EMMC drive, delete the folders LOST.DIR, System Volume Information and Android (or whichever combination of those 3 exist), shutdown the system and try booting again from eMMC.

I tested multiple times on a system and after I had deleted those folders.... my system suddenly started booting correctly (with the occasional corruption occurring and having to re-copy the OS to eMMC/NAND again,  but if you do this, you can delete the folders before attempting to boot next time).

 

To be clear, at time of writing this document, on your boot volume, there should be maybe 20 files in the root of the boot partition and only 3 folders ("dtb," "dtb-XXX-aml-XXX "and "extlinux"). (the XXX's will be some number)

 

Ive done something and now my box wont boot/stuck on a splash screen/is a brick what do I do?

 

If this happens, it usually means your onboard emmc/NAND storage area has become trashed somehow OR if you have your SD Card/USB stick, thats trashed somehow. To figure which, take your SD card/USB stick out and see if it boots look at these 2 options:

 

OPTION A - if it boots without the SD Card/USB stick in, then its your SD Card/USB stick. Quick fix is to check you are using the correct DTB and edited uEnv.ini and extlinix.conf correctly (maybe try a different DTB if its never booted).  If it was booting off the SD card/USB stick, then re-image the SD card/USB stick with Armbian and make sure you have the right DTB and all should be good again.

 

OPTION B - It wont boot without the  SD Card/USB stick in then the emmc/NAND area on your tv box is trashed in some way and its therefore not multibooting. So you need to re-flash the internal memory with the correct ROM/image for your box.

 

Getting a system recovered - notes

So for example, with an Amlogic based box, lets say the MeCool M8S Pro w box (Amlogic based box) you would find an original ROM for that system via a google hunt and download it (expect about a 1GB to 2GB download). You would also need the Amlogic USB Burning tool. Id recommend version 2.1.6.8 or later as it starts up in English (though you can find a language menu and select English on older versions).  Install this on a Windows based computer.

 

You will will need a USB cable that will plug into both the USB port of your computer AND the USB port of your Amlogic based TV Box. This is how it will communicate to re-image the emmc/NAND.

 

On the TV boxes, there is usually a reset button. but this could be:

 

  1. a tiny hole in which you need to stick a paperclip or something to press the reset button.
  2. you might need to open the box and connect 2 jumpers or short out 2 points on the board (on the MeCool M8S Pro w, its like this)
  3. Some systems, you can power on and hold down/press a button on the supplied remote AS you are powering on the box. 

 

Doing the recovery

Lets pretend you have method 1 from above, the paperclip version.

 

For an Amlogic based system (Other makes will have their own software, but it will be a variation on doing this).

 

  1. Install the USB Burning tool to your Windows machine.
  2. Open the USB Burning tool and go to File > Import Image, then select the image file you have downloaded (Unzip or Unrar the file if its compressed).
  3.  DONT power your TV box from the supplied mains adapter!! (The Amlogic boards arent expecting that it appears, so dont go into recovery mode on mains power. It wont hurt your box, it just wont go into recovery).
  4. - Plug one end of your USB cable into your Windows PC.
  5. - Push down the reset button (or whichever method you need to use) with the paperclip on the TV Box and at THAT point, plug in the USB cable. This should now power on the box, but it may display a blank screen.

              On some TV boxes, it appears ONLY 1 of the multiple USB ports they have will be usable/activate for the flashing process. As such, try your other ports if it doesnt appear in your flashing software. 
     
  6. - You should hear a ding/chime or something from your Windows PC and the Amlogic USB Burning tool should now say something like HUB Connected.
  7. - In the USB Burning tool you should have it set at "Normal Erase" but Ive also done "Full Erase" before.... I dont quite know the difference... but Normal Erase seems to be fine, try Full if if doesnt work on Normal.
  8. - Press the start button and wait about 5 minutes until the USB Burning tool says 100% success. Wait about another 20 seconds. Press Stop and unplug your TV Box.
  9. Next time you power on the box, it should start booting into Android. 

 

Now you are back at a working box and can start your install procedure as per this guide... so setup multiboot with aml_autoscript.zip etc....

 

Hopefully all this helps someone figure things out.... if you cant find the answer here.... Im sure someone in the forums will give an answer!

 

Thanks!

 

erew (the OP for this topic)

Posted

Please note, I am no expert. The above is just a dump of my gained knowledge, trials/failures and successes.

 

I cant tell you which exact DTB file to use with which box, what some unix error message means etc. 

 

So I wont be able to answer those kinds of questions, please ask them on the correct forum topic area.

 

I am happy though to add clear instructions/amendments into my above post, that are in a similar format to what I have written, if anyone wants me to add/amend anything.

Finally, the above post is just over 6,000 words long, took me 24+ man hours to write/test and put together... Ive done my best to avoid spelling mistakes and keep the language clear to understand... so please excuse any spelling mistakes, though I have tested each procedure on here multiple times with 2 different TV boxes to ensure they work smoothly.

Thanks

 

erew

Posted

What about if we got headless server (gparted, geany steps) ?

 

I know for geany we can use nano easily but for gparted except if i do it on a linux computer aside i'm not able to use command lines.. :p

Posted
22 hours ago, Peyton said:

What about if we got headless server (gparted, geany steps) ?

 

I know for geany we can use nano easily but for gparted except if i do it on a linux computer aside i'm not able to use command lines.. :p

 

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.

Posted

Thank you very much for this great tutorial. I have still problems with copying SD to eMMC. I run the install to eMMC script. After it is completed I restart the box, and it just stays on splash screen. When i plugged in SD it also didin't booted. I've inserted card to PC and it was empty. I burned linux ISO to SD again and it's starts again from SD. How to force it to boot from eMMC after installation? (I didn't had any android/windows related files/folders on SD when installing to eMMC and also edited both files with good .dtb file).

Posted

@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.

Posted

maybe script is thinking that SD is internal eMMC. And that is likely possible because every file copied console says "file changed as we read it"

Posted

@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.

 

Posted

Great guide! Done everything as it says, got to the point where I input my username and password, the box rebooted, the scripts started to run, but then everything stopped, got the black screen and cant do a thing. Any advice?

Posted

@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.

Posted
On 6/18/2019 at 3:42 AM, erew said:

extlinux.conf

 

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

 

When i open my file, it's presented like that :

 

#  FDTDIR /dtb
  FDT /dtb/meson-gxl-s905x-p212.dtb

 

Maybe a little mystake from your copy/paste ? Or a problem from my original file?

 

I'm trying to follow your good tutorial to flash my A95X F3 ( with S905x3 ), and i hope i will success to install armbian on it thanks to you :p

I just need to find the correct dtb ^^

Posted

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.

Posted

Very nice guide, thanks for this! What I'm missing is an upgrade part. How does one upgrade to a newer release without losing data? I remember a while back we could download separate deb files for the new release and install those one by one. But I don't see those anymore, just an image now. Is the best way to upgrade to do a clean install and then copy back the old files and stuff? Almost seems more feasible to build your own from source so you end up with the deb packages to upgrade an existing system. But Maybe I'm missing something.

Posted
On 1/25/2020 at 6:46 PM, stut said:

Very nice guide, thanks for this! What I'm missing is an upgrade part. How does one upgrade to a newer release without losing data? I remember a while back we could download separate deb files for the new release and install those one by one. But I don't see those anymore, just an image now. Is the best way to upgrade to do a clean install and then copy back the old files and stuff? Almost seems more feasible to build your own from source so you end up with the deb packages to upgrade an existing system. But Maybe I'm missing something.

 

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.

 

Posted

I’ve never gotten a kernel update on tv box builds. I don’t think balbes150 pushes new tv box kernels to the Arminian repo and also doesn’t run a repo himself. Userland packages were always upgradable. 

Posted
On 2/8/2020 at 1:10 PM, stut said:

I’ve never gotten a kernel update on tv box builds. I don’t think balbes150 pushes new tv box kernels to the Arminian repo and also doesn’t run a repo himself. Userland packages were always upgradable. 

Wrong, repo has arm-64 kernels, but update process slower than uploading img to cloud:

https://apt.armbian.com/pool/main/l/linux-5.7.0-rc1-arm-64/

https://apt.armbian.com/pool/main/l/linux-5.7.0-rc3-arm-64/

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines