1,根据上一章最后一步生成u-boot写入到板子上,生成如下代码
UARU0x43110220DDR IS OK!0x123456780xEA000014U-Boot 2012.10 (Aug 07 2017 - 17:48:43) CPU: S5PC110@400MHz Board: I2C: ready DRAM: 512 MiB WARNING: Caches not enabled Board PMIC init Muxed OneNAND 16MB 2.65/3.3V 16-bit (0xf001) OneNAND version = 0xf002No OOB scheme defined for oobsize 1920
2,板子上的话 u-boot,还是没有运行成功,我们通过查看board_init_f和board_init_r函数,可以看到出错在什么地方
UARU0x43110220DDR IS OK!0x123456780xEA000014U-Boot 2012.10 (Aug 07 2017 - 17:48:43) :display_banner CPU: S5PC110@400MHz :print_cpuinfo, Board: Goni :checkboard, I2C: ready :init_func_i2c, DRAM: 512 MiB :display_dram_config(); WARNING: Caches not enabled :enable_caches(); Board PMIC init Muxed OneNAND 16MB 2.65/3.3V 16-bit (0xf001) OneNAND version = 0xf002No OOB scheme defined for oobsize 1920
3,后面都是所跟的上面两个函数中的执行代码。看到错误出现在OneNAND这个地方,通过查看板子,发现在没有OneNAND硬件,所以要在配置文件中删除相应的配置。
在include/configs/s5p_goni.h中87行注掉
修改205行:
4,如此,因为修改了配置文件,所以先make clean下,然后再make ,生成新的u-boot.bin