Oh no.... mmc get partition error!

hello Community , iam new here.
I have done a own Scriptmistake with dd :frowning:
The Result is …mmc get partition error!

my test was to copy the armbian (Balbes150) after setting via SDcard direktly in the emmc.
while i haved no success to bring the Armbianserverimage to the emmc…

kvim#mmc rescan
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
[mmc_startup] mmc refix success
[mmc_init] mmc init success
mmc read lba=0x14000, blocks=0x400
start dts,buffer=0000000073ee9190,dt_addr=0000000073ee9190
get_partition_from_dts: FDT_ERR_BADMAGIC
!!!get dts FAILED
mmc get partition error!
kvim#

Is there any solution to write the Partitions of the Device back? or is it bricked now?
I hope i will found the Hint here …
Thank u for Info…
Greets …

i have found the solution that works for me …

i have Inserted a SD card with Armbian (rootfs & Boot) and a uboot.bin (in / of SD card) and type the following via the UART Konsole …

mmcinfo

fatload mmc 0 ${loadaddr} u-boot.bin

store rom_write ${loadaddr} 0 120000

fatload mmc 0 ${loadaddr} dtb.img

store dtb write ${loadaddr}

reset

now all in working condition…

Details found on: https://github.com/botfap/A95X-Linux-BuildEnv (Section: Install to eMMC - Generic dev s905x)

4 Likes

Write details what steps you did in Armbian, the result of which was a broken system start-up.

I have no success to boot the Armbian from emmc :frowning:
following Steps i have made :

  1. Clone the Armbian_5.37_S9xxx_Ubuntu_xenial_3.14.29_server_20171226.img via dd to SDcard (sudo dd if=Armbian_5.37_S9xxx_Ubuntu_xenial_3.14.29_server_20171226.img of=/dev/sdb bs=4M && sync)

  2. on SD Card i copied & renamed the /BOOT/dtb-3.14.29/kvim.dtb to /BOOT/dtb.img

  3. placed u-boot.bin (from Vim_Uboot_170121) via dd to sdcard
    (sudo dd if=u-boot.bin.sd.bin of=/dev/sdb bs=1 count=444 && sync)

  4. and
    (sudo dd if=u-boot.bin.sd.bin of=/dev/sdb bs=512 skip=1 seek=1 && sync)

  5. insert SD to KhadasVim and boot … all works Bootprompt Login (on UART)
    ive loggt in and change pw & set new user… and reboot (with inserted SD Card)

  6. reloggin and start ./install.sh

root@amlogic:~# ./install.sh

Start copy system for DATA partition.
Formatting DATA partition…
umount: /dev/data: mountpoint not found
The file /dev/data does not exist and no size was specified.
e2fsck 1.42.13 (17-May-2015)
e2fsck: No such file or directory while trying to open /dev/data
Possibly non-existent device?
done.
Copying ROOTFS.
mount: special device /dev/data does not exist
Copy BIN
Copy BOOT
tar: boot/s905_autoscript.cmd: time stamp 2017-12-26 10:13:34 is 50.020295683 s in the future
tar: boot/aml_autoscript: time stamp 2017-12-26 10:13:34 is 49.602797307 s in the future
tar: boot/aml_autoscript.zip: time stamp 2017-12-26 10:13:34 is 49.600625932 s in the future


…(Cutted out)

Create SYS
Create TMP
Copy USR
Copy VAR
Copy fstab
umount: /ddbr/install: not mounted


Done copy ROOTFS


Writing new kernel image…
dd: failed to open ‘/dev/boot’: No such file or directory
/dev/boot: No such file or directory
/dev/boot: No such file or directory
/dev/boot: No such file or directory
/dev/boot: No such file or directory
done.
Writing new dtb …
done.
Write env bootargs


Complete copy OS to eMMC parted DATA


root@amlogic:~#

  1. if i want start aml_autoscript (errormessage)…

root@amlogic:/boot# ./aml_autoscript
-bash: ./aml_autoscript: cannot execute binary file: Exec format error

  1. if i want start ./s905_autoscript
    -bash: ./s905_autoscript: cannot execute binary file: Exec format error

  2. so now begun my mistake … i copied manually via dd the /dev/mmcblk0 (sd?) to /dev/mmcblk1 (emmc?)

my search is …
i just want a emmc booting armbian on Khadas vimpro …
i just need eth and nat in the kernel … no multiboot / gui
… many steps .i known …

but maybe have anyone the hint for a simple emmc boot with armbian (so i dont need a sdcard to work)

thank u for evtl. feedback

Grüsse Schluri & ID

Judging by the post script install.sh you have no important partition /dev/boot. I can only assume that you have in the eMMC there is no proper system (standard firmware Android). Prerequisite Armbian in the installation of eMMC, the eMMC available in regular (working) firmware Android. Restore factory firmware in eMMC and only then run the setup script Armbian in eMMC.

Pay attention to the successful installation and operation Armbian, you should strictly follow the instructions.

2 Likes

ah ok … yes i have deleted the Android Fw …
Thx for Hint