Berkshire takes a $377M charge connected to an investment in a solar company.