Jump to content

Recommended Posts

Posted

okay building at work with froyo, I've got a system.img (not tried it yet, but thought I'd play with generic).

however I'm going through a 3 way compare Using Meld to see if I can see what needs changing to get a valid kernel.

comparing froyo V dell V donut I noticed that /kernel/arch/arm/mach-msm/include/mach/memory.h has different physical ram offsets in the dell and donut,

#ifdef CONFIG_MSM_STACKED_MEMORY


#ifdef CONFIG_ARCH_MSM_SCORPION

#define PHYS_OFFSET		UL(0x20000000)

#else

#define PHYS_OFFSET		UL(0x10000000)

#endif


#else 


#define PHYS_OFFSET		UL(0x00200000)


#endif
v
#ifdef CONFIG_MSM_STACKED_MEMORY


#ifdef CONFIG_ARCH_MSM_SCORPION

#define PHYS_OFFSET		UL(0x24000000)

#else

#define PHYS_OFFSET		UL(0x10000000)

#endif


#else /* !CONFIG_MSM_STACKED_MEMORY */


#define PHYS_OFFSET		UL(0x00200000)


#endif
but froyo doesn't use this and seems to define it elsewhere (CONFIG_PHYS_OFFSET), which seems cleaner, but I can't find where its enabled.
#define PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)


#define MAX_PHYSMEM_BITS 32

#define SECTION_SIZE_BITS 25


#define HAS_ARCH_IO_REMAP_PFN_RANGE

I'm presuming this is one of the reasons we can't get a booting kernel using froyo?

this is showing my android noobiness up :P

Guest Stephen Hyde
Posted

Hmm i will have a look at this tonight as it does indeed look plausible as to the problem

Posted

the more I look at this the more snippets of froyo kernel code I find in the dell_source..

Guest Stephen Hyde
Posted

As has been mentioned dells kernel is a bit of a mashup between 2.6.29 2.6.32 and 2.6.35

Guest Stephen Hyde
Posted (edited)

the file /arch/arm/configs/qsd8650-perf_defconfig is the kernel config used by froyo kernel build. and the config_PHYS_addr is in their, set by default to 0x20000000 i have adjusted this to 0x10000000 and am building to test, should also mention i replaced this file with a edited version of my streaks current kernel config (added cgroup/cpuacct support which dell have removed for some reason and disabled most of debug options

Edited by Stephen Hyde
Posted (edited)
the file /arch/arm/configs/qsd8650-perf_defconfig is the kernel config used by froyo kernel build. and the config_PHYS_addr is in their, set by default to 0x20000000 i have adjusted this to 0x10000000 and am building to test, should also mention i replaced this file with a edited version of my streaks current kernel config (added cgroup/cpuacct support which dell have removed for some reason and disabled most of debug options

can you up your defconfig?

so dell are using the froyo config_Phys_addr then I don't think 0x10000000,

I forgot to bring the usb drive home, so can't carry on with my comparison till work tomorrow

Edited by fards
Posted
http://downloads.nitdroid.com/djsteve/stre...-perf_defconfig

i also edited AndroidKernel.mk to force it to use this defconfig - edited file is :

that files available at http://downloads.nitdroid.com/djsteve/stre...ndroidKernel.mk

the kernel builds but wont boot - may be my boot.img but i dont think so

ok cheers I'll have a look tomorrow at work, I suspect there's quite a lot in the dell donut that needs porting across, I've been working through it as I can.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.