回复:支持<电子积木.精致JZ2440开发板>的u-boot-1.3.4 (更新,新增支持硬件...
不需要保证显存是4M对齐的吧,保证是4K对齐的
在start_armboot()中
#ifdef CONFIG_LCD
/* board init may have inited fb_base */
if (!gd->fb_base) {
# ifndef PAGE_SIZE
# define PAGE_SIZE 4096
# endif
/*
* reserve memory for LCD display (always full pages)
*/
/* bss_end is defined in the board-specific linker script */
addr = (_bss_end + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1);
size = lcd_setmem (addr);
gd->fb_base = addr;
}
#endif /* CONFIG_LCD */
显存的位置在BSS段结束后的 4K对齐位置,当然你觉得这个位置不爽的话也可以自己指定