Re: [U-Boot] porting u-boot, few final questions

2014-11-11 Thread DaveKucharczyk
So the issues of the variables changing were due to me initializing everything in board_early_init_f(). I moved everything out of it except uart setup. If I setup the uart in board_init() instead of board_early_init_f() then the early cpu info stuff is missed. I guess there’s an opportunity for

Re: [U-Boot] porting u-boot, few final questions

2014-11-10 Thread DaveKucharczyk
Hi again. I just have a few things left to complete the port and hoping someone can help me out. 1. How come setenv is not working in the board file? I tried setenv in different locations of board_early_init_f(), board_init(), board_late_init() and checkboard(), but it's not working. Did

Re: [U-Boot] porting u-boot, few final questions

2014-11-10 Thread Fabio Estevam
On Mon, Nov 10, 2014 at 1:14 PM, DaveKucharczyk david.kucharc...@gmail.com wrote: Hi again. I just have a few things left to complete the port and hoping someone can help me out. 1. How come setenv is not working in the board file? I tried setenv in different locations of

Re: [U-Boot] porting u-boot, few final questions

2014-11-10 Thread Wolfgang Denk
Dear Fabio Estevam, In message CAOMZO5AiJtDt_CZrO6gzU=jipp_2-etpigfck7zhfhnnzxp...@mail.gmail.com you wrote: 1. How come setenv is not working in the board file? I tried setenv in different locations of board_early_init_f(), board_init(), board_late_init() and checkboard(), but it's not

Re: [U-Boot] porting u-boot, few final questions

2014-11-10 Thread Fabio Estevam
On Mon, Nov 10, 2014 at 1:47 PM, Wolfgang Denk w...@denx.de wrote: Dear Fabio Estevam, In message CAOMZO5AiJtDt_CZrO6gzU=jipp_2-etpigfck7zhfhnnzxp...@mail.gmail.com you wrote: 1. How come setenv is not working in the board file? I tried setenv in different locations of

Re: [U-Boot] porting u-boot, few final questions

2014-11-10 Thread Nikolay Dimitrov
Hi gents, On 11/10/2014 06:04 PM, Fabio Estevam wrote: On Mon, Nov 10, 2014 at 1:47 PM, Wolfgang Denk w...@denx.de wrote: Dear Fabio Estevam, In message CAOMZO5AiJtDt_CZrO6gzU=jipp_2-etpigfck7zhfhnnzxp...@mail.gmail.com you wrote: 1. How come setenv is not working in the board file? I

Re: [U-Boot] porting u-boot, few final questions

2014-11-10 Thread DaveKucharczyk
Update: my board_late_init() function wasn’t working because I defined BOARD_LATE_INIT instead of CONFIG_BOARD_LATE_INIT. Doh! Since arch/arm/lib/board.c file is being removed, and when CONFIG_SYS_GENERIC_BOARD is defined, we are now using… common/board_f.c (for pre-relocation init)

Re: [U-Boot] porting u-boot, few final questions

2014-11-10 Thread DaveKucharczyk
So I am having another issue probably more related to computer science fundamentals. I have a global variable boot_dev defined in my board file like so... I define boot_device in arch/arm/include/asm/arch-mx5/sys_proto.h like this… Now, boot_dev returns the correct value in checkboard(), but