question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firmware build failling

See original GitHub issue

When following the build instructions I get the following error after the next command:

sudo ../dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh \
     --firmware=../firmware/v11_001712.pkg \
     --soundfile=../firmware/english.pkg \
     --public-key=$HOME/.ssh/id_ed25519.pub \
     --valetudo-path=../valetudo \
     --disable-firmware-updates \
     --ntpserver=fritz.box \
     --replace-adbd

(please note that the firmware version on the wiki page is not correct, please update that)

/mnt/firmware/rockrobo/image/fw.0Jv7wa/sounds /mnt/firmware/rockrobo/image
/mnt/firmware/rockrobo/image
Decrypt firmware
Unpack firmware
/mnt/firmware/rockrobo/image/fw.0Jv7wa/fw /mnt/firmware/rockrobo/image
/mnt/firmware/rockrobo/image
mount: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image: can't read superblock on /dev/loop7.
Replace ssh host keys
../dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh: line 343: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/etc/ssh/ssh_host_rsa_key: No such file or directory
../dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh: line 344: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/etc/ssh/ssh_host_rsa_key.pub: No such file or directory
../dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh: line 345: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/etc/ssh/ssh_host_dsa_key: No such file or directory
../dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh: line 346: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/etc/ssh/ssh_host_dsa_key.pub: No such file or directory
../dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh: line 347: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/etc/ssh/ssh_host_ecdsa_key: No such file or directory
../dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh: line 348: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/etc/ssh/ssh_host_ecdsa_key.pub: No such file or directory
../dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh: line 349: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/etc/ssh/ssh_host_ed25519_key: No such file or directory
../dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh: line 350: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/etc/ssh/ssh_host_ed25519_key.pub: No such file or directory
Disable SSH firewall rule
sed: can't read /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/opt/rockrobo/watchdog/rrwatchdoge.conf: No such file or directory
Add SSH authorized_keys
mkdir: cannot create directory ‘/mnt/firmware/rockrobo/image/fw.0Jv7wa/image/root/.ssh’: No such file or directory
chmod: cannot access '/mnt/firmware/rockrobo/image/fw.0Jv7wa/image/root/.ssh': No such file or directory
../dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh: line 365: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/root/.ssh/authorized_keys: No such file or directory
chmod: cannot access '/mnt/firmware/rockrobo/image/fw.0Jv7wa/image/root/.ssh/authorized_keys': No such file or directory
reconfiguring network traffic to xiaomi
../dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh: line 373: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/etc/hosts: No such file or directory
../dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh: line 374: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/etc/hosts: No such file or directory
replacing adbd
cp: cannot stat '/mnt/firmware/rockrobo/image/fw.0Jv7wa/image/usr/bin/adbd': No such file or directory
install: cannot create regular file '/mnt/firmware/rockrobo/image/fw.0Jv7wa/image/usr/bin/adbd': No such file or directory
Installing valetudo
install: cannot create regular file '/mnt/firmware/rockrobo/image/fw.0Jv7wa/image/usr/local/bin/valetudo': No such file or directory
install: cannot create regular file '/mnt/firmware/rockrobo/image/fw.0Jv7wa/image/etc/init/valetudo.conf': No such file or directory
../dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh: line 527: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/etc/hosts: No such file or directory
sed: can't read /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/etc/rc.local: No such file or directory
../dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh: line 530: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/etc/rc.local: No such file or directory
../dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh: line 531: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/etc/rc.local: No such file or directory
../dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh: line 532: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/etc/rc.local: No such file or directory
sed: can't read /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/opt/rockrobo/rrlog/rrlog.conf: No such file or directory
sed: can't read /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/opt/rockrobo/rrlog/rrlogmt.conf: No such file or directory
sed: can't read /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/opt/rockrobo/rrlog/rrlog.conf: No such file or directory
sed: can't read /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/opt/rockrobo/rrlog/rrlogmt.conf: No such file or directory
sed: can't read /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/opt/rockrobo/watchdog/ProcessList.conf: No such file or directory
sed: can't read /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/opt/rockrobo/rrlog/tar_extra_file.sh: No such file or directory
sed: can't read /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/opt/rockrobo/rrlog/misc.sh: No such file or directory
sed: can't read /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/opt/rockrobo/rrlog/toprotation.sh: No such file or directory
sed: can't read /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/opt/rockrobo/rrlog/topstop.sh: No such file or directory
../dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh: line 557: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/opt/rockrobo/watchdog/ntpserver.conf: No such file or directory
../dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh: line 561: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/opt/rockrobo/watchdog/ntpserver.conf: No such file or directory
../dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh: line 562: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/opt/rockrobo/watchdog/ntpserver.conf: No such file or directory
../dustcloud/devices/xiaomi.vacuum/firmwarebuilder/imagebuilder.sh: line 564: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image/etc/timezone: No such file or directory
umount: /mnt/firmware/rockrobo/image/fw.0Jv7wa/image: not mounted.
waiting for unmount...

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
bruvvcommented, Apr 7, 2019

Nice find, that did it 😃 moved the stuff from the shared folder into the virtualbox itself and now it is working! Thanks 😃

0reactions
balu-commented, Apr 23, 2019

thanks for that hint, helped me a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Firmware Build Failures - MATLAB & Simulink
Solve the problems while building the firmware. ... If the PX4 ® Firmware build fails while performing Hardware setup screens, you can analyze...
Read more >
Auto Build Troubleshooting | Marlin Firmware
When Auto Build encounters a problem it always displays an error message in either the Launch window or the Auto Build window. If...
Read more >
Error in source, fails to compile. · Issue #21517 - GitHub
Steps to Reproduce. Open it in vs code. Try to compile it. Check out the problems. Version of Marlin Firmware. I ...
Read more >
TIPS To Resolve Custom Firmware Compiling Errors Using ...
In this video we are going to walk you through compiling the basic firmware after running into errors until we get a successful...
Read more >
Struggling to compile fresh copy of marlin : r/MarlinFirmware
Hi have previously compiled firmware using platformIO and VScode but wanted to ... My problem was actually with the marlin build as another ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found