Hi all, I have a device with a black Beagle Bone and I would like to update a file inside the firmware from which the device boots. I don't have the original source code. At the moment I use the following steps on a 64-bit GNU/Linux desktop (Ubuntu) to try to accomplish this, but unfortunately the device does not boot from the resulting firmware. What do I need to change in order to alter an image successfully?
sudo su tar xf FIRMWARE.tar.gz mkimage -l initramfs.bin.SD tail -c+65 < initramfs.bin.SD > Angstrom-xxxxxxxx_m-eglibc-ipk-v2013.06-beaglebone.rootfs.cpio.gz mv initramfs.bin.SD initramfs.bin.SD.orig gunzip Angstrom-xxxxxxxx_m-eglibc-ipk-v2013.06-beaglebone.rootfs.cpio.gz mkdir unpacked cd unpacked cat ../Angstrom-xxxxxxxx_m-eglibc-ipk-v2013.06-beaglebone.rootfs.cpio | cpio -i # here change a text file mkdir ../new find . | cpio -H newc -o > ../new/Angstrom-xxxxxxxx_m-eglibc-ipk-v2013.06-beaglebone.rootfs.cpio cd ../new gzip -9 Angstrom-xxxxxxxx_m-eglibc-ipk-v2013.06-beaglebone.rootfs.cpio mv Angstrom-xxxxxxxx_m-eglibc-ipk-v2013.06-beaglebone.rootfs.cpio.gz initramfs.gz mkimage -A arm -O linux -n Angstrom-xxxxxxxx_m-eglibc-ipk-v -d initramfs.gz ../initramfs.bin.SD cd .. tar cfvz FIRMWARE_new.tar.gz am335x-boneblack-xxxxxxxxx.dtb initramfs.bin.SD runme.sh # use FIRMWARE_new.tar.gz to install on a running device and reboot Thanks, Pander -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/fc905bfd-1388-4883-8341-ca7e8499c835%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
