How to determinate flash offsets
I've got my nexus 5 kernel to compile, the thing I don't have yet is the deviceinfo_flashoffset stuff. How are these calculated?
I have the output from boot_info for the original boot.img for the nexus 5:
./boot_info image-hammerhead-m4b30z/boot.img ⏎
Page size: 2048 (0x00000800)
Kernel size: 8454264 (0x00810078)
Ramdisk size: 916830 (0x000dfd5e)
Second size: 0 (0x00000000)
Board name:
Command line: 'console=ttyHSL0,115200,n8 androidboot.hardware=hammerhead user_debug=31 maxcpus=2 msm_watchdog_v2.enable=1'
Base address: 40894208 (0x026fff00)
The issues is that my numbers seem a few order of magnitude smaller than the ones in the samsung deviceinfo package.