Can't boot: command not found: bootz

Post Reply
tve
Posts: 47
Joined: Sun Jul 13, 2014 4:02 pm
languages_spoken: english
ODROIDs: odroid-u3, odroid-c1, odroid-c1+
Has thanked: 0
Been thanked: 0
Contact:

Can't boot: command not found: bootz

Unread post by tve » Wed Dec 19, 2018 10:29 am

I'm trying to boot one of the new 4.x kernels from emmc and it doesn't work (the emmc worked with an older kernel). It reads the various images into memory but then prints:

Code: Select all

Unknown command 'bootz' - try 'help'
I tried the emmc recovery image, but that doesn't change the problem.
I end up with:

Code: Select all

U-Boot 2010.12-svn (May 12 2014 - 15:05:46) for Exynox4412
Any suggestions?

tve
Posts: 47
Joined: Sun Jul 13, 2014 4:02 pm
languages_spoken: english
ODROIDs: odroid-u3, odroid-c1, odroid-c1+
Has thanked: 0
Been thanked: 0
Contact:

Re: Can't boot: command not found: bootz

Unread post by tve » Wed Dec 19, 2018 1:57 pm

After a day of banging my head against the wall I finally seem to have found a solution:
  • load an sdcard with the "Ubuntu 18.04 Minimal OS image for X2 U2 U3" (the 16.04 probably works too)
  • load the same image onto the emmc or otherwise prepare the partitions on the emmc
  • Boot from that sdcard
  • Plug Emmc into socket
  • lsblk should show that mmcblk0 is your SDcard, and mmcblk1 is your emmc (look at the sizes)
  • unlock the emmc bootloader partition:

    Code: Select all

    echo 0 > /sys/block/mmcblk1boot0/force_ro
  • copy the sdcard bootloader sectors onto the emmc, shifted by 1 sector:

    Code: Select all

    dd iflag=dsync oflag=dsync if=/dev/mmcblk0 bs=512 count=1300 skip=1 of=/dev/mmcblk1boot0
Because I had messed-up the boot partition on the emmc with various tests I also copied it fresh from the sdcard:

Code: Select all

dd if=/dev/mmcblk0p1 of=/dev/mmcblk1p1
I then shut down, removed the sdcard, power cycled and it booted (I had previously loaded the OS onto the root partition).

EWIuser
Posts: 19
Joined: Sat Dec 27, 2014 11:25 pm
languages_spoken: French and English
ODROIDs: U3
Location: Montreal, Quebec Canada
Has thanked: 0
Been thanked: 0
Contact:

Re: Can't boot: command not found: bootz

Unread post by EWIuser » Sat Dec 22, 2018 9:39 pm

Hi @tve, thanks for the tip. I've been trying to follow the threads for using the new kernel with the Emmc card but it's too technical for a noob like me. Today I'll try your method for a test but it would in effect be great if we could have an image having a kernel with all pertinent modules loadable so it could be used for any applications. I understand that loading all modules is not practical but having them available to load with modprobe would be advantageous and shouldn't take that much space on the image. Hope this works out and I'll keep you posted.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest