View Single Post
Posts: 1,101 | Thanked: 1,185 times | Joined on Aug 2008 @ Spain
#170
Originally Posted by onion View Post
I finally had time to take a proper look at this. Installed today, seems to work fine.
But one bug, one of the postinst scripts, I think it was for the kernel package, complained about missing python. I don't have that installed and the package didn't require it. It did still install fine.
I assumed python was a Diablo requirement :-/, I'll add that as a dependency in the next kernel release.
Well, python is used to adjust the backup kernel image size, so your zImage backup is the whole mtd1 flash device. That wouldn't have to be bad by itself, except for a few hundred KB lost, but if what I've read about the development of 0xFFFF is correct, writing an image the same size of the mtd device will cause troubles. You better cut the size of /usr/share/Diablo-Turbo/backup/zImage-backup or you risk a reflash if you uninstall kernel-dt-sd.
Install python and then, as root:
Code:
echo -e 'import struct\n\
f=open("'"/usr/share/Diablo-Turbo/backup/zImage-backup"'","r+")\n\
f.seek(0x2C)\n\
l=struct.unpack("i",f.read(4))[0]\n\
f.seek(0)\n\
f.truncate(l)\n\
f.close()'|python -

Last edited by maacruz; 2011-03-03 at 19:30.
 

The Following 2 Users Say Thank You to maacruz For This Useful Post: