bishopdynamics / superbird-debian-kiosk

# Debian Chromium Kiosk on Spotify Car Thing (superbird)
MIT License
205 stars 7 forks source link

Error flashing image, bulkcmd failed #3

Open Sagehawke opened 2 weeks ago

Sagehawke commented 2 weeks ago

LOG: chunk_size: 512.0KB, speed: 1.63MB/s progress: 100% remaining: 0MB / 516MB ←[1A←[2K←[1A←[2Kwriting partition: "systemb" 0x189058+0x20400000 from file: C:\Users\sage\Desktop\carthing\wallthing_os\debian_v1.7_2024-01-01/system_b.ext2 chunk_size: 44.0KB, speed: 1.63MB/s progress: 100% remaining: 0MB / 516MB Validating size of partition: data size: 0x889ea000 2186MB - ... Bulkcmd failed: amlmmc read data 0x13000000 0x889e9e00 0x200 -> failed: Error (BulkcmdException): bulkcmd timed out or failed! This can happen if the device ends up in a strange state, like as the result of a previously failed command Try power cycling the device by pulling the cable, and then boot up and try again You might need to do this multiple times If the device is connected through a USB hub, try connecting it directly to a port on your machine

I cut out most of the log because this happens about 15 minutes into flashing the image, always after system_b reaches 100%. I tried flashing my backup of the stock Spotify OS and it worked without any issues.

Power cycling after flashing results in the bootlogo appearing for about 10 seconds, then the screen turns off and the cycle repeats. Seems like a bootloop. Burn mode and utility mode work fine.

I've tried both the 1.7 and 1.8 release. I'm on Windows 10 with the Carthing connected directly to the motherboard with USB C. I've tried other ports on my PC including USB A. I've tried multiple different cables. I've attempted to flash at least 10 times now and nothing seems to work.

thomaspcole commented 2 weeks ago

@Sagehawke Had the same issue but found the solution after digging around the Car Thing Hax Discord.

Apparently some devices have a smaller data partition. If you edit the superbird_partitions.py file it flashes just fine. Replace the value for 'size' on line 83 with the value for 'size_alt' on line 84.

You can also just flash that partition to avoid having to wait for the whole restore device script to write to the device. However use only if you are certain the other partitions wrote successfully. EX: _superbird_tool.py --restore_partition data PATH_TO_DEBIANFOLDER\data.ext4

Link to the relevant Discord thread as well. https://discord.com/channels/1042954149786046604/1243998638833664102