Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#12253 closed defect (fixed)

Bug in DIR-600-A1 initialization code

Reported by: stalkersmail@… Owned by: developers
Priority: high Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: Cc:


Bug is in dir_600_a1_setup function.

It contains code:

u8 mac_buff[6];
u8 *mac = NULL;

Next, after reading MAC-addres from nvram(nvram_parse_mac_addr function call),
kernel falls in panic because of null pointer exception(mac variable).

I replaced that code with:

u8 mac_buff[6] = {0x11, 0x22, 0x33, 0x44, 0x55, 0x66};
u8 *mac = mac_buff;

to make kernel just starting.
I guess, unfixed code fails, because I previously erased _all_ flash ROM, including that 'nvram'(what is it? Part of FLASH image?).
Perhaps my solution is not so good, but it just working.

Vycheslav Bondarev.

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by juhosg

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r33575.

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.