eMMC flashing an ubuntu image?

Been browsing the forums looking for information for my shiny new Le Potato.
I believe this is the one that includes the mali GPU binaries so that I'll be able to use hardware acceleration. I'm not certain tho, haven't been able to put it all together.

When I go to load the image with the USB_Burning_Tool, it complains that Parse burning image fail, and doesn't work. I assume then that the ubuntu image I downloaded cannot be flashed to the eMMC directly?

If my assumption is correct, how do I flash the image onto the eMMC card?

Comments

  • Why this isn't included in the README.php file within the image directory, I do not know.
    But here is a how to: Link
  • Cornelius said:
    Why this isn't included in the README.php file within the image directory, I do not know.
    But here is a how to: Link
    Ah, I must've missed this, thanks! That was a bit awkward, but not impossible. I wish they had a git repo I could PR into, I'd happily update some of their documentation as I go along.
  • Welp, things don't seem to be working very well. The EMMC flash always fails after the partition table. I've even tried zeroing out the device first.

    libre@libre-computer:~$ sudo lc_redetect_emmc
    [sudo] password for libre:
    mmcblk1        29G
    mmcblk0      29.1G
    mmcblk0boot0    8M
    mmcblk0boot1    8M
    libre@libre-computer:~$ lsblk
    NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
    mmcblk1      179:0    0   29G  0 disk
    ├─mmcblk1p1  179:1    0  255M  0 part /boot/efi
    ├─mmcblk1p2  179:2    0 27.8G  0 part /
    └─mmcblk1p3  179:3    0  992M  0 part [SWAP]
    mmcblk0      179:32   0 29.1G  0 disk
    mmcblk0boot0 179:64   0    8M  1 disk
    mmcblk0boot1 179:96   0    8M  1 disk
    libre@libre-computer:~$ sudo lc_distro_transfer libre-computer/aml-s905x-cc /dev/mmcblk0
    Transferable Distro List:
    lc-ubuntu-18.04-headless
    libre@libre-computer:~$ sudo lc_distro_transfer libre-computer/aml-s905x-cc /dev/mmcblk0 lc-ubuntu-18.04-headless
    1+0 records in
    1+0 records out
    512 bytes copied, 6.23309 s, 0.1 kB/s
    2016+0 records in
    2016+0 records out
    1032192 bytes (1.0 MB, 1008 KiB) copied, 30.7603 s, 33.6 kB/s

    Welcome to fdisk (util-linux 2.31.1).
    Changes will remain in memory only, until you decide to write them.
    Be careful before using the write command.

    Device does not contain a recognized partition table.
    Created a new DOS disklabel with disk identifier 0x8ef5544f.

    Command (m for help): Created a new DOS disklabel with disk identifier 0x19407fff.

    Command (m for help): Partition type
       p   primary (0 primary, 0 extended, 4 free)
       e   extended (container for logical partitions)
    Select (default p): Partition number (1-4, default 1): First sector (2048-61079551, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-61079551, default 61079551):
    Created a new partition 1 of type 'Linux' and of size 255 MiB.

    Command (m for help): Selected partition 1
    The bootable flag on partition 1 is enabled now.

    Command (m for help): Selected partition 1
    Hex code (type L to list all codes): Changed type of partition 'Linux' to 'EFI (FAT-12/16/32)'.

    Command (m for help): Partition type
       p   primary (1 primary, 0 extended, 3 free)
       e   extended (container for logical partitions)
    Select (default p): Partition number (2-4, default 2): First sector (524288-61079551, default 524288): Last sector, +sectors or +size{K,M,G,T,P} (524288-61079551, default 61079551):
    Created a new partition 2 of type 'Linux' and of size 28.9 GiB.

    Command (m for help): Disk /dev/mmcblk0: 29.1 GiB, 31272730624 bytes, 61079552 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x19407fff

    Device         Boot  Start      End  Sectors  Size Id Type
    /dev/mmcblk0p1 *      2048   524287   522240  255M ef EFI (FAT-12/16/32)
    /dev/mmcblk0p2      524288 61079551 60555264 28.9G 83 Linux

    Command (m for help): The partition table has been altered.
    Calling ioctl() to re-read partition table.
    /dev/mmcblk0: close device failed: Input/output error




  • I guess this means my MMC card is bad? and I should return it?

    from dmesg:
    [  130.549472] print_req_error: I/O error, dev mmcblk0, sector 0
    [  130.549708] Buffer I/O error on dev mmcblk0, logical block 0, lost async page write
    [  157.228496] print_req_error: I/O error, dev mmcblk0, sector 0
    [  157.228731] Buffer I/O error on dev mmcblk0, logical block 0, lost async page write
    [  157.236422] Buffer I/O error on dev mmcblk0, logical block 1, lost async page write
    [  157.244004] Buffer I/O error on dev mmcblk0, logical block 2, lost async page write
    [  157.251556] Buffer I/O error on dev mmcblk0, logical block 3, lost async page write
    [  157.259171] Buffer I/O error on dev mmcblk0, logical block 4, lost async page write
    [  157.266730] Buffer I/O error on dev mmcblk0, logical block 5, lost async page write
    [  157.274357] Buffer I/O error on dev mmcblk0, logical block 6, lost async page write
    [  157.281915] Buffer I/O error on dev mmcblk0, logical block 7, lost async page write
    [  157.289533] Buffer I/O error on dev mmcblk0, logical block 8, lost async page write
    [  157.297094] Buffer I/O error on dev mmcblk0, logical block 9, lost async page write
    [  158.251519] print_req_error: I/O error, dev mmcblk0, sector 504
    [  159.274519] print_req_error: I/O error, dev mmcblk0, sector 1008
    [  160.297529] print_req_error: I/O error, dev mmcblk0, sector 1512
    [  161.320490] print_req_error: I/O error, dev mmcblk0, sector 2016
    [  167.522482] print_req_error: I/O error, dev mmcblk0, sector 0
    [  167.522712] buffer_io_error: 243 callbacks suppressed
    [  167.522717] Buffer I/O error on dev mmcblk0, logical block 0, lost async page write



  • There's a bug with the eMMC driver that was recently fixed. We haven't pushed the code yet.
  • loverpi said:
    There's a bug with the eMMC driver that was recently fixed. We haven't pushed the code yet.
    Ah, good to know, I can cancel my return then and hang on to the emmc card.
Sign In or Register to comment.