# OdroidC2 v9.6 Upgrade Fail | unable to read partition table

**URL:** https://dietpi.com/forum/t/odroidc2-v9-6-upgrade-fail-unable-to-read-partition-table/20726
**Category:** Troubleshooting
**Created:** [14 July 2024 16:25 UTC](https://dietpi.com/forum/t/odroidc2-v9-6-upgrade-fail-unable-to-read-partition-table/20726 "2024-07-14T16:25:35Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![mzech](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ce73a5/32.png) [@mzech](https://dietpi.com/forum/u/mzech)
#### Post date: [14 July 2024 16:25 UTC](https://dietpi.com/forum/t/odroidc2-v9-6-upgrade-fail-unable-to-read-partition-table/20726/1 "2024-07-14T16:25:35Z")

</div>

### Creating a bug report/issue

I have searched the existing open and closed issues

#### Required Information

- DietPi version | v9.6
- Distro version | `echo $G_DISTRO_NAME $G_RASPBIAN`
- Kernel version | `uname --all`
- Architecture | `dpkg --print-architecture`
- SBC model | Odroid C2
- Power supply used | 5V 2A or microUSB
- SD card used | Gigastone 32GB

#### Additional Information (if applicable)

- Software title | N/A
- Was the software title installed freshly or updated/migrated? | N/A
- Can this issue be replicated on a fresh installation of DietPi? | Yes

← If you sent a “dietpi-bugreport”, please paste the ID here →

- Bug report ID | N/A

#### Steps to reproduce

1. Upgrade OdroidC2 from v9.5 to v9.6
2. Reboot

#### Expected behaviour

- Boots

#### Actual behaviour

- Fails to boot
- Error received = _mmcblk0: unable to read partition table_

#### Extra details

- Existing device at 9.5
- See there is new release of 9.6
- Run _dietpi-upgrade_
- Upgrade finished, requests a reboot
- Reboot
- Device goes dark, can’t ping
- Remove power, Connect to UART
- Cycle power, see repeating error during boot → _mmcblk0: unable to read partition table_
- Removed SDcard, set aside
- Get new SDCard, flash with latest OdroidC2 image (DietPi\_OdroidC2-ARMv8-Bookworm.img.xz)
- Insert in device and Boot
- Device auto-runs _dietpi-update_ and reboots
- Remove power
- Connect UART, cycle power
- See repeating error again during boot → _mmcblk0: unable to read partition table_

Boot log fresh SDcard with fresh install: [OdroidC2-Boot\_Error - Pastebin.com](https://pastebin.com/bR9cecJe)  
Boot log of original SDcard with upgrade: [OdroidC2-Upgrade\_Error - Pastebin.com](https://pastebin.com/L4k21hND)

Other info:  
Flashed SDCard with fresh install, forced failure of _dietpi-update_ by removing ethernet. Tried to restore original image with _dietpi-backup_. Restored but has new kernel and request for reboot. ☹  
Bad on me for not realizing the _dietpi-update_ makes a backup. I am stuck without a clean backup.

Any tips?

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [14 July 2024 19:05 UTC](https://dietpi.com/forum/t/odroidc2-v9-6-upgrade-fail-unable-to-read-partition-table/20726/2 "2024-07-14T19:05:34Z")

</div>

@MichaIng can you have a look please

---

<div class="post-metadata">

### Author: ![mzech](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ce73a5/32.png) [@mzech](https://dietpi.com/forum/u/mzech)
#### Post date: [14 July 2024 19:07 UTC](https://dietpi.com/forum/t/odroidc2-v9-6-upgrade-fail-unable-to-read-partition-table/20726/3 "2024-07-14T19:07:04Z")

</div>

🎇 I found my own solution. 🎇

The fix: Revert _meson-gxbb-odroidc2.dtb_ back to ‘dtb-6.6.32-current-meson64’ version.

The explanation:  
The DTB in v9.6 appears to included the following fix to a reboot issue. See link below

> **[If you have an Odroid C2 (and possibly others) that fails to reboot - here's...](https://forum.armbian.com/topic/27137-if-you-have-an-odroid-c2-and-possibly-others-that-fails-to-reboot-heres-your-fix/#comment-192840)**
>
> EDIT: After discussion with a few users, to avoid the issue of having this modification wiped out by a future DTB update and create the unfortunate scenario where the /boot/armbianEnv.txt requests to load a DTB which no longer exists, it's a lot...

The link describes and the DTB in the v9.6 includes the following GPIO device tree gpios input updated

```auto
gpio-regulator-tf_io {
                compatible = "regulator-gpio";
                regulator-name = "TF_IO";
                regulator-min-microvolt = <0x1b7740>;
                regulator-max-microvolt = <0x325aa0>;
                gpios = <0x39 0x03 0x00>;
                gpios-states = <0x00>;
                states = <0x325aa0 0x00 0x1b7740 0x01>;
                vin-supply = <0x3a>;
                phandle = <0x28>;

```

`gpios = <0x39 0x03 0x00>;` becomes `gpios = <0x39 0x03 0x06>;`  
0x00 → 0x06

On my device, this was preventing the device to from boot from the SD. I don’t know why. Reverting the line back to 0x00 fixes the problem.

In my case I took the original SDCard and manually copied the _meson-gxbb-odroidc2.dtb_ file from the _DietPi\_OdroidC2-ARMv8-Bookworm.img.xz_ image onto the SDCard

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [14 July 2024 19:23 UTC](https://dietpi.com/forum/t/odroidc2-v9-6-upgrade-fail-unable-to-read-partition-table/20726/4 "2024-07-14T19:23:40Z")

</div>

Since no one else reported any issue with this reboot fix: Could you try to revert only his one change in the device tree, otherwise use the very same kernel? Probably it is another change, not that one.

---

<div class="post-metadata">

### Author: ![mzech](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ce73a5/32.png) [@mzech](https://dietpi.com/forum/u/mzech)
#### Post date: [14 July 2024 19:49 UTC](https://dietpi.com/forum/t/odroidc2-v9-6-upgrade-fail-unable-to-read-partition-table/20726/5 "2024-07-14T19:49:33Z")

</div>

I initially verified by taking the v9.5 image _DietPi\_OdroidC2-ARMv8-Bookworm.img.xz_ and not making any updates. That image I am unable to reboot with the `roboot` command, but with a power cycle the unit will boot just fine.

I took that image and made only the DTB reboot fix update (changing 0x00 to 0x06). With only that change, I was unable to boot after a power cycle. _mmcblk0: unable to read partition table_ error

I went back to a fresh v9.5 image but this time I did a apt update && apt upgrade; the new DTB is loaded. Before rebooting or power cycling, I reverting the DTB reboot fix (reverting 0x06 to 0x00). Power cycled and the unit boots.

I took the upgraded image and update the DTB (0x00 to 0x06) and power cycled; unable to boot.

The original SDCard that had been upgraded from v9.5 to v9.6 would not boot until I reverted the DTB. Once reverted, I can boot from the SDCard without issue and running v9.6. `reboot` command still doesn’t work, but I can live with that.

---

<div class="post-metadata">

### Author: ![muddiver](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ac91a4/32.png) [@muddiver](https://dietpi.com/forum/u/muddiver)
#### Post date: [15 July 2024 05:25 UTC](https://dietpi.com/forum/t/odroidc2-v9-6-upgrade-fail-unable-to-read-partition-table/20726/6 "2024-07-15T05:25:13Z")

</div>

HI folks,  
i run a C2 too, the update was working great, since 9.5 my Odroid reboots without issues  
( as described, i had to pull the powercord before ), i did not get any issues with 9.6…  
As far a as i remember i had to reboot after the update to 9.6, but no issues.  
I disabled UART right from the start, maybe that’s a point?

Greets, Tom

---

<div class="post-metadata">

### Author: ![mzech](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ce73a5/32.png) [@mzech](https://dietpi.com/forum/u/mzech)
#### Post date: [15 July 2024 05:55 UTC](https://dietpi.com/forum/t/odroidc2-v9-6-upgrade-fail-unable-to-read-partition-table/20726/7 "2024-07-15T05:55:34Z")

</div>

Well, but darn. Perhaps this is unique to my device or SDCard.

If I discover anything of merit, I’ll post back. Else consider this bunked.

---

<div class="post-metadata">

### Author: ![muddiver](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/ac91a4/32.png) [@muddiver](https://dietpi.com/forum/u/muddiver)
#### Post date: [15 July 2024 12:02 UTC](https://dietpi.com/forum/t/odroidc2-v9-6-upgrade-fail-unable-to-read-partition-table/20726/8 "2024-07-15T12:02:53Z")

</div>

I forgot to say that i don’t use a SD-Card, i run an EMMC-Modul.  
That could be another thing to try if you have one…

---

<div class="post-metadata">

### Author: ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)
#### Post date: [13 October 2024 12:03 UTC](https://dietpi.com/forum/t/odroidc2-v9-6-upgrade-fail-unable-to-read-partition-table/20726/9 "2024-10-13T12:03:06Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
