-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Idea to restore partition table #15
Comments
So, finally made progress on this! I made a custom u-boot for my device and it boots into the boot menu!! Now what i need is the original partition layout, with sizes and names because u-boot has mounted my internal storage so my linux machine and gparted can see it. Can anyone help with the above? Im googling myself but info is sporadic! |
what device/model/size is it? |
So, more progress. I found a PT.img (attached) and flashed it with --rawdevicewrite and it was enough to allow the bootloader to be written and to boot. From there I am now able to "fastboot boot" twrp. But it still cant mount internal storage. I still need the full partition layout. I should add.. I have adb pushed a working version of parted to /sbin and can create / modify partitions |
It is n7 2012 16gb |
https://github.com/tofurky/tegra30_debrick/blob/master/utils/flash.cfg i think --create can do it, but i'm not sure of the specifics.
bad odmdata can cause issues with nvflash communication. |
I have previously tried --create. But that was before successfully flashing PT.bin. So will try again. Where could I get the odmdata? |
|
nvflash just hangs with the above. Shame. i'm a step further tho at least. I also looked at using parted to set the partitions, but in the flash.cfg file it mentions about "basic" filesystems for some of them... not sure how to do this in parted as it lists ext* fat* etc |
tried power cycling and it says setbct failed |
I'm curious if burning u-boot to the emmc would be successful. Also
does badblocks call anything out?
…On Tue, Jun 4, 2024 at 1:22 PM philicibine ***@***.***> wrote:
tried power cycling and it says setbct failed
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
U-boot did write succesfully. I used the guide here for writing it. Only thing required to build is your sbk. I guess if all else fails I can put some form of linux on it. I tried to write postmarketos, but it needs extlinux.conf to boot. Will take some figuring out. u-boot was definitely persistent tho. edit: found this guide to install pmos. Will try later after work. |
I got it to boot fully with PMos!! It was a generic tegra build though, so currently rebuilding one thats more up to date. Happy with that! The device was only a display for my solar system. Dashboard type thing. So long as chromium installs it'll do fine! |
seems like you're OK with u-boot/pmos so it shouldn't matter, but there are 2 partition tables on the device:
nvflash miniloader/fastboot use the nvidia partition table, and in linux, i think it was using (or at least aware of) the gpt stored towards the end of the disk. there was a kernel cmdline parameter added to give the gpt location. from flash.cfg:
so i guess for a full restore to stock, you'd need to both rewrite the nvidia partition table, AND restore the contents of the GPT partition. |
Hi
I am currently stuck in the same position as some others here. Without a partition table and unable to progress. But I had an idea. I can get rawdevicewrite to work with nvflash so maybe I could write the whole emmc and progress further. I am wondering if anyone watching this repository could run "adb pull /dev/block/mmcblk0 emmc.bin" for me?
Thanks in advance
The text was updated successfully, but these errors were encountered: