From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frank Wunderlich Date: Wed, 22 Jan 2020 16:49:03 +0100 Subject: [BUG] binman: Add a library to access binman entries In-Reply-To: <20191206213936.v6.1.I8c03ae7027508705f6f535ba5137b5e6c5dea840@changeid> References: <20191207044315.51770-1-sjg@chromium.org> <20191206213936.v6.1.I8c03ae7027508705f6f535ba5137b5e6c5dea840@changeid> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, this Patch seems to break init-chain at least on bpi-r64 if BINMAN_FDT not disabled (enabled by default). adding some code for debugging 38 int binman_init(void) 39 { 40 binman = malloc(sizeof(struct binman_info)); 41 printf("%s:%d",__FUNCTION__,__LINE__); 42 if (!binman) 43 return log_msg_ret("space for binman", -ENOMEM); 44 printf("%s:%d",__FUNCTION__,__LINE__); 45 binman->image = ofnode_path("/binman"); 46 printf("%s:%d",__FUNCTION__,__LINE__); 47 if (!ofnode_valid(binman->image)) 48 return log_msg_ret("binman node", -EINVAL); <<<<<<<<<<< this seems to break init-flow 49 50 printf("%s:%d",__FUNCTION__,__LINE__); 51 return 0; 52 } results in this: binman_init:41binman_init:44binman_init:46initcall sequence 000000004ffd2588 failed@call 0000000041e0cdec (err=-22) regards Frank