Posts by camso


    Incorrect device tree? No driver for internal memory variant? Hard to guess, so far there has not been a report of not working internal storage.


    That's what aml_autoscript does when you press recovery button: it executes commands to replace boot command. You can execute the part that you need manually over console: LibreELEC.tv/aml_autoscript.src at libreelec-7.0 · kszaq/LibreELEC.tv · GitHub

    The M96X doesn't have a recovery button, that's why I had to use the rs232 interface to boot in the first place... Installing to nand would probably be simplest if I can get /dev/system to show up. I'll try a different device tree file and see what happens.

    Thanks


    Edit: After trying a few dtb images, and still not seeing any /dev/system (or /dev/boot, etc) I'm starting to wonder if the internal flash is formatted properly and if the partitions are where they should be. Is there any way to reformat the internal flash properly from u-boot?

    Hi, thank you all for the great work of porting to these cheap devices.

    I have a M96X box (S905x 2g/8g) and I haven't found how to boot directly from usb. I connected to the rs232 header and used the u-boot console to boot libreelec.

    Here are the commands I use:

    # usb reset
    # fatload usb 0:1 0x1000000 dtb.img
    # fatload usb 0:1 0x1080000 kernel.img
    # setenv bootargs ${bootargs} bootfromusb
    # bootm

    Everything boots and functions fine, but I cannot install to internal storage because /dev/system doesn't exist. What am I doing wrong?

    Alternatively, is there a way to force the cpu to execute these commands on startup automatically so that it always boots from the usb drive?

    Thanks


    EDIT: for anyone wondering, if you want the box to always boot from usb, you can set the u-boot bootcmd envvar to boot from usb automatically without the need for recovery:

    # setenv bootcmd "usb reset;fatload usb 0:1 0x1000000 dtb.img;fatload usb 0:1 0x1080000 kernel.img;setenv bootargs rootfstype=ramfs init=/init console=ttyS0,115200 no_console_suspend earlyprintk=aml-uart,0xc81004c0 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 androidboot.selinux=enforcing logo=osd1,loaded,0x3d800000,1080p60hz maxcpus=4 vout=1080p60hz,enable hdmimode=1080p60hz cvbsmode=576cvbs hdmitx= cvbsdrv=0 bootfromusb;bootm"
    # saveenv

    just make sure the dtb and kernel address are ok and edit the bootargs to your liking and the box will always boot from usb 0:1