-
Notifications
You must be signed in to change notification settings - Fork 233
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
Script breaks when using ROOT_PATH #117
Comments
Your problem seems to be that you're attempting to update the firmware into an empty directory - that's not what the offline mode is intended for, it's intended for updating an existing installation. Perhaps the README doesn't explain it well enough, but offline-mode is intended for when e.g. your SD card has become unbootable, and so you want to use another Linux PC to update the firmware on the SD card. In this case the assumption is that BOOT_PATH is the location at which your distro auto-mounts the FAT partition of your SD card, and ROOT_PATH is the location at which your distro auto-mounts the EXT4 partition of your SD card. And so we need to check "${ROOT_PATH}/bin/bash" because we want to know what's actually on the SD card, whereas /bin/bash would be the x86 executable on the PC! ldconfig is always run regardless of SKIP_KERNEL because we need to update ld.so.cache with the shared libraries that get installed into /opt/vc/lib. Maybe you're confusing ldconfig with depmod, which does indeed get skipped when SKIP_KERNEL=1. TBH I'm not really sure what you expected to achieve with "I first want to test, I don't want to overwrite my current install" ? |
@lurch as there havn't been any response in a year, I suggest that this issue should be closed. |
I've pushed an update that now allows rpi-update to an empty directory. I don't agree that the README.md is wrong. In:
/media/boot is a mount point for the boot partition (e.g. /dev/mmcblk0p0 or /boot on sdcard) |
Hmmm, interesting.
Just my humble suggestion... ;) |
After long on-and-off tinkering with VideoCore Libraries/Utilities via direct "git clone firmware", I gave Rpi-update a shot on my Raspbmc install.
(which doesn't seem to support "apt-get install rpi-update", but that's another story)
I first want to test, I don't want to overwrite my current install, so I use an offline update:
(And yes; I've unset RPI_UPDATE_UNSUPPORTED)
Issues with above settings:
This subdir ($ROOT_PATH/root) must exist and should NOT be given as ROOT_PATH as in the README.md example.
(script breaks on this issue)
It uses "${ROOT_PATH}/bin/bash" as testfile, but in my case there's no /bin/bash under $ROOT_PATH
(script breaks on this issue)
It uses /etc/ld.so.cache~ as temp-file.
If ROOT_PATH is used, there's no "etc" subdir under ROOT_PATH. It must be made by hand.
(I'm not sure why this is run when SKIP_KERNEL=1)
(script breaks on this issue)
The 2nd issue forced me to temper with rpi-update and use UPDATE_SELF=0 (I could also have copied /bin/bash to ROOT_PATH)
gr,
Rob
The text was updated successfully, but these errors were encountered: