Hi! I’m working on some kernel work on VIM2 in my spare time and I’ve somehow managed to break the u-boot that’s installed on it. It just loops over the ROM boot. I’ve found a variety of instructions online to build recovery SD/USB images that the ROM code can boot but nothing has worked.
Is there a full USB or SD image I can grab that will be recognised by the ROM boot and flash a replacement u-boot? I’d really like to continue hacking on BSD on this thing.
Do you have instructions on what to do with these uboot bin files? I’m sorry, but I’m much more familar with MIPS boards and JTAG/NOR flash programming versus how these android-y boards implement recovery and secure boot.
I have both USB and SD media so I can try both.
For maskrom mode - what’s it do exactly? The site just says it allows the ROM to be flashed. But if I interpret my boot strings correctly, it looks like the ROM is fine and it’s just the second stage bootloader (ie, uboot) that needs replacing?
I’m missing the contents of EMMC, because I think I deleted it whilst tinkering with the SDMMC driver before i had put down a partition table.
I’m looking for how to populate a USB or an SD card with an image that can recover this unit. I’ve found plenty of u-boot images for the VIM2 board but I haven’t found instructions (or an image!) that I can put onto an USB/SD device to boot. Nothing I’ve tried so far has worked.
When using u-boot-2015 (this version is used in the standard firmware of Khadas and on their website files with this version). You can use this instruction to write u-boot to SD card. To restore u-boot to eMMC, you can either run the firmware installation using a USB cable and the Built Tool, or write a “u-boot.bin” file with one “dd” command in eMMC. Please note, the files for SD card have the extension “u-boot.bin.sd.bin”, and for eMMC “u-boot.bin”. When using u-boot-2018, one common “uboot.bin” file is used for SD and eMMC.
When you try to create an MBR partition table on an eMMC with the u-boot-2015 loader, you break the loader (it stops running). For this procedure, you need to use certain steps or a special script “create-mbr-linux.sh” from the Armbian image.
Version images Armbian 5.44 contain built-in u-boot-2015 models VIM2. If you burn the image to an SD card, you will be able to start the Armbian system from the SD card and perform any steps with eMMC (including u-boot recovery).