..through the heat...

nothing to soften the sun’s glare, and the dry, yellow landscape.....everything seems lifeless and still. life in Hyderabad....amazing.

with all the problems of high temperature around the state, i have just been with loads of beer to cool my body which tends to heat up fast. Now that i have spent close to a month in this place without visiting Bangalore, i find myself to be quite lost. Hopefully i should be in Bangalore during Easter with my family.

since i dont have a laptop now, status of hacking at home is zero. i need to look for one as soon as possible and get back to work. i have been wasting time watching the idiot box...and working on sundays too. Since i had not much to do at work yesterday, just came up with this for kernel that i am currently working on...


# create a copy of original elf vmlinux image for removing .text.doc section
echo cp vmlinux vmlinux.doc
cp vmlinux vmlinux.doc
echo cp vmlinux vmlinux.text
cp vmlinux vmlinux.text
# sleep 1

# create a binary file of only .text.doc section
echo objcopy -I elf32-little -O binary -j .text.doc vmlinux.doc
objcopy -I elf32-little -O binary -j .text.doc vmlinux.doc
# sleep 1

echo objcopy -I elf32-little -O binary -j .text.head vmlinux.text
objcopy -I elf32-little -O binary -j .text.head vmlinux.text

# create a copy of vmlinux for creating a (binary vmlinux - .text.doc section)
echo cp vmlinux vmlinux.raw
cp vmlinux vmlinux.raw
# sleep 1

# remove .text.doc, .text.head, and .bss section from the image
echo objcopy -I elf32-little -R .text.doc vmlinux.raw
objcopy -I elf32-little -R .text.doc vmlinux.raw

echo objcopy -I elf32-little -R .text.head vmlinux.raw
objcopy -I elf32-little -R .text.head vmlinux.raw

echo objcopy -I elf32-little -O binary vmlinux.raw -R .bss
objcopy -I elf32-little -O binary vmlinux.raw -R .bss
# sleep 1
cp vmlinux.raw vmlinux.ok

# gel the files together
echo cat vmlinux.doc vmlinux.text vmlinux.raw > vmlinux.bin
cat vmlinux.doc vmlinux.text vmlinux.raw > vmlinux.bin

#scount is a tool..
echo Copying Total sector count into vmlinux.bin
./tools/scount 0x20302000 ramdisk

dd if=vmlinux.bin of=/tmp/vmlinux.bin.le bs=512

# combine kernel with Ramdisk image
cat vmlinux.bin ramdisk > vmkernel

dd if=vmkernel of=/tmp/vmlinux.bin.le bs=512
# sleep 1


_allen_


About this entry


0 comments: