移植uip-0.9到u-boot中出现undefined reference to `flash_info'错误的分析过程
2013-10-26 14:35
666 查看
接上一篇文章,解决完strstr后,现在要来解决flash_info这个变量的问题。
还是flash_info没有编译进目标objs的问题,我们知道flash_info 是用flash_info_t结构体来定义的于是用
grep 'flash_info_t' -r .
来搜寻,发现在flash.c中定义了这个变量的
问题在哪里呢?到rt2880目录中,打开Makefile一看究竟。
发现了这个片段:
而我记得,在menuconfig配置的时候,选择的flash类型是SPI,在config.mk中可以看的很清楚:
看来AR系列和mt7620(mips)系列对flash的理解是不同的啊:(陷入僵局!
接下来可能要研究一下这两个系统对flash的读写原理。
net/libnet.a(httpd.o): In function `do_http_upgrade': httpd.c:(.text+0x174): undefined reference to `flash_info' httpd.c:(.text+0x178): undefined reference to `flash_info' net/libnet.a(httpd.o): In function `httpd_findandstore_firstchunk': uip-0.9/httpd.c:(.text+0x1fc): undefined reference to `flash_info' uip-0.9/httpd.c:(.text+0x200): undefined reference to `flash_info' make: *** [u-boot] Error 1
还是flash_info没有编译进目标objs的问题,我们知道flash_info 是用flash_info_t结构体来定义的于是用
grep 'flash_info_t' -r .
来搜寻,发现在flash.c中定义了这个变量的
./board/rt2880/flash.c:flash_info_t flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips */
问题在哪里呢?到rt2880目录中,打开Makefile一看究竟。
发现了这个片段:
ifeq ($(CFG_ENV_IS), IN_FLASH) OBJS += flash.o endif
而我记得,在menuconfig配置的时候,选择的flash类型是SPI,在config.mk中可以看的很清楚:
ifeq ($(ON_BOARD_NAND_FLASH_COMPONENT),y) CFG_ENV_IS := IN_NAND else ifeq ($(ON_BOARD_SPI_FLASH_COMPONENT),y) CFG_ENV_IS := IN_SPI else CFG_ENV_IS := IN_FLASH endif endif CPPFLAGS += -DCFG_ENV_IS_$(CFG_ENV_IS)
看来AR系列和mt7620(mips)系列对flash的理解是不同的啊:(陷入僵局!
接下来可能要研究一下这两个系统对flash的读写原理。
相关文章推荐
- 移植uip-0.9到u-boot中出现undefined reference to `strstr'错误的解决过程
- TORNADO下编译出现undefined reference to `itoa'错误
- Libcurl使用OpenSSL编译出现undefined reference to `COMP_CTX_free'错误备忘
- undefined reference to `__gnu_mcount_nc'的解决 在编译内核时出现了如下错误:
- 编译出现这种错误 undefined reference to '__gxx_personality_v0'
- PHP 5.3.10 编译安装时出现 undefined reference to `libiconv' 错误的解决方法
- cocos2d-x 使用ndk编译 x86 出现 in function Curl_resolv_timeout: undefined reference to 'sigsetjmp' 错误
- cocos2dx向android平台移植出现问题undefined reference to 'sqlite3_close' collect2: ld returned 1 exit status
- 编译程序出现 undefined reference to `__gxx_personality_v0' 错误
- 移植Qt-4.8.5出现undefined reference to '__sync_sub_and_fetch_4'解决方法--转载
- Qt调用gluPerspective()函数时出现undefined reference to `gluPerspective'错误
- GCC编译uboot出现(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'错误的解决办法
- 出现undefined reference to `forkpty' 错误解决方法
- GCC编译uboot出现(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0'错误的解决的方法
- 交叉编译中出现的 'Undefined reference to __aeabi_read_tp' 错误
- jni中出现使用LOGD,出现undefined reference to '__android_log_print错误
- 解决webrtc2sip编译出现错误undefined reference to symbol 'dlopen@@GLIBC_2.1'
- Nothing to be done for `_depend' 解决 make uboot时出现的错误
- linux 编译程序时得到undefined reference to 'xxxx'这样的错误提示
- 错误:_cspr_lp64_iface.c:(.text+0x28): undefined reference to `mkl_blas_cspr'类似未定义引用 *转载