frederic / superbird-bulkcmd

Spotify Car Thing (superbird) resources to access U-Boot shell over USB
247 stars 14 forks source link

scripts/burn-mode.sh fails to run #11

Closed dumax315 closed 2 years ago

dumax315 commented 2 years ago
theo@theo-VirtualBox:~/superbird-bulkcmd$ ./scripts/burn-mode.sh 
[write],value=1000,index=10,len=65536,ret=-1 error_msg=error sending control message: Operation not permitted
[write],value=1000,index=10,len=65536,ret=-1 error_msg=error sending control message: Operation not permitted
[write],value=1000,index=10,len=65536,ret=-1 error_msg=error sending control message: Operation not permitted
ERR: write data to device failed
[update]Run at Addr fffa0000
AmlUsbRunBinCode:ram_addr=fffa0000
[LUSB]ERR(L1069):Fail in start cmd, ret=-1
[LUSB]ERR(L1172):fail in parse cmd, ret=-1070

Note, I am running this on a virtual machine.

Borillion commented 2 years ago

Interesting I am getting similar here, I am not on a vm though.

./burn-mode.sh: line 6: 42304 Segmentation fault      (core dumped) $UPDTOOL write $DIR/../images/superbird.bl2.encrypted.bin 0xfffa0000
[update]Run at Addr fffa0000
AmlUsbRunBinCode:ram_addr=fffa0000
./burn-mode.sh: line 7: 42315 Segmentation fault      (core dumped) $UPDTOOL run 0xfffa0000
./burn-mode.sh: line 8: 42326 Segmentation fault      (core dumped) $UPDTOOL bl2_boot $DIR/../images/superbird.bootloader.img
lmore377 commented 2 years ago

Just run the script with sudo. By the way, it's really finicky trying to get this working in a VM so if you get more issues like not being able to use ADB you might need to use an ubuntu live usb or something like that.