Running onenand test entirely clears onenand
xc-racer99 opened this issue · comments
To reproduce, run onenand test from the u-boot prompt without any arguments. The system will hang and everything will be cleared from the onenand (bootloaders included - an easy way of getting the Unbrickable mod @PabloPL ).
I suspect this is something related to BML/reservoir partition as I've done this once before when playing around with mapping the reservoir partition from mtd cmdline partitions.
@xc-racer99 By the way, how are You flashing kernels to onenand to boot them using u-boot (there are some magic offsets in boot commands).
I've setup the main normal boot to boot from what was initially reserved as the (unused) recovery partition in BML. So, to get a kernel to it, it's as simple as
heimdall flash --RECOVERY uImage
For the secondary (recovery boot) offset, I've mapped it in my Android kernel and run flash_image from userspace. You can also use flash_image to write the main kernel if everything is mapped properly in userspace